The present disclosure relates to, but is not limited to, the field of communication technologies, and in particular relates to a multicast traffic transmission method and related device and a computer readable storage medium.
With the development of communication technologies, the multicast technology has been widely used in current Internet services. For example, the multicast technology can be applied to network conference, live broadcast of sports events or concerts, live broadcast teaching of network or medical operation and the like.
In the application of the multicast technology, two or more traffic forwarders are generally configured, and the traffic forwarders are configured to forward multicast traffic to a traffic reception device. In some cases, when a traffic transmission link between one of the traffic forwarders and the traffic reception device is abnormal, traffic reception by the traffic reception device is affected by the abnormal transmission link, so that the efficiency of receiving multicast traffic by the traffic reception device is low.
Embodiments of the present disclosure provide a multicast traffic transmission method and related device and a computer-readable storage medium, which can avoid the situation of low efficiency of receiving multicast traffic by a traffic reception device when a traffic transmission link between one of the traffic forwarders and the traffic reception device is abnormal.
An embodiment of the present disclosure provides a multicast traffic transmission method. The method includes steps described below.
It is detected whether a transmission link between a designed forwarder (DF) and a traffic reception device is abnormal.
In response to determining that the transmission link between the DF and the traffic reception device is abnormal, a first request is sent to a backup designed forwarder (BDF), where 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.
An embodiment of the present disclosure further provides a multicast traffic transmission method. The method includes steps described below.
A first request sent by a request sending device is received, where a packet of the first request includes a protection mark and address information about a traffic reception device, and the first request is used for requesting a BDF to forward traffic to the traffic reception device.
The traffic is forwarded to the traffic reception device according to the first request.
An embodiment of the present disclosure further provides a multicast traffic transmission apparatus. The apparatus includes a first detection module and a sending module.
The first detection module is configured to detect whether a transmission link between a DF and a traffic reception device is abnormal.
The sending module is configured to: in response to determining that the transmission link between the DF and the traffic reception device is abnormal, send a first request to a BDF, where 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.
An embodiment of the present disclosure further provides a multicast traffic transmission apparatus. The apparatus includes a reception module and a forwarding module.
The reception module is configured to receive a first request sent by a request sending device, where a packet of the first request includes a protection mark and address information about a traffic reception device, and the first request is used for requesting a BDF to forward traffic to the traffic reception device.
The forwarding module is configured to forward the traffic to the traffic reception device according to the first request.
An embodiment of the present disclosure further provides a multicast traffic transmission device. The device includes a memory, a processor and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps in the multicast traffic transmission method applied to a device sending a first request.
An embodiment of the present disclosure further provides a multicast traffic transmission device. The device includes a memory, a processor and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps in the multicast traffic transmission method applied to a device receiving a first request.
An embodiment of the present disclosure further provides a computer-readable storage medium, which is configured to store a computer program which, when executed by a processor, implements the steps in the multicast traffic transmission method applied to a device sending a first request.
An embodiment of the present disclosure further provides a computer-readable storage medium, which is configured to store a computer program which, when executed by a processor, implements the steps in the multicast traffic transmission method applied to a device receiving a first request.
Embodiments of the present disclosure will be described hereinafter in conjunction with the drawings.
As shown in
As shown in
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.
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.
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.
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.
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).
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.
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.
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.
As shown in
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
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).
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
As shown in
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.
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.
Optionally, the request sending device is the traffic reception device or the DF.
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.
As shown in
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.
Optionally, as shown in
Optionally, as shown in
Optionally, a type of the packet of the first request is an MLD protocol, an IGMP or a BGP.
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
As shown in
Optionally, the request sending device is the traffic reception device or the DF.
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
As shown in
The transceiver 1202 is configured to receive and send data under control of the processor 1201, and includes at least two antenna ports.
In
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.
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.
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.
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.
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.
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
As shown in
The transceiver 1302 is configured to receive and send data under control of the processor 1301, and includes at least two antenna ports.
In
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.
Optionally, the request sending device is the traffic reception device or the DF.
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
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
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.
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.
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.
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.
Optionally, when the programs are executed, a type of the packet of the first request is an MLD protocol, an IGMP or a BGP.
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.
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
Optionally, when the programs are executed, the request sending device is the traffic reception device or the DF.
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.
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.
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.
Number | Date | Country | Kind |
---|---|---|---|
201710785673.6 | Sep 2017 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2018/103959 | 9/4/2018 | WO | 00 |