CN113328932B - Aggregation convergence method and device and routing equipment - Google Patents

Aggregation convergence method and device and routing equipment Download PDF

Info

Publication number
CN113328932B
CN113328932B CN202110706112.9A CN202110706112A CN113328932B CN 113328932 B CN113328932 B CN 113328932B CN 202110706112 A CN202110706112 A CN 202110706112A CN 113328932 B CN113328932 B CN 113328932B
Authority
CN
China
Prior art keywords
bfd
event message
processor
board
address information
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
CN202110706112.9A
Other languages
Chinese (zh)
Other versions
CN113328932A (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.)
New H3C Security Technologies Co Ltd
Original Assignee
New H3C Security Technologies Co Ltd
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 New H3C Security Technologies Co Ltd filed Critical New H3C Security Technologies Co Ltd
Priority to CN202110706112.9A priority Critical patent/CN113328932B/en
Publication of CN113328932A publication Critical patent/CN113328932A/en
Application granted granted Critical
Publication of CN113328932B publication Critical patent/CN113328932B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/245Link aggregation, e.g. trunking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/16Multipoint routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/60Router architectures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering

Abstract

The specification provides a convergence method, a convergence device and a routing device, and relates to the technical field of communication. An aggregation convergence method is applied to a network processor of a cable card board, and comprises the following steps: if the BFD detection message which is connected and sent by the aggregation member port of the opposite terminal is determined not to be received within the preset time, the BFD session identification of the aggregation member port of the offline is obtained; generating a BFD event message according to the stored multicast address information and the acquired BFD session identifier; and sending the BFD event message to an exchange chip of the line card board so that the exchange chip respectively carries out aggregation convergence to the processor of the board and processors on other line card boards in the network equipment according to the multicast address information and the BFD session identification carried by the BFD event message. By the method, the convergence rate of the routing equipment can be increased.

Description

Aggregation convergence method and device and routing equipment
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a convergence method and apparatus, and a routing device.
Background
In order to meet the increasing demand of bandwidth and reliability of the ethernet link, the application of aggregation ports is more and more extensive, and the number of aggregation member ports is more and more. In a high-performance router, an aggregation port can contain 64 aggregation member ports, and the link bandwidth and the link reliability of the aggregation port are greatly improved.
The aggregation member ports may be distributed on different line card boards and different daughter cards, in order to quickly detect a link failure of the aggregation member ports and accelerate convergence of the aggregation ports, a 10ms × 3 BFD (Bidirectional Forwarding Detection) session needs to be configured under the aggregation ports, that is, BFD messages are interacted once every 10ms, and when 3 consecutive BFD messages sent by an opposite end are not received (that is, 30ms), the link failure of the aggregation member ports is determined. On the line card board, the BFD event message is uploaded to a processor of the board for analysis, and a failure aggregation member port is removed to realize a convergence process, and then the processor informs the main control board of the determined failure aggregation member port so that the main control board can inform other line card boards in the network equipment, thereby realizing the convergence of the network equipment.
With the increase of the requirement on the detection speed, the link failure of the aggregation member port, and the convergence time of the aggregation port needs to be within 50ms, so that the requirement can be met when one aggregation member port fails. However, when multiple aggregation member ports fail simultaneously, for example, a daughter card with 10 aggregation member ports is pulled out, the processor of the board needs to analyze the BFD event message, remove the failed aggregation member ports one by one to implement convergence, and notify other line card boards in the network device to converge after convergence is completed. Therefore, when a plurality of aggregation member ports fail, how to quickly converge the aggregation ports becomes a problem to be solved urgently by those skilled in the art.
Disclosure of Invention
To overcome the problems in the related art, the present specification provides an aggregation convergence method, apparatus, and routing device.
In combination with the first aspect of the embodiments of the present specification, the present application provides a convergence method applied to a switch chip of a cable card board, including:
receiving a BFD event message sent by a network processor, wherein the BFD event message carries multicast address information;
if the multicast address information hits the multicast table entry stored in the exchange chip, sending a BFD event message to the processor on the board and the processors on other line card boards in the routing equipment through the output port recorded in the multicast table entry, so that each processor in the routing equipment performs aggregation convergence according to the BFD event message.
Optionally, before receiving the BFD event packet sent by the network processor, the method further includes:
receiving a multicast table item which is issued by a main control board and recorded with multicast address information, wherein the multicast table item also records an output port corresponding to the multicast address information; the output port comprises a first port connected with the processor of the cable card board and a second port connected with the main control board.
Optionally, the output port further includes a third port connected to the standby main control board.
In combination with the second aspect of the embodiments of the present specification, the present application provides an aggregation convergence method applied to a network processor of a cable card board, including:
if the BFD detection message which is connected and sent by the aggregation member port of the opposite terminal is determined not to be received within the preset time, the BFD session identification of the aggregation member port of the offline is obtained;
generating a BFD event message according to the stored multicast address information and the acquired BFD session identifier;
and sending the BFD event message to an exchange chip of the line card board so that the exchange chip respectively carries out aggregation convergence to a processor of the board and processors on other line card boards in the network equipment according to the multicast address information according to the BFD session identification carried by the BFD event message.
Optionally, the method further includes:
receiving an encapsulation identifier issued by a main control board in the routing equipment and two-layer encapsulation information corresponding to the encapsulation identifier, wherein the multicast address information is recorded in the two-layer encapsulation information;
generating a BFD event message according to the stored multicast address information and the obtained BFD session identifier, wherein the method comprises the following steps:
if the BFD event message is determined to be generated, searching two-layer encapsulation information corresponding to the encapsulation identifier according to the corresponding encapsulation identifier;
and generating a BFD event message carrying a BFD session identifier according to the multicast address information contained in the two-layer encapsulation information.
With reference to the third aspect of the embodiments of the present specification, the present application provides a convergence device applied to a switch chip of a cable card board, including:
a receiving unit, configured to receive a BFD event packet sent by a network processor, where the BFD event packet carries multicast address information;
and the sending unit is used for sending the BFD event message to the processor on the board and the processors on other line card boards in the routing equipment through the output port recorded in the multicast table item if the multicast address information hits the multicast table item stored in the exchange chip, so that each processor in the routing equipment performs aggregation convergence according to the BFD event message.
Optionally, the apparatus further includes:
the recording unit is used for receiving a multicast list item which is issued by the main control board and recorded with multicast address information, wherein the multicast list item also records an output port corresponding to the multicast address information; the output port comprises a first port connected with the processor of the cable card board and a second port connected with the main control board.
Optionally, the output port further includes a third port connected to the standby main control board.
In combination with the fourth aspect of the embodiments of the present specification, the present application provides an aggregation convergence device, which is applied to a network processor of a cable card board, and includes:
the detection unit is used for acquiring a BFD session identifier of the offline aggregation member port if the connected BFD detection message sent by the aggregation member port of the opposite terminal is determined not to be received within the preset time;
a generating unit, configured to generate a BFD event message according to the stored multicast address information and the obtained BFD session identifier;
and the sending unit is used for sending the BFD event message to the exchange chip of the line card board so that the exchange chip can respectively carry out aggregation convergence to the processor of the board and processors on other line card boards in the network equipment according to the multicast address information and the BFD session identification carried by the BFD event message.
Optionally, the apparatus further includes:
a receiving unit, configured to receive an encapsulation identifier issued by a main control board in a routing device and two-layer encapsulation information corresponding to the encapsulation identifier, where multicast address information is recorded in the two-layer encapsulation information;
a generation unit comprising:
the searching module is used for searching the two-layer packaging information corresponding to the packaging identifier according to the corresponding packaging identifier if the BFD event message is determined to be generated;
and the encapsulation module is used for generating a BFD event message carrying a BFD session identifier according to the multicast address information contained in the two-layer encapsulation information.
In combination with the fifth aspect of the embodiments of the present specification, the present application provides a routing device, including a main control board and at least two wire clamping boards;
the wire clamping board is provided with a processor, a network processor and a switching chip, wherein the switching chip is used for executing the steps of the method, and the network processor is used for executing the steps of the method.
Optionally, the processor on the main control board is configured to issue a first multicast entry to the switch chip of the line card board, where an output interface of the first multicast entry includes a first interface connected to the processor of the line card board and a second interface connected to the main control board; sending the multicast address information to a network processor of the line card board; and forwarding the BFD event message to other line card boards in the routing equipment based on the second multicast table entry stored in the main control board.
The technical scheme provided by the implementation mode of the specification can have the following beneficial effects:
in the embodiment of the present specification, when a network processor detects a BFD fault, a BFD event packet including multicast address information is encapsulated, and multicast table entries including multicast address information and hardware are sent to and received from an exchange chip of a line card board, so that the exchange chip can forward the BFD event packet to a processor of the line card board through hardware to perform aggregation convergence of the line card board, and send the BFD event packet to processors of other line card boards in a routing device to perform aggregation convergence, thereby avoiding simultaneous faults of multiple aggregation ports, and avoiding a problem that a long time is consumed to notify other line card boards to perform aggregation convergence after aggregation convergence by the processors of the line card board, reducing time for aggregation convergence of the whole routing device, and improving efficiency of aggregation convergence.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the specification.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present specification and together with the description, serve to explain the principles of the specification.
Fig. 1 is a flowchart of an aggregate convergence method according to the present application, applied to an NP of a cable card board;
fig. 2 is a schematic structural diagram of a routing device according to the present application;
fig. 3 is a flowchart of an aggregation convergence method according to the present application, applied to a switch chip of a cable card board;
fig. 4 to 6 are schematic diagrams illustrating interaction between BFD messages and BFD event messages when performing BFD detection between routing devices according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a convergence device according to the present application, applied to a switch chip of a cable card board;
fig. 8 is a schematic structural diagram of a convergence device according to the present application, applied to an NP of a cable card board.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present specification.
The application provides a convergence method, which is applied to a network processor of a cable card board, as shown in fig. 1, and includes:
s100, if the BFD detection message which is connected and sent by the aggregation member port of the opposite terminal is determined not to be received within the preset time, the BFD session identification of the aggregation member port of the offline is obtained.
Routing equipment, as shown in fig. 2, may include a main control board and line card boards, and the number of the line card boards may be multiple, and is set according to the actual requirements of the routing equipment. The main control boards may also be configured in a master-slave manner, that is, the routing device may be configured with two main control boards, including a master main control board and a slave main control board. In the routing equipment, the main control board and the standby main control board are all connected with the line card board. Specifically, a Processor and a switch chip may be disposed on the main control board, and a Processor, a switch chip, and an NP (Network Processor) may be disposed on the line card. On the line card board, a plurality of NPs and a processor are respectively connected to the exchange chip, and on the main control board, the processor is connected with the exchange chip. And the main control board and the line card board are interconnected through the exchange chip. Of course, other devices may be included in the main control board and the cable card board, and will not be described herein.
The NP may include a plurality of network ports connected to the outside, through which an aggregation port may be established with a routing device of the opposite end, and each network port in the aggregation port may be referred to as an aggregation member port of the aggregation port. In the routing device, a member list may be maintained, where the member list includes all aggregation member ports of an aggregation port, and the aggregation port is configured with an aggregation port identifier, and the member list corresponding to the aggregation port may be determined according to the aggregation port identifier.
In order to detect the communication status of the aggregation port and the aggregation member port, detection may be performed based on the BFD protocol. Specifically, the routing device may establish a BFD session for each aggregation member port, and send a BFD packet to the routing device of the opposite end according to a certain period, and in a plurality of consecutive periods, if the BFD packet of the opposite end is not received, it may be considered that a failure occurs between the aggregation member ports. During detection, the routing device may determine a communication state with the routing device of the peer end in an active manner and a passive manner, for example, the NP may continuously send a BFD packet to the peer end, or may reflect the received BFD packet to the peer end when receiving the BFD packet sent by the routing device of the peer end, and the specific detection manner is not limited.
When the NP determines that one aggregation member port has a fault, the session identifier corresponding to the BFD session can be determined, and the notification through the BFD event message is determined.
S101, generating a BFD event message according to the stored multicast address information and the obtained BFD session identification.
In the routing device, the main Control board may issue multicast address information for the NP in advance, and may include a multicast MAC (Media Access Control) address and a VLAN (Virtual Local Area Network) identifier. When the NP determines that the BFD event message needs to be notified, the multicast address information can be read out and used as a destination MAC address and a VLAN identification of the BFD event message. The BFD event message may also carry the determined BFD session identifier corresponding to the aggregation member port.
And S102, sending the BFD event message to an exchange chip of the line card board so that the exchange chip carries out aggregation convergence to a processor of the board and processors on other line card boards in the network equipment according to the multicast address information and the BFD session identification carried by the BFD event message.
After the NP generates the BFD event message, the BFD event message needs to be uploaded to the processor for protocol processing, and at this time, the BFD event message needs to be directly uploaded to the switch chip of the board. The main control board issues multicast list items in advance, the destination MAC address in the multicast list items is the multicast MAC address, and the VLAN is the VLAN identification of the multicast address information. The multicast table entry may have a plurality of output ports to implement multicast, for example, the multicast table entry may include a port between a switch chip and a processor, a port between a switch chip and a switch chip of the main control board, and a port between switch chips of the standby main control board.
The switching chip can copy the BFD event message according to the multicast list item and respectively forward the BFD event message through the output port recorded in the multicast list item. At this time, the processor of the board can receive the BFD event message, and according to the BFD session identifier carried therein, remove the aggregation member port corresponding to the session identifier from the member list of the aggregation port, thereby implementing the aggregation convergence of the line card board; when the BFD event message is sent to the standby main control board, the standby main control board does not process the BFD event message because the main control board normally works; when the BFD event message is sent to the main control board, another multicast table entry may be pre-stored on the main control board, the multicast table entry also serves as a matching entry according to the multicast MAC address and the VLAN id, and the output port points to all or part of the line card boards in the routing device. And the switching chips on other line card boards can send the BFD event message to the processor for convergence through a processing flow similar to that of the line card board.
Through the multicast forwarding process, the main control board and the line card board in the routing equipment can respectively realize convergence without waiting for convergence of the board, i.e. the time required by convergence is reduced, thereby improving the efficiency of convergence of the routing equipment.
Optionally, the method further includes:
s103, receiving the encapsulation identification issued by the main control board in the routing device and the two-layer encapsulation information corresponding to the encapsulation identification.
The routing device may be preconfigured with an encapsulation identifier for encapsulating the BFD event packet and two-layer encapsulation information corresponding to the encapsulation identifier. The two-layer encapsulation information records multicast address information, and certainly may also include information such as a message type, a source port, a destination port, and the like, which is not described herein.
After receiving the encapsulation identifier and the two-layer encapsulation information, the NP may store the information locally and use the information for encapsulation when generating the BFD event packet.
Step S101, generating a BFD event message according to the stored multicast address information and the obtained BFD session identifier, including:
S101A, if the BFD event message is determined to be generated, searching the two-layer encapsulation information corresponding to the encapsulation identifier according to the corresponding encapsulation identifier.
S101B, according to the multicast address information contained in the two-layer encapsulation information, generating a BFD event message carrying a BFD session identifier.
When the NP determines that a link failure is detected and a BFD event message needs to be generated for notification, the NP can search based on the encapsulation identifier and determine the two-layer encapsulation information corresponding to the encapsulation identifier.
And then, carrying the determined BFD session identifier in a message load, and encapsulating the message load at an outer layer according to the two-layer encapsulation information to generate a BFD event message.
Of course, the specific manner of generating and encapsulating may also be other manners, which is not limited herein, and only needs to carry the BFD session identifier and the multicast address information in the finally generated BFD event packet.
The application provides a convergence method, which is applied to a switch chip of a cable card board, as shown in fig. 3, and includes:
and S300, receiving the BFD event message uploaded by the NP.
And S301, if the multicast address information hits the multicast table entry stored in the switching chip, sending a BFD event message to the processor on the board and the processors on other line card boards in the routing equipment through the output port recorded in the multicast table entry, so that each processor in the routing equipment performs aggregation convergence according to the BFD event message.
The BFD event message received by the switch chip may carry multicast address information. At this time, if the destination MAC address and the VLAN id in the multicast address information can hit the multicast entry stored in the multicast address information, it is considered that multicast forwarding can be performed on the BFD event packet.
Then, on the switching chip, the BFD event message can be copied and multicast-forwarded according to the output port, so that the switching chips of the own processor and the main and standby main control boards can receive the BFD event message.
After receiving the BFD event message, the main control board may perform multicast forwarding in a similar manner, so that the processor of the main control board and the switching chips of the other line card boards receive the BFD event message. At this time, the processor of the main master control board also performs convergence of the software table according to the BFD event packet.
After the switching chips of the other line card boards receive the BFD event message, the multicast forwarding is performed in the similar manner as described above, so that the processors on the other line card boards can receive the BFD event message, thereby realizing the convergence of the line card board.
Optionally, before receiving the BFD event packet sent by the network processor in step S300, the method further includes:
s302, receiving the multicast list item which is issued by the main control board and recorded with the multicast address information.
The multicast table entry also records an output port corresponding to the multicast address information, and the output port comprises a first port connected with the processor of the cable card board and a second port connected with the main control board.
Optionally, the output port further includes a third port connected to the standby main control board.
In the following, a description is given of an aggregation convergence method according to a specific embodiment, where the routing device 1, as shown in fig. 4, includes: the main control board, the spare main control board and 3 cable card boards, of course, the number of the cable card boards is not limited to this.
The line card board 1 is provided with a processor 1, a switching chip 1, NP10 and NP11, the line card board 2 is provided with a processor 2, a switching chip 2, NP20 and NP21, the line card board 3 is provided with a processor 3, a switching chip 3, NP30 and NP31, the main control board is provided with a processor 4 and a switching chip 4, and the standby main control board is provided with a processor 5 and a switching chip 5. Each NP may be provided with two ports to establish an aggregation port with the opposite routing device, that is, the routing device 2, where the aggregation port is established with the routing device 2 through the NPs 11, 20 of the line card board 1 on the routing device 1. NP10 includes ports 100, 101, NP11 includes ports 110, 111, NP20 includes ports 200, 201, and NP21 includes ports 210, 211. The ports 110, 111, 200, and 201 of the NP11 and NP20 form an aggregation port, and each processor may record an aggregation port and a member list of aggregation member ports included in the aggregation port.
The switching chip 4 on the main control board and the switching chip 5 on the standby main control board are respectively connected with the switching chips 1-3 on the line card boards 1-3.
S1, the processor on the line card board sends the member list, the package mark and the two-layer package information of the aggregation port to NP, the processor on the main control board sends the multicast list item to the exchange chip of the board and the exchange chip on the line card board.
The information required for packaging the BFD event message is recorded in the two-layer packaging information, wherein the information comprises a multicast MAC address, and the two-layer packaging information required for packaging and forming the BFD event message is pointed by the packaging identifier.
The NP on the line card board records the package identifier and the two-layer package information, and the switch chip records the multicast table entry, it should be noted that the contents recorded by the multicast table entry on the line card board and the multicast table entry on the main control board are different and need to be calculated and issued respectively.
Of course, it should be noted that, regarding the multicast table entry, the member list of the aggregation port, the encapsulation identifier, and the two-layer encapsulation information, the multicast table entry, the member list of the aggregation port, the encapsulation identifier, and the two-layer encapsulation information may also be issued in a unified manner by the processor of the main control board, and only the respective issuance of the main control board and the line card board is described herein as an example.
S2, establishing BFD conversation between NP of the line card board and the route equipment of the opposite terminal, and sending BFD messages between the route equipment.
On NPs 11, 20 of routing device 1, the corresponding relationships between the BFD sessions and ports are respectively established, that is, port 110 corresponds to BFD session 1, port 111 corresponds to BFD session 2, port 200 corresponds to BFD session 3, and port 201 corresponds to BFD session 4. The NP11 and NP20 periodically generate BFD messages and transmit them to the routing device 2, respectively.
Under the condition that the routing equipment works normally, each aggregation member port can receive the BFD message sent by the routing equipment of the opposite end, and refreshes a timer aiming at each BFD session when receiving the BFD message and times again.
S3, the NP of the line card board detects the link failure.
At this time, if a port of the routing device 2 corresponding to the line card board 1 fails, which results in that aggregation member ports in the aggregation ports, that is, the port 110 and the port 111, cannot detect the BFD packet sent by the routing device 2 in three cycles, indicating that the port 110 and the port 111 become offline states, the NP11 needs to generate a BFD event packet.
S4, the NP of the cable card board obtains the BFD conversation mark and searches the corresponding two-layer packaging information according to the packaging mark.
S5, the NP of the line card board generates BFD event message according to the two-layer encapsulation information and the BFD conversation mark.
The BFD event message carries a BFD session identifier 1 and a BFD session identifier 2, and when encapsulated, the multicast MAC address and the VLAN identifier are carried in the two-layer encapsulation to form a BFD event message.
S6, the NP of the line card board sends the BFD event message to the exchange chip of the board.
S7, the switching chip of the line card board searches its own forwarding table, hits the multicast table entry in the forwarding table, and obtains the corresponding exit port in the multicast table entry.
And S8, copying and sending the BFD event message by the exchange chip of the line card board according to the output port in the multicast list item.
After receiving the BFD event message, the switch chip 1 of the online card 1 searches a forwarding table according to the multicast MAC address and the VLAN identifier in the two-layer package, hits the multicast entry recorded with the multicast MAC address and the VLAN identifier, and determines that the BFD event message needs to be multicast-forwarded. The output port of the multicast table entry includes the output ports of the processor 1 corresponding to the board, the switching chip 4 of the main control board and the switching chip 5 of the standby main control board.
At this time, the switch chip 1 may copy the BFD event message and send the BFD event message through the corresponding egress port, as shown in fig. 5.
S9, the processor of the cable card board obtains the corresponding aggregation member port according to the BFD session identification carried in the BFD event message, then determines the member list of the aggregation port according to the identification of the aggregation member port, and eliminates the aggregation member port corresponding to the BFD session identification from the member list.
Processor 1 determines that the link corresponding to port 110 and port 111 has a fault according to BFD session identifier 1 and BFD session identifier 2, and removes port 110 and port 111 from the member list of the aggregated member port. Thus, the cable card board 1 completes convergence to the convergence port.
And S10, the switching chip of the main control board receives the BFD event message, searches the forwarding table and obtains an output port according to the hit multicast table item.
And S11, copying and forwarding the BFD event message by the exchange chip of the main master control board according to the output port.
Similar to the processing of the switching chip 1 of the line card board 1, the switching chip 4 copies the BFD event message after hitting the multicast entry, and sends the BFD event message to the line card board 2 and the line card board 3 through the output ports (ports corresponding to the switching chip 2 of the line card board 2 and the switching chip 3 of the line card board 3) recorded in the multicast entry, as shown in fig. 6.
After receiving the BFD event message, the switching chip 2 of the line card board 2 and the switching chip 3 of the line card board 3 execute a process similar to the steps S7 to S9, and send the BFD event message to the processor 2 and the processor 3 for convergence, so that the routing device as a whole completes convergence of the aggregation port.
And S12, the standby main control board receives the BFD event message, and discards the BFD event message when determining that the standby main control board is the standby main control board.
The standby main control board does not process the message under the condition that the main control board works normally, so the BFD event message is discarded.
Correspondingly, the present application provides a convergence device, which is applied to a switch chip of a cable card board, as shown in fig. 7, and includes:
a receiving unit, configured to receive a BFD event packet sent by a network processor, where the BFD event packet carries multicast address information;
and the sending unit is used for sending the BFD event message to the processor on the board and the processors on other line card boards in the routing equipment through the output port recorded in the multicast table item if the multicast address information hits the multicast table item stored in the exchange chip, so that each processor in the routing equipment performs aggregation convergence according to the BFD event message.
Optionally, the apparatus further includes:
the recording unit is used for receiving a multicast list item which is issued by the main control board and recorded with multicast address information, wherein the multicast list item also records an output port corresponding to the multicast address information; the output port comprises a first port connected with the processor of the cable card board and a second port connected with the main control board.
Optionally, the output port further includes a third port connected to the standby main control board.
Correspondingly, the present application provides an aggregation convergence device, which is applied to an NP of a cable card board, as shown in fig. 8, and includes:
the detection unit is used for acquiring a BFD session identifier of the offline aggregation member port if the connected BFD detection message sent by the aggregation member port of the opposite terminal is determined not to be received within the preset time;
a generating unit, configured to generate a BFD event message according to the stored multicast address information and the obtained BFD session identifier;
and the sending unit is used for sending the BFD event message to the exchange chip of the line card board so that the exchange chip can respectively carry out aggregation convergence to the processor of the board and processors on other line card boards in the network equipment according to the multicast address information and the BFD session identification carried by the BFD event message.
Optionally, the apparatus further includes:
a receiving unit, configured to receive an encapsulation identifier issued by a main control board in a routing device and two-layer encapsulation information corresponding to the encapsulation identifier, where multicast address information is recorded in the two-layer encapsulation information;
a generation unit comprising:
the searching module is used for searching the two-layer packaging information corresponding to the packaging identifier according to the corresponding packaging identifier if the BFD event message is determined to be generated;
and the encapsulation module is used for generating a BFD event message carrying a BFD session identifier according to the multicast address information contained in the two-layer encapsulation information.
Correspondingly, the application provides a routing device, as shown in fig. 2, including a main control board and at least two line card boards;
the line card board is provided with a processor, an NP and a switching chip, the switching chip is used for executing the steps of the method, and the NP is used for executing the steps of the method.
Optionally, the processor on the main control board is configured to issue a first multicast entry to the switch chip of the line card board, where an output interface of the first multicast entry includes a first interface connected to the processor of the line card board and a second interface connected to the main control board; sending multicast address information to NP of the line card board; and forwarding the BFD event message to other line card boards in the routing equipment based on the second multicast table entry stored in the main control board.
In the embodiment of the present specification, when a network processor detects a BFD fault, a BFD event packet including multicast address information is encapsulated, and multicast table entries including multicast address information and hardware are sent to and received from an exchange chip of a line card board, so that the exchange chip can forward the BFD event packet to a processor of the line card board through hardware to perform aggregation convergence of the line card board, and send the BFD event packet to processors of other line card boards in a routing device to perform aggregation convergence, thereby avoiding simultaneous faults of multiple aggregation ports, and avoiding a problem that a long time is consumed to notify other line card boards to perform aggregation convergence after aggregation convergence by the processors of the line card board, reducing time for aggregation convergence of the whole routing device, and improving efficiency of aggregation convergence.
It will be understood that the present description is not limited to the precise arrangements that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof.
The above description is only for the purpose of illustrating the preferred embodiments of the present disclosure and is not to be construed as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (12)

1. A convergence method is characterized in that a switching chip applied to a wire clamping plate comprises the following steps:
receiving a Bidirectional Forwarding Detection (BFD) event message sent by a network processor, wherein the BFD event message carries multicast address information;
and if the multicast address information hits the multicast table entry stored in the exchange chip, sending a BFD event message to the processor on the local board and the processors on other line card boards in the routing equipment through the output port recorded in the multicast table entry, so that each processor in the routing equipment performs aggregation convergence according to the BFD event message.
2. The method of claim 1, further comprising, prior to receiving the BFD event message uploaded by the network processor:
receiving a multicast table item which is issued by a main control board and recorded with multicast address information, wherein the multicast table item also records an output port corresponding to the multicast address information; the outlet port comprises a first port connected with the processor of the cable clamp board and a second port connected with the main control board.
3. The method of claim 2, wherein the egress port further comprises a third port connected to a standby master control board.
4. An aggregation convergence method is characterized in that a network processor applied to a cable card board comprises the following steps:
if the BFD detection message which is connected and sent by the aggregation member port of the opposite terminal is determined not to be received within the preset time, the BFD session identification of the aggregation member port of the offline is obtained;
generating a BFD event message according to the stored multicast address information and the acquired BFD session identifier;
and sending the BFD event message to an exchange chip of the line card board so that the exchange chip sends the BFD event message to a processor of the board and processors on other line card boards in the routing equipment respectively according to the multicast address information, and each processor performs aggregation convergence according to a BFD session identifier carried by the BFD event message.
5. The method of claim 4, further comprising:
receiving an encapsulation identifier issued by a main control board in a routing device and two-layer encapsulation information corresponding to the encapsulation identifier, wherein the multicast address information is recorded in the two-layer encapsulation information;
the generating a BFD event message according to the stored multicast address information and the obtained BFD session identifier includes:
if the BFD event message is determined to be generated, searching two-layer encapsulation information corresponding to the encapsulation identification according to the corresponding encapsulation identification;
and generating a BFD event message carrying a BFD session identifier according to the multicast address information contained in the two-layer encapsulation information.
6. A convergence device for a switching chip of a cable card board, comprising:
a receiving unit, configured to receive a BFD event packet sent by a network processor, where the BFD event packet carries multicast address information;
and a sending unit, configured to send a BFD event message to the processor on the board and the processors on other line card boards in the routing device through the output port recorded in the multicast table entry if the multicast address information hits the multicast table entry stored in the switch chip, so that each processor in the routing device performs convergence according to the BFD event message.
7. The apparatus of claim 6, further comprising:
the recording unit is used for receiving a multicast table item which is issued by a main control board and records multicast address information, wherein the multicast table item also records an output port corresponding to the multicast address information; the outlet port comprises a first port connected with the processor of the cable clamp board and a second port connected with the main control board.
8. The apparatus of claim 7, wherein the egress port further comprises a third port connected to a standby master control board.
9. An aggregation convergence device applied to a network processor of a cable card board comprises:
the detection unit is used for acquiring a BFD session identifier of the aggregation member port of the offline if the fact that the connected BFD detection message sent by the aggregation member port of the opposite terminal is not received within the preset time is determined;
a generating unit, configured to generate a BFD event message according to the stored multicast address information and the obtained BFD session identifier;
and the sending unit is used for sending the BFD event message to an exchange chip of the line card board so that the exchange chip sends the BFD message to a processor of the board and processors on other line card boards in the routing equipment respectively according to the multicast address information, and each processor performs aggregation convergence according to the BFD session identifier carried by the BFD event message.
10. The apparatus of claim 9, further comprising:
a receiving unit, configured to receive an encapsulation identifier issued by a main control board in a routing device and two-layer encapsulation information corresponding to the encapsulation identifier, where the multicast address information is recorded in the two-layer encapsulation information;
the generation unit includes:
the searching module is used for searching the two-layer packaging information corresponding to the packaging identifier according to the corresponding packaging identifier if the BFD event message is determined to be generated;
and the encapsulation module is used for generating a BFD event message carrying a BFD session identifier according to the multicast address information contained in the two-layer encapsulation information.
11. A routing device is characterized by comprising a main control board and at least two wire clamping boards;
the cable card board is provided with a processor, a network processor and a switching chip, the switching chip is used for executing the method steps of any one of the claims 1-3, and the network processor is used for executing the method steps of the claim 4 or 5.
12. The routing device according to claim 11, wherein the processor on the main control board is configured to issue a first multicast entry to a switch chip of a line card board, wherein an outgoing interface of the first multicast entry includes a first port to which the switch chip is connected with the processor of the line card board and a second interface to which the switch chip is connected with the main control board; sending multicast address information to a network processor of the cable card board; and forwarding the BFD event message to other line card boards in the routing equipment based on the second multicast table entry stored in the main control board.
CN202110706112.9A 2021-06-24 2021-06-24 Aggregation convergence method and device and routing equipment Active CN113328932B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110706112.9A CN113328932B (en) 2021-06-24 2021-06-24 Aggregation convergence method and device and routing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110706112.9A CN113328932B (en) 2021-06-24 2021-06-24 Aggregation convergence method and device and routing equipment

Publications (2)

Publication Number Publication Date
CN113328932A CN113328932A (en) 2021-08-31
CN113328932B true CN113328932B (en) 2022-05-27

Family

ID=77424786

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110706112.9A Active CN113328932B (en) 2021-06-24 2021-06-24 Aggregation convergence method and device and routing equipment

Country Status (1)

Country Link
CN (1) CN113328932B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117278345B (en) * 2023-11-20 2024-02-13 新华三技术有限公司 Energy saving method and device applied to network equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1889579A (en) * 2006-08-03 2007-01-03 杭州华为三康技术有限公司 Method and apparatus for raising route information protocol route convergence rate
CN101442485A (en) * 2008-12-18 2009-05-27 华为技术有限公司 Method, apparatus and system for forwarding multicast
CN101616019A (en) * 2008-06-26 2009-12-30 华为技术有限公司 A kind of method, network node and system that realizes that network failure detects
CN101909006A (en) * 2010-07-23 2010-12-08 北京星网锐捷网络技术有限公司 BFD (Bidirectional Forwarding Detection) message sending and receiving methods as well as device and communication system thereof
CN103916275A (en) * 2014-03-31 2014-07-09 杭州华三通信技术有限公司 BFD detection device and method
CN108449276A (en) * 2018-03-23 2018-08-24 新华三技术有限公司 Route convergent method and device
CN108768866A (en) * 2018-09-06 2018-11-06 迈普通信技术股份有限公司 Across the card retransmission method of multicast message, device, the network equipment and readable storage medium storing program for executing
US10805193B1 (en) * 2019-04-30 2020-10-13 Juniper Networks, Inc. Faster fault-detection mechanism, for example using bidirectional forwarding detection (BFD), on network nodes and/or hosts multihomed using a link aggregation group (LAG)

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1889579A (en) * 2006-08-03 2007-01-03 杭州华为三康技术有限公司 Method and apparatus for raising route information protocol route convergence rate
CN101616019A (en) * 2008-06-26 2009-12-30 华为技术有限公司 A kind of method, network node and system that realizes that network failure detects
CN101442485A (en) * 2008-12-18 2009-05-27 华为技术有限公司 Method, apparatus and system for forwarding multicast
CN101909006A (en) * 2010-07-23 2010-12-08 北京星网锐捷网络技术有限公司 BFD (Bidirectional Forwarding Detection) message sending and receiving methods as well as device and communication system thereof
CN103916275A (en) * 2014-03-31 2014-07-09 杭州华三通信技术有限公司 BFD detection device and method
CN108449276A (en) * 2018-03-23 2018-08-24 新华三技术有限公司 Route convergent method and device
CN108768866A (en) * 2018-09-06 2018-11-06 迈普通信技术股份有限公司 Across the card retransmission method of multicast message, device, the network equipment and readable storage medium storing program for executing
US10805193B1 (en) * 2019-04-30 2020-10-13 Juniper Networks, Inc. Faster fault-detection mechanism, for example using bidirectional forwarding detection (BFD), on network nodes and/or hosts multihomed using a link aggregation group (LAG)

Also Published As

Publication number Publication date
CN113328932A (en) 2021-08-31

Similar Documents

Publication Publication Date Title
US7558194B2 (en) Virtual private network fault tolerance
US6115751A (en) Technique for capturing information needed to implement transmission priority routing among heterogeneous nodes of a computer network
CN111865779B (en) Route synchronization method and cross-device link aggregation group
CN110166356A (en) Send the method and the network equipment of message
US20140019614A1 (en) Technique for efficiently and dynamically maintaining bidirectional forwarding detection on a bundle of links
CN101465859B (en) Method and device for triggering main and standby interface board inverse switch
US9008080B1 (en) Systems and methods for controlling switches to monitor network traffic
US20230015960A1 (en) Method and Apparatus for Establishing Forwarding Path, and Computer-Readable Storage Medium
JP5764820B2 (en) Transmission system and transmission system control method
US9054983B2 (en) Centralized control and management planes for different independent switching domains
US7457248B1 (en) Graceful shutdown of network resources in data networks
CN113328932B (en) Aggregation convergence method and device and routing equipment
WO2016124117A1 (en) Method, switching device and network controller for protecting links in software-defined network (sdn)
US8717909B1 (en) Methods and apparatus for route installation acknowledgement and acknowledgement aggregation in BGP
US20150301571A1 (en) Methods and apparatus for dynamic mapping of power outlets
WO2012088977A1 (en) Method, device and system for establishing lsp
CN102315972B (en) Method for realizing label switching path (LSP) switching and device
CN113037622B (en) System and method for preventing BFD from vibrating
US20230055239A1 (en) Communication control method and communication control apparatus
WO2014117474A1 (en) Routing method, system, and related device
CN112838982B (en) Message transmission path switching method, device and system
CN106992929A (en) A kind of pseudo-line service retransmission method and device
CN108965126B (en) Message forwarding method and device
JP2019168739A (en) Parallel computation system
CN112564931B (en) Fault processing method, device and storage medium

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