Multicast traffic transmission method, related device and computer-readable storage medium
11576011 ยท 2023-02-07
Assignee
Inventors
Cpc classification
H04L43/10
ELECTRICITY
H04L41/5009
ELECTRICITY
H04L12/1886
ELECTRICITY
H04W4/06
ELECTRICITY
International classification
H04W4/06
ELECTRICITY
H04L41/5009
ELECTRICITY
Abstract
A multicast traffic transmission method includes: detecting (S201) whether a transmission link between a designed forwarder (DF) and a traffic reception device is abnormal; and when the transmission link between the DF and the traffic reception device is abnormal, sending (S202) a first request to a backup designed forwarder (BDF). A packet of the first request includes a protection mark and address information about the traffic reception device, and the first request is used for requesting the BDF to forward traffic to the traffic reception device.
Claims
1. A multicast traffic transmission method, comprising: detecting, by a designed forwarder (DF), whether a transmission link between the DF and each of a plurality of traffic reception devices is abnormal; and in response to determining that a transmission link between the DF and a first traffic reception device is abnormal, the DF stopping forwarding traffic to the first traffic reception device and sending, by the DF, a first request to a backup designed forwarder (BDF) which is not over a same shared network as the DF, wherein a packet of the first request comprises a protection mark and address information about the first traffic reception device, and the first request is used for requesting the BDF to forward traffic to the first traffic reception device, wherein the first traffic reception device is one of the plurality of traffic reception devices; and in response to determining that the transmission link between the DF and the first traffic reception device returns to normal, forwarding, by the DF, traffic to the first reception device so that the first traffic reception device simultaneously receives the traffic forwarded by the BDF and the traffic forwarded by the DF; wherein a header of the traffic forwarded by the DF comprises address information of the DF and a header of the traffic forwarded by the BDF comprises address information of the BDF.
2. The method of claim 1, wherein detecting, by the DF, whether the transmission link between the DF and each of the plurality of traffic reception devices is abnormal comprises: detecting, by the DF, whether the transmission link between the DF and each of the plurality of traffic reception devices is abnormal through bidirectional forwarding detection (BFD).
3. The method of claim 2, wherein before sending the first request to the BDF, the method further comprises: detecting, by the DF, whether the DF needs reboot or software upgrade; and in response to determining that the DF needs reboot or software upgrade, sending, by the DF, the first request to the BDF.
4. The method of claim 1, wherein detecting, by the DF, whether the transmission link between the DF and each of the plurality of traffic reception devices is abnormal comprises: detecting, by the DF, whether traffic forwarded to the first traffic reception device by the DF in a target time period reaches a preset value, wherein the preset value is a traffic value when the transmission link between the DF and the traffic reception device is normal; in response to determining that the traffic forwarded to the first traffic reception device by the DF in the target time period does not reach the preset value, determining, by the DF, that the transmission link between the DF and the first traffic reception device is abnormal; and in response to determining that the traffic forwarded to the traffic reception device by the DF in the target time period reaches the preset value, determining, by the DF, that the transmission link between the DF and the first traffic reception device is normal.
5. The method of claim 4, wherein before sending the first request to the BDF, the method further comprises: detecting, by the DF, whether the DF needs reboot or software upgrade; and in response to determining that the DF needs reboot or software upgrade, sending, by the DF, the first request to the BDF.
6. The method of claim 1, wherein before sending the first request to the BDF, the method further comprises: detecting, by the DF, whether the DF needs reboot or software upgrade; and in response to determining that the DF needs reboot or software upgrade, sending, by the DF, the first request to the BDF.
7. The method of claim 1, wherein a type of the packet of the first request is a multicast listener discover (MLD) protocol, an Internet group management protocol (IGMP) or a border gateway protocol (BGP).
8. A non-transitory computer-readable storage medium storing a computer program for implementing the steps in the multicast traffic transmission method of claim 1 when the program is executed by a processor.
9. A designed forwarder (DF), comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the computer program, when executed by the processor, is configured to: detect whether a transmission link between the DF and each of a plurality of traffic reception devices is abnormal; and in response to determining that a transmission link between the DF and a first traffic reception device is abnormal, stop forwarding traffic to the first traffic reception device and send a first request to a backup designed forwarder (BDF) which is not over a same shared network as the DF, wherein a packet of the first request comprises a protection mark and address information about the first traffic reception device, and the first request is used for requesting the BDF to forward traffic to the first traffic reception device, wherein the first traffic reception device is one of the plurality of traffic reception devices; in response to determining that the transmission link between the DF and the first traffic reception device returns to normal, forward traffic to the first reception device; wherein a header of the traffic forwarded by the DF comprises address information of the DF and a header of the traffic forwarded by the BDF comprises address information of the BDF.
10. The DF of claim 9, wherein the processor detects whether the transmission link between the DF and each of the plurality of traffic reception devices is abnormal by: detecting whether the transmission link between the DF and each of the plurality of traffic reception device is abnormal through bidirectional forwarding detection (BFD).
11. The DF of claim 9, wherein the processor detects whether the transmission link between the DF and the traffic reception device is abnormal comprises: detecting whether traffic forwarded to the traffic reception device by the DF in a target time period reaches a preset value, wherein the preset value is a traffic value when the transmission link between the DF and the first traffic reception device is normal; in response to determining that the traffic forwarded to the traffic reception device by the DF in the target time period does not reach the preset value, determining that the transmission link between the DF and the first traffic reception device is abnormal; and in response to determining that the traffic forwarded to the first traffic reception device by the DF in the target time period reaches the preset value, determining that the transmission link between the DF and the first traffic reception device is normal.
12. The DF of claim 9, wherein before sending the first request to the BDF, the processor is further configured to: detect whether the DF needs reboot or software upgrade; and in response to determining that the DF needs reboot or software upgrade, send the first request to the BDF.
13. The DF of claim 9, wherein a type of the packet of the first request is a multicast listener discover (MLD) protocol, an Internet group management protocol (IGMP) or a border gateway protocol (BGP).
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
DETAILED DESCRIPTION
(14) Embodiments of the present disclosure will be described hereinafter in conjunction with the drawings.
(15) As shown in
(16) As shown in
(17) The method illustrated in the embodiment may be applied to a DF or a traffic reception device. When the method illustrated in the embodiment is applied to the DF, since there may be multiple traffic reception devices, when the method is applied to the DF, the DF may select to detect a transmission link between the DF and one of the traffic reception devices, and of course, may also select to detect multiple transmission links between the DF and different traffic reception devices. When a transmission link is detected to be abnormal, the first request is sent to the BDF, so that the BDF can proceed to forward the multicast traffic to the traffic reception device.
(18) In addition, the method illustrated in the embodiment may be applied to the traffic reception device, and when the traffic reception device detects that the transmission link between the traffic reception device and the DF is abnormal, the first request can be sent to the BDF, so that the traffic reception device can continue to be receive the multicast traffic when the transmission link between the traffic reception device and the DF is abnormal. Optionally, after the first request is sent to the DF, the method may further include: receiving traffic forwarded by the BDF, where the traffic may be multicast traffic.
(19) The distinction between a DF and a BDF may be determined by using a weight management mechanism. Optionally, when two or more traffic forwarders exist for forwarding multicast traffic, one may be used as the designed forwarder, i.e., the DF, and the other(s) as the backup designed forwarder, i.e. the BDF(s). Which traffic forwarder serves as the DF may be determined according to information such as characteristics of multicast traffic to be forwarded or the address of a target traffic reception device.
(20) The multicast traffic forwarded by the DF and the BDF may be traffic of the network television. When multiple users watch the network television and transmission links are abnormal, the users may be caused to fail to watch the network television. Therefore, when the abnormal transmission links are timely found, and the BDF is timely notified to forward the multicast traffic, the users can be ensured to normally watch the network television.
(21) Optionally, a type of the packet of the first request is a multicast listener discover (MLD) protocol, an Internet group management protocol (IGMP) or a border gateway protocol (BGP).
(22) Optionally and correspondingly, when the BDF forwards the multicast traffic to the traffic reception device, the header of the forwarded multicast traffic may include the address information about the BDF. The traffic reception device can thus clearly distinguish where the received multicast traffic is forwarded from. Of course, when the DF forwards the multicast traffic to the traffic reception device, the header of the forwarded multicast traffic may also include the address information about the DF. When the traffic reception device receives the multicast traffic forwarded by the BDF and the transmission link between the traffic reception device and the DF returns to normal, the traffic reception device simultaneously receives multicast traffic forwarded by the BDF and the DF, and the traffic reception device can determine which multicast traffic is forwarded by the BDF according to the address information in the header of the received multicast traffic and can choose to discard the multicast traffic forwarded by the DF, avoid accepting duplicate multicast traffic, where it is to be noted that the header of multicast traffic may be encapsulated by using the bit indexed explicit replication (BIER) technology.
(23) In addition, when the traffic reception device receives the multicast traffic forwarded by the BDF and the transmission link between the traffic reception device and the DF returns to normal, the DF may also be switch to for continuing to forward the multicast traffic to the traffic reception device. Optional operations may include the following steps: the traffic reception device may send, in a multicast manner, a packet including a reset traffic protection mark to the BDF and the DF, and when the BDF receives the packet including the reset traffic protection mark, the BDF stops forwarding the multicast traffic to the traffic reception device and deletes the address information about the traffic reception device from the header of the multicast traffic. After receiving the packet including the reset traffic protection mark, the DF forwards the multicast traffic to the traffic reception device.
(24) In the embodiment of the present disclosure, it is detected whether the transmission link between the DF and the traffic reception device is abnormal, and when the transmission link between the DF and the traffic reception device is detected to be abnormal, a first request is sent to the BDF. Through the above steps, when the transmission link between the DF and the traffic reception device is detected to be abnormal, the first request is sent to the BDF, so that the BDF forwards traffic to the traffic reception device. The method ensures that the traffic reception device can receive the traffic without being affected by the abnormal transmission link, and improves the efficiency of receiving the multicast traffic by the traffic reception device when the transmission link is abnormal.
(25) As shown in
(26) The method illustrated in the embodiment of the present disclosure can also be applied to the DF or the traffic reception device, and optionally, for the description, reference may be made to the embodiment illustrated in
(27) Optionally, step S601 may include detecting whether the transmission link between the DF and the traffic reception device is abnormal through bidirectional forwarding detection (BFD).
(28) Step S602 may include: when the transmission link between the DF and the traffic reception device is abnormal, sending the first request to a BDF which is not over a same shared network as the DF.
(29) The DF and the traffic reception device can send packets to each other through the BFD, and the BFD determines whether the feedback message from the counter side can be received, so that the BFD determines whether the transmission link between the DF and the traffic reception device is abnormal. When both the DF and the traffic reception device can receive the feedback messages from each other, it can be indicated that the transmission link is normal, and when the feedback messages from each other cannot be received, it can be indicated that the transmission link is abnormal.
(30) The BDF that is not over the same shared network as the DF may be a BDF that is not on the same switch as the DF, or may be a BDF that is not on the same server as the DF. Of course, the type of the shared network is not limited herein.
(31) In the embodiment, whether the transmission link between the DF and the traffic reception device is abnormal is detected through the BFD, and thus the detecting result can be accurately and quickly obtained, and accordingly a corresponding response can be made according to the result, that is, when the transmission link is abnormal, a first request is sent to the BDF; when the transmission link is normal, no processing is done. Through the above steps, the accuracy of determining whether the transmission link between the DF and the traffic reception device is abnormal is improved.
(32) Optionally, step S601 may include: detecting whether the traffic forwarded by the DF and received in a target time period reaches a preset value, where the preset value is a traffic value when the transmission link between the DF and the traffic reception device is normal; when the traffic forwarded by the DF and received in the target time period does not reach the preset value, determining that the transmission link between the DF and the traffic reception device is abnormal; and when the traffic forwarded by the DF and received in the target time period reaches the preset value, determining that the transmission link between the DF and the traffic reception device is normal.
(33) The preset value may be set on the traffic reception device by a user or may be automatically acquired by the traffic reception device. It is to be noted that the value of the preset value and the value of the target time period are not limited herein.
(34) In the embodiment, whether the traffic forwarded by the DF in the target time period reaches the preset value is detected for determining whether the transmission link between the DF and the traffic reception device is abnormal, so that the determination result is more intuitive and accurate, and the accuracy of determining whether the transmission link between the DF and the traffic reception device is abnormal is improved.
(35) Optionally, before the first request is sent to the backup designed forwarder (BDF), the method further includes: detecting whether the DF needs a reboot or a software upgrade; and when the DF needs the reboot or the software upgrade, sending the first request to the BDF.
(36) Whether the DF needs the reboot or the software upgrade is detected, and when it is determined that the DF needs the reboot or the software upgrade, the first request is sent to the BDF. When the transmission link is temporarily unavailable due to the fact that the DF needs the reboot or the software upgrade, the first request is sent to the BDF in time, so that the BDF forwards the traffic, and a reduction in the traffic reception efficiency of the traffic reception device due to a need of the reboot or software upgrade of the DF is avoided. Of course, when the DF needs the reboot or the software upgrade, the first request may be sent directly to the BDF, or in the case where it is not urgent for the traffic reception device to receive the traffic, the multicast traffic forwarded by the DF may not be received until the reboot or software upgrade of the DF is completed. In addition, the first request may be sent to the BDF when the DF needs the reboot or the software upgrade, or when the transmission link between the DF and the traffic reception device is abnormal, or when the DF needs the reboot or the software upgrade and the transmission link between the DF and the traffic reception device is abnormal.
(37) In the embodiment, when it is determined that the DF needs the reboot or the software upgrade, the first request may be directly sent to the BDF, and a reduction in the traffic reception efficiency of the traffic reception device due to a need of the reboot or software upgrade of the DF is avoided.
(38) In the embodiment of the present disclosure, it is detected whether the transmission link between the DF and the traffic reception device is abnormal, and when the transmission link between the DF and the traffic reception device is detected to be abnormal, a first request is sent to the BDF. Through the above steps, when the transmission link between the DF and the traffic reception device is detected to be abnormal, the first request is sent to the BDF, so that the BDF forwards traffic to the traffic reception device. The method ensures that the traffic reception device can receive the traffic without being affected by the abnormal transmission link, and improves the efficiency of receiving the multicast traffic by the traffic reception device when the transmission link is abnormal.
(39) As shown in
(40) The method illustrated in the embodiment may be applied to the BDF, and the BDF is the backup designed forwarder that forwards multicast traffic. After receiving the first request, the BDF can forward traffic to the traffic reception device according to the address information about the traffic reception device included in the packet of the first request, where the traffic may be multicast traffic.
(41) In the embodiment of the present disclosure, the first request is received and the traffic is forwarded to the traffic reception device according to the first request, so that the efficiency of traffic reception by the traffic reception device is ensured, and the traffic reception efficiency of the traffic reception device can be ensured not to be affected even when the transmission link between the traffic reception device and the DF is abnormal.
(42) Optionally, the request sending device is the traffic reception device or the DF.
(43) In the embodiment of the present disclosure, the request sending device may be the traffic reception device or the DF and can detect whether a transmission link between the traffic reception device and the DF is abnormal, which improves the probability of discovering an abnormal transmission link.
(44) As shown in
(45) Optionally, the first detection module 801 is configured to detect whether the transmission link between the DF and the traffic reception device is abnormal through BFD; the sending module 802 is configured to: when the transmission link between the DF and the traffic reception device is abnormal, send the first request to a BDF which is not over a same shared network as the DF.
(46) Optionally, as shown in
(47) Optionally, as shown in
(48) Optionally, a type of the packet of the first request is an MLD protocol, an IGMP or a BGP.
(49) It is to be noted that the multicast traffic transmission apparatus 800 in the embodiment may be a multicast traffic transmission apparatus according to any implementation mode in the method embodiment illustrated in
(50) As shown in
(51) Optionally, the request sending device is the traffic reception device or the DF.
(52) It is to be noted that the multicast traffic transmission apparatus 1100 in the embodiment may be a multicast traffic transmission apparatus according to any implementation mode in the method embodiment illustrated in
(53) As shown in
(54) The transceiver 1202 is configured to receive and send data under control of the processor 1201, and includes at least two antenna ports.
(55) In
(56) The processor 1201 manages the bus architecture and general processing, and the memory 1203 may be configured to store data used by the processor 1201 when operations are performed.
(57) Optionally, the step of detecting whether the transmission link between the DF and the traffic reception device is abnormal includes: detecting whether the transmission link between the DF and the traffic reception device is abnormal through a BFD.
(58) The step of sending the first request to the BDF when the transmission link between the DF and the traffic reception device is abnormal may include: when the transmission link between the DF and the traffic reception device is abnormal, sending the first request to a BDF which is not over a same shared network as the DF.
(59) Optionally, the step of detecting whether the transmission link between the DF and the traffic reception device is abnormal includes: detecting whether traffic forwarded by the DF and received in a target time period reaches a preset value, where the preset value is a traffic value when the transmission link between the DF and the traffic reception device is normal; when the traffic forwarded by the DF and received in the target time period does not reach the preset value, determining that the transmission link between the DF and the traffic reception device is abnormal; and when the traffic forwarded by the DF and received in the target time period reaches the preset value, determining that the transmission link between the DF and the traffic reception device is normal.
(60) Optionally, before the first request is sent to the BDF, the method further includes: detecting whether the DF needs a reboot or a software upgrade; and when the DF needs the reboot or the software upgrade, sending the first request to the BDF. Optionally, a type of the packet of the first request is an MLD protocol, an IGMP or a BGP.
(61) It is to be noted that in the embodiments of the present disclosure, the multicast traffic transmission device 1200 in the embodiment can implement the steps in the multicast traffic transmission method embodiment illustrated in
(62) As shown in
(63) The transceiver 1302 is configured to receive and send data under control of the processor 1301, and includes at least two antenna ports.
(64) In
(65) The processor 1301 manages the bus architecture and general processing, and the memory 1303 may be configured to store data used by the processor 1301 when operations are performed.
(66) Optionally, the request sending device is the traffic reception device or the DF.
(67) It is to be noted that in the embodiments of the present disclosure, the multicast traffic transmission device 1300 in the embodiment can implement the steps in the multicast traffic transmission method embodiment illustrated in
(68) A computer-readable medium is further provided in an embodiment of the present disclosure. It will be understood by those of ordinary skill in the art that all or part of the steps in the method embodiment illustrated in
(69) Optionally, when the programs are executed, the step of detecting whether the transmission link between the DF and the traffic reception device is abnormal includes: detecting whether the transmission link between the DF and the traffic reception device is abnormal through BFD.
(70) The step of sending the first request to the BDF when the transmission link between the DF and the traffic reception device is abnormal may include: when the transmission link between the DF and the traffic reception device is abnormal, sending the first request to a BDF which is not over a same shared network as the DF.
(71) Optionally, when the programs are executed, the step of detecting whether the transmission link between the DF and the traffic reception device is abnormal includes: detecting whether traffic forwarded by the DF and received in a target time period reaches a preset value, where the preset value is a traffic value when the transmission link between the DF and the traffic reception device is normal; when the traffic forwarded by the DF and received in the target time period does not reach the preset value, determining that the transmission link between the DF and the traffic reception device is abnormal; and when the traffic forwarded by the DF and received in the target time period reaches the preset value, determining that the transmission link between the DF and the traffic reception device is normal.
(72) Optionally, when the programs are executed, before the first request is sent to the BDF, the method further includes: detecting whether the DF needs a reboot or a software upgrade; and when the DF needs the reboot or the software upgrade, sending the first request to the BDF.
(73) Optionally, when the programs are executed, a type of the packet of the first request is an MLD protocol, an IGMP or a BGP.
(74) The computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, an optical disk, or the like.
(75) A computer-readable medium is further provided in an embodiment of the present disclosure. It will be understood by those of ordinary skill in the art that all or part of the steps in the method embodiment illustrated in
(76) Optionally, when the programs are executed, the request sending device is the traffic reception device or the DF.
(77) The computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, an optical disk, or the like.
(78) It will be understood by those of ordinary skill in the art that functional modules/units in all or part of the steps of the method, the system and the device disclosed above may be implemented as software, firmware, hardware and appropriate combinations thereof. In the hardware implementation, the division of the functional modules/units mentioned in the above description may not correspond to the division of physical components. For example, one physical component may have several functions, or one function or step may be implemented jointly by several physical components. Some or all components may be implemented as software executed by processors such as digital signal processors or microcontrollers, hardware, or integrated circuits such as application specific integrated circuits. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a transitory medium). As is known to those of ordinary skill in the art, the term, computer storage medium, includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). The computer-storage medium includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, or other memory technologies, a compact disc read-only memory (CD-ROM), a digital versatile disc (DVD) or another optical disc storage, a magnetic cassette, a magnetic tape, disk storage or another magnetic storage apparatus, or any other medium used to store the desired information and accessible by a computer. In addition, as is known to those of ordinary skill in the art, the communication medium generally includes computer-readable instructions, data structures, program modules or other data in modulated data signals such as carriers or other transmission mechanisms, and may include any information delivery medium.
(79) It will be understood by those of ordinary skill in the art that the technical solutions of the present disclosure may be modified or substituted equivalently without departing from the spirit and scope of the technical solutions of the present disclosure and such modifications and equivalent substitutions should fall within the scope of the claims of the present disclosure.