[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN106330699B - Multicast link switching method and device and routing equipment - Google Patents

Multicast link switching method and device and routing equipment Download PDF

Info

Publication number
CN106330699B
CN106330699B CN201510403809.3A CN201510403809A CN106330699B CN 106330699 B CN106330699 B CN 106330699B CN 201510403809 A CN201510403809 A CN 201510403809A CN 106330699 B CN106330699 B CN 106330699B
Authority
CN
China
Prior art keywords
multicast
link
main
standby
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510403809.3A
Other languages
Chinese (zh)
Other versions
CN106330699A (en
Inventor
邓涛鸿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201510403809.3A priority Critical patent/CN106330699B/en
Priority to PCT/CN2016/073920 priority patent/WO2017008505A1/en
Publication of CN106330699A publication Critical patent/CN106330699A/en
Application granted granted Critical
Publication of CN106330699B publication Critical patent/CN106330699B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a switching method, a device and a routing device of a multicast link, which relate to the field of communication and solve the problems that the existing multicast protection mechanism is not detected in place and the network burden is increased, wherein the switching method is applied to the routing device and comprises the following steps: respectively receiving multicast flow messages sent by upstream equipment through a main link and a standby link through two incoming interfaces; an incoming interface for receiving messages sent by upstream equipment through a main link is used as a main incoming interface, and an incoming interface for receiving messages sent by the upstream equipment through a standby link is used as a standby incoming interface for storage; forwarding the multicast flow message received by the main access interface, and discarding the multicast flow message received by the standby access interface; and detecting whether the main access interface receives the multicast flow message or not at regular time, and switching the corresponding relation between the two access interfaces and the main access interface and the standby access interface if the main access interface does not receive the multicast flow message within a preset time period. The scheme of the invention improves the detection performance and saves network resources.

Description

Multicast link switching method and device and routing equipment
Technical Field
The present invention relates to the field of communications, and in particular, to a method, an apparatus, and a routing device for switching a multicast link.
Background
The multicast technology effectively solves the problem of single-point transmission and multi-point reception, realizes the high-efficiency data transmission of point to multi-point in the network, can greatly save the network bandwidth, reduces the network load, and can conveniently provide some new value-added services by utilizing the multicast characteristic of the network.
With the wider application of multicast technology in networks, the requirements for multicast technology are higher and higher, such as the reliability protection of multicast services when a network fails. In a current common method for realizing multicast protection in a network, link down is detected mainly by deploying BFD (bidirectional forwarding Detection) in a main link and a standby link hop by hop, and then link protection switching is performed. The problems with such protection mechanisms are: some scenarios (such as when the link is not directly connected) BFD may not detect link down; bidirectional inconsistency of paths detected by BFD in a multicast link may cause that some paths BFD are not communicated; the BFD detection packet also occupies the network bandwidth, increasing the network load.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method, an apparatus and a routing device for switching a multicast link, so as to solve the problems of the prior art that a multicast service protection mechanism detects that the link is not in place and increases network load.
In order to solve the foregoing technical problem, an embodiment of the present invention provides a method for switching a multicast link, where the method is applied to a routing device, and the method includes:
receiving multicast flow messages sent by an upstream device through a main link and a standby link through two input interfaces respectively, wherein the routing device is connected with the upstream device through the main link and the standby link respectively;
taking an input interface for receiving the multicast traffic message sent by the upstream device through the main link as a main input interface, and taking an input interface for receiving the multicast traffic message sent by the upstream device through the standby link as a standby input interface for corresponding storage;
forwarding the multicast flow message received by the main access interface, and discarding the multicast flow message received by the standby access interface;
and detecting whether the main access interface receives the multicast flow message or not at regular time, and if the main access interface does not receive the multicast flow message in a preset time period, switching the corresponding relation between the two access interfaces and the main access interface as well as the standby access interface.
The timing detection is performed to determine whether the main access interface receives the multicast traffic message, and if the main access interface does not receive the multicast traffic message within a predetermined time period, after switching the correspondence between the two access interfaces and the main access interface and the standby access interface, the switching method further includes:
and if the main link is detected to be recovered to be normal, restoring the corresponding relation between the two access interfaces and the main access interface and the standby access interface to the state before switching.
Before receiving, through the two ingress interfaces, a multicast traffic packet sent by an upstream device through a primary link and a standby link, respectively, the switching method further includes:
generating a second multicast adding message according to a first multicast adding message sent by at least one user;
and the upstream equipment generates a multicast flow message according to the second multicast adding message and flow data issued by source equipment connected with the upstream equipment and sends the multicast flow message to the routing equipment.
The generating a second multicast join message according to a first multicast join message sent by at least one user specifically includes:
receiving a first multicast adding message sent by at least one user, and generating a multicast forwarding table according to the first multicast adding message, wherein the multicast forwarding table comprises a multicast routing table and a multicast user table;
and generating a second multicast adding message according to the multicast forwarding table.
The timing detection is performed to determine whether the main access interface receives the multicast traffic message, and if the main access interface does not receive the multicast traffic message within a predetermined time period, after switching the correspondence between the two access interfaces and the main access interface and the standby access interface, the switching method further includes:
and generating a hardware interrupt event, and notifying a message of switching the corresponding relation between the two incoming interfaces and the main incoming interface and the standby incoming interface to a software unit of the routing equipment.
To solve the above technical problem, an embodiment of the present invention further provides a switching device for a multicast link, which is applied to a routing device, where the switching device includes:
a receiving module, configured to receive, through two ingress interfaces, a multicast traffic packet sent by an upstream device through a main link and a standby link, where the routing device and the upstream device are connected through the main link and the standby link, respectively;
a storage module, configured to use an ingress interface that receives the multicast traffic packet sent by the upstream device through the main link as a main ingress interface, and use an ingress interface that receives the multicast traffic packet sent by the upstream device through the standby link as a standby ingress interface for corresponding storage;
the forwarding module is used for forwarding the multicast traffic messages received by the main input interface and discarding the multicast traffic messages received by the standby input interface;
and the switching module is used for regularly detecting whether the main access interface receives the multicast traffic message or not, and switching the corresponding relation between the two access interfaces and the main access interface as well as the standby access interface if the main access interface does not receive the multicast traffic message within a preset time period.
Wherein the switching device further comprises:
and the recovery module is used for recovering the corresponding relation between the two access interfaces and the main access interface and the standby access interface to a state before switching if the main link is detected to be recovered to a normal state.
Wherein the switching device further comprises:
the first generation module is used for generating a second multicast adding message according to a first multicast adding message sent by at least one user;
and the sending module is used for sending the second multicast adding message to the upstream equipment through the main link and the standby link respectively, and the upstream equipment generates a multicast flow message according to the second multicast adding message and flow data sent by source equipment connected with the upstream equipment and sends the multicast flow message to the routing equipment.
Wherein, the first generating module specifically comprises:
the first generating subunit is configured to receive a first multicast join packet sent by at least one user, and generate a multicast forwarding table according to the first multicast join packet, where the multicast forwarding table includes a multicast routing table and a multicast user table;
and the second generating subunit is used for generating a second multicast adding message according to the multicast forwarding table.
Wherein the switching device further comprises:
and the second generation module is used for generating a hardware interrupt event and notifying a message of switching the corresponding relationship between the two incoming interfaces and the main incoming interface and the standby incoming interface to a software unit of the routing equipment.
To solve the foregoing technical problem, an embodiment of the present invention further provides a routing device, including: the switching device of the multicast link is described above.
The technical scheme of the invention has the following beneficial effects:
the method for switching multicast links in the embodiment of the invention is applied to a routing device (here, a downstream device), and the routing device receives multicast flow messages sent by an upstream device through a main link and a standby link through two input interfaces respectively; firstly, an input interface for receiving the multicast flow message sent by the upstream equipment through a main link is used as a main input interface, and an input interface for receiving the multicast flow message sent by the upstream equipment through a standby link is used as a standby input interface; forwarding the multicast traffic message received by the main access interface, and discarding the multicast traffic message received by the standby access interface; then, whether the main access interface receives the multicast flow message or not is detected regularly, if the multicast flow message is not received in a preset time period and the main link fails, the corresponding relation between the two access interfaces and the main access interface and the standby access interface is switched, so that the multicast flow message sent by the upstream equipment through the standby link is forwarded and passed, the normal work of the multicast link is ensured, the rapid switching of the main link and the standby link is realized, and the requirement on the high-efficiency protection performance of the multicast link in the existing network is met; the multicast flow is directly monitored, and a detection message is not additionally adopted, so that network resources are saved; moreover, no undetected scene exists, and the network security is high; in addition, the problem that the network load is increased due to the fact that detection is not in place by existing BFD detection technologies and the like is solved.
Drawings
Fig. 1 is a flowchart of a multicast link switching method according to the present invention;
fig. 2 is a schematic structural diagram of a specific application system of the multicast link switching method of the present invention;
fig. 3 is a flowchart of a multicast link switching method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a switching apparatus for multicast links according to the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments.
The method for switching the multicast link in the embodiment of the invention monitors the state of the main link by monitoring the multicast flow of the main access interface on downstream equipment, and triggers the equipment to switch the main access interface and the standby access interface when the flow message is not received within fixed time. And link state monitoring is not required to be carried out by relying on detection means such as BFD and the like, so that the problems that the detection technology such as BFD and the like has scenes which cannot be detected and the network bandwidth is increased are solved.
The multicast link switching method of the embodiment of the invention has the advantages of bandwidth saving, high network security, high switching speed and the like.
As shown in fig. 1, a method for switching a multicast link according to an embodiment of the present invention is applied to a routing device, and the method includes:
step 101, respectively receiving a multicast traffic message sent by an upstream device through a main link and a standby link through two ingress interfaces, wherein the routing device and the upstream device are respectively connected through the main link and the standby link.
Here, the primary link is used for the working link and the backup link is used for the protection link.
And step 102, taking an incoming interface for receiving the multicast traffic message sent by the upstream device through the main link as a main incoming interface, and taking an incoming interface for receiving the multicast traffic message sent by the upstream device through the standby link as a standby incoming interface for corresponding storage.
And 103, forwarding the multicast traffic message received by the main input interface, and discarding the multicast traffic message received by the standby input interface.
And 104, regularly detecting whether the main access interface receives the multicast flow message, and switching the corresponding relation between the two access interfaces and the main access interface and the standby access interface if the main access interface does not receive the multicast flow message within a preset time period.
The method for switching the multicast link according to the embodiment of the present invention periodically detects whether the main access interface receives the multicast traffic message, and if the multicast traffic message is not received within a predetermined time period, which indicates that the main link fails, the main and standby switching is performed on the two access interfaces, so as to ensure the normal operation of the multicast link. The method realizes the quick switching of the main link and the standby link, and meets the requirement of high-efficiency protection performance of the multicast link in the existing network. And the multicast flow is directly monitored without additionally adopting a detection message, so that the network resource is saved. And no undetected scene exists, and the network security is high. The problem of current detection techniques such as BFD not in place, increase network burden is solved.
Specifically, in step 103, the traffic of the main ingress interface may be forwarded through an mrpf (multicast reverse path forwarding) mechanism, and the traffic of the standby ingress interface is discarded, so that only one multicast traffic is forwarded.
Further, after the step 104, the handover method may further include:
and 105, if the main link is detected to be recovered to be normal, recovering the corresponding relation between the two access interfaces and the main access interface and the standby access interface to a state before switching.
At this time, if the main link is recovered to normal, the ingress interface receiving the message sent by the upstream device through the main link is used as the primary ingress interface again, so that the data on the main link is forwarded and passed through. The device can quickly recover to a normal working state, and the practicability is improved.
In an embodiment of the present invention, before the step 101, the switching method may further include:
step 106, generating a second multicast adding message according to the first multicast adding message sent by at least one user;
and 107, sending the second multicast adding message to the upstream device through the main link and the standby link respectively, and generating a multicast traffic message and sending the multicast traffic message to the routing device by the upstream device according to the second multicast adding message and traffic data sent by the source device connected with the upstream device.
At this time, the upstream device can accurately obtain the multicast traffic required by the user of the downstream device according to the multicast join message sent by the downstream device and the traffic data sent by the source device, so as to generate the multicast traffic message and send the multicast traffic message to the downstream device, thereby ensuring the accuracy of data transmission and improving the network security.
Wherein, the step 107 may specifically include:
step 1071, receiving a first multicast join message sent by at least one user, and generating a multicast forwarding table according to the first multicast join message, wherein the multicast forwarding table includes a multicast routing table and a multicast user table.
Here, the downstream device adds the user sending the first multicast join message into the multicast user table, and forms a corresponding egress port encapsulation information table for these multicast users.
Step 1072, according to the said multicast forwarding table, generate the second multicast to join the message.
At the moment, the users and the corresponding data information can be clearly and accurately acquired through the multicast forwarding table, and the accuracy and the high efficiency of data management are ensured.
The first multicast join message sent by the user to the downstream device may specifically be an IGMP (Internet group management Protocol) multicast join message, and the user specifies in the message that the user wants to receive a multicast message of a specific multicast group; the second Multicast join packet sent by the downstream device to the upstream device may specifically be a PIM (Protocol Independent Multicast) Multicast join packet.
Further, the upstream device may form a multicast routing table on the upstream device according to the PIM multicast join packet sent by the downstream device through the main and standby two links and the multicast traffic sent by the multicast source device, and send the traffic packet to the main and standby two links by using both the main and standby links as multicast users.
In a specific embodiment of the present invention, when the step 102 is specifically implemented, two incoming interfaces corresponding to the active and standby two links may be first formed in a multicast routing table of the downstream device, and then the correspondence between the two incoming interfaces and the primary and standby incoming interfaces is stored in the multicast routing table. Under normal conditions, the input interface corresponding to the main link is used as a main input interface, and the input interface corresponding to the standby link is used as a standby input interface; when the main link fails, the main-standby relationship of the two input interfaces is switched.
In order to ensure consistency between the multicast routing table on the software and the multicast routing table on the hardware, after step 104, the switching method may further include:
step 108, a hardware interrupt event is generated, and a message of switching the corresponding relationship between the two input interfaces and the main input interface and the standby input interface is notified to the software unit of the routing device.
At this time, the main/standby access interfaces in the multicast routing table on the software can be notified to switch in a hardware interrupt mode, so that the unification of the software and hardware multicast routing table items is ensured.
Further, in the specific implementation of step 104, after the multicast routing table is formed on the downstream device, a traffic detection device (such as a watchdog dog or the like) may be created on the forwarding chip where the main input interface is located, and a timer may be set. After receiving the first message on the main input interface, the forwarding chip enables and activates the flow detection device, and then updates the corresponding flow detection device every time receiving the message in a multicast group. If no multicast data message is received within the time set by the timer, that is, the main link corresponding to the main access interface is damaged, the forwarding chip automatically switches the main access interface and the standby access interface in the hardware multicast routing table by microcode, so that the traffic of the standby link is forwarded and passed. Meanwhile, in step 108, the main/standby access interfaces in the multicast routing table on the software may be notified to switch according to the flow detection apparatus in a hardware interrupt manner, so as to ensure the consistency between the software and the hardware multicast routing table entry. And experiments show that the fast switching of 50ms is realized by switching energy of hardware, so that the switching rate is effectively improved, the influence caused by the damage of the main link is reduced, and the protection performance of the multicast link is improved.
The following examples illustrate specific embodiments of the present invention:
as shown in fig. 2, a method for switching a multicast link according to an embodiment of the present invention is applied to a routing device (downstream device), where the downstream device is connected to an upstream device through a main link and a standby link, the upstream device is connected to a multicast source device, and the downstream device has N multicast users (N is an integer greater than or equal to 1), and as shown in fig. 3, the method includes the following steps:
step 301, receiving IGMP multicast join messages sent by multicast users 1 to N, respectively, forming a multicast forwarding table according to the received IGMP multicast join messages, adding the multicast users to the multicast forwarding table, and forming a corresponding egress port encapsulation information table for the multicast users;
step 302, generating a PIM multicast join message according to a multicast forwarding table, and sending the PIM multicast join message to an upstream device from the main link and the standby link respectively, wherein the upstream device forms a multicast routing table on the upstream device according to the PIM multicast join message sent by a downstream device and a multicast flow sent by a multicast source device, and the upstream device takes both the main link and the standby link as multicast users;
step 303, the upstream device sends multicast traffic messages to the downstream device from the active and standby links, the downstream device forms two ingress interfaces in the multicast routing table, the ingress interface corresponding to the active link is used as a primary ingress interface, the ingress interface corresponding to the standby link is used as a standby ingress interface for storage, and meanwhile, the multicast traffic messages received by the primary ingress interface are forwarded normally through an mrpf checking mechanism, the multicast traffic messages received by the standby ingress interface are discarded, and only one effective traffic on the link is guaranteed to pass through;
step 304, after the downstream device forms the multicast routing table, a watchdog dog is created on a forwarding chip where the main input interface is located, a timer is set, and the watchdog enable is activated by the forwarding chip when the main input interface receives the first multicast flow message;
305, the master-slave interface switches the master-slave interface of the multicast routing table when receiving a multicast flow message and if no dog is fed within the time set by the timer, the forwarding chip sends a message to the control plane through hardware interruption to inform the software of switching the master-slave interface, thereby ensuring the unification of the software and the hardware;
and step 306, when the main link returns to normal, the main/standby access interfaces are corresponded to the original access interfaces again.
The multicast link switching method of the embodiment of the invention realizes the rapid switching of the main link and the standby link and meets the requirement of the multicast link on high-efficiency protection performance in the existing network. And the multicast flow is directly monitored without additionally adopting a detection message, so that the network resource is saved. And no undetected scene exists, and the network security is high. The problem of current detection techniques such as BFD not in place, increase network burden is solved.
As shown in fig. 4, an embodiment of the present invention further provides a switching apparatus for a multicast link, where the switching apparatus is applied to a routing device, and the switching apparatus includes:
a receiving module, configured to receive, through two ingress interfaces, a multicast traffic packet sent by an upstream device through a main link and a standby link, where the routing device and the upstream device are connected through the main link and the standby link, respectively;
a storage module, configured to use an ingress interface that receives the multicast traffic packet sent by the upstream device through the main link as a main ingress interface, and use an ingress interface that receives the multicast traffic packet sent by the upstream device through the standby link as a standby ingress interface for corresponding storage;
the forwarding module is used for forwarding the multicast traffic messages received by the main input interface and discarding the multicast traffic messages received by the standby input interface;
and the switching module is used for regularly detecting whether the main access interface receives the multicast traffic message or not, and switching the corresponding relation between the two access interfaces and the main access interface as well as the standby access interface if the main access interface does not receive the multicast traffic message within a preset time period.
The switching device of the multicast link of the embodiment of the invention realizes the rapid switching of the main link and the standby link and meets the requirement of the high-efficiency protection performance of the multicast link in the existing network. And the multicast flow is directly monitored without additionally adopting a detection message, so that the network resource is saved. And no undetected scene exists, and the network security is high. The problem of current detection techniques such as BFD not in place, increase network burden is solved.
Wherein the switching device may further include:
and the recovery module is used for recovering the corresponding relation between the two access interfaces and the main access interface and the standby access interface to a state before switching if the main link is detected to be recovered to a normal state.
Further, the switching device may further include:
the first generation module is used for generating a second multicast adding message according to a first multicast adding message sent by at least one user;
and the sending module is used for sending the second multicast adding message to the upstream equipment through the main link and the standby link respectively, and the upstream equipment generates a multicast flow message according to the second multicast adding message and flow data sent by source equipment connected with the upstream equipment and sends the multicast flow message to the routing equipment.
The first generating module may specifically include:
the first generating subunit is configured to receive a first multicast join packet sent by at least one user, and generate a multicast forwarding table according to the first multicast join packet, where the multicast forwarding table includes a multicast routing table and a multicast user table;
and the second generating subunit is used for generating a second multicast adding message according to the multicast forwarding table.
Further, the switching device may further include:
and the second generation module is used for generating a hardware interrupt event and notifying a message of switching the corresponding relationship between the two incoming interfaces and the main incoming interface and the standby incoming interface to a software unit of the routing equipment.
The switching device of the multicast link of the embodiment of the invention realizes the rapid switching of the main link and the standby link and meets the requirement of the high-efficiency protection performance of the multicast link in the existing network. And the multicast flow is directly monitored without additionally adopting a detection message, so that the network resource is saved. And no undetected scene exists, and the network security is high. The problem of current detection techniques such as BFD not in place, increase network burden is solved.
It should be noted that the switching apparatus of the multicast link is an apparatus corresponding to the switching method of the multicast link, and all the implementation manners in the above method embodiment are applicable to the embodiment of the apparatus, and the same technical effect can be achieved.
Since the switching device of the multicast link according to the embodiment of the present invention is applied to a routing device, an embodiment of the present invention further provides a routing device, including: the switching device for multicast link as described in the above embodiments. The implementation embodiments of the switching device for multicast links are all applicable to the embodiment of the routing device, and the same technical effect can be achieved.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (11)

1. A switching method of a multicast link is applied to a routing device, and is characterized in that the switching method comprises the following steps:
receiving multicast flow messages sent by an upstream device through a main link and a standby link through two input interfaces respectively, wherein the routing device is connected with the upstream device through the main link and the standby link respectively;
taking an input interface for receiving the multicast traffic message sent by the upstream device through the main link as a main input interface, and taking an input interface for receiving the multicast traffic message sent by the upstream device through the standby link as a standby input interface for corresponding storage;
forwarding the multicast flow message received by the main access interface, and discarding the multicast flow message received by the standby access interface;
and detecting whether the main access interface receives the multicast flow message or not at regular time, and if the main access interface does not receive the multicast flow message in a preset time period, performing main-standby switching on the main access interface and the standby access interface.
2. The switching method according to claim 1, wherein the timing detection is performed to determine whether the primary access interface receives the multicast traffic packet, and if the primary access interface does not receive the multicast traffic packet within a predetermined time period, after performing the primary-backup switching between the primary access interface and the backup access interface, the switching method further comprises:
and if the main link is detected to be recovered to be normal, recovering the main access interface and the standby access interface to the state before the main-standby switching.
3. The handover method according to claim 1, wherein before receiving, through the two incoming interfaces, multicast traffic messages sent by an upstream device through the primary link and the standby link, respectively, the handover method further comprises:
generating a second multicast adding message according to a first multicast adding message sent by at least one user;
and the upstream equipment generates a multicast flow message according to the second multicast adding message and flow data issued by source equipment connected with the upstream equipment and sends the multicast flow message to the routing equipment.
4. The handover method according to claim 3, wherein the generating a second multicast join packet according to a first multicast join packet sent by at least one user specifically comprises:
receiving a first multicast adding message sent by at least one user, and generating a multicast forwarding table according to the first multicast adding message, wherein the multicast forwarding table comprises a multicast routing table and a multicast user table;
and generating a second multicast adding message according to the multicast forwarding table.
5. The switching method according to claim 1, wherein the timing detection is performed to determine whether the primary access interface receives the multicast traffic packet, and if the primary access interface does not receive the multicast traffic packet within a predetermined time period, after performing the primary-backup switching between the primary access interface and the backup access interface, the switching method further comprises:
and generating a hardware interrupt event, and notifying a message of performing master-slave switching between the master-slave interface and the slave-slave interface to a software unit of the routing equipment.
6. A switching device of a multicast link, applied to a routing device, the switching device comprising:
a receiving module, configured to receive, through two ingress interfaces, a multicast traffic packet sent by an upstream device through a main link and a standby link, where the routing device and the upstream device are connected through the main link and the standby link, respectively;
a storage module, configured to use an ingress interface that receives the multicast traffic packet sent by the upstream device through the main link as a main ingress interface, and use an ingress interface that receives the multicast traffic packet sent by the upstream device through the standby link as a standby ingress interface for corresponding storage;
the forwarding module is used for forwarding the multicast traffic messages received by the main input interface and discarding the multicast traffic messages received by the standby input interface;
and the switching module is used for regularly detecting whether the main access interface receives the multicast traffic message, and if the main access interface does not receive the multicast traffic message within a preset time period, performing active-standby switching on the main access interface and the standby access interface.
7. The switching device according to claim 6, further comprising:
and the recovery module is used for recovering the main input interface and the standby input interface to the state before the main-standby switching if the main link is detected to be recovered to be normal.
8. The switching device according to claim 6, further comprising:
the first generation module is used for generating a second multicast adding message according to a first multicast adding message sent by at least one user;
and the sending module is used for sending the second multicast adding message to the upstream equipment through the main link and the standby link respectively, and the upstream equipment generates a multicast flow message according to the second multicast adding message and flow data sent by source equipment connected with the upstream equipment and sends the multicast flow message to the routing equipment.
9. The switching device according to claim 8, wherein the first generating module specifically comprises:
the first generating subunit is configured to receive a first multicast join packet sent by at least one user, and generate a multicast forwarding table according to the first multicast join packet, where the multicast forwarding table includes a multicast routing table and a multicast user table;
and the second generating subunit is used for generating a second multicast adding message according to the multicast forwarding table.
10. The switching device according to claim 6, further comprising:
and the second generation module is used for generating a hardware interrupt event and notifying a software unit of the routing device of a message for performing master-slave switching between the master-slave interface and the slave-slave interface.
11. A routing device, comprising: switching means for a multicast link according to any of claims 6 to 10.
CN201510403809.3A 2015-07-10 2015-07-10 Multicast link switching method and device and routing equipment Active CN106330699B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510403809.3A CN106330699B (en) 2015-07-10 2015-07-10 Multicast link switching method and device and routing equipment
PCT/CN2016/073920 WO2017008505A1 (en) 2015-07-10 2016-02-17 Switching method and apparatus for multicast link, and route device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510403809.3A CN106330699B (en) 2015-07-10 2015-07-10 Multicast link switching method and device and routing equipment

Publications (2)

Publication Number Publication Date
CN106330699A CN106330699A (en) 2017-01-11
CN106330699B true CN106330699B (en) 2020-06-02

Family

ID=57725342

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510403809.3A Active CN106330699B (en) 2015-07-10 2015-07-10 Multicast link switching method and device and routing equipment

Country Status (2)

Country Link
CN (1) CN106330699B (en)
WO (1) WO2017008505A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109428814B (en) 2017-09-04 2022-12-02 中兴通讯股份有限公司 Multicast traffic transmission method, related equipment and computer readable storage medium
CN107528777A (en) * 2017-09-25 2017-12-29 广东电网有限责任公司电力调度控制中心 A kind of flexible exchanging network fault recovery method of load balancing
CN109743250B (en) * 2018-12-07 2020-09-04 华为技术有限公司 Transmission method of multicast message, first network equipment and second network equipment
CN112187578B (en) * 2020-09-28 2022-11-25 新华三信息安全技术有限公司 Table entry generation method, device and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1926809A (en) * 2004-03-04 2007-03-07 思科技术公司 Methods and devices for high network availability
CN102025541A (en) * 2010-12-08 2011-04-20 中兴通讯股份有限公司 Method and system for realizing multicast protection
CN102208995A (en) * 2011-05-04 2011-10-05 中兴通讯股份有限公司 Multicast protection method and device
CN102932248A (en) * 2012-10-29 2013-02-13 中兴通讯股份有限公司 Method and device for multi-source multicast path backup and rendezvous point (RP)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101827025A (en) * 2010-04-02 2010-09-08 华为技术有限公司 Communication network multicast protection method, system and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1926809A (en) * 2004-03-04 2007-03-07 思科技术公司 Methods and devices for high network availability
CN102025541A (en) * 2010-12-08 2011-04-20 中兴通讯股份有限公司 Method and system for realizing multicast protection
CN102208995A (en) * 2011-05-04 2011-10-05 中兴通讯股份有限公司 Multicast protection method and device
CN102932248A (en) * 2012-10-29 2013-02-13 中兴通讯股份有限公司 Method and device for multi-source multicast path backup and rendezvous point (RP)

Also Published As

Publication number Publication date
WO2017008505A1 (en) 2017-01-19
CN106330699A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
EP2222023B1 (en) Link fault processing method and data forwarding device
KR101993866B1 (en) Method and apparatus for managing a data transmission channel
EP2555476A1 (en) Method, system and device for protecting multicast in communication network
CN101170459B (en) Failure detection and link recovery method based on bidirectional forward link
EP2878105B1 (en) System and method using rsvp hello suppression for graceful restart capable neighbors
US8117337B2 (en) Method and device for implementing link pass through in point-to-multipoint network
CN107612754B (en) Bidirectional forwarding link fault detection method and device and network node equipment
EP3029883B1 (en) Network protection method and apparatus, next-ring node, and system
CN103368712A (en) Switchover method and device for main equipment and standby equipment
CN106330699B (en) Multicast link switching method and device and routing equipment
KR20110080996A (en) Method for router of virtual router redundancy protocol and communication system therefor
KR20130055392A (en) Method and appratus for protection switching in point-to- multipoint network
CN103607317A (en) Two-layer loop detection method, two-layer loop detection device and communication system
CN102255757A (en) Link switching method and device
WO2011095101A1 (en) Linear 1: n protection method, device and system for packet transport network
CN102769552B (en) A kind of method by transmission BFD message during BFD detection LSP and equipment
CN106161232B (en) tunnel protection switching method and device
CN107465527B (en) Network element, protection switching method and system thereof
WO2014079010A1 (en) Service protection method, device and system
CN103973537B (en) A kind of looped network with failure protection function and the fault protecting method for looped network
CN102447569B (en) Protection method for point-to-multipoint multicast service and network equipment
Zhang et al. A service protection mechanism impelemented on P4 by packet replication
CN112737938A (en) DRP switching method, device, equipment and medium
CN103795625A (en) Multi-protocol label switching network quick rerouting implementation method and device
CN112866045B (en) Link state detection method, multicast equipment and link state detection system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant