Packet flow switching processing method and device
By controlling the switching of message streams through the controller, synchronization during media data switching is ensured, which solves the problem of unstable terminal playback and achieves stable service.
Patent Information
- Application Number
- CN202110316342.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-24
- Publication Date
- 2026-11-06
- Estimated Expiration
- 2041-03-24
AI Technical Summary
During media data switching, traditional methods can cause instability during terminal playback, such as video distortion and audio corruption, and cannot effectively prevent service interruptions caused by single points of failure.
The controller sends a notification message to pause the transmission of message streams on one transmission path, ensuring that message streams from the other path arrive at the target device first for merging. During the switching process, the synchronization of media data is maintained to avoid media data corruption.
This effectively avoids instability in media data playback on the terminal and prevents service interruptions due to single points of failure.
Smart Images

Figure CN115208865B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology, and in particular to a message stream switching processing method and device. Background Technology
[0002] With the rapid development of the ultra-high-definition media industry, 4K / 8K ultra-high-definition data places higher demands on bandwidth. Traditional methods of acquisition, production, scheduling, and distribution based on serial digital interfaces (SDI) can no longer meet the needs of technological updates. The internet protocol (IP)-based approach to media production and broadcasting networks is a further development trend. IP-based production and broadcasting networks refer to the transmission of media data via the internet.
[0003] Media data switching refers to the process of instantly switching from one media data source to another. For example, switching between video sources from multiple cameras appears on the terminal display as the image from one camera switching to the image from another. Similarly, switching between video sources from multiple programs appears on the terminal display as the image from one program switching to the image from another. The basic requirement for media data switching is to avoid instability during playback on the terminal. For example, for video data switching, it should avoid screen tearing or other artifacts on the terminal; for audio data switching, it should avoid mixing of audio before and after the switch.
[0004] In the seamless protection switching standard for IP packets, to prevent service interruption due to faults, a protection scheme is defined that transmits the same media data via two different transmission paths. That is, the payloads of the packet streams transmitted along these two different paths are identical, and both ultimately arrive at the same media gateway device. The media gateway device combines these two packet streams to create media data and sends it to the terminal to provide service to the user. If media data switching occurs during transmission, the two packet streams before the switch do not overlap, resulting in asynchronous transmission between the packet streams. Therefore, after the two packet streams arrive at the media gateway and are combined, the combined media data includes both the original and post-switching media data, causing the aforementioned instability when the media data is sent to the terminal for playback. In summary, how to solve the instability problem on the terminal side during media data switching is a technical problem that urgently needs to be addressed by those skilled in the art. Summary of the Invention
[0005] This application discloses a message stream switching processing method and device to solve the problem of instability on the terminal side during media data switching.
[0006] Firstly, this application discloses a message stream switching processing method, which includes:
[0007] The controller sends a first notification message to the first network device, which instructs the first network device to switch the first packet stream destined for the target device to the second packet stream and to suspend sending the second packet stream to the target device.
[0008] When the first network device suspends sending the second packet stream to the target device, the controller sends a second notification message to the second network device. The second notification message is used to instruct the second network device to switch the third packet stream to the target device to a fourth packet stream. The payloads of the third and fourth packet streams are the same as the payloads of the first and second packet streams, respectively.
[0009] In this application, for scenarios where the same media data is transmitted through two message streams via two different transmission paths, during the process of switching media data (e.g., switching TV programs), the transmission of message streams on one transmission path can be paused first, so that the message streams on the other transmission path can always arrive at the target device (e.g., media gateway) first during the switching process. In this way, when the target device performs media data synthesis, it always extracts the media data from the first arriving message stream for synthesis, avoiding the situation of chaotic synthesized media data during the switching process, thereby avoiding instability when the synthesized media data is sent to the terminal for playback.
[0010] In one possible implementation, if the first network device suspends sending the second packet stream to the target device, the controller sends a second notification message to the second network device, including:
[0011] Upon receiving a first response message from the first network device, the controller sends a second notification message to the second network device. The first response message indicates that the first network device has suspended sending the second message stream to the target device.
[0012] In this application, after the first network device performs the corresponding operation according to the controller's notification, it can return a response message to the controller to inform the controller that the corresponding operation has been completed, so that the controller can execute the next operation in a timely manner, which can improve the efficiency of the entire process.
[0013] In one possible implementation, the method further includes: when the second network device switches the third packet stream destined for the target device to a fourth packet stream, the controller sends a third notification message to the first network device, the third notification message being used to instruct the first network device to send the second packet stream to the target device.
[0014] In this application, during the process of pausing the transmission of the packet stream by the first network device, the switching of the packet stream in the corresponding transmission path is completed simultaneously. Then, after the second network device completes the switching of the packet stream, the original packet stream processing speed is restored, and the switched packet stream is sent to the target device normally. In this way, the switched packet streams of the two network devices can be transmitted normally. Since the media data transmitted by the two switched packet streams is the same, the problem of instability when the synthesized media data is sent to the terminal for playback is solved, and the problem of service interruption due to single point of failure can be avoided.
[0015] In one possible implementation, pausing the transmission of the second message stream to the target device includes: delaying the transmission of the first message stream and the second message stream to the target device for a preset duration.
[0016] In this embodiment of the application, by delaying the transmission of the message stream on one of the transmission paths to the target device, the message stream on the other transmission path can always arrive at the target device (e.g., media gateway) first during the switching process. In this way, when the target device performs media data synthesis, it always extracts the media data from the first arriving message stream for synthesis, avoiding the situation of chaotic synthesized media data during the switching process, thereby avoiding instability when the synthesized media data is sent to the terminal for playback.
[0017] Secondly, this application discloses a message stream switching processing method, which includes:
[0018] The controller sends a first notification message to the target device. The first notification message is used to instruct the target device to select only the first target packet flow for forwarding, given a first target packet flow from a first network device and a second target packet flow from a second network device. The first target packet flow includes a first packet flow and a second packet flow, and the second target packet flow includes a third packet flow and a fourth packet flow. The payloads of the third packet flow and the fourth packet flow are the same as the payloads of the first packet flow and the second packet flow, respectively.
[0019] When the target device operates according to the instructions of the first notification message, the controller sends a second notification message to the first network device and a third notification message to the second network device. The second notification message is used to instruct the first network device to switch the first packet stream to the second packet stream, and the third notification message is used to instruct the second network device to switch the third packet stream to the fourth packet stream.
[0020] In this application, for scenarios where the same media data is transmitted through two message streams via two different transmission paths, during the media data switching process, the target device (e.g., a media gateway) can be controlled to select only the messages sent from one of the transmission paths for media data synthesis. In this way, when the target device synthesizes media data, it does not need to alternately extract message data from the message streams sent from the two transmission paths, thus avoiding the situation of chaotic synthesized media data during the switching process, thereby avoiding instability when the synthesized media data is sent to the terminal for playback.
[0021] In one possible implementation, when the target device operates according to the instructions of the first notification message, the controller sends a second notification message to the first network device and a third notification message to the second network device, including:
[0022] Upon receiving a first response message from the target device, the controller sends a second notification message to the first network device and a third notification message to the second network device. The first response message is used to indicate that the target device has operated in accordance with the instructions of the first notification message.
[0023] In this application, after the target device performs the corresponding operation according to the controller's notification, it can return a response message to the controller to inform the controller that the corresponding operation has been completed, so that the controller can execute the next operation in a timely manner, thereby improving the efficiency of the entire process.
[0024] In one possible implementation, the method further includes: when the first network device and the second network device operate according to the instructions of the second notification message and the third notification message respectively, the controller sends a fourth notification message to the target device, the fourth notification message being used to instruct the target device to resume processing of the fourth packet stream.
[0025] In this application, after the first network device and the second network device complete the switching of the packet stream, the target device (e.g., a media gateway) resumes the original packet stream processing mode, that is, it normally receives and processes the second packet stream from the first network device and the fourth packet stream from the second network device according to the preset standard. Since the media data transmitted by the second packet stream and the fourth packet stream is the same, the problem of instability when the above-mentioned synthesized media data is sent to the terminal for playback is solved, and the problem of service interruption due to single point of failure can also be avoided.
[0026] In one possible implementation, when the first network device and the second network device operate according to the instructions of the second notification message and the third notification message respectively, the controller sends a fourth notification message to the target device, including:
[0027] Upon receiving a second response message from the first network device and a third response message from the second network device, the controller sends a fourth notification message to the target device. The second response message indicates that the first network device has switched the first packet stream to the second packet stream, and the third response message indicates that the second network device has switched the third packet stream to the fourth packet stream.
[0028] In this application, after the first network device and the second network device perform the corresponding operation according to the controller's notification, they can return a response message to the controller to inform the controller that the corresponding operation has been completed, so that the controller can execute the next operation in a timely manner, which can improve the efficiency of the entire process.
[0029] Thirdly, this application discloses a message stream switching processing method, which includes:
[0030] The network device receives a first notification message, which instructs the first packet stream destined for the target device to be switched to a second packet stream, and to suspend sending the second packet stream to the target device.
[0031] Based on the first notification message, the network device switches the first message stream destined for the target device to the second message stream and suspends sending the second message stream to the target device.
[0032] In this application, for scenarios where the same media data is transmitted through two message streams via two different transmission paths, during the process of switching media data (e.g., switching TV programs), the transmission of message streams on one transmission path can be paused first, so that the message streams on the other transmission path can always arrive at the target device (e.g., media gateway) first during the switching process. In this way, when the target device performs media data synthesis, it always extracts the media data from the first arriving message stream for synthesis, avoiding the situation of chaotic synthesized media data during the switching process, thereby avoiding instability when the synthesized media data is sent to the terminal for playback.
[0033] In one possible implementation, the method further includes: the network device sending a response message to the controller, the response message indicating that the network device has suspended sending the second message stream to the target device.
[0034] In this application, after the first network device performs the corresponding operation according to the controller's notification, it can return a response message to the controller to inform the controller that the corresponding operation has been completed, so that the controller can execute the next operation in a timely manner, which can improve the efficiency of the entire process.
[0035] In one possible implementation, the method further includes: the network device receiving a second notification message, the second notification message being used to instruct the sending of the second message stream to the target device; and the network device sending the second message stream to the target device based on the second notification message.
[0036] In this application, during the process of pausing the transmission of the packet stream by the first network device, the switching of the packet stream in the corresponding transmission path is completed simultaneously. Then, after the second network device completes the switching of the packet stream, the original packet stream processing speed is restored, and the switched packet stream is sent to the target device normally. In this way, the switched packet streams of the two network devices can be transmitted normally. Since the media data transmitted by the two switched packet streams is the same, the problem of instability when the synthesized media data is sent to the terminal for playback is solved, and the problem of service interruption due to single point of failure can be avoided.
[0037] In one possible implementation, pausing the transmission of the second message stream to the target device includes: delaying the transmission of the second message stream to the target device for a preset duration.
[0038] In this embodiment of the application, by delaying the transmission of the message stream on one of the transmission paths to the target device, the message stream on the other transmission path can always arrive at the target device (e.g., media gateway) first during the switching process. In this way, when the target device performs media data synthesis, it always extracts the media data from the first arriving message stream for synthesis, avoiding the situation of chaotic synthesized media data during the switching process, thereby avoiding instability when the synthesized media data is sent to the terminal for playback.
[0039] Fourthly, this application discloses a message stream switching processing method, which includes:
[0040] The target device receives a first notification message, which is used to indicate that for a first target packet flow from a first network device and a second target packet flow from a second network device, only the first target packet flow is selected for forwarding. The first target packet flow includes a first packet flow and a second packet flow, and the second target packet flow includes a third packet flow and a fourth packet flow. The payloads of the third packet flow and the fourth packet flow are the same as the payloads of the first packet flow and the second packet flow, respectively.
[0041] Based on the first notification message, the target device selects only the first target packet stream for forwarding, given both the first target packet stream and the second target packet stream.
[0042] In this application, for scenarios where the same media data is transmitted through two message streams via two different transmission paths, during the media data switching process, the target device (e.g., a media gateway) can be controlled to select only the messages sent from one of the transmission paths for media data synthesis. In this way, when the target device synthesizes media data, it does not need to alternately extract message data from the message streams sent from the two transmission paths, thus avoiding the situation of chaotic synthesized media data during the switching process, thereby avoiding instability when the synthesized media data is sent to the terminal for playback.
[0043] In one possible implementation, the method further includes:
[0044] The target device receives a second notification message, which instructs the resumption of processing of the fourth message stream;
[0045] The target device resumes processing of the fourth message stream based on the second notification message.
[0046] In this application, after the first network device and the second network device complete the switching of the packet stream, the target device (e.g., a media gateway) resumes the original packet stream processing mode, that is, it normally receives and processes the second packet stream from the first network device and the fourth packet stream from the second network device according to the preset standard. Since the media data transmitted by the second packet stream and the fourth packet stream is the same, the problem of instability when the above-mentioned synthesized media data is sent to the terminal for playback is solved, and the problem of service interruption due to single point of failure can also be avoided.
[0047] Fifthly, this application discloses an apparatus comprising:
[0048] The sending unit is configured to send a first notification message to a first network device, the first notification message being configured to instruct the first network device to switch the first packet stream destined for the target device to a second packet stream, and to suspend sending the second packet stream to the target device;
[0049] The sending unit is further configured to send a second notification message to the second network device when the first network device suspends sending the second packet stream to the target device. The second notification message is configured to instruct the second network device to switch the third packet stream to the target device to a fourth packet stream. The payloads of the third packet stream and the fourth packet stream are the same as the payloads of the first packet stream and the second packet stream, respectively.
[0050] In one possible implementation, the transmitting unit is specifically used for:
[0051] Upon receiving a first response message from the first network device, a second notification message is sent to the second network device. The first response message indicates that the first network device has suspended sending the second message stream to the target device.
[0052] In one possible implementation, the transmitting unit is further configured to:
[0053] When the second network device switches the third packet stream destined for the target device to the fourth packet stream, it sends a third notification message to the first network device, which instructs the first network device to send the second packet stream to the target device.
[0054] In one possible implementation, the suspension of sending the second message stream to the target device includes:
[0055] The first message stream and the second message stream are sent to the target device after a preset delay.
[0056] Sixthly, this application discloses an apparatus comprising:
[0057] The sending unit is configured to send a first notification message to the target device. The first notification message is configured to instruct the target device to select only the first target packet flow for forwarding, given a first target packet flow from a first network device and a second target packet flow from a second network device. The first target packet flow includes a first packet flow and a second packet flow, and the second target packet flow includes a third packet flow and a fourth packet flow. The payloads of the third packet flow and the fourth packet flow are the same as the payloads of the first packet flow and the second packet flow, respectively.
[0058] The sending unit is further configured to send a second notification message to the first network device and a third notification message to the second network device when the target device operates in accordance with the instructions of the first notification message. The second notification message is used to instruct the first network device to switch the first packet stream to the second packet stream, and the third notification message is used to instruct the second network device to switch the third packet stream to the fourth packet stream.
[0059] In one possible implementation, the transmitting unit is specifically used for:
[0060] Upon receiving a first response message from the target device, the second notification message is sent to the first network device, and the third notification message is sent to the second network device. The first response message is used to indicate that the target device has operated in accordance with the instructions of the first notification message.
[0061] In one possible implementation, the transmitting unit is further configured to:
[0062] When the first network device and the second network device operate according to the instructions of the second notification message and the third notification message respectively, a fourth notification message is sent to the target device, which is used to instruct the target device to resume processing of the fourth packet stream.
[0063] In one possible implementation, the transmitting unit is further configured to:
[0064] Upon receiving a second response message from the first network device and a third response message from the second network device, a fourth notification message is sent to the target device. The second response message indicates that the first network device has switched the first packet stream to the second packet stream, and the third response message indicates that the second network device has switched the third packet stream to the fourth packet stream.
[0065] In a seventh aspect, this application discloses an apparatus comprising:
[0066] The receiving unit is configured to receive a first notification message, which instructs the first message stream destined for the target device to be switched to a second message stream, and to suspend the transmission of the second message stream to the target device.
[0067] The processing unit is configured to switch the first message stream destined for the target device to the second message stream based on the first notification message, and to suspend sending the second message stream to the target device.
[0068] In one possible implementation, the device further includes:
[0069] The sending unit is used to send a response message to the controller, which indicates that the network device has suspended sending the second message stream to the target device.
[0070] In one possible implementation, the receiving unit is further configured to receive a second notification message, which instructs the sending of the second message stream to the target device;
[0071] The device also includes a sending unit for sending the second message stream to the target device based on the second notification message.
[0072] In one possible implementation, the suspension of sending the second message stream to the target device includes:
[0073] The second message stream is sent to the target device after a preset delay.
[0074] Eighthly, this application discloses an apparatus comprising:
[0075] The receiving unit is configured to receive a first notification message, which instructs that for a first target packet flow from a first network device and a second target packet flow from a second network device, only the first target packet flow should be selected for forwarding. The first target packet flow includes a first packet flow and a second packet flow, and the second target packet flow includes a third packet flow and a fourth packet flow. The payloads of the third packet flow and the fourth packet flow are the same as the payloads of the first packet flow and the second packet flow, respectively.
[0076] The processing unit is configured to, based on the first notification message, select only the first target message stream for forwarding, given the first target message stream and the second target message stream.
[0077] In one possible implementation, the receiving unit is further configured to:
[0078] Receive a second notification message, which instructs the resumption of processing of the fourth message stream;
[0079] The device also includes a processing unit for resuming processing of the fourth message stream based on the second notification message.
[0080] In a ninth aspect, this application discloses an apparatus comprising a processor, a receiving interface, a transmitting interface, and a memory, wherein the memory is used to store computer programs and / or data, the receiving interface is used to receive messages, the transmitting interface is used to transmit messages, and the processor is used to execute the computer program stored in the memory, causing the apparatus to perform the following operations:
[0081] A first notification message is sent to a first network device through a sending interface. The first notification message is used to instruct the first network device to switch the first packet stream destined for the target device to a second packet stream and to suspend sending the second packet stream to the target device.
[0082] When the first network device suspends sending the second packet stream to the target device, a second notification message is sent to the second network device through the sending interface. The second notification message is used to instruct the second network device to switch the third packet stream to the target device to a fourth packet stream. The payloads of the third and fourth packet streams are the same as the payloads of the first and second packet streams, respectively.
[0083] In one possible implementation, when the first network device suspends sending the second packet stream to the target device, sending a second notification message to the second network device through the sending interface includes:
[0084] Upon receiving a first response message from the first network device via the receiving interface, the second notification message is sent to the second network device via the sending interface. The first response message is used to indicate that the first network device has suspended sending the second message stream to the target device.
[0085] In one possible implementation, the device further performs the following operation: when the second network device switches the third packet stream destined for the target device to a fourth packet stream, it sends a third notification message to the first network device through the sending interface. The third notification message is used to instruct the first network device to send the second packet stream to the target device.
[0086] In one possible implementation, pausing the transmission of the second message stream to the target device includes: delaying the transmission of the first message stream and the second message stream to the target device for a preset duration.
[0087] In a tenth aspect, this application discloses an apparatus comprising a processor, a receiving interface, a transmitting interface, and a memory, wherein the memory is used to store computer programs and / or data, the receiving interface is used to receive messages, the transmitting interface is used to transmit messages, and the processor is used to execute the computer program stored in the memory, causing the apparatus to perform the following operations:
[0088] A first notification message is sent to the target device through a sending interface. The first notification message is used to instruct the target device to select only the first target packet flow for forwarding, given the first target packet flow from the first network device and the second target packet flow from the second network device. The first target packet flow includes a first packet flow and a second packet flow. The second target packet flow includes a third packet flow and a fourth packet flow. The payloads of the third packet flow and the fourth packet flow are the same as the payloads of the first packet flow and the second packet flow, respectively.
[0089] When the target device operates according to the instructions of the first notification message, it sends a second notification message to the first network device through the sending interface, and sends a third notification message to the second network device through the sending interface. The second notification message is used to instruct the first network device to switch the first packet stream to the second packet stream, and the third notification message is used to instruct the second network device to switch the third packet stream to the fourth packet stream.
[0090] In one possible implementation, when the target device operates according to the instructions of the first notification message, sending a second notification message to the first network device through a sending interface, and sending a third notification message to the second network device through a sending interface, includes:
[0091] Upon receiving a first response message from the target device via the receiving interface, the second notification message is sent to the first network device via the sending interface, and the third notification message is sent to the second network device. The first response message is used to indicate that the target device has operated in accordance with the instructions of the first notification message.
[0092] In one possible implementation, the device further performs the following operation: when the first network device and the second network device operate according to the instructions of the second notification message and the third notification message respectively, the device sends a fourth notification message to the target device through the sending interface, the fourth notification message being used to instruct the target device to resume processing of the fourth packet stream.
[0093] In one possible implementation, when the first network device and the second network device operate according to the instructions of the second notification message and the third notification message respectively, sending a fourth notification message to the target device through a sending interface includes:
[0094] Upon receiving a second response message from the first network device via the receiving interface and a third response message from the second network device via the receiving interface, the fourth notification message is sent to the target device via the sending interface. The second response message indicates that the first network device has switched the first packet stream to the second packet stream, and the third response message indicates that the second network device has switched the third packet stream to the fourth packet stream.
[0095] Eleventhly, this application discloses a device comprising a processor, a receiving interface, a transmitting interface, and a memory, wherein the memory is used to store computer programs and / or data, the receiving interface is used to receive messages, the transmitting interface is used to transmit messages, and the processor is used to execute the computer program stored in the memory, causing the device to perform the following operations:
[0096] The first notification message is received through the receiving interface. The first notification message is used to instruct the first message stream to be switched to the second message stream and to suspend the sending of the second message stream to the target device.
[0097] Based on the first notification message, the first message stream destined for the target device is switched to the second message stream, and the sending of the second message stream to the target device is suspended.
[0098] In one possible implementation, the device also performs the following operation: sending a response message to the controller via a sending interface, the response message indicating that the network device has suspended sending the second packet stream to the target device.
[0099] In one possible implementation, the device further performs the following operations: receiving a second notification message through a receiving interface, the second notification message being used to instruct the sending of the second message stream to the target device; and sending the second message stream to the target device through a sending interface based on the second notification message.
[0100] In one possible implementation, pausing the transmission of the second message stream to the target device includes: delaying the transmission of the second message stream to the target device for a preset duration.
[0101] In a twelfth aspect, this application discloses an apparatus comprising a processor, a receiving interface, a transmitting interface, and a memory, wherein the memory is used to store computer programs and / or data, the receiving interface is used to receive messages, the transmitting interface is used to transmit messages, and the processor is used to execute the computer program stored in the memory, causing the apparatus to perform the following operations:
[0102] A first notification message is received through the receiving interface. The first notification message is used to indicate that for a first target packet flow from a first network device and a second target packet flow from a second network device, only the first target packet flow is selected for forwarding. The first target packet flow includes a first packet flow and a second packet flow. The second target packet flow includes a third packet flow and a fourth packet flow. The payloads of the third packet flow and the fourth packet flow are the same as the payloads of the first packet flow and the second packet flow, respectively.
[0103] Based on the first notification message, for both the first target message flow and the second target message flow, only the first target message flow is selected for forwarding.
[0104] In one possible implementation, the device further performs the following operations: receiving a second notification message via a receiving interface, the second notification message indicating the resumption of processing of the fourth message stream; and resuming processing of the fourth message stream based on the second notification message.
[0105] In a thirteenth aspect, this application discloses a system comprising a controller and a network device, wherein the controller is the device described in any one of the fifth aspect and its possible embodiments, and the network device is the device described in any one of the seventh aspect and its possible embodiments; or, the controller is the device described in any one of the ninth aspect and its possible embodiments, and the network device is the device described in any one of the eleventh aspect and its possible embodiments.
[0106] In a fourteenth aspect, this application discloses a system comprising a controller and a target device, wherein the controller is the device described in any one of the sixth aspect and its possible embodiments, and the network device is the device described in any one of the eighth aspect and its possible embodiments; or, the controller is the device described in any one of the tenth aspect and its possible embodiments, and the network device is the device described in any one of the twelfth aspect and its possible embodiments.
[0107] In a fifteenth aspect, this application discloses a computer-readable storage medium storing a computer program that is executed by a processor to implement the method described in any one of the first aspect and its possible embodiments; or, the computer program is executed by a processor to implement the method described in any one of the second aspect and its possible embodiments; or, the computer program is executed by a processor to implement the method described in any one of the third aspect and its possible embodiments; or, the computer program is executed by a processor to implement the method described in any one of the fourth aspect and its possible embodiments.
[0108] In a sixteenth aspect, this application discloses a computer program product that, when read and executed by a computer, executes the method described in any of the first aspect and its possible embodiments described above; or, executes the method described in any of the second aspect and its possible embodiments described above; or, executes the method described in any of the third aspect and its possible embodiments described above; or, executes the method described in any of the fourth aspect and its possible embodiments described above.
[0109] In a seventeenth aspect, this application discloses a computer program that, when executed on a computer, will cause the computer to implement the method described in any one of the first aspect and its possible embodiments; or, will cause the computer to implement the method described in any one of the second aspect and its possible embodiments; or, will cause the computer to implement the method described in any one of the third aspect and its possible embodiments; or, will cause the computer to implement the method described in any one of the fourth aspect and its possible embodiments.
[0110] The solutions provided in aspects five through seventeen above are used to implement or cooperate with the methods provided in aspects one through four above, and therefore can achieve the same or corresponding beneficial effects as the methods in aspects one through four, which will not be elaborated here.
[0111] In summary, this application can prevent the media data from becoming chaotic when the media data needs to be switched between two message streams transmitted through two different transmission paths in scenarios where the same media data is transmitted through two different transmission paths. This can prevent the composite media data from becoming unstable when it is sent to the terminal for playback. Attached Figure Description
[0112] The accompanying drawings used in the embodiments of this application will be described below.
[0113] Figure 1 The diagram shown is a scenario applicable to an embodiment of this application.
[0114] Figure 2 The diagram shown illustrates the merging of two message streams into a single data stream.
[0115] Figure 3 The diagram shown illustrates a message stream transmission scenario applicable to this application.
[0116] Figure 4 The diagram shown illustrates another method of combining two message streams into a single data stream.
[0117] Figures 5 to 11 The diagram shown is a flowchart of the message stream processing method provided in this application;
[0118] Figures 12 to 15 A schematic diagram of the logic structure of the device provided in this application;
[0119] Figures 16 to 18 A schematic diagram of the hardware structure of the device provided in this application. Detailed Implementation
[0120] The embodiments of this application will now be described with reference to the accompanying drawings.
[0121] Figure 1 The illustration shows a possible application scenario of the message flow switching processing method provided in this application embodiment. This application scenario may include a source server 101, a source server 102, a network device 103, a network device 104, a media gateway 105, a controller 106, and a terminal 107. Specifically, source server 101 and source server 102 establish communication connections with network device 103 and network device 104, respectively; network device 103 and network device 104 establish communication connections with media gateway 105, and media gateway 105 establishes a communication connection with terminal 107; controller 106 establishes communication connections with network device 103, network device 104, and media gateway 105.
[0122] Source servers 101 and 102 can provide media data packet streams, which are then sent to media gateway 105 via network devices 103 and 104. After processing by media gateway 105, the packet streams are sent to terminal 107 for playback to provide services to users. Controller 106 can send notification messages to network devices 103, 104, and media gateway 105 to control their related operations. For example, in this embodiment, the controller can send a notification message to network devices 103 and 104 to switch the transmission of media data, thereby controlling the switching of corresponding media data packet stream transmission between network devices 103 and 104.
[0123] In one possible implementation, the message stream described in this application may be a multicast stream.
[0124] For example, source server 101 and source server 102 can be streaming media servers or television station servers, etc. Network devices 103 and 104 can be routers or switches (e.g., Layer 3 switches), etc. Controller 106 can be a software-defined network (SDN) controller, etc. Terminal 107 can be a smart terminal such as a computer, smartphone, or in-vehicle display device.
[0125] The application scenarios of the message flow switching processing method provided in this application are not limited to the above scenarios. All scenarios in which the message flow switching processing method provided in this application can be applied are within the protection scope of this application.
[0126] Based on the application scenarios described above, the technical problems that need to be solved by the embodiments of this application will be introduced below.
[0127] The Society of Motion Picture and Television Engineers (SMPTE) standard, SMPTE ST 2022, defines seamless protection switching of SMPTE ST 2022 IP datagrams as a standard that allows the same media data in a production and broadcasting network to be encapsulated in two different message streams for transmission, enabling fault protection switching. Specifically:
[0128] 1. The two different message streams have different 5-tuples (mainly different destination IP addresses), but the payloads and Real-Time Transport Protocol (RTP) sequence numbers of these two different message streams remain synchronized. Taking video streams as an example, an uncompressed video frame contains a lot of information; typically, a single frame will have tens of thousands of messages exceeding 1000 bytes. Each second of video consists of 25 to 60 video frames. These messages need to have sequence numbers assigned at the RTP layer; and the sequence numbers of messages carrying the same payload in these two different message streams need to be identical.
[0129] The above 5-tuple consists of the source media access control (MAC) address, source IP address, destination IP address, source user datagram protocol (UDP) port number, and destination UDP port number.
[0130] 2. The transmission paths of these two different message streams are generally required to be non-overlapping, and the network devices they pass through are also non-overlapping. This can prevent the two different message streams from being interrupted simultaneously in the event of a single point of failure, thereby preventing the interruption of business services.
[0131] 3. Both of these different message streams will eventually be transmitted to the same media gateway. Upon receiving these two different message streams, the media gateway extracts the specific payloads from them according to a preset rule, synthesizes them into complete media data, and sends it to the terminal to provide service to the user. This preset rule could be: the media gateway extracts the payload from the message stream containing the expected sequence number message first. Based on this preset rule, even if either of the two different message streams is interrupted due to a fault, stable media data output to the terminal can still be maintained.
[0132] To better understand the process by which the media gateway extracts specific payloads from the two different message streams to synthesize complete media data, please refer to the example provided. Figure 2 .exist Figure 2In this example, assuming the two different message streams mentioned above are message stream a and message stream b, and that each message stream contains 6 messages, with messages having the same sequence number having the same payload. Assuming the media gateway receives message number 1 from message stream a first, it extracts the payload of message number 1 from message stream a. Since messages number 2 and 3 are received first from message stream b, the media gateway extracts the payloads of messages number 2 and 3 from message stream b. Similarly, since messages number 4 and 5 are received first from message stream a and message stream b respectively, the media gateway extracts the payload of message number 4 from message stream a and the payload of message number 5 from message stream b. The payloads extracted by the media gateway are then combined in the order of extraction to form the final media data stream, which is then sent to the terminal.
[0133] When transmitting media data packet streams based on the above standards, if switching of media data is required, such as switching between video data output from multiple cameras or between video data from multiple programs, the switching can be performed on the network devices through which the packet stream passes. Optionally, the switching of the packet stream can be a net switching. For example, see... Figure 3 , Figure 3 The above Figure 1 The diagram shown illustrates the message flow transmission obtained by combining the application scenario with this standard.
[0134] exist Figure 3 In the above scenario, source server 101 sends two message streams, message stream 1 and message stream 3. Message stream 1 and message stream 3 are the message streams described above that carry the same media data and are transmitted from two different transmission paths. Assume that the media data carried by message stream 1 and message stream 3 is media data a. Source server 102 sends two message streams, message stream 2 and message stream 4. Similarly, message stream 2 and message stream 4 are also the message streams described above that carry the same media data and are transmitted from two different transmission paths. Assume that the media data carried by message stream 2 and message stream 4 is media data b.
[0135] Flow 1 and Flow 2 are sent to Media Gateway 105 via Network Device 103, and Flow 3 and Flow 4 are sent to Media Gateway 105 via Network Device 104. When Controller 106 receives a notification message to switch the flow of Media Data a to the flow of Media Data b, Controller 106 can send a switching notification to Network Devices 103 and 104, instructing Network Device 103 to switch Flow 1 to Flow 2, and instructing Network Device 104 to switch Flow 3 to Flow 4. However, during the switching process, because the transmission paths and network devices traversed by the two different flow streams of the same media data do not overlap, there is a delay asynchrony, resulting in asynchronous switching between Network Devices 103 and 104. When the two message streams after the asynchronous handover are transmitted to the media gateway for media data merging, the merged media data will contain both the original media data (a) and the new media data (b). This merged media data will then be unstable when played on terminal 107. For example, if the media data is video, screen tearing or other artifacts may occur during playback; if the media data is audio, noisy or chaotic sounds may occur.
[0136] To better understand the situation where the asynchronous switching of network devices 103 and 104 leads to mixed media data synthesized by the media gateway, please refer to the example above. Figure 4 For the switch from message flow 1 to message flow 2, it is assumed that network device 103 switches after message number 2; for the switch from message flow 3 to message flow 4, due to asynchronous delays, it is assumed that network device 104 switches after message number 4. After the switch is completed, network devices 103 and 104 continue to send message flows to the media gateway, which then synthesizes media data based on the received message flows. See also... Figure 4 The synthesized media data reveals that media data number 3 originates from message stream 2, media data number 4 from message stream 3, and media data number 5 from message stream 4. Message streams 2 and 4 transmit the same type of media data, namely media data b, while message stream 3 transmits media data a. This shows that media data a and media data b are interleaved in the synthesized media data. When this synthesized media data is sent to the terminal for playback, the aforementioned instability occurs, impacting the user experience.
[0137] It should be noted that the above Figure 4 The description is based on messages as the basic unit. In specific embodiments, network devices may also use data frames, such as video frames, as the basic unit for stream switching. This application does not impose any restrictions on this.
[0138] To address the instability issues occurring on the terminal side during media data switching, this application provides a message stream switching processing method, which can be applied to the aforementioned... Figure 1 and Figure 3 In the scenario architecture shown. See also Figure 5 This method may include, but is not limited to, the following steps:
[0139] 501. The controller sends a first notification message to the first network device, which instructs the first network device to switch the first packet stream destined for the target device to the second packet stream and to suspend sending the second packet stream to the target device.
[0140] For example, the controller can be as described above. Figure 1 and Figure 3 The controller 106 shown. The first network device may be... Figure 1 and Figure 3 The network device 103 or network device 104 shown. The target device can be... Figure 1 and Figure 3 The media gateway 105 shown may be any other internetwork connector or protocol converter, which can also implement the functions of the media gateway 105 in this embodiment.
[0141] In a specific embodiment, the controller receives an instruction to switch the first media data destined for the target device to the second media data. This instruction includes the identifier of the packet stream transmitting the first media data and the identifier of the packet stream transmitting the second media data. For example, the identifier of the packet stream can be the five-tuple information corresponding to the packet stream. Assume that the packet stream transmitting the first media data includes the aforementioned first packet stream, and assume that the packet stream transmitting the second media data includes the aforementioned second packet stream. Furthermore, based on the aforementioned SMPTE ST 2022 IP packet seamless protection switching standard, the packet stream transmitting the first media data includes another packet stream besides the first packet stream, which we will call the third packet stream; similarly, based on this standard, the packet stream transmitting the second media data includes another packet stream besides the second packet stream, which we will call the fourth packet stream.
[0142] Based on the identifiers of the first, second, third, and fourth message streams in the received instructions, the controller locates the network devices through which the transmission paths of these message streams pass. Assume that the network device through which the first and second message streams pass is the aforementioned first network device, and the network device through which the third and fourth message streams pass is the second network device.
[0143] For example, if the first network device is Figure 3In the network device 103, the aforementioned second network device is... Figure 3 In network device 104, the first, second, third, and fourth packet flows mentioned above are respectively Figure 3 The diagram shows message flow 1, message flow 2, message flow 3, and message flow 4. If the first network device is... Figure 3 In the network device 104, the aforementioned second network device is... Figure 3 In network device 103, the first, second, third, and fourth packet flows mentioned above are respectively Figure 3 The message streams shown are message stream 3, message stream 4, message stream 1, and message stream 2.
[0144] After the controller identifies the network device through which the first and second packet flows pass as the first network device, it sends a first notification message to the first network device. For example, the first notification message may include identifiers of the first and second packet flows, as well as action indication information including switching the first packet flow to the second packet flow and action indication information to pause sending the second packet flow to the target device.
[0145] In one possible implementation, the first notification message is not limited to a single notification message. For example, the first notification message may include two separate notification messages. One notification message includes action indication information for switching the first packet stream to a second packet stream, instructing the first network device to perform the switching operation. The other notification message includes action indication information for pausing the transmission of the second packet stream to the target device, indicating the pause operation.
[0146] 502. The first network device receives the first notification message and performs the handover and pause operation based on the first notification message.
[0147] In one possible implementation, after receiving the first notification message, the first network device switches the first packet stream destined for the target device to a second packet stream based on the instruction in the message, and simultaneously suspends the transmission of the second packet stream to the target device. Furthermore, although the transmission of the second packet stream to the target device is suspended, the first network device continues to update the packet timestamp and sequence number of the second packet stream to ensure that the sequence number and timestamp are correct during forwarding.
[0148] In a possible implementation, the action indication information for suspending sending the second packet flow to the target device included in the foregoing first notification message may be replaced with action indication information for suspending sending the foregoing first packet flow and the second packet flow to the foregoing target device. Then, after receiving the first notification message, the first network device may first suspend sending the first packet flow to the target device, and then switch the first packet flow to the second packet flow. Since the first network device suspends sending the first packet flow to the target device, after the first packet flow is switched to the second packet flow, sending to the foregoing target device is still suspended. Similarly, although sending the second packet flow to the target device is suspended, the first network device will still continue to update the packet timestamp and sequence number of the second packet flow, so that the sequence number and timestamp are correct when forwarding is resumed.
[0149] In a possible implementation, the suspending sending the second packet flow to the foregoing target device may include: sending the second packet flow to the foregoing target device after a preset duration is delayed. For example, the preset duration may be 20 microseconds, 30 microseconds, 45 microseconds, 58 microseconds, or the like, which may be set according to actual needs, and this application does not impose a limitation thereto.
[0150] For example, the operation that the first network device delays the preset duration to send the second packet flow to the foregoing target device may be implemented in the following manner: configuring a traffic shaping value in a traffic management module of a network processor (NP) of the first network device. For example, assume that the sending rate of the second packet flow is v, and the delayed preset duration is t. Initially, the shaping value is configured to be less than v (the shaping value is, for example, 0.9a), and the processor of the NP dynamically monitors the length of the sending queue. If the current sending queue length / current shaping value = t, the current shaping value is maintained; if the current sending queue length / current shaping value > t, the shaping value is increased by 10%; if the current sending queue length / current shaping value < t, the shaping value is decreased by 10%. Until a dynamic balance is reached, the delayed preset duration t is controlled within the required range.
[0151] 503. The controller determines that the first network device suspends sending the second packet flow to the target device.
[0152] In a possible implementation, that the controller determines that the first network device suspends sending the second packet flow to the target device may be implemented in the following manner: for example, refer to Figure 6 , after the foregoing step 502, the following operations may further be included:
[0153] 503a. The first network device sends a first response message to the controller to indicate that the first network device has completed the corresponding switching and pausing operations.
[0154] 503b. The controller receives the first response message and determines that the first network device has performed the corresponding switching and pausing operations.
[0155] Specifically, after receiving the first notification message from the controller, the first network device completes the corresponding operation in response to the handover and pause action indication information. Then, the first network device sends a first response message to the controller, indicating that the first network device has completed the handover and pause operation. Upon receiving the first response message, the controller determines that the first network device has performed the handover and pause operation.
[0156] Optionally, if the controller sends a notification message to the first network device to instruct the first network device to switch the first packet stream to the second packet stream, the first network device may also send a response message to the controller to instruct the controller that the first network device has completed the switch between the first packet stream and the second packet stream.
[0157] In another possible implementation, the controller may start setting a timer or timer to keep track of time from the moment it sends the first notification message to the first network device. When the timer reaches the set duration, the controller determines that the first network device has performed the operation of pausing the transmission of the first and second packet streams to the target device. Optionally, when the timer reaches the set duration, the controller may also determine that the first network device has completed the switching between the first and second packet streams.
[0158] 504. The controller sends a second notification message to the second network device, which instructs the second network device to switch the third packet stream destined for the target device to a fourth packet stream. The payloads of the third and fourth packet streams are the same as the payloads of the first and second packet streams, respectively.
[0159] As described above, the payloads of the third message stream and the first message stream are both the first media data, and the payloads of the fourth message stream and the second message stream are both the second media data. By transmitting the same payload, i.e., media data, through two message streams with different transmission paths, service interruption due to a single point of failure can be avoided.
[0160] After determining that the first network device has completed the switch between the first and second packet streams and suspends the transmission of the second packet stream to the target device, the controller sends a second notification message to the second network device. For example, the second notification message may include identifiers of the third and fourth packet streams, as well as action indication information including switching the third packet stream destined for the target device to the fourth packet stream, to instruct the second network device to perform the packet stream switch.
[0161] 505. The second network device receives the second notification message and switches the third message stream to the fourth message stream based on the second notification message.
[0162] Specifically, after receiving the second notification message, the second network device switches the third message stream destined for the target device to the fourth message stream based on the instruction information in the second notification message.
[0163] In summary, in the embodiments of this application, for the scenario where two message streams transmit the same media data through two different transmission paths, during the media data switching process, the transmission of message streams from one transmission path can be paused first, so that message streams from the other transmission path can always arrive at the target device (e.g., media gateway) first during the switching process. In this way, when the target device performs media data synthesis, it always extracts the media data from the first arriving message stream for synthesis, avoiding the situation of chaotic synthesized media data during the switching process, thereby avoiding instability when the synthesized media data is sent to the terminal for playback.
[0164] In one possible implementation, see Figure 7 The message stream switching processing method provided in this application may further include the following steps:
[0165] 506. The controller determines that the second network device will switch the third packet stream destined for the target device to the fourth packet stream.
[0166] In one possible implementation, the controller can determine that the second network device is switching the third packet stream destined for the target device to a fourth packet stream in the following manner: For example, see... Figure 8 The following operations may also be included after step 505 above:
[0167] 506a. The second network device sends a second response message to the controller, indicating that the second network device has switched the third packet stream to the fourth packet stream.
[0168] 506b. The controller receives the second response message and determines that the second network device will switch the third packet stream destined for the target device to the fourth packet stream.
[0169] Specifically, after receiving the second notification message from the controller, the second network device completes the corresponding switching operation in response to the action indication information for switching the third packet stream destined for the target device to the fourth packet stream. Then, the second network device sends a second response message to the controller, indicating that it has switched the third packet stream destined for the target device to the fourth packet stream. Upon receiving the second response message, the controller determines that the second network device has performed the corresponding switching operation.
[0170] In another possible implementation, the controller may start setting a timer or timer to keep track of time from the moment it sends the second notification message to the second network device. When the timer reaches the set duration, the controller determines that the second network device has performed the operation of switching the third packet stream to the fourth packet stream sent to the target device.
[0171] 507. The controller sends a third notification message to the first network device, the third notification message being used to instruct the first network device to restore the original processing speed to send the packet stream to the target device, the original processing speed being the processing speed of the first network device before receiving the first notification message.
[0172] In a specific embodiment, after the controller determines that the first network device has completed the operation of switching the first packet stream destined for the target device to the second packet stream, and after determining that the second network device has switched the third packet stream destined for the target device to the fourth packet stream, it can send the aforementioned third notification message to the first network device. This third notification message may include action instruction information instructing the first network device to restore its original processing speed and send the packet stream to the target device. For example, the third notification message may include an identifier of the second packet stream, and action instruction information for sending the second packet stream to the target device.
[0173] 508. The first network device receives the aforementioned third notification message and restores the original message stream processing speed.
[0174] After receiving the aforementioned third notification message, the first network device, based on the action instruction information in the message to restore the original processing speed and send the packet stream to the target device, cancels the aforementioned operation of suspending the sending of the packet stream to the target device. Furthermore, since the first network device has completed the operation of switching the first packet stream destined for the target device to the second packet stream, the first network device begins to send the second packet stream to the target device normally.
[0175] In this application, during the process of pausing the transmission of the packet stream by the first network device, the switching of the packet stream in the corresponding transmission path is completed simultaneously. Then, after the second network device completes the switching of the packet stream, the original packet stream processing speed is restored, and the switched packet stream is sent to the target device normally. In this way, the switched packet streams of the two network devices can be transmitted normally. Since the media data transmitted by the two switched packet streams is the same, the problem of instability when the synthesized media data is sent to the terminal for playback is solved, and the problem of service interruption due to single point of failure can be avoided.
[0176] To address the instability issue occurring on the terminal side during media data switching, this application provides an alternative message stream switching method, which can also be applied to the aforementioned... Figure 1 and Figure 3 In the scenario architecture shown, it should be noted that the "first notification message," "second notification message," and "third notification message" mentioned in this embodiment to distinguish different notification messages are different from those described above. Figures 5 to 8 Notification messages with the same name can be different messages; similarly, the "first response message," "second response message," and "third response message" mentioned in this embodiment to distinguish different response messages are the same as those described above. Figures 5 to 8 Response messages with the same name can be different messages.
[0177] See Figure 9 Another message stream switching processing method provided in this application may include, but is not limited to, the following steps:
[0178] 901. The controller sends a first notification message to the target device, which instructs the target device to forward only the first target packet stream from the first network device and the second target packet stream from the second network device.
[0179] The first destination packet flow from the first network device is a first packet flow and a second packet flow from the first network device, and the second destination packet flow from the second network device is a third packet flow and a fourth packet flow from the second network device.
[0180] In this embodiment, the controller, target device, first network device, second network device, first packet stream, second packet stream, third packet stream, and fourth packet stream are the same as those described above. Figure 1 and Figure 3 The correspondence between the objects shown can be exemplified by the description in step 501 above, and will not be repeated here.
[0181] In a specific embodiment, the controller receives an instruction to switch the first media data sent to the target device to the second media data. The relevant description of this instruction can also be found in the corresponding description in step 501 above, and will not be repeated here.
[0182] The controller locates the target device (e.g., the aforementioned media gateway) to which the first, second, third, and fourth message streams arrive, based on the identifiers of these streams in the received indication. Then, the controller sends the aforementioned first notification message to the target device. For example, the first notification message includes the identifiers of the first, second, third, and fourth message streams, as well as corresponding action indication information. This action indication information instructs the target device to forward only the first target message stream among the received first and second target message streams.
[0183] 902. The target device receives the first notification message and performs the corresponding operation according to the instructions in the first notification message.
[0184] Specifically, based on the instruction of the first notification message, the target device selects to extract only the media data from the first and second message streams received from the first network device, as well as the third and fourth message streams received from the second network device, for use in synthesizing media data to be sent to the terminal.
[0185] 903. The controller determines that the target device performs the operation as instructed by the first notification message.
[0186] In one possible implementation, the controller determines that the target device performs an operation as instructed by the first notification message, which can be achieved in the following manner: For example, see... Figure 10 The following operations may also be included after step 902 above:
[0187] 903a. The target device sends a first response message to the controller to indicate that the target device has performed the corresponding operation according to the instructions of the first notification message.
[0188] 903b. The controller receives the first response message and determines that the target device performs the corresponding operation according to the instructions of the first notification message.
[0189] Specifically, after receiving the first notification message from the controller, the target device executes the corresponding operation in response to the instruction in the first notification message. Then, the target device sends a first response message to the controller, indicating that it has executed the operation instructed by the first notification message. Upon receiving the first response message, the controller can determine that the target device has executed the operation as instructed by the first notification message.
[0190] In another possible implementation, the controller may start setting a timer or timer to keep track of time from the moment the first notification message is sent to the target device. When the timer reaches the set duration, the controller determines that the target device has performed the operation as instructed by the first notification message.
[0191] 904. The controller sends a second notification message to the first network device and a third notification message to the second network device. The second notification message is used to instruct the first network device to switch the first packet stream to the second packet stream, and the third notification message is used to instruct the second network device to switch the third packet stream to the fourth packet stream.
[0192] After the controller determines that the target device has performed the operation as instructed by the first notification message, the controller may send a second notification message to the first network device and a third notification message to the second network device. For example, the second notification message may include identifiers of the first and second packet streams, and action indication information instructing the first network device to switch the first packet stream destined for the target device to the second packet stream. Similarly, for example, the third notification message may include identifiers of the third and fourth packet streams, and action indication information instructing the second network device to switch the third packet stream destined for the target device to the fourth packet stream.
[0193] 905. The first network device receives the second notification message and switches the first packet stream to the second packet stream based on the second notification message; the second network device receives the third notification message and switches the third packet stream to the fourth packet stream based on the third notification message.
[0194] Specifically, after receiving the second notification message, the first network device switches the first packet stream destined for the target device to the second packet stream based on the action indication information in the message. Similarly, after receiving the third notification message, the second network device switches the third packet stream destined for the target device to the fourth packet stream based on the action indication information in the message.
[0195] In this embodiment of the application, for the scenario where the same media data is transmitted through two message streams via two different transmission paths, during the media data switching process, the target device (e.g., media gateway) can be controlled to select only the message sent from one of the transmission paths for media data synthesis. In this way, when the target device synthesizes media data, it does not need to alternately extract message data from the message streams sent from the two transmission paths, thus avoiding the situation of chaotic synthesized media data during the switching process, thereby avoiding the instability of the synthesized media data when it is sent to the terminal for playback.
[0196] In one possible implementation, see Figure 11 The above Figure 9 or Figure 10 The provided message stream switching processing method may also include the following steps:
[0197] 906. The controller determines that the first network device and the second network device have completed the switching of the packet flow.
[0198] For the controller to determine that the first network device has completed the packet flow switch:
[0199] In one possible implementation, after receiving the second notification message from the controller, the first network device performs a corresponding operation in response to the instruction in the second notification message. Then, the first network device sends a second response message to the controller, indicating that it has switched the first packet stream destined for the target device to a second packet stream. Upon receiving the second response message, the controller can determine that the first network device has performed the operation as instructed in the second notification message.
[0200] In another possible implementation, the controller may start setting a timer or timer to keep track of time from the moment it sends the second notification message to the first network device. When the timer reaches the set duration, the controller determines that the first network device has performed the operation as instructed by the second notification message.
[0201] For the controller to determine that the second network device has completed the packet flow switch:
[0202] In one possible implementation, after receiving the third notification message from the controller, the second network device performs a corresponding operation in response to the instruction in the third notification message. Then, the second network device sends a third response message to the controller, indicating that it has switched the third packet stream destined for the target device to a fourth packet stream. Upon receiving the third response message, the controller can determine that the second network device has performed the operation as instructed in the third notification message.
[0203] In another possible implementation, the controller may start setting a timer or timer to keep track of time from the moment it sends the third notification message to the second network device. When the timer reaches the set duration, the controller determines that the second network device has performed the operation as instructed by the third notification message.
[0204] 907. The controller sends a fourth notification message to the target device to instruct the resumption of processing of the fourth message stream.
[0205] Specifically, after the controller determines that the first network device and the second network device have completed the switch of packet streams, it can send the aforementioned fourth notification message to the target device. For example, the fourth notification message may include an identifier of the fourth packet stream, and action indication information including resuming processing of the fourth packet stream. Here, the identifier of the fourth packet stream is included because the second network device has switched the third packet stream destined for the target device to the fourth packet stream; therefore, the second target packet stream from the second network device at this time is the fourth packet stream.
[0206] 908. The target device receives the fourth notification message and resumes processing of the second target message stream based on the fourth notification message.
[0207] After receiving the aforementioned fourth notification message, the target device resumes normal message flow processing operations based on the action instruction information in the message. That is, for the second message flow from the first network device and the fourth message flow from the second network device, the device still extracts the media data from the second and fourth message flows according to the preset rules for extracting the payload from the message flow that first received the expected sequence number message, and uses this data for synthesis to send to the terminal to provide services to the user.
[0208] In this application, after the first network device and the second network device complete the switching of the packet stream, the target device (e.g., a media gateway) resumes the original packet stream processing method, that is, it normally receives and processes the second packet stream from the first network device and the fourth packet stream from the second network device according to the above standard. Since the media data transmitted by the second packet stream and the fourth packet stream is the same, the problem of instability when the above-mentioned synthesized media data is sent to the terminal for playback is solved, and the problem of service interruption due to single point of failure can also be avoided.
[0209] It should be noted that the above Figures 5 to 11 The content included in each notification message is not limited to the content described above. Any notification message that can achieve the corresponding function is within the protection scope of this application.
[0210] The foregoing mainly describes the message forwarding backup path determination method provided in the embodiments of this application. It is understood that each device, in order to achieve the corresponding functions, includes the corresponding hardware structure and / or software module for executing each function. Those skilled in the art should readily recognize that, in conjunction with the units and algorithm steps of the various examples described in the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0211] This application embodiment can divide the device into functional modules according to the above method example. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one module. The integrated module can be implemented in hardware or as a software functional module. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0212] When dividing each function into modules according to its corresponding function. Figure 12 A schematic diagram of a possible logical structure of the device is shown, which can be the aforementioned Figures 5 to 8 The controller described herein may be a chip within the controller, or a processing system within the controller, etc. The device 1200 includes a transmitting unit 1201. Wherein:
[0213] The sending unit 1201 is configured to send a first notification message to a first network device, the first notification message instructing the first network device to switch the first packet stream destined for the target device to a second packet stream, and to suspend sending the second packet stream to the target device; the sending unit 1201 can perform... Figure 5 The operation described in step 501 shown.
[0214] The sending unit 1201 is further configured to send a second notification message to the second network device when the first network device suspends sending the second packet stream to the target device. The second notification message instructs the second network device to switch the third packet stream destined for the target device to a fourth packet stream, wherein the payloads of the third and fourth packet streams are the same as the payloads of the first and second packet streams, respectively. The sending unit 1201 can also perform... Figure 5 The operation described in step 504 shown.
[0215] In one possible implementation, the sending unit 1201 is specifically configured to: upon receiving a first response message from the first network device, send the second notification message to the second network device, wherein the first response message indicates that the first network device has suspended sending the second packet stream to the target device. The sending unit 1201 may also perform... Figure 6 The operations described in steps 503a, 503b and 504 are shown.
[0216] In one possible implementation, the sending unit 1201 is further configured to: send a third notification message to the first network device when the second network device switches the third packet stream destined for the target device to a fourth packet stream, the third notification message being used to instruct the first network device to send the second packet stream to the target device. The sending unit 1201 may also perform... Figure 7 The operation described in step 507 is shown.
[0217] In one possible implementation, pausing the transmission of the second message stream to the target device includes: delaying the transmission of the first message stream and the second message stream to the target device for a preset duration.
[0218] Optionally, the above-described device 1200 may further include a processing unit 1202, a receiving unit 1203, and a storage unit 1204. The storage unit 1204 is used to store data or computer instructions. The receiving unit 1203 is used to receive messages or packets. The processing unit 1202 can perform operations other than receiving and sending data or packets. As an example, the receiving unit 1203 may be a transceiver or interface, the storage unit 1204 may be a memory, and the processing unit 1202 may be a processor.
[0219] Figure 12 The specific operation and beneficial effects of each unit in the device 1200 shown can be found in the above description. Figures 5 to 8 The corresponding descriptions in the method embodiments shown are not repeated here.
[0220] When dividing each function into modules according to its corresponding function. Figure 13 A schematic diagram of a possible logical structure of the device is shown, which can be the aforementioned Figures 9 to 11 The controller described herein may be a chip within the controller, or a processing system within the controller, etc. The device 1300 includes a transmitting unit 1301. Wherein:
[0221] Sending unit 1301 is configured to send a first notification message to a target device. The first notification message instructs the target device to forward only the first target packet stream from a first network device and a second target packet stream from a second network device. The first target packet stream includes a first packet stream and a second packet stream, and the second target packet stream includes a third packet stream and a fourth packet stream. The payloads of the third packet stream and the fourth packet stream are the same as the payloads of the first packet stream and the second packet stream, respectively. Sending unit 1301 can perform... Figure 9 The operation described in step 901 shown.
[0222] The sending unit 1301 is further configured to send a second notification message to the first network device and a third notification message to the second network device when the target device operates according to the instruction of the first notification message. The second notification message instructs the first network device to switch the first packet stream to the second packet stream, and the third notification message instructs the second network device to switch the third packet stream to the fourth packet stream. The sending unit 1301 can also perform... Figure 9 The operation described in step 904 shown.
[0223] In one possible implementation, the sending unit 1301 is specifically configured to: upon receiving a first response message from the target device, send the second notification message to the first network device and the third notification message to the second network device, wherein the first response message is used to indicate that the target device has operated according to the instructions of the first notification message. For details, please refer to the above. Figure 10 The corresponding descriptions of steps 903a, 903b and 904 are provided.
[0224] In one possible implementation, the sending unit 1301 is further configured to: send a fourth notification message to the target device when the first network device and the second network device operate according to the instructions of the second notification message and the third notification message, respectively. The fourth notification message instructs the target device to resume processing of the fourth packet stream. The sending unit 1301 may also perform... Figure 11 The operation described in step 907 is shown.
[0225] In one possible implementation, the sending unit 1301 is further configured to: upon receiving a second response message from the first network device and a third response message from the second network device, send the fourth notification message to the target device, wherein the second response message is used to indicate that the first network device has switched the first packet stream to the second packet stream, and the third response message is used to indicate that the second network device has switched the third packet stream to the fourth packet stream.
[0226] Optionally, the above-described device 1300 may further include a processing unit 1302, a receiving unit 1303, and a storage unit 1304. The storage unit 1304 is used to store data or computer instructions. The receiving unit 1303 is used to receive messages or packets. The processing unit 1302 can perform operations other than receiving and sending data or packets. As an example, the receiving unit 1303 may be a transceiver or interface, the storage unit 1304 may be a memory, and the processing unit 1302 may be a processor.
[0227] Figure 13 The specific operation and beneficial effects of each unit in the device 1300 shown can be found in the above description. Figures 9 to 11 The corresponding descriptions in the method embodiments shown are not repeated here.
[0228] When dividing each function into modules according to its corresponding function. Figure 14 A schematic diagram of a possible logical structure of the device is shown, which can be the aforementioned Figures 5 to 8 The first network device described herein may be a chip within the first network device, or a processing system within the first network device, etc. The device 1400 includes a receiving unit 1401 and a processing unit 1402. Wherein:
[0229] Receiving unit 1401 is configured to receive a first notification message, which instructs the switching of a first message stream destined for a target device to a second message stream, and to suspend the transmission of the second message stream to the target device; receiving unit 1401 can perform the following operations: Figure 5 The receiving operation described in step 502 shown.
[0230] Processing unit 1402 is configured to switch the first message stream destined for the target device to a second message stream based on the first notification message, and to suspend sending the second message stream to the target device. Processing unit 1402 can perform... Figure 5 The switching and pausing operations described in step 502 are shown.
[0231] In one possible implementation, the device further includes a sending unit 1403, configured to send a response message to the controller, the response message indicating that the network device has suspended sending the second packet stream to the target device. The sending unit 1403 can perform... Figure 6 The operation described in step 503a is shown.
[0232] In one possible implementation, the receiving unit 1401 is further configured to receive a second notification message, the second notification message being used to instruct the sending of the second message stream to the target device; the receiving unit 1401 may also perform... Figure 8 The receiving operation described in step 508 shown.
[0233] The device also includes a sending unit 1403, configured to send the second message stream to the target device based on the second notification message. The sending unit 1403 may also perform... Figure 8 The operation described in step 508, after restoring the original message stream processing speed, is to send the second message stream to the target device.
[0234] In one possible implementation, pausing the transmission of the second message stream to the target device includes: delaying the transmission of the second message stream to the target device for a preset duration.
[0235] Optionally, the above-described device 1400 may further include a storage unit 1404. The storage unit 1404 is used to store data or computer instructions. As an example, the receiving unit 1401 and the transmitting unit 1403 may be transceivers or interfaces, the storage unit 1404 may be a memory, and the processing unit 1402 may be a processor.
[0236] Figure 14 The specific operation and beneficial effects of each unit in the device 1400 shown can be found in the above description. Figures 5 to 8 The corresponding descriptions in the method embodiments shown are not repeated here.
[0237] When dividing each function into modules according to its corresponding function. Figure 15 A schematic diagram of a possible logical structure of the device is shown, which can be the aforementioned Figures 9 to 11 The target device described herein may be a chip within the target device, or a processing system within the target device, etc. The device 1500 includes a receiving unit 1501 and a processing unit 1502. Wherein:
[0238] Receiving unit 1501 is configured to receive a first notification message, which instructs that for a first target packet flow from a first network device and a second target packet flow from a second network device, only the first target packet flow should be selected for forwarding. The first target packet flow includes a first packet flow and a second packet flow, and the second target packet flow includes a third packet flow and a fourth packet flow. The payloads of the third packet flow and the fourth packet flow are the same as the payloads of the first packet flow and the second packet flow, respectively. The receiving unit 1501 can perform... Figure 9 The receiving operation described in step 902 shown.
[0239] Processing unit 1502 is configured to, based on the first notification message, select only the first target packet stream for forwarding, given the first target packet stream and the second target packet stream. Processing unit 1502 can perform... Figure 9 The operation performed according to the first notification message as described in step 902 shown.
[0240] In one possible implementation, the receiving unit 1501 is further configured to: receive a second notification message, the second notification message indicating the resumption of processing of the fourth message stream; the device further includes a processing unit configured to resume processing of the fourth message stream based on the second notification message. The receiving unit 1501 may also perform... Figure 11 The receiving operation described in step 908 shown.
[0241] Optionally, the above-described device 1500 may further include a transmitting unit 1503 and a storage unit 1504. The storage unit 1504 is used to store data or computer instructions. The transmitting unit 1503 is used to transmit messages, etc. As an example, the receiving unit 1501 and the transmitting unit 1503 may be transceivers or interfaces, the storage unit 1504 may be a memory, and the processing unit 1502 may be a processor.
[0242] Figure 15 The specific operation and beneficial effects of each unit in the device 1500 shown can be found in the above description. Figures 9 to 11 The corresponding descriptions in the method embodiments shown are not repeated here.
[0243] Figure 16 The diagram shows a possible hardware structure of the device provided in this application, which can be the controller described in the above method embodiments. The device 1600 includes a processor 1601, a memory 1602, a receiving interface 1603, and a transmitting interface 1605. The processor 1601, receiving interface 1603, transmitting interface 1605, and memory 1602 can be interconnected or interconnected via a bus 1604.
[0244] For example, memory 1602 is used to store computer programs and data of device 1600. Memory 1602 may include, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or compact disc read-only memory (CD-ROM). Receive interface 1603 is used to receive messages and other information, and transmit interface 1605 is used to transmit messages and other information.
[0245] For example, processor 1601 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The processor may also be a combination that implements computational functions, such as a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, etc. Processor 1601 can be used to read the program stored in the aforementioned memory 1602, causing device 1600 to execute the aforementioned... Figures 5 to 11 And in possible implementations, the operations performed by the controller in any of the message stream switching processing methods provided in this application.
[0246] Figure 17 The diagram shows a possible hardware structure of the device provided in this application, which can be the controller described in the above method embodiments. The device 1700 includes a processor 1701, a memory 1702, a receiving interface 1703, and a transmitting interface 1705. The processor 1701, receiving interface 1703, transmitting interface 1705, and memory 1702 can be interconnected or interconnected via a bus 1704.
[0247] For example, memory 1702 is used to store computer programs and data of device 1700. Memory 1702 may include, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or compact disc read-only memory (CD-ROM). Receive interface 1703 is used to receive messages and other information, and transmit interface 1705 is used to transmit messages and other information.
[0248] For example, processor 1701 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The processor may also be a combination that implements computational functions, such as a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, etc. Processor 1701 can be used to read the program stored in the aforementioned memory 1702, causing device 1700 to execute the aforementioned... Figures 5 to 11 And in possible implementations, the operations performed by the first network device according to any of the message flow switching processing methods provided in this application.
[0249] Figure 18The diagram shows a possible hardware structure of the device provided in this application, which can be the controller described in the above method embodiments. The device 1800 includes a processor 1801, a memory 1802, a receiving interface 1803, and a transmitting interface 1805. The processor 1801, the receiving interface 1803, the transmitting interface 1805, and the memory 1802 can be interconnected or interconnected via a bus 1804.
[0250] For example, memory 1802 is used to store computer programs and data of device 1800. Memory 1802 may include, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or compact disc read-only memory (CD-ROM). Receive interface 1803 is used to receive messages and other information, and transmit interface 1805 is used to transmit messages and other information.
[0251] For example, processor 1801 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The processor may also be a combination that implements computational functions, such as a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, etc. Processor 1801 can be used to read the program stored in the aforementioned memory 1802, causing device 1800 to execute the aforementioned... Figures 5 to 11 And in possible implementations, the operations performed by the target device according to any of the message stream switching processing methods provided in this application.
[0252] This application also provides a system that may include the controller, first network device, second network device and target device described in the above embodiments.
[0253] This application also provides a computer-readable storage medium storing a computer program that is executed by a processor to implement the operations performed by the controller in any of the above embodiments and their possible embodiments.
[0254] This application also provides a computer-readable storage medium storing a computer program that is executed by a processor to perform the operations performed by the first network device in any of the above embodiments and their possible embodiments.
[0255] This application also provides a computer-readable storage medium storing a computer program that is executed by a processor to perform the operations performed by the target device in any of the above embodiments and their possible embodiments.
[0256] This application also provides a computer program product, which, when read and executed by a computer, executes the operations performed by the controller in any of the above embodiments and their possible embodiments.
[0257] This application also provides a computer program product, which, when read and executed by a computer, executes the operations performed by the first network device in any of the above embodiments and their possible embodiments. This application also provides a computer program product, which, when read and executed by a computer, executes the operations performed by the target device in any of the above embodiments and their possible embodiments.
[0258] This application also provides a computer program that, when executed on a computer, will cause the computer to perform the operations performed by the controller in any of the above embodiments and their possible embodiments.
[0259] This application also provides a computer program that, when executed on a computer, will enable the computer to perform the operations performed by the first network device in any of the above embodiments and their possible embodiments.
[0260] This application also provides a computer program that, when executed on a computer, will enable the computer to perform the operations performed by the target device in any of the above embodiments and their possible embodiments.
[0261] In summary, this application can prevent the media data from becoming chaotic when the media data needs to be switched between two message streams transmitted through two different transmission paths in scenarios where the same media data is transmitted through two different transmission paths. This can prevent the composite media data from becoming unstable when it is sent to the terminal for playback.
[0262] In this application, the terms "first," "second," etc., are used to distinguish identical or similar items that have substantially the same function and purpose. It should be understood that there is no logical or temporal dependency between "first," "second," and "nth," nor does it limit the quantity or execution order. It should also be understood that although the following description uses the terms "first," "second," etc., to describe various elements, these elements should not be limited by the terms. These terms are merely used to distinguish one element from another. For example, without departing from the scope of the various examples described, a first notification message can be referred to as a second notification message, and similarly, a second notification message can be referred to as a first notification message. Both first and second notification messages can be notification messages, and in some cases, they can be separate and distinct notification messages.
[0263] It should also be understood that, in the various embodiments of this application, the sequence number of each process does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0264] It should also be understood that the term “comprising” (also referred to as “includes”, “including”, “comprises” and / or “comprising”) as used in this specification specifies the presence of the stated features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.
[0265] It should also be understood that the phrases "an embodiment," "an embodiment," and "a possible implementation" used throughout the specification mean that a specific feature, structure, or characteristic related to an embodiment or implementation is included in at least one embodiment of this application. Therefore, the phrases "in an embodiment," "an embodiment," or "a possible implementation" appearing throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments.
[0266] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. A message stream switching processing method, characterized in that, The method includes: The controller sends a first notification message to the first network device, which instructs the first network device to switch the first packet stream destined for the target device to the second packet stream and to suspend sending the second packet stream to the target device. When the first network device suspends sending the second packet stream to the target device, the controller sends a second notification message to the second network device. The second notification message is used to instruct the second network device to switch the third packet stream to the target device to a fourth packet stream. The payloads of the third packet stream and the fourth packet stream are the same as the payloads of the first packet stream and the second packet stream, respectively.
2. The method according to claim 1, characterized in that, When the first network device suspends sending the second packet stream to the target device, the controller sends a second notification message to the second network device, including: Upon receiving a first response message from the first network device, the controller sends a second notification message to the second network device. The first response message indicates that the first network device has suspended sending the second packet stream to the target device.
3. The method according to claim 1 or 2, characterized in that, The method further includes: When the second network device switches the third packet stream destined for the target device to the fourth packet stream, the controller sends a third notification message to the first network device. The third notification message is used to instruct the first network device to send the second packet stream to the target device.
4. The method according to any one of claims 1 to 2, characterized in that, The suspension of sending the second message stream to the target device includes: The first message stream and the second message stream are sent to the target device after a preset delay.
5. A message stream switching processing method, characterized in that, The method includes: The controller sends a first notification message to the target device. The first notification message is used to instruct the target device to forward only the first target packet flow from the first network device and the second target packet flow from the second network device. The first target packet flow includes a first packet flow and a second packet flow. The second target packet flow includes a third packet flow and a fourth packet flow. The payloads of the third packet flow and the fourth packet flow are the same as the payloads of the first packet flow and the second packet flow, respectively. When the target device operates according to the instructions of the first notification message, the controller sends a second notification message to the first network device and a third notification message to the second network device. The second notification message is used to instruct the first network device to switch the first packet stream to the second packet stream, and the third notification message is used to instruct the second network device to switch the third packet stream to the fourth packet stream.
6. The method according to claim 5, characterized in that, When the target device operates according to the instructions of the first notification message, the controller sends a second notification message to the first network device and a third notification message to the second network device, including: Upon receiving a first response message from the target device, the controller sends a second notification message to the first network device and a third notification message to the second network device. The first response message is used to indicate that the target device has operated in accordance with the instructions of the first notification message.
7. The method according to claim 5 or 6, characterized in that, The method further includes: When the first network device and the second network device operate according to the instructions of the second notification message and the third notification message respectively, the controller sends a fourth notification message to the target device, which is used to instruct the target device to resume processing of the fourth packet stream.
8. The method according to claim 7, characterized in that, When the first network device and the second network device operate according to the instructions of the second notification message and the third notification message respectively, the controller sends a fourth notification message to the target device, including: Upon receiving a second response message from the first network device and a third response message from the second network device, the controller sends a fourth notification message to the target device. The second response message indicates that the first network device has switched the first packet stream to the second packet stream, and the third response message indicates that the second network device has switched the third packet stream to the fourth packet stream.
9. A message stream switching processing method, characterized in that, The method includes: The network device receives a first notification message, which is used to instruct the first packet stream destined for the target device to be switched to a second packet stream, and to suspend sending the second packet stream to the target device. Based on the first notification message, the network device switches the first packet stream destined for the target device to the second packet stream and suspends sending the second packet stream to the target device.
10. The method according to claim 9, characterized in that, The method further includes: The network device sends a response message to the controller, the response message indicating that the network device has suspended sending the second packet stream to the target device.
11. The method according to claim 9 or 10, characterized in that, The method further includes: The network device receives a second notification message, which instructs the target device to send the second message stream. The network device sends the second message stream to the target device based on the second notification message.
12. The method according to any one of claims 9 to 10, characterized in that, The suspension of sending the second message stream to the target device includes: The second message stream is sent to the target device after a preset delay.
13. A message stream switching processing method, characterized in that, The method includes: The target device receives a first notification message, which indicates that for a first target packet flow from a first network device and a second target packet flow from a second network device, only the first target packet flow should be forwarded. The first target packet flow includes a first packet flow and a second packet flow, and the second target packet flow includes a third packet flow and a fourth packet flow. The payloads of the third packet flow and the fourth packet flow are the same as the payloads of the first packet flow and the second packet flow, respectively. Based on the first notification message, the target device selects only the first target packet stream for forwarding, given both the first target packet stream and the second target packet stream.
14. The method according to claim 13, characterized in that, The method further includes: The target device receives a second notification message, which is used to instruct the resumption of processing of the fourth message stream; The target device resumes processing of the fourth message stream based on the second notification message.
15. A device, characterized in that, The device includes: The sending unit is configured to send a first notification message to a first network device, wherein the first notification message is configured to instruct the first network device to switch the first packet stream destined for the target device to a second packet stream, and to suspend sending the second packet stream to the target device. The sending unit is further configured to send a second notification message to the second network device when the first network device suspends sending the second packet stream to the target device. The second notification message is configured to instruct the second network device to switch the third packet stream to the target device to a fourth packet stream. The payloads of the third packet stream and the fourth packet stream are the same as the payloads of the first packet stream and the second packet stream, respectively.
16. The device according to claim 15, characterized in that, The sending unit is specifically used for: Upon receiving a first response message from the first network device, a second notification message is sent to the second network device, wherein the first response message indicates that the first network device has suspended sending the second packet stream to the target device.
17. The device according to claim 15 or 16, characterized in that, The transmitting unit is further configured to: When the second network device switches the third packet stream destined for the target device to the fourth packet stream, a third notification message is sent to the first network device, the third notification message being used to instruct the first network device to send the second packet stream to the target device.
18. The device according to any one of claims 15 to 16, characterized in that, The suspension of sending the second message stream to the target device includes: The first message stream and the second message stream are sent to the target device after a preset delay.
19. A device, characterized in that, The device includes: The sending unit is configured to send a first notification message to the target device. The first notification message is configured to instruct the target device to forward only the first target packet stream from the first network device and the second target packet stream from the second network device. The first target packet stream includes a first packet stream and a second packet stream, and the second target packet stream includes a third packet stream and a fourth packet stream. The payloads of the third packet stream and the fourth packet stream are the same as the payloads of the first packet stream and the second packet stream, respectively. The sending unit is further configured to send a second notification message to the first network device and a third notification message to the second network device when the target device operates according to the instructions of the first notification message. The second notification message is used to instruct the first network device to switch the first packet stream to the second packet stream, and the third notification message is used to instruct the second network device to switch the third packet stream to the fourth packet stream.
20. The device according to claim 19, characterized in that, The sending unit is specifically used for: Upon receiving a first response message from the target device, the system sends a second notification message to the first network device and a third notification message to the second network device. The first response message indicates that the target device has operated in accordance with the instructions of the first notification message.
21. The device according to claim 19 or 20, characterized in that, The transmitting unit is further configured to: When the first network device and the second network device operate according to the instructions of the second notification message and the third notification message respectively, a fourth notification message is sent to the target device, which is used to instruct the target device to resume processing of the fourth packet stream.
22. The device according to claim 21, characterized in that, The transmitting unit is further configured to: Upon receiving a second response message from the first network device and a third response message from the second network device, a fourth notification message is sent to the target device. The second response message indicates that the first network device has switched the first packet stream to the second packet stream, and the third response message indicates that the second network device has switched the third packet stream to the fourth packet stream.
23. A device, characterized in that, The device includes: The receiving unit is configured to receive a first notification message, which instructs the first message stream destined for the target device to be switched to a second message stream, and to suspend the transmission of the second message stream to the target device. The processing unit is configured to switch the first message stream destined for the target device to the second message stream based on the first notification message, and to suspend sending the second message stream to the target device.
24. The device according to claim 23, characterized in that, The device also includes: A sending unit is configured to send a response message to the controller, the response message indicating that the network device has suspended sending the second packet stream to the target device.
25. The device according to claim 23 or 24, characterized in that, The receiving unit is further configured to receive a second notification message, the second notification message being configured to instruct the sending of the second message stream to the target device; The device further includes a sending unit for sending the second message stream to the target device based on the second notification message.
26. The device according to any one of claims 23 to 24, characterized in that, The suspension of sending the second message stream to the target device includes: The second message stream is sent to the target device after a preset delay.
27. A device, characterized in that, The device includes: The receiving unit is configured to receive a first notification message, which instructs that for a first target packet flow from a first network device and a second target packet flow from a second network device, only the first target packet flow should be forwarded. The first target packet flow includes a first packet flow and a second packet flow, and the second target packet flow includes a third packet flow and a fourth packet flow. The payloads of the third packet flow and the fourth packet flow are the same as the payloads of the first packet flow and the second packet flow, respectively. The processing unit is configured to, based on the first notification message, select only the first target packet stream for forwarding, given the first target packet stream and the second target packet stream.
28. The device according to claim 27, characterized in that, The receiving unit is also used for: Receive a second notification message, which is used to instruct the resumption of processing of the fourth message stream; The device further includes a processing unit for resuming processing of the fourth message stream based on the second notification message.
29. A device, characterized in that, The device includes a processor, a receiving interface, a transmitting interface, and a memory, wherein the memory is used to store computer programs and / or data, the receiving interface is used to receive messages, the transmitting interface is used to transmit messages, and the processor is used to execute the computer program stored in the memory, causing the device to perform the method as described in any one of claims 1 to 4.
30. A device, characterized in that, The device includes a processor, a receiving interface, a transmitting interface, and a memory, wherein the memory is used to store computer programs and / or data, the receiving interface is used to receive messages, the transmitting interface is used to transmit messages, and the processor is used to execute the computer program stored in the memory, causing the device to perform the method as described in any one of claims 5 to 8.
31. A device, characterized in that, The device includes a processor, a receiving interface, a transmitting interface, and a memory, wherein the memory is used to store computer programs and / or data, the receiving interface is used to receive messages, the transmitting interface is used to transmit messages, and the processor is used to execute the computer program stored in the memory, causing the device to perform the method as described in any one of claims 9 to 12.
32. A device, characterized in that, The device includes a processor, a receiving interface, a transmitting interface, and a memory, wherein the memory is used to store computer programs and / or data, the receiving interface is used to receive messages, the transmitting interface is used to transmit messages, and the processor is used to execute the computer program stored in the memory, causing the device to perform the method as described in claim 13 or 14.
33. A system, characterized in that, The system includes a controller and a network device, wherein the controller is the device according to any one of claims 15 to 18, and the network device is the device according to any one of claims 23 to 26; or, the controller is the device according to claim 29, and the network device is the device according to claim 31.
34. A system, characterized in that, The system includes a controller and a target device, wherein the controller is the device according to any one of claims 19 to 22, and the target device is the device according to claim 27 or 28; or, the controller is the device according to claim 30, and the network device is the device according to claim 32.
35. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that is executed by a processor to implement the method of any one of claims 1 to 4; or, the computer program is executed by a processor to implement the method of any one of claims 5 to 8; or, the computer program is executed by a processor to implement the method of any one of claims 9 to 12; or, the computer program is executed by a processor to implement the method of any one of claims 13 to 14.
36. A computer program product, characterized in that, When the computer program product is read and executed by a computer, the method as described in any one of claims 1 to 4 will be executed; or, the method as described in any one of claims 5 to 8 will be executed; or, the method as described in any one of claims 9 to 12 will be executed; or, the method as described in any one of claims 13 to 14 will be executed.
37. A computer program, characterized in that, When the computer program is executed on a computer, it will cause the computer to implement the method of any one of claims 1 to 4; or, it will cause the computer to implement the method of any one of claims 5 to 8; or, it will cause the computer to implement the method of any one of claims 9 to 12; or, it will cause the computer to implement the method of any one of claims 13 to 14.
Citation Information
Patent Citations
Multi-path flow sending method and device
CN107968748A
Video stream viewing angle switching method and device, apparatus, and computer storage medium
CN109218739A
