Train network optimization method, system and storage medium based on streaming media application

By monitoring the heartbeat status of control nodes and streaming media processors in the train network, the system achieves second-level migration and multicast transmission of streaming media containers, solving the problems of high latency, high bandwidth consumption, and complex deployment of streaming media applications in the train embedded environment, and improving the system's flexibility and operational efficiency.

CN116016467BActive Publication Date: 2025-10-24SUZHOU HUAQI INTELLIGENT TECH +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211611361.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-14
Publication Date
2025-10-24
Estimated Expiration
2042-12-14

AI Technical Summary

Technical Problem

In the embedded environment of trains, streaming media applications suffer from problems such as high data stream latency, high bandwidth resource consumption, cumbersome application deployment, and high application disaster recovery costs.

Method used

By monitoring the heartbeat status of the control node and the streaming media processor, the streaming media container can be migrated in seconds, and streaming media data is transmitted using multicast. The combination of UDP protocol and multicast reduces bandwidth resource waste.

Benefits of technology

It reduces data stream latency, reduces bandwidth resource consumption, simplifies application deployment, lowers operation and maintenance costs, and improves the elastic scheduling and disaster recovery capabilities of streaming media applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116016467B_ABST
    Figure CN116016467B_ABST
Patent Text Reader

Abstract

The application relates to a train network optimization method, system and storage medium based on a streaming media application. The method comprises the following steps: monitoring the heartbeat state of a control node and the heartbeat state of a streaming media processor; when the heartbeat of the control node and / or the heartbeat of the streaming media processor is detected to be abnormal, migrating the streaming media container of the abnormal control node and / or the streaming media container where the abnormal streaming media processor is located to a normal control node and / or a normal streaming media processor; when the heartbeat of the control node and the corresponding streaming media processor is detected to be normal, sending streaming media data in the streaming media container of the normal control node to an Ethernet in a multicast mode to be transmitted to a video terminal connected to the Ethernet. The application can solve the technical problems of high streaming media application data flow delay, high bandwidth resource occupation, complicated application deployment and high application disaster recovery cost in the current embedded environment.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of digital multimedia technology, in particular to a train network optimization method and system based on streaming media application and a storage medium. BACKGROUND

[0002] Streaming media technology uses streaming method, and the technical feature of downloading and playing at the same time enables people to obtain more multimedia information in a shorter time. With the development of multimedia compression technology and the wide use of embedded intelligent technology, the advantage of streaming media technology is that it can transmit data (including images, audio, etc.) in real time in the form of stream in the network, which breaks through the limitation of network bandwidth on multimedia information transmission to a certain extent, and is widely used in online live broadcast, video on demand, remote education, video conference and other fields. In the train, advertisements, safety knowledge, even movies, etc. can be played, which has become an indispensable part of the embedded intelligent device in the train.

[0003] With the continuous development of embedded intelligent devices, in the embedded system of the train, the working environment generally has the characteristics of weak network, unstable resource supply, and scattered hardware device deployment. In order to better sink the application to the embedded board, cloud processing has become a new development direction in the industry. The cloud platform solves the problems of scattered train devices, large network environment difference, and difficult application migration by uniformly scheduling and using the resources of the embedded board, thereby reducing the human operation and maintenance cost and fitting the current train embedded environment. However, the traditional streaming media in the industry is usually widely used in the form of on-demand, which actively connects between the client and the server to ensure the maximum control of the stream.

[0004] In the existing train environment, the streaming media application in the traditional embedded environment may have the following problems:

[0005] 1. The streaming media application is deployed to a certain car through single-point deployment, which may cause client connection interruption timeout and play interruption problem in a weak network environment;

[0006] 2. If the client in each car connects to the server at the same time, it will increase the occupation of network bandwidth in the environment with low original bandwidth, which seriously affects the performance of other businesses;

[0007] 3. The deployment methods are different, and the operation and maintenance are difficult. Once the server is down, it will greatly increase the operation and maintenance difficulty and cost. SUMMARY

[0008] Therefore, the present application solves the technical problems of high streaming media application data flow delay, high bandwidth resource occupation, complicated application deployment, and high application disaster recovery cost in the current embedded environment.

[0009] To solve the above technical problems, the application provides a train network optimization method based on a streaming media application, which is applied to a streaming media application system; the streaming media application system comprises a streaming media container controller, a plurality of control nodes and a plurality of video terminals connected with the streaming media container controller through an Ethernet, and each control node is provided with a streaming media container with a streaming media processor;

[0010] The method comprises:

[0011] monitoring the heartbeat state of the control nodes and the heartbeat state of the streaming media processors;

[0012] When the heartbeat abnormality of the control nodes and / or the heartbeat abnormality of the streaming media processors is detected, the streaming media container of the abnormal control node and / or the streaming media container where the abnormal streaming media processor is located is migrated to a normal control node and / or a normal streaming media processor;

[0013] When the heartbeat of the control nodes and the corresponding streaming media processors is normal, the streaming media data in the streaming media container of the normal control node is sent to the Ethernet in a multicast manner to be transmitted to the video terminals connected in the Ethernet.

[0014] Optionally, the monitoring of the heartbeat state of the control nodes and the heartbeat state of the streaming media processors comprises:

[0015] the heartbeat state of each control node is monitored by a probe;

[0016] When the heartbeat abnormality of the control nodes is detected, it is judged that the control node has a fault;

[0017] When the heartbeat of the control nodes is normal, the heartbeat state of the streaming media processor on the control node is monitored by a probe;

[0018] When the heartbeat abnormality of the streaming media processor is detected, it is judged that the process of the streaming media processor and the container network where the streaming media processor is located have a fault;

[0019] When the heartbeat of the streaming media processor is normal, it is judged that the process of the streaming media processor and the container network where the streaming media processor is located are normal.

[0020] Optionally, the migration of the streaming media container of the abnormal control node and / or the streaming media container where the abnormal streaming media processor is located to the normal control node and / or the streaming media container where the normal streaming media processor is located when the heartbeat abnormality of the control nodes and / or the heartbeat abnormality of the streaming media processors is detected comprises:

[0021] When the heartbeat abnormality of one control node is detected, the streaming media container of the abnormal control node is migrated to a normal control node;

[0022] When it is detected that the heartbeat of the control node is normal, but the heartbeat of the stream media processor of the control node is abnormal, the stream media container where the abnormal stream media processor is located is migrated to the normal control node or / and the stream media container where the normal stream media processor is located.

[0023] Optionally, on the plurality of control nodes, at least one control node is provided with a plurality of stream media containers with stream media processors;

[0024] When it is detected that the heartbeat of the control node is normal, but the heartbeat of the stream media processor of the control node is abnormal, the stream media container where the abnormal stream media processor is located is migrated to the normal control node or / and the stream media container where the normal stream media processor is located.

[0025] When it is detected that the heartbeat of the control node is normal, but the heartbeat of the stream media processor of the control node is abnormal, the stream media container where the abnormal stream media processor is located is migrated to the normal control node or / and the stream media container where the normal stream media processor is located.

[0026] When it is detected that the heartbeat of the control node is normal, but the heartbeat of the stream media processor of the control node is abnormal, the stream media container where the abnormal stream media processor is located is migrated to the normal control node or / and the stream media container where the normal stream media processor is located.

[0027] When it is detected that the heartbeat of the control node is normal, but the heartbeat of the stream media processor of the control node is abnormal, the stream media container where the abnormal stream media processor is located is migrated to the normal control node or / and the stream media container where the normal stream media processor is located.

[0028] Optionally, when it is detected that the heartbeat of the control node and the corresponding stream media processor is normal, the stream media data in the stream media container of the normal control node is transmitted to the Ethernet in a multicast manner, including:

[0029] When it is detected that the heartbeat of the control node and the corresponding stream media processor is normal, the existence state of the stream media data in the stream media container of the normal control node is detected.

[0030] When it is detected that the stream media data in the stream media container normally exists, the normally existing stream media data is encoded and processed.

[0031] The encoded stream media data and heartbeat information are transmitted to the Ethernet in a multicast manner through the udp protocol.

[0032] Optionally, the detecting the presence state of the stream media data in the stream media container of the normal control node comprises:

[0033] Obtaining a multimedia playlist in the stream media container of the normal control node;

[0034] Cyclically traversing the multimedia playlist to determine the presence state of the stream media data in the stream media container.

[0035] Optionally, before the monitoring the heartbeat state of the control node and the heartbeat state of the stream media processor, the method further comprises:

[0036] Obtaining a loading state of a stream media processor image in a container image warehouse on each control node;

[0037] When it is detected that the stream media processor image is not loaded, loading a stream media controller image into the container image warehouse of the control node;

[0038] The container image warehouse is used to form the stream media container, and the stream media processor image is used to form the stream media processor.

[0039] Optionally, before the monitoring the heartbeat state of the control node and the heartbeat state of the stream media processor, the method further comprises:

[0040] Cyclically monitoring resource usage of the stream media container, and obtaining the current resource usage of the stream media container through a standard API;

[0041] The resource usage comprises CPU resource, memory resource, and network traffic resource usage.

[0042] In addition, the application further provides a train network optimization system based on a stream media application, which is applied to a stream media application system; the stream media application system comprises a stream media container controller, a plurality of control nodes and a plurality of video terminals connected with the stream media container controller through an Ethernet, and each control node is provided with a stream media container with a stream media processor;

[0043] The system comprises:

[0044] A heartbeat state monitoring module, which is used to monitor the heartbeat state of the control node and the heartbeat state of the stream media processor;

[0045] A container migration control module, which is used to migrate the stream media container of the abnormal control node or / and the stream media container where the abnormal stream media processor is located to the normal control node or / and the stream media container where the normal stream media processor is located when it is detected that the heartbeat of the control node is abnormal or / and the heartbeat of the stream media processor is abnormal;

[0046] The stream media data transmission module is configured to send the stream media data in the stream media container of the normal control node to the Ethernet in a multicast mode when it is detected that the heartbeats of the control node and the corresponding stream media processor are normal, so as to be transmitted to the video terminal connected to the Ethernet.

[0047] In addition, the application further provides a computer readable storage medium, wherein the computer readable storage medium stores computer execution instructions, and the computer execution instructions are used for implementing all method steps or part of method steps of the train network optimization method based on the stream media application.

[0048] The technical scheme provided by the application has the following advantages:

[0049] The train network optimization method based on the stream media application provided by the application can perform stream media container migration when the heartbeats of the control node and the stream media processor are abnormal, that is, the stream media processor can be automatically migrated to an available control node in seconds when the control node and the stream media processor fail, so that the stream media application is provided with the characteristics of rapid start, elastic scheduling and elastic disaster recovery. In addition, the stream media data in the stream media processor can be sent to the Ethernet in a multicast mode, and the combination of the udp protocol and the multicast mode has the characteristics of small resource consumption and efficient transmission, so that the waste of bandwidth resources in the stream media application system can be reduced, and the possibility of network congestion can be reduced. In this way, in the stream media application system in the current embedded environment, the data flow delay can be reduced, the bandwidth resource occupation can be reduced, the application deployment can be simplified, and the application disaster recovery cost can be reduced. BRIEF DESCRIPTION OF DRAWINGS

[0050] In order to more clearly illustrate the technical solutions in the embodiments of the application, the following will briefly introduce the drawings needed to be used in the embodiment description. Obviously, the drawings in the following description are only some embodiments of the application, and other drawings can be obtained by those skilled in the art without any creative effort on the basis of these drawings.

[0051] Figure 1 The step flowchart of the train network optimization method based on the stream media application described in the embodiments of the application;

[0052] Figure 2 The structural framework diagram of the stream media application system related to the train network optimization method based on the stream media application described in the embodiments of the application;

[0053] Figure 3 The logic flowchart of monitoring the control node in the train network optimization method based on the stream media application described in the embodiments of the application;

[0054] Figure 4 A logic flow diagram for monitoring the stream media processor in the train network optimization method based on the stream media application according to the embodiment of the present application is shown in the figure;

[0055] Figure 5 A first structural framework diagram for migrating the stream media container in the train network optimization method based on the stream media application according to the embodiment of the present application is shown in the figure;

[0056] Figure 6 A second structural framework diagram for migrating the stream media container in the train network optimization method based on the stream media application according to the embodiment of the present application is shown in the figure;

[0057] Figure 7 A third structural framework diagram for migrating the stream media container in the train network optimization method based on the stream media application according to the embodiment of the present application is shown in the figure;

[0058] Figure 8 A logic flow diagram for transmitting the stream media data in the stream media processor in the train network optimization method based on the stream media application according to the embodiment of the present application is shown in the figure;

[0059] Figure 9 A structural schematic diagram of the train network optimization system based on the stream media application according to the embodiment of the present application is shown in the figure. DETAILED DESCRIPTION

[0060] The technical solutions of the present application will be described clearly and completely below with reference to the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, but not all the embodiments. The present application will be described below with reference to the accompanying drawings and in combination with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.

[0061] In the related art, the stream media application system in the traditional embedded environment is prone to the following problems: the stream media application is deployed in a single point in a car, and in a weak network environment, the client connection is prone to interruption timeout, causing the problem of playing interruption; if the client in each car is connected to the server at the same time, the network bandwidth is increased in the environment with low original bandwidth, which seriously affects the performance of other services; the deployment methods are different, and the operation and maintenance are difficult, and once the server is down, the operation and maintenance difficulty and cost will be greatly increased. In order to solve the above technical problems, the present application provides a train network optimization method and system based on stream media application.

[0062] The present application provides a train network optimization method based on stream media application, which is applied to a stream media application system. Figure 2As shown, the streaming media application system 10 can include a streaming media container controller, and a plurality of control nodes and a plurality of video terminals connected with the streaming media container controller through Ethernet, each control node is provided with a streaming media container having a streaming media processor. The streaming media container controller can be deployed on each embedded board of the train, and can be connected with the server through Ethernet to obtain streaming media data from the server and send to the streaming media processor of the streaming media container of the control node for storage, and can deliver the streaming media data stored in the streaming media processor to the video terminal to play the streaming media data through the video terminal.

[0063] Specifically, as shown in the figure, the train network optimization method based on the streaming media application can include the following steps: Figure 1

[0064] S100, monitoring the heartbeat state of the control node and the heartbeat state of the streaming media processor;

[0065] S200, when detecting heartbeat abnormality of the control node or / and heartbeat abnormality of the streaming media processor, migrating the streaming media container of the abnormal control node or / and the streaming media container where the abnormal streaming media processor is located to the normal control node or / and the streaming media container where the normal streaming media processor is located;

[0066] S300, when detecting that the control node and the corresponding streaming media processor are normal, sending the streaming media data in the streaming media container of the normal control node to the Ethernet in a multicast manner to transmit to the video terminal connected in the Ethernet.

[0067] The train network optimization method based on the streaming media application provided by the application can migrate the streaming media container when the heartbeat of the control node and the streaming media processor is abnormal, that is, when the control node and the streaming media processor fail, the streaming media processor can be automatically migrated to the available control node in seconds, which provides the characteristics of fast start, elastic scheduling and elastic disaster recovery for the streaming media application. Moreover, the streaming media data in the streaming media processor can be sent to the Ethernet in a multicast manner, and because the combination of the udp protocol and the multicast has the characteristics of small resource consumption and efficient transmission, the waste of bandwidth resources in the streaming media application system can be significantly reduced, and the possibility of network congestion can be reduced. In this way, in the current embedded environment of the streaming media application system, the data flow delay can be reduced, the bandwidth resource occupation can be reduced, the application deployment can be simplified, and the application disaster recovery cost can be reduced.

[0068] Further, before the step S100 of monitoring the heartbeat state of the control node and the heartbeat state of the streaming media processor, the following steps can also be included:

[0069] ​S102, acquire the loading state of the stream media processor image in the container image warehouse on each control node. Wherein, the container image warehouse is used to form a stream media container, and the stream media processor image is used to form a stream media processor.

[0070] S104, when detecting that the stream media processor image is not loaded, load the stream media controller image into the container image warehouse of the control node.

[0071] Specifically, each control node can be detected by a stream media container controller to detect whether a stream media container (i.e. container image warehouse) is loaded on each control node, and to detect whether a stream media processor (i.e. stream media processor image) with stream media data is loaded in each stream media container. The stream media container can be loaded in multiple control nodes in a mirror mode, and the stream media processor with stream media data can also be loaded in multiple stream media containers in a mirror mode. Wherein, the stream media container controller can be deployed on each embedded board of the train. In addition, it should be noted that the train described in the present application can refer to a high-speed moving rail vehicle.

[0072] When it is detected that a stream media container (i.e. container image warehouse) is not loaded on a control node, the container image warehouse is loaded on the control node; when it is detected that a stream media container (i.e. container image warehouse) is loaded on a control node, other control nodes are detected, i.e. whether a stream media container (i.e. container image warehouse) is loaded on the other control nodes.

[0073] When it is detected that a stream media container on a control node does not load a stream media processor (i.e. stream media processor image), the stream media processor image is loaded on the stream media container; when it is detected that a stream media container on a control node has loaded a stream media processor (i.e. stream media processor image), other stream media containers are detected, i.e. whether a stream media container (i.e. container image warehouse) is loaded on the other stream media containers.

[0074] Moreover, before monitoring the heartbeat state of the control node and the heartbeat state of the stream media processor in step S100, the following steps can also be included:

[0075] S106, loop monitoring the resource usage of the stream media container, and acquiring the current resource usage of the stream media container through a standard API (Application Programming Interface, application programming interface);

[0076] Wherein, the resource usage includes the usage of CPU (central processing unit) resource, memory resource, and network traffic resource.

[0077] Further, as shown in step S100, the heartbeat state of the control node and the heartbeat state of the stream media processor are monitored, which can specifically include the following steps: Figure 3 Figure 4 S110, the heartbeat state of each control node is monitored by a probe. That is, the probe can be controlled by the stream media container controller to detect the heartbeat state of each control node connected to the stream media container controller to determine whether the heartbeat of the control node is normal or abnormal.

[0078] S110, the heartbeat state of each control node is monitored by a probe. That is, the probe can be controlled by the stream media container controller to detect the heartbeat state of each control node connected to the stream media container controller to determine whether the heartbeat of the control node is normal or abnormal.

[0079] S120, when the heartbeat of the control node is detected to be abnormal, it is determined that the control node has failed. When the control node fails, it will produce heartbeat abnormality, at this time the control node cannot work normally (i.e. cannot normally output stream media data).

[0080] S130, when the heartbeat of the control node is detected to be normal, the heartbeat state of the stream media processor on the control node is monitored by the probe. When the control node can work normally, its heartbeat is normal, at this time the probe can be further controlled by the stream media container controller to detect the heartbeat state of the stream media processor under the control node.

[0081] S140, when the heartbeat of the stream media processor is detected to be abnormal, it is determined that the process of the stream media processor and the network of the container where it is located have failed. Similarly, when the stream media processor fails, it will produce heartbeat abnormality, at this time the stream media processor cannot work normally (i.e. cannot normally output stream media data).

[0082] S150, when the heartbeat of the stream media processor is detected to be normal, it is determined that the process of the stream media processor and the network of the container where it is located are normal. That is, when the stream media processor can work normally, its heartbeat is normal, at this time the stream media processor can normally output stream media data.

[0083] In this way, the stream media container controller listens to the heartbeat of the control node through the probe (unix socket) to determine whether the control node has failed. If the control node fails, a second-level response can be made to migrate the stream media container where the stream media processor is located to any available control node.

[0084] Further, the stream media container controller listens to the heartbeat of the stream media processor through the probe (unix socket) to determine whether the process of the stream media processor and the network of the container where it is located are normal. If the process of the stream media controller and the container where it is located fail, a second-level response can be made to migrate the stream media container where the stream media processor is located to any available control node.

[0085] ​Further, when detecting the heartbeat abnormality of the control node and / or the heartbeat abnormality of the stream media processor in step S200, migrating the stream media container of the abnormal control node and / or the stream media container where the abnormal stream media processor is located to the normal control node and / or the stream media container where the normal stream media processor is located can specifically include the following steps:

[0086] S210, when detecting the heartbeat abnormality of one control node, migrating the stream media container of the abnormal control node to the normal control node.

[0087] Specifically, as shown in Figure 5 , when the stream media container controller detects the heartbeat abnormality of one control node in the plurality of control nodes through the probe, it is determined that the control node has failed, and then the stream media container on the abnormal control node can be migrated to one or more normal control nodes. Further, when there are multiple stream media containers on the abnormal control node, the multiple stream media containers can be migrated to one normal control node or to multiple normal control nodes respectively; and when there is one stream media container on the abnormal control node, the stream media container can be migrated to one normal control node.

[0088] S220, when detecting the heartbeat normality of the control node but the heartbeat abnormality of the stream media processor of the control node, migrating the stream media container where the abnormal stream media processor is located to the normal control node and / or the stream media container where the normal stream media processor is located.

[0089] Specifically, as shown in Figure 6 and Figure 7 , when the stream media container controller detects the heartbeat normality of one control node in the plurality of control nodes through the probe, it is determined that the control node can work normally, but when the probe detects the abnormality of the stream media processor on the normal control node, the stream media container where the abnormal stream media processor is located can be migrated to the normal control node, or the stream media container where the abnormal stream media processor is located can be migrated to the stream media container where the normal stream media processor is located.

[0090] Further, when the stream media application system includes a plurality of control nodes, and at least one control node is provided with a plurality of stream media containers with stream media processors, when detecting the heartbeat normality of the control node but the heartbeat abnormality of the stream media processor of the control node in step S220, migrating the stream media container where the abnormal stream media processor is located to the normal control node and / or the stream media container where the normal stream media processor is located can further include the following steps:

[0091] S222, when detecting that the heartbeat of a control node is normal, but the heartbeat of a stream media processor of the normal control node is abnormal, migrating the stream media container where the abnormal stream media processor is located to the normal control node or the stream media container where the normal stream media processor is located.

[0092] In some cases, one control node can be provided with one stream media container, or can be provided with multiple stream media containers, and each stream media container can be provided with one stream media processor. Therefore, when the heartbeat of a stream media processor on a normal control node is abnormal, and the normal control node is provided with only one stream media container, the stream media container on the control node can be migrated to another normal control node; and when a normal control node is provided with multiple stream media containers, and the heartbeat of a stream media processor in one of the stream media containers is abnormal, the abnormal stream media container can be migrated to another normal control node, or the abnormal stream media container can be migrated to the stream media container where another normal stream media processor on the control node is located.

[0093] S224, when detecting that the heartbeat of a control node is normal, but the heartbeat of multiple stream media processors of the normal control node is abnormal, migrating the stream media container where part of the abnormal stream media processors are located to the normal control node, and migrating the stream media container where part of the abnormal stream media processors are located to the stream media container where the normal stream media processors are located.

[0094] When a normal control node is provided with multiple stream media containers, and the heartbeat of a stream media processor in some of the stream media containers is abnormal, part of the abnormal stream media containers can be migrated to another normal control node or another normal control nodes, and part of the abnormal stream media containers can also be migrated to the stream media containers where another normal stream media processor on the control node is located.

[0095] S226, or, when detecting that the heartbeat of a control node is normal, but the heartbeat of multiple stream media processors of the normal control node is abnormal, migrating the stream media container where all of the abnormal stream media processors are located to the normal control node, or migrating the stream media container where all of the abnormal stream media processors are located to the stream media container where the normal stream media processors are located.

[0096] In addition, when a normal control node is provided with multiple stream media containers, and the heartbeat of a stream media processor in some of the stream media containers is abnormal, all of the abnormal stream media containers can be migrated to another normal control node or another normal control nodes, or all of the stream media containers can be migrated to the stream media containers where another normal stream media processor on the control node is located.

[0097] In addition, as described above, when the heartbeat of a stream media processor on a normal control node is abnormal, and the normal control node is provided with multiple stream media containers, the abnormal stream media processor can be migrated to another normal control node, or the abnormal stream media processor can be migrated to the stream media container where another normal stream media processor on the control node is located.Figure 8 As shown, in step S300, when it is detected that the heartbeat of the control node and its corresponding streaming media processor is normal, the streaming media data in the streaming media container of the normal control node is sent to the Ethernet in a multicast manner, which may specifically include the following steps:

[0098] S310: When it is detected that the heartbeats of the control node and its corresponding streaming media processor are normal, detecting the existence status of streaming media data in the streaming media container of the normal control node;

[0099] S320: When it is detected that the streaming media data in the streaming media container is normally present, encoding the normally present streaming media data is performed;

[0100] S330: Send the encoded streaming media data and heartbeat information to the Ethernet in a multicast form via the UDP (User Datagram Protocol).

[0101] Furthermore, in step S310, detecting the existence status of the streaming media data in the streaming media container of the normal control node includes:

[0102] S312: Acquire a multimedia playlist in a streaming media container of a normal control node;

[0103] S314: Loop through the multimedia playlist to determine the existence status of the streaming media data in the streaming media container.

[0104] The streaming container controller loops through the video playlist in the streaming container to determine whether streaming data exists. If so, it can be encoded. The streaming data may include video data, audio data, audio and video data, etc.

[0105] The present invention also proposes a train network optimization system 100 based on streaming media applications, which is applied to a streaming media application system 10. The streaming media application system 10 may include a streaming media container controller, multiple control nodes, and multiple video terminals connected to the streaming media container controller via Ethernet. Each control node is equipped with a streaming media container with a streaming media processor. The streaming media container controller can be deployed on each embedded board in the train and can connect to a server via Ethernet to obtain streaming media data from the server and send it to the streaming media processor of the streaming media container in the control node for storage. The streaming media data stored in the streaming media processor can then be transmitted to the video terminal for playback via the video terminal.

[0106] Specifically, if Figure 9 As shown, the train network optimization system 100 based on streaming media application may include:

[0107] a heartbeat state monitoring module 102, configured to monitor a heartbeat state of the control node and a heartbeat state of the stream media processor;

[0108] a container migration control module 104, configured to, when detecting heartbeat abnormality of the control node or / and heartbeat abnormality of the stream media processor, migrate the stream media container of the abnormal control node or / and the stream media container where the abnormal stream media processor is located to a normal control node or / and a normal stream media processor;

[0109] a stream media data transmission module 106, configured to, when detecting that the heartbeat of the control node and the corresponding stream media processor is normal, send stream media data in the stream media container of the normal control node to the Ethernet in a multicast mode, so as to be transmitted to a video terminal connected in the Ethernet.

[0110] The train network optimization system 100 based on stream media application in the embodiment corresponds to the train network optimization method based on stream media application, and the functions of the modules in the train network optimization system 100 based on stream media application are described in detail in the corresponding method embodiment, which will not be described here.

[0111] The train network optimization method and system based on stream media application provided by the application are used in a train embedded environment with weak network, mobility, unstable power supply and the like, stream media data is transmitted in a multicast mode, the occupation of network bandwidth by the stream media application system is greatly reduced, and the effect is remarkable in a low-bandwidth network environment; a probe (unix socket) is added to the stream media application system, the process heartbeat of the control node and the stream media processor in the stream media container is continuously monitored, and rapid migration is performed in a second-level reaction, so that the effect of elastic disaster recovery is achieved, and the human operation and maintenance cost is greatly reduced; the train embedded board card resources are integrated by the stream media container controller, the stream media application system is standardized, a container image is generated, the stream media application system can be used immediately after being disassembled, and deployment is simplified; the stream media application system can automatically detect a play source list, the effect of playing at any time is achieved, and the flexibility of the stream media play source is increased.

[0112] The stream media application system is sunk to an embedded system, and new requirements of a train intelligent application or an embedded environment for the stream media application are met.

[0113] In addition, the application further provides a computer readable storage medium, the computer readable storage medium stores computer execution instructions, and the computer execution instructions are used for implementing all method steps or part of the method steps of the train network optimization method based on stream media application when the processor executes the computer execution instructions.

[0114] The present application implements all or part of the processes in the above method, and can also be completed by a computer program instructing related hardware. The computer program can be stored in a computer readable storage medium. When the computer program is executed by a processor, the steps of each method embodiment described above can be implemented. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or some intermediate forms, etc. The computer readable medium can include any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content included in the computer readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.

[0115] Based on the same inventive concept, the embodiments of the present application also provide an electronic device, including a memory and a processor, the memory stores a computer program running on the processor, and the processor implements all or part of the method steps of the above method when executing the computer program.

[0116] The processor can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor, etc. The processor is the control center of the computer device, and connects all parts of the computer device through various interfaces and lines.

[0117] The memory can be used to store computer programs and / or models, and the processor implements various functions of the computer device by running or executing the computer programs and / or models stored in the memory, and calling data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system and at least one application program (such as a sound playing function, an image playing function, etc.) required by a function; and the data storage area can store data (such as audio data, video data, etc.) created according to the use of the mobile phone. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, at least one disk storage device, a flash memory device, or other volatile solid-state memory devices.

[0118] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, a server or a computer program product. Therefore, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage and optical storage, etc.) containing computer-usable program code.

[0119] The present application is described with reference to flowcharts and / or block diagrams of methods, devices (systems), servers and computer program products according to embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, as well as combinations of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing apparatus to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing apparatus produce a device that implements the functions specified in the flowcharts and / or block diagrams. Figure 1 one or more flows and / or blocks Figure 1 an apparatus that implements the functions specified in the flowcharts and / or block diagrams.

[0120] These computer program instructions can also be stored in a computer-readable memory that can direct the computer or other programmable data processing apparatus to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including instruction apparatus, which implements the functions specified in the flowcharts and / or block diagrams. Figure 1 one or more flows and / or blocks Figure 1 an apparatus that implements the functions specified in the flowcharts and / or block diagrams.

[0121] These computer program instructions can also be loaded into a computer or other programmable data processing devices, so that a series of operational steps are performed on the computer or other programmable devices to generate computer-implemented processes, thus the instructions executed on the computer or other programmable devices provide processes for implementing the functions specified in the flowchart Figure 1 one or more flows and / or blocks Figure 1 one or more blocks or steps of the functions specified in the flowchart

[0122] Obviously, those skilled in the art can make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application belong to the scope of the claims of the present application and their equivalent technologies, the present application also intends to include these modifications and variations.

Claims

1. A train network optimization method based on a streaming media application, applied to a streaming media application system. The streaming media application system comprises a streaming media container controller, a plurality of control nodes and a plurality of video terminals connected to the streaming media container controller through an Ethernet, wherein each control node is provided with a streaming media container having a streaming media processor; The method comprises: monitoring the heartbeat state of the control nodes and the heartbeat state of the streaming media processors; monitoring the heartbeat state of each control node through a probe; when detecting an abnormal heartbeat of a control node, determining that the control node has failed; when detecting a normal heartbeat of a control node, monitoring the heartbeat state of the streaming media processor on the control node through a probe; when detecting an abnormal heartbeat of a streaming media processor, determining that the process of the streaming media processor and the container network where the streaming media processor is located have failed; when detecting a normal heartbeat of a streaming media processor, determining that the process of the streaming media processor and the container network where the streaming media processor is located are normal; when detecting an abnormal heartbeat of a control node and / or an abnormal heartbeat of a streaming media processor, migrating the streaming media container of the abnormal control node and / or the streaming media container where the abnormal streaming media processor is located to a normal control node and / or the streaming media container where a normal streaming media processor is located; when detecting an abnormal heartbeat of a control node, migrating the streaming media container of the abnormal control node to a normal control node; when detecting a normal heartbeat of a control node but an abnormal heartbeat of a streaming media processor of the control node, migrating the streaming media container where the abnormal streaming media processor is located to a normal control node and / or the streaming media container where a normal streaming media processor is located; on a plurality of control nodes, at least one control node is provided with a plurality of streaming media containers having streaming media processors; when detecting a normal heartbeat of a control node but an abnormal heartbeat of a streaming media processor of the normal control node, migrating the streaming media container where the abnormal streaming media processor is located to a normal control node or the streaming media container where a normal streaming media processor is located; when detecting a normal heartbeat of a control node but abnormal heartbeats of a plurality of streaming media processors of the normal control node, migrating the streaming media container where part of the abnormal streaming media processors are located to a normal control node and migrating the streaming media container where part of the abnormal streaming media processors are located to the streaming media container where a normal streaming media processor is located; or, when detecting a normal heartbeat of a control node but abnormal heartbeats of a plurality of streaming media processors of the normal control node, migrating the streaming media container where all the abnormal streaming media processors are located to a normal control node or migrating the streaming media container where all the abnormal streaming media processors are located to the streaming media container where a normal streaming media processor is located; when detecting a normal heartbeat of a control node and its corresponding streaming media processor, sending the streaming media data in the streaming media container of the normal control node to the Ethernet in a multicast manner to be transmitted to the video terminals connected to the Ethernet. The method comprises:

2. The train network optimization method based on streaming media application according to claim 1, characterized in that, when detecting a normal heartbeat of a control node and its corresponding streaming media processor, sending the streaming media data in the streaming media container of the normal control node to the Ethernet in a multicast manner to be transmitted to the video terminals connected to the Ethernet. When the heartbeats of the control nodes and their corresponding stream media processors are detected to be normal, the presence state of the stream media data in the stream media container of the normal control node is detected; When the normal presence of the stream media data in the stream media container is detected, the normal stream media data is encoded and processed; The encoded stream media data and heartbeat information are sent to the Ethernet in the form of multicast through the udp protocol.

3. The train network optimization method based on streaming media application according to claim 2, characterized in that, The detection of the presence state of the stream media data in the stream media container of the normal control node comprises: Obtaining the multimedia playlist in the stream media container of the normal control node; Looping through the multimedia playlist to determine the presence state of the stream media data in the stream media container.

4. The train network optimization method based on streaming media application according to claim 1, wherein, Before the monitoring of the heartbeat state of the control node and the heartbeat state of the stream media processor, the method further comprises: Obtaining the loading state of the stream media processor image in the container image warehouse on each control node; When the stream media processor image is detected to be not loaded, the stream media controller image is loaded into the container image warehouse of the control node; The container image warehouse is used to form the stream media container, and the stream media processor image is used to form the stream media processor.

5. The method for train network optimization based on streaming media application according to claim 2, characterized in that, Before the monitoring of the heartbeat state of the control node and the heartbeat state of the stream media processor, the method further comprises: Looping to monitor the resource usage of the stream media container, and obtaining the current resource usage of the stream media container through a standard API; The resource usage includes the usage of CPU resources, memory resources, and network traffic resources.

6. A train network optimization system based on streaming media application, applied to a streaming media application system; The stream media application system comprises a stream media container controller, a plurality of control nodes and a plurality of video terminals connected to the stream media container controller through the Ethernet, and each control node is provided with a stream media container having a stream media processor; The system comprises: A heartbeat state monitoring module for monitoring the heartbeat state of the control node and the heartbeat state of the stream media processor; the heartbeat state of each control node is monitored through a probe; when the heartbeat of the control node is detected to be abnormal, it is determined that the control node has failed; when the heartbeat of the control node is detected to be normal, the heartbeat state of the stream media processor on the control node is monitored through the probe; when the heartbeat of the stream media processor is detected to be abnormal, it is determined that the process of the stream media processor and the container network where the stream media processor is located have failed; when the heartbeat of the stream media processor is detected to be normal, it is determined that the process of the stream media processor and the container network where the stream media processor is located are normal; ​ The container migration control module is configured to migrate the streaming container of the abnormal control node and / or the streaming container where the abnormal streaming processor is located to the streaming container where the normal control node and / or the normal streaming processor is located when detecting the heartbeat abnormality of the control node and / or the heartbeat abnormality of the streaming processor; migrate the streaming container of the abnormal control node to the streaming container where the normal control node is located when detecting the heartbeat abnormality of one control node; migrate the streaming container where the abnormal streaming processor is located to the streaming container where the normal control node and / or the normal streaming processor is located when detecting the heartbeat normality of the control node but the heartbeat abnormality of the streaming processor of the control node; provide a plurality of streaming containers with streaming processors on at least one control node on a plurality of control nodes; migrate the streaming container where the abnormal streaming processor is located to the streaming container where the normal control node and / or the normal streaming processor is located when detecting the heartbeat normality of one control node but the heartbeat abnormality of one streaming processor of the normal control node; migrate the streaming container where the partial abnormal streaming processor is located to the streaming container where the normal control node is located and migrate the streaming container where the partial abnormal streaming processor is located to the streaming container where the normal streaming processor is located when detecting the heartbeat normality of one control node but the heartbeat abnormality of a plurality of streaming processors of the normal control node; or migrate the streaming container where the total abnormal streaming processor is located to the streaming container where the normal control node is located or migrate the streaming container where the total abnormal streaming processor is located to the streaming container where the normal streaming processor is located when detecting the heartbeat normality of one control node but the heartbeat abnormality of a plurality of streaming processors of the normal control node. The streaming data transmission module is configured to transmit the streaming data in the streaming container of the normal control node to the Ethernet in a multicast manner to transmit to the video terminal connected to the Ethernet when detecting the heartbeat normality of the control node and the corresponding streaming processor.

7. A computer readable storage medium characterized by The computer readable storage medium stores computer execution instructions, and the computer execution instructions are executed by the processor to implement all method steps or part of the method steps of the train network optimization method based on the streaming application in any one of claims 1-5.

Citation Information

Patent Citations

  • Streaming service exception control method, system and device and storage medium

    CN112751880A

  • Business management method and system, configuration server and edge computing device

    CN114979246A