WO2022199033A1 - Network device, inter-board communication method, and storage medium - Google Patents

Network device, inter-board communication method, and storage medium Download PDF

Info

Publication number
WO2022199033A1
WO2022199033A1 PCT/CN2021/128587 CN2021128587W WO2022199033A1 WO 2022199033 A1 WO2022199033 A1 WO 2022199033A1 CN 2021128587 W CN2021128587 W CN 2021128587W WO 2022199033 A1 WO2022199033 A1 WO 2022199033A1
Authority
WO
WIPO (PCT)
Prior art keywords
port
control board
main control
line card
communication link
Prior art date
Application number
PCT/CN2021/128587
Other languages
French (fr)
Chinese (zh)
Inventor
焦赵云
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2022199033A1 publication Critical patent/WO2022199033A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/55Prevention, detection or correction of errors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/55Prevention, detection or correction of errors
    • H04L49/557Error correction, e.g. fault recovery or fault tolerance

Definitions

  • the present disclosure relates to the field of communications, and in particular, to a network device, an inter-board communication method and a storage medium.
  • chassis and board such as high-end switches, high-end routers, OLTs, and DSLAMs.
  • Boards are divided into active main control board, standby main control board and line card.
  • the control link between the active main control board, the standby main control board and the line card is called the inter-board communication link.
  • the connection method is that the switch chip on the active main control board is connected to the switch chip on the standby main control board and all the line cards, and the connection between the switch chip on the standby main control board and the line cards is during the main-standby switchover. Switch by switch.
  • the board-pluggable network device is to insert the board into the backplane, and there is a reliability problem due to the use of connectors for connection. For example, when the communication between a line card and the switch chip on the active main control board is interrupted, the communication between the main main control board and the line card can be restored only when the main control board is switched to the new main control board. When a line card cannot communicate with the switching chip on the new active main control board, it needs to be switched back, and there is a situation of repeated switching.
  • the present disclosure provides a network device, which can improve the stability of communication between boards and improve the efficiency of communication when both the main main control board and the standby main control board are disconnected from different line cards.
  • An embodiment of the present disclosure provides a network device, including a board card including: an active main control board, a standby main control board, and at least one line card; at least one communication port is used between the main main control board and the standby main control board Connection; at least two line card ports for inter-board communication are arranged on the line card, and at least two line card ports are respectively connected to the main main control board and the standby main control board, forming at least two main main control boards and lines
  • the embodiment of the present disclosure also provides an inter-board communication method applied to the above-mentioned network device, including: configuring at least two communication links formed between the main main control board and the line card; If any communication link between the main main control board and the line card is abnormal, another normal communication link is used to enable the main main control board to communicate with the line card.
  • Embodiments of the present disclosure further provide a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, implements the foregoing method steps.
  • FIG. 1 is a schematic diagram of a connection between boards in a network device in the prior art
  • FIG. 2 is a schematic structural diagram of a network device according to the first embodiment of the present disclosure
  • FIG. 3 is a schematic structural diagram of a network device according to a second embodiment of the present disclosure.
  • FIG. 4 is a schematic diagram of connections between components in a network device according to a second embodiment of the present disclosure.
  • FIG. 5 is a schematic diagram of an interconnection port in a network device according to a second embodiment of the present disclosure.
  • FIG. 6 is a schematic diagram of an aggregation group configured in a network device according to a second embodiment of the present disclosure
  • FIG. 7 is a schematic diagram of an aggregation group in another connection mode in a network device provided according to a second embodiment of the present disclosure.
  • FIG. 8 is a schematic diagram of an active/standby mode configured in a network device according to a third embodiment of the present disclosure.
  • FIG. 9 is a flowchart of a method for inter-board communication in a network device provided in a fourth embodiment of the present disclosure.
  • FIG. 1 A structural block diagram of a related network device is shown in FIG. 1 , and a current network device includes an active main control board, a standby main control board and at least one line card.
  • the control link between the active main control board, the standby main control board and the line card is called the inter-board communication link.
  • the communication link between boards and the service link are independent.
  • Commonly used communication links between boards are Ethernet or HDLC. Ethernet is the most commonly used communication method between boards.
  • the connection method is that the switch chip on the main main control board is connected to the standby main control board and all line cards, and the switch chip on the standby main control board is connected to the main main control board at the same time.
  • the control board is connected to all line cards, and the communication link of the line card port is switched through the switch on the line card.
  • Figure 1 shows the connection status of the active main control board and the backup main control board under normal conditions.
  • the connection shown in 1 the switch chip on the new active main control board is connected to the new standby main control board and all line cards.
  • the problem of disconnection of the line card is that when the communication between the line card 1 and the switch chip on the active main control board is interrupted, the communication between the main main control board and the line card can be restored only when the active and standby switches are switched to the new main control board. For communication, if the line card 2 cannot communicate with the switching chip on the new active main control board, it needs to be switched back, and repeated switching occurs.
  • the first embodiment of the present disclosure relates to a network device.
  • the network device includes an active main control board 10 , a standby main control board 20 and at least one line card 30 .
  • the main main control board 10 and the standby main control board 20 are connected through at least one communication port.
  • the line card 30 is provided with at least two line card ports, and the at least two line card ports are respectively connected to the main main control board 10 and the standby main control board 20 to form communication between the at least two main main control boards and the line cards. link. If any board detects that any communication link between the main main control board and the line card is abnormal, another normal communication link is used to enable the main main control board to communicate with the line card.
  • At least two line card ports are set on the line card of the network device, and the two line card ports are respectively connected to the main main control board and the standby main control board, so that the network device at the same time
  • the second embodiment of the present disclosure relates to a network device, the second embodiment is a detailed introduction to the first embodiment, and a structural block diagram of the network device is shown in FIG. 3 .
  • the main main control board includes a main main control board processor and a first forwarding chip connected to the main main control board processor.
  • the standby main control board includes a standby main control board processor and a second forwarding chip connected to the standby main control board processor.
  • a line card port is provided on the line card processor of the line card.
  • the first forwarding chip is connected to any line card port to form a first communication link between the processor of the main main control board and the line card.
  • the first forwarding chip and the second forwarding chip are connected through at least one communication port, and the second forwarding chip is connected with another line card port of the line card to form a second communication link between the first forwarding chip and the line card.
  • the active main control board processor is configured to configure the first communication link and the second communication link to be in a load sharing mode, or configured to configure the first communication link and the second communication link to be in an active/standby mode.
  • the network device may be a plug-in network device, the board is connected to the backplane in a plug-in manner, and the backplane is provided with a metal connector connected to the line card.
  • the outside of the network equipment is a frame structure, which is used to protect the board and facilitate the setting of the backplane.
  • the boards of the network device include an active main control board, a standby main control board, and line cards, and there may be multiple line cards, for example, two line cards, three or more line cards, and so on.
  • Each line card is provided with at least two line card ports.
  • the line card includes a line card processor and a line card forwarding chip.
  • the line card ports can be arranged on the line card processor or on the line card forwarding chip. If there are more than two standby main control boards, there can be more than three line card ports.
  • the two line card ports built into the line card processor are used as an example.
  • n is an integer greater than 2
  • the line card forwarding chip is not shown in the line card, and there are two communications between the main main control board and the line card processor of each line card
  • the links are respectively a first communication link and a second communication link.
  • the port on the first forwarding chip is directly connected to any line card port on the line card processor to form a first communication link.
  • the communication port of the first forwarding chip is connected to the communication port of the second forwarding chip, and the port of the second forwarding chip is connected to another line card port on the line card processor to form a second communication link.
  • the first communication link between the line card 1 and the first forwarding chip is marked as a solid line a1
  • the second communication link is marked as a2.
  • the number of communication links between the first forwarding chip and the second forwarding chip may be one or two, that is, port a of the first forwarding chip is connected to port a of the second forwarding chip, and the first forwarding chip is connected to port a of the second forwarding chip.
  • the b port of the second forwarding chip is connected to the b port of the second forwarding chip to form two communication links between the first forwarding chip and the second forwarding chip, as shown in FIG. 5 .
  • the active main control board processor is used to configure the communication port in the first forwarding chip for connecting to the second forwarding chip as the first stack port; the standby main control board processor is used to configure the communication port used in the second forwarding chip
  • the communication port connected to the first forwarding chip is the second stack port.
  • the main main control board processor and the standby main control board processor are respectively used for: configuring the port used for connecting the line card in the first forwarding chip and the port used for connecting the line card on the second forwarding chip as the first aggregation group .
  • the line card is used for configuring the line card port connected with the first forwarding chip and the line card port connected with the second forwarding chip to the second aggregation group of the board.
  • the first aggregation group is connected with the second aggregation group to form an aggregation link, so that the first communication link and the second communication link are in a load sharing mode.
  • the following describes the process of configuring the first communication link and the second communication link in the load sharing mode in detail with reference to FIG. 6 .
  • the communication port a of the first forwarding chip is connected to the communication port a of the second forwarding chip.
  • the communication port a on the first forwarding chip is configured as the first stack port
  • the communication port a on the second forwarding chip is The communication port a is configured as the second stack port.
  • the port p1 in the first forwarding chip is connected to the line card port 1 of the line card 1
  • the port p1 ′ of the second forwarding chip is connected to the line card port 2 of the line card 1 .
  • the active main control board processor is used to configure the port p1 on the active main control board processor and the port p1' on the standby main control board processor as the first aggregation group; the line card processor is used for connecting with the first forwarding chip
  • the connected line card port 1 and the line card port 2 connected to the second forwarding chip are configured as a second aggregation group, wherein the first aggregation group and the second aggregation group are connected to form an aggregation chain between the first forwarding chip and the line card path, so that the first communication link and the second communication link are configured in a load sharing mode.
  • FIG. 6 a schematic diagram of an aggregated link between the line card 1 and the first forwarding chip is shown with a bold solid line, and the aggregated mark is marked with a circle.
  • the active main control board processor and the standby main control board processor configure the first aggregation group information on the main control boards where they are located.
  • the first aggregation group information includes identification information of the first forwarding chip, information of the first port in the first forwarding chip for connecting with the line card, identification information of the second forwarding chip, and information in the second forwarding chip for connecting with the line card. Information about the connected second port.
  • the line card is also used to configure the second aggregation group information on the line card, where the second aggregation group information includes information on the line card port on the line card used to connect to the first forwarding chip and the line card used to connect to the second forwarding chip port information.
  • the first aggregation group information and the second aggregation group information are introduced with reference to FIG. 6 .
  • the identification information of the first forwarding chip is marked as card1
  • the identification information of the second forwarding chip is marked as card2
  • the information of the first port used to connect with the line card in the first forwarding chip is marked as p1
  • the information of the second forwarding chip is marked as p1.
  • the information of the second port connected to the line card is denoted as p1'.
  • the first aggregation group information stored in the active main control board processor is ⁇ card1-p1, card2-p1' ⁇ ; meanwhile, the standby main control board processor also stores the same first aggregation group information ⁇ card1-p1, card2- p1' ⁇ .
  • the line card processor 1 stores second aggregation group information ⁇ line card 1-port1, line card 1-port2 ⁇ .
  • first forwarding chip and the second forwarding chip are connected through two communication ports.
  • the three-aggregation information includes port information of the third stack port and port information of the first stack port.
  • the standby main control board processor is further configured to configure another port in the second forwarding chip for connecting to the first forwarding chip as a fourth stacking port; configure the second stacking port and the fourth stacking port as a fourth aggregation group, and Fourth aggregation group information is stored, where the fourth aggregation group information includes port information of the second stack port and port information of the fourth stack port.
  • the first aggregation group, the second aggregation group, the third aggregation group and the fourth aggregation group are connected to each other to form an aggregation link.
  • the following describes the case where the first forwarding chip and the second forwarding chip are connected through two communication ports with reference to FIG. 7 .
  • the port p4 in the first forwarding chip is configured as the third stacking port
  • the port p4' in the second forwarding chip is configured as the fourth stacking port
  • the main control board processor is used to connect the Ports p3 and p4 are configured as a third aggregation group
  • ports p3' and p4' are configured as a fourth aggregation group.
  • the identification information of the first forwarding chip is marked as card1
  • the identification information of the second forwarding chip is marked as card2
  • the information of the first port in the first forwarding chip for connecting to the line card is marked as p1
  • the first The information of the second port in the two forwarding chips for connecting with the line card is denoted as p1'.
  • the first stack port is denoted as p3, the third stack port is denoted as p4, the second stack port is denoted as p3', and the fourth stack port is denoted as p4'.
  • the first aggregation group information stored in the active main control board processor is ⁇ card1-p1, card2-p1' ⁇ ; meanwhile, the standby main control board processor also stores the same first aggregation group information ⁇ card1-p1, card2- p1' ⁇ .
  • the line card processor 1 stores second aggregation group information ⁇ line card 1-port1, line card 1-port2 ⁇ .
  • the third aggregation group information stored by the processor of the active main control board is ⁇ card1-p3, card1-p4 ⁇ , and the fourth aggregation group information is ⁇ card2-p3', card2-p4' ⁇ .
  • first forwarding chip and the second forwarding chip are each connected through two ports, there are two communication links between the first forwarding chip and the second forwarding chip, and they are configured as an aggregation group. If one of the links is abnormal, the If it is in the disconnected state, the communication between the first forwarding chip and the second forwarding chip will not be affected, which further improves the reliability of the communication between the boards.
  • the interconnected ports in the network device are all configured in the auto-negotiation mode; or, the interconnected ports in the network device are all configured in the remote fault notification mode.
  • the line card port 1 in the line card processor and the port p1 of the first forwarding chip are both configured in auto-negotiation mode.
  • the port p1' of the second forwarding chip and the line card port 2 of the line card processor are also configured in auto-negotiation mode
  • the communication port p3 on the first forwarding chip and the communication port p3' on the second forwarding chip are configured as In the auto-negotiation mode
  • the communication port p4 on the first forwarding chip and the communication port p4' on the second forwarding chip are configured in the auto-negotiation mode.
  • the line card port 1 and port p1 in the line card processor are configured in forced mode, and the remote fault notification function is enabled.
  • the port p1' on the second forwarding chip is connected to The line card port 2 in the line card processor is also configured in the forced mode, and the remote fault notification function is enabled, and the communication port p3 of the first forwarding chip and the communication port p3' on the second forwarding chip are configured in the forced mode, The communication port p4 of the first forwarding chip and the communication port p4' of the second forwarding chip are configured in forced mode, and the remote fault notification function is enabled.
  • the two connected ports can learn the state of the opposite end from each other, so that the two connected ports maintain the same port state.
  • the remote fault notification function is enabled on the 10G port, if one of the two interconnected ports fails, it will actively notify the peer end to keep the peer port in the same link state.
  • the active main control board processor is further configured to: if it is detected that the physical state of the first port changes, delete or add the first port aggregation information in the first aggregation group information, and reset the first port the logical forwarding state, and send the information of the physical state of the first port to the standby main control board processor, so that the standby main control board processor can delete or add the first port in the first aggregated information on the main control board where it is located Aggregation information, wherein the first port aggregation information includes information of the first port and identification information of the first forwarding chip.
  • the standby main control board processor is further configured to: if it is detected that the physical state of the second port changes, delete or add the second port aggregation information in the first aggregation group information, reset the logical forwarding state of the second port, and Sending information about the physical state of the second port to the active main control board processor, so that the active main control board processor deletes or adds the second port aggregation information in the first aggregation information on the main control board where it is located, wherein , the second port aggregation information includes information of the second port and identification information of the second forwarding chip.
  • the line card is also used for: if it is detected that the physical state of the line card port changes, delete or add the line card port aggregation information in the second aggregation information, and reset the logical forwarding state of the line card port of the changed state, and the line card Port aggregation information includes port information of line card ports.
  • the processor of the active main control board detects that the physical state of the first port is changed from the connected state to the disconnected state, and deletes the information of the first port and the identification information of the first forwarding chip in the first aggregation group information ; reset the logical forwarding state of the first port to a disabled state or a blocked state, and send the information that the first port is in a disconnected state to the standby main control board processor, and the standby main control board processor will also store the first The information of the first port and the identification information of the first forwarding chip are deleted from the aggregation group information.
  • Each line card port in the line card has a port scanning task, and the line card processor detects the disconnected line card port, and deletes the information of the disconnected line card port from the second aggregation group information, Set the logical forwarding state of the line card port in the disconnected state to the disabled state or the blocked state.
  • the processor of the active main control board detects that the physical state of the first port is changed from the disconnected state to the connected state, and adds the information of the first port and the identification information of the first forwarding chip to the first aggregation group information; Set the logical forwarding state of the first port to the forwarding state, and send the information that the first port is in a connected state to the standby main control board processor, and the standby main control board processor also adds this information to the stored first aggregation group information. information of the first port and identification information of the first forwarding chip.
  • Each line card port in the line card has a port scanning task.
  • the line card processor detects that the line card port changes from the disconnected state to the connected state, and adds the information of the line card port in the connected state from the second aggregation group information. , set the logical forwarding state of the line card port in the connected state to the forwarding state.
  • the processor of the active main control board detects that the physical state of the first stack port and/or the third stack port is changed from the disconnected state to the connected state, and adds the information of the first stack port and/or the third aggregation group information to the information of the third aggregation group. or the information of the third stack port; reset the logical forwarding state of the first stack port and/or the third stack port to the forwarding state.
  • the processor of the active main control board detects that the physical state of the first stack port and/or the third stack port is changed from the connected state to the disconnected state, the information of the first stack port and/or the information of the first stack port are deleted from the third aggregation group information /or information of the third stack port; reset the logical forwarding state of the first stack port and/or the third stack port to the disabled state, or reset the logical forwarding state of the first stack port and/or the third stack port is blocked.
  • the processor of the active main control board detects that the port p1 of the first forwarding chip is changed from the connected state to the disconnected state, it deletes ⁇ card1-p1 ⁇ from the first aggregation group information, and the port p1
  • the logical forwarding state is set to the disabled state or the blocking state, and the information that the port p1 is in the disconnected state is sent to the standby main control board processor, and the standby main control board processor is located in the first aggregation group on the main control board. Delete ⁇ card1-p1 ⁇ from the message.
  • the active main control board processor When the active main control board processor detects that the port p1 of the first forwarding chip has changed from the disconnected state to the connected state, it adds ⁇ card1-p1 ⁇ from the first aggregation group information, and sets the logical forwarding state of the port p1 to forwarding state, and send the information of the connection state of the port p1 to the standby main control board processor, and the standby main control board processor adds ⁇ card1-p1 ⁇ information to the first aggregation group information on the main control board where it is located. .
  • the standby main control board processor When the standby main control board processor detects that the port p1' of the second forwarding chip has changed from the connected state to the disconnected state, it deletes ⁇ card2-p1' ⁇ from the first aggregation group information, and logically forwards the port p1'.
  • the state is set to the disabled state or the blocked state, and the information of the disconnection state of the port p1' is sent to the processor of the active main control board, and the processor of the active main control board is located in the first aggregation group on the main control board. Also delete ⁇ card2-p1' ⁇ from the message.
  • the standby main control board processor When the standby main control board processor detects that the port p1' of the second forwarding chip has changed from the disconnected state to the connected state, it adds ⁇ card2-p1' ⁇ from the first aggregation group information, and logically forwards the port p1'.
  • the state is set to the forwarding state, and the information of the connection state of the port p1' is sent to the active main control board processor, and the active main control board processor is also added to the first aggregation group information on the main control board where it is located. ⁇ card2-p1' ⁇ information.
  • the line card processor periodically detects each line card port. If it detects that the line card port 1 is changed to the disconnected state, it deletes ⁇ line card 1-port1 ⁇ from the second aggregation group information, and removes the line card in the disconnected state. Port 1 is set to the blocking state; if the line card detects that the line card port 2 has changed from the disconnected state to the connected state, it will add ⁇ line card 1-port2 ⁇ from the second aggregation group information, and the line card in the connected state will be added. Port 2 is set to forwarding state.
  • the processor of the active main control board When the processor of the active main control board detects that the stack port p3 changes from the connected state to the disconnected state, it deletes the information of the stack port p3 from the third aggregation group information of the active main control board, and sets the stack port p3 to block state.
  • the processor of the standby main control board detects that the stack port p3' changes from the connected state to the disconnected state, it deletes the information of the stack port p3' from the information of the fourth aggregation group on the standby main control board, and stores the stack port p3'. Set to blocking state.
  • the processor of the active main control board When the processor of the active main control board detects that the stack port p3 changes from the disconnected state to the connected state, the processor of the active main control board adds the stack port p3 to the third aggregation group of the active main control board, and sets the stack port p3 to the forwarding state.
  • the processor of the standby main control board detects that the stack port p3' changes from the disconnected state to the connected state, it adds the stack port to the fourth aggregation group information of the standby main control board, and sets the stack port p3' to the forwarding state .
  • the main main control board and the standby main control board are connected through two communication ports, which further improves the stability of the communication between the main main control board and the line card.
  • the third embodiment of the present disclosure relates to a network device, and the third embodiment is another way of implementing inter-board communication in the active-standby mode of the first embodiment.
  • the connection mode between the main main control board, the standby main control board and the line card in the network device is the same as the connection structure in the first embodiment or the second embodiment.
  • FIG. 8 is a schematic diagram of this embodiment.
  • both the first communication link and the second communication link are normal links.
  • the main main control board processor and the standby main control board processor are used to perform the following processing: set the port in the specified communication link to the enabled state, To enable the specified communication link as the main communication link; set the ports in other communication links to the disabled or blocked state, and delete the ports that are set to the disabled or blocked state from the MAC address table stored in each Corresponding MAC address, so that other communication links can be used as backup communication links.
  • the line card is used to delete the MAC address corresponding to the port in the standby communication link from the MAC address table stored in the line card, so that the standby communication link and the active communication link form an active-standby mode.
  • the line card is used to perform the following processing: set the port in the specified communication link to the enabled state to enable the specified communication link as the main communication link;
  • the ports in the communication link are set to the disabled state or the blocked state, and the MAC address corresponding to the port set to the disabled state or the blocked state is deleted from the MAC address table stored in the line card, so that other communication links can be used as backup communication links.
  • the main main control board processor and the standby main control board processor are also used for: detecting that the MAC address corresponding to the port in the standby communication link is deleted from the respective stored MAC address tables, so that the standby communication link can communicate with the main control board. Links form active/standby mode.
  • the port connected to the second forwarding chip can be set to the normal Ethernet port mode, and the second forwarding chip can also set the port connected to the first forwarding chip to the normal Ethernet port mode.
  • the communication link between the main control board and the line card is a normal communication link, you can choose to open the first communication link and close the second communication link, that is, the first communication link is used as the designated communication link .
  • the way to open the first communication link is: if the main control board processor is configured as the link control terminal, the main control board processor sets the port in the first communication link to the enable state , and set the logical forwarding state to forwarding state.
  • the way to close the first communication link is to set the port in the first communication link to a disabled state or a blocked state and delete the MAC address of the port from the MAC address table stored in the current board, and notify the standby master at the same time.
  • the control board processor, the standby main control board processor sets the port in the standby communication link into a disabled state or a blocked state, and deletes the MAC address of the port from the MAC address table stored by the standby main control board processor.
  • the line card is used to delete the MAC address corresponding to the port in the standby communication link from the MAC address table stored in the line card, so that the standby communication link and the active communication link form an active-standby mode.
  • the way of opening the second communication link is to set the port where the second communication link is located to an enable state, and set the logical forwarding state of the port to the forwarding state.
  • the way of closing the second communication link is to set the port where the second communication link is located to a disabled state or a blocked state and delete the MAC address from the locally stored MAC address table.
  • the method of opening the first communication link is as follows: if the line card is configured as the link control terminal, the port in the designated communication link is set to the enabled state to enable the designated communication link as the main communication link; The ports in other communication links are set to the disabled or blocked state, and the MAC address corresponding to the port that is set to the disabled or blocked state is deleted from the MAC address table stored in the line card, so that other communication links can be used as backup communication link.
  • main main control board processor and the standby main control board processor are also used for: detecting the port in the standby communication link, and deleting the MAC address corresponding to the port of the standby communication link from the MAC address table stored in each, In order to make the standby communication link and the active communication link form the active-standby mode.
  • the active main control board processor, the standby main control board processor, and the line card are further configured to perform the following processing: Periodic detection is in The port of the main communication link corresponds to the port state. If it is detected that the state of the corresponding port of the port changes to the disconnected state, the standby communication link is activated and the current main communication link is disconnected.
  • the active main control board processor periodically detects the state of the port connected with the first forwarding chip and the line card, and the standby main control board processor periodically detects the state of the port connected with the second forwarding chip and the line card. If both ports are in a connected state, the first communication link is preferably opened and the second communication link is closed. If the port of the active main control board is in a disconnected state and the port of the standby main control board is in a connected state, the first communication link is closed and the second communication link is opened. If the port of the standby main control board is in a disconnected state and the port of the active main control board is in a connected state, the second communication link is closed and the first communication link is opened. If both ports are disconnected, both communication links are closed.
  • the line card processor periodically detects the state of the line card port connected to the first forwarding chip and the state of the line card port connected to the second forwarding chip. Open the first communication link and close the second communication link. If the line card port of the first communication link is in a disconnected state and the line card port of the second communication link is in a connected state, the first communication link is closed and the second communication link is opened. If the line card port of the second communication link is in a disconnected state and the line card port of the first communication link is in a connected state, the second communication link is closed and the first communication link is opened. If both line card ports are disconnected, both communication links are closed.
  • the processor of the main main control board sets the first communication link and the second communication link in the active/standby mode, the working process of the active/standby mode will be described below with reference to FIG. 8 .
  • the active main control board processor sets the p1 port to enabled and the p1 port is in the connected state
  • the active main control board processor sets the p1' port of the standby main control board processor to the disabled state
  • the line The card processor detects that the line card port connected to the port p1' of the second forwarding chip is in a disconnected state, and deletes the MAC address corresponding to the disconnected line card port from the local MAC address table stored in the line card.
  • a first communication link communicates.
  • the active main control board processor When the active main control board processor detects that the p1 port is disconnected, it deletes the MAC address of the p1 port from the MAC address table of this board, and sets the p1' port of the standby main control board processor to the enabled state , and the p1' port is connected.
  • the line card processor detects that the line card port connected to the first forwarding chip p1' is in a disconnected state, and deletes the MAC address corresponding to the disconnected line card port from the local MAC address table stored in the line card.
  • the second communication link communicates.
  • the line card sets the port connected to the p1 port of the active main control board to the enabled state, and the line card port connected to the p1 port on the line card is in the connected state, then the line card will communicate with the standby main control board.
  • the line card port connected to the p1' port of the control board processor is set to be disabled, and the standby main control board processor detects that the p1' port is disconnected, and stores the corresponding MAC address of the p1' port from the standby main control board processor. is deleted from the local MAC address table, and the first communication link is used for communication at this time.
  • the line card When the line card detects that the line card port connected to the processor p1 of the active main control board is disconnected, it deletes the MAC address of the line card port from the MAC address table of this board, and connects it with the standby main control board.
  • the line card port connected to the p1' port of the processor is set to the enabled state, and the line card port is in the connected state.
  • the processor of the main main control board detects that the p1 port is disconnected, it deletes the MAC address corresponding to the p1 port from the MAC address table stored on the board, and uses the second communication link for communication at this time.
  • the interconnected ports are all configured in the auto-negotiation mode when the rate is 10M or 100M or 1G or 2.5G. It is configured in forced mode at 10G, and the remote error notification function of the chip needs to be turned on. When one end of the link is disconnected, the port on the opposite end will also change to the disconnected state. Therefore, each main control board and line card can set the forwarding state as long as it detects the connection state of the port of its own line card. Do additional synchronization between the master and the line cards.
  • one of the inter-board communication links between the active main control board and the line card is active and the other is standby.
  • the port disconnection occurs on the first communication link, switch to the second communication link. At the same time, it can also report to the police to avoid repeated switching.
  • the fourth embodiment of the present disclosure relates to a method for inter-board communication, which is applied to the network device in the above-mentioned embodiments, and the process is shown in FIG. 9 .
  • Step 401 Configure at least two communication links formed between the active main control board and the line card.
  • the network device includes an active main control board, a standby main control board and at least one line card.
  • the main main control board includes a main main control board processor and a first forwarding chip connected to the main main control board processor.
  • the standby main control board includes a standby main control board processor and a second forwarding chip connected to the standby main control board processor.
  • the first forwarding chip is connected to a line card port of the line card to form a first communication link between the first forwarding chip and the line card.
  • the first forwarding chip and the second forwarding chip are connected through at least one communication port, and the second forwarding chip is connected with another line card port of the line card to form a second communication link between the first forwarding chip and the line card.
  • the active main control board processor is configured to configure the first communication link and the second communication link to be in the load sharing mode, or configured to configure the first communication link and the second communication link to be the active and standby communication mode.
  • the network device may be a plug-in network device, the board is connected to the backplane in a plug-in manner, and the backplane is provided with a metal connector connected to the line card.
  • the outside of the network equipment is a frame structure, which is used to protect the board and facilitate the setting of the backplane.
  • the board includes an active main control board, a standby main control board, and line cards, and there are multiple line cards, for example, two line cards, three or more line cards, and so on.
  • Each line card is provided with at least two line card ports. If there are more than two standby main control boards, more than three line card ports can be configured on the line card. In this example, two line card ports are used as an example.
  • the first communication link is formed by connecting the first forwarding chip to the line card
  • the second communication link is formed by connecting the first forwarding chip to the second forwarding chip
  • the second forwarding chip is connected to the line card.
  • the b port of the chip is connected to the b port of the second forwarding chip to form two or more communication links between the first forwarding chip and the second forwarding chip.
  • Step 402 If any of the boards detects that any communication link between the main main control board and the line card is abnormal, another normal communication link is used to enable the main main control board to communicate with the line card.
  • the two communication links work at the same time. When one communication link is disconnected, the traffic is automatically forwarded to another normal communication link.
  • the active/standby mode if the first communication link between the active main control board and the line card is abnormal, but the second communication link between the standby main control board and the line card is normal, you can switch to the standby main control board. A second communication link between the board and the line card communicates. Similarly, if the second communication link between the standby main control board and the line card is abnormal, but the first communication link between the active main control board and the line card is normal, it can be switched to the active main control board. Communicates with the first communication link between the line cards. If both communication links are normal, the first communication link is preferred for communication.
  • the fifth embodiment of the present disclosure relates to a computer-readable storage medium storing a computer program, and the computer program implements the above-mentioned functions when executed by a processor.
  • the program is stored in a storage medium and includes several instructions to make a device (which may be a single-chip microcomputer) , chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present disclosure.
  • the aforementioned storage medium includes various media that can store program codes, such as U disk, removable hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk.

Abstract

The present embodiment relates to the field of communications, and in particular, to a network device, an inter-board communication method, and a storage medium. Boards included in the network device provided by the embodiments of the present disclosure comprise a primary main control board, a standby main control board, and at least one line card. The line card is provided with at least two line card ports used for inter-board communication, and the at least two line card ports are respectively connected to the primary main control board and the standby main control board, to form at least two communication links between the primary main control board and the line card. If any board detects that any communication link between the primary main control board and the line card is abnormal, another normal communication link is employed to enable the primary main control board to communicate with the line card. According to the present embodiment, when the connection between either the primary main control board or the standby main control board and the line card is interrupted, normal working of inter-board communication can still be ensured, thereby improving the stability and reliability of the inter-board communication.

Description

网络设备、板间通讯方法及存储介质Network device, inter-board communication method and storage medium
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求享有2021年03月22日提交的名称为“一种网络设备”的中国专利申请CN202110302471.8的优先权,其全部内容通过引用并入本申请中。This application claims the priority of Chinese patent application CN202110302471.8, which was filed on March 22, 2021, and is entitled "A kind of network device", the entire contents of which are incorporated into this application by reference.
技术领域technical field
本公开涉及通讯领域,特别涉及一种网络设备、板间通讯方法及存储介质。The present disclosure relates to the field of communications, and in particular, to a network device, an inter-board communication method and a storage medium.
背景技术Background technique
目前很多网络设备采用机框和板卡的结构,如高端交换机、高端路由器、OLT和DSLAM等都采用这种结构。板卡分为主用主控板、备用主控板和线卡。主用主控板、备用主控板和线卡之间的控制链路称为板间通讯链路。连接方式是主用主控板上的交换芯片与备用主控板板上的交换芯片及所有线卡相连,而备用主控板上的交换芯片与线卡之间的连接在主备倒换的时候通过开关切换。At present, many network devices adopt the structure of chassis and board, such as high-end switches, high-end routers, OLTs, and DSLAMs. Boards are divided into active main control board, standby main control board and line card. The control link between the active main control board, the standby main control board and the line card is called the inter-board communication link. The connection method is that the switch chip on the active main control board is connected to the switch chip on the standby main control board and all the line cards, and the connection between the switch chip on the standby main control board and the line cards is during the main-standby switchover. Switch by switch.
然而,板卡插拔式网络设备是将板卡插到背板上,由于采用接插件连接,存在可靠性问题。例如,当一块线卡与主用主控板上的交换芯片通讯中断后,只有主备倒换切换到新的主控板上才能恢复主用主控板与线卡间的通讯,此时若另一块线卡与新的主用主控板上的交换芯片通讯不通时,又需要倒换回去,存在反复倒换的情况。However, the board-pluggable network device is to insert the board into the backplane, and there is a reliability problem due to the use of connectors for connection. For example, when the communication between a line card and the switch chip on the active main control board is interrupted, the communication between the main main control board and the line card can be restored only when the main control board is switched to the new main control board. When a line card cannot communicate with the switching chip on the new active main control board, it needs to be switched back, and there is a situation of repeated switching.
发明内容SUMMARY OF THE INVENTION
本公开提出一种网络设备,使得在出现主用主控板与备用主控板均与不同线卡发生连接中断时,可以提高板间通讯的稳定性以及提高通讯的效率。The present disclosure provides a network device, which can improve the stability of communication between boards and improve the efficiency of communication when both the main main control board and the standby main control board are disconnected from different line cards.
本公开实施例提供了一种网络设备,包含的板卡包括:主用主控板、备用主控板以及至少一个线卡;主用主控板与备用主控板之间通过至少一个通信端口连接;线卡上设置有至少两个用于板间通讯的线卡端口,至少两个线卡端口分别连接主用主控板和备用主控板,形成至少两条主用主控板与线卡之间的通讯链路;若任意板卡检测到主用主控板与线卡之间任一条通讯链路异常的情况下,使用另一条正常的通讯链路,以使主用主控板与线卡通信。An embodiment of the present disclosure provides a network device, including a board card including: an active main control board, a standby main control board, and at least one line card; at least one communication port is used between the main main control board and the standby main control board Connection; at least two line card ports for inter-board communication are arranged on the line card, and at least two line card ports are respectively connected to the main main control board and the standby main control board, forming at least two main main control boards and lines The communication link between the cards; if any board detects that any communication link between the main main control board and the line card is abnormal, another normal communication link is used to enable the main main control board Communicate with the line card.
本公开实施例还提供了一种应用于上述网络设备的板间通讯方法,包括:对主用主控 板与线卡之间形成的至少两条通讯链路进行配置;若任意板卡检测到主用主控板与线卡之间任一条通讯链路异常,则使用另一条正常的通讯链路,以使主用主控板与线卡通信。The embodiment of the present disclosure also provides an inter-board communication method applied to the above-mentioned network device, including: configuring at least two communication links formed between the main main control board and the line card; If any communication link between the main main control board and the line card is abnormal, another normal communication link is used to enable the main main control board to communicate with the line card.
本公开实施例又提供了一种计算机可读存储介质,存储有计算机程序,计算机程序被处理器执行时实现上述方法步骤。Embodiments of the present disclosure further provide a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, implements the foregoing method steps.
附图说明Description of drawings
图1是现有技术中的网络设备中板间连接的示意图;1 is a schematic diagram of a connection between boards in a network device in the prior art;
图2是根据本公开第一实施例中提供的一种网络设备的结构示意图;FIG. 2 is a schematic structural diagram of a network device according to the first embodiment of the present disclosure;
图3是根据本公开第二实施例中提供的一种网络设备的结构示意图;3 is a schematic structural diagram of a network device according to a second embodiment of the present disclosure;
图4是根据本公开第二实施例中提供的一种网络设备中各部件之间的连接示意图;4 is a schematic diagram of connections between components in a network device according to a second embodiment of the present disclosure;
图5是根据本公开第二实施例中提供的一种网络设备中互联端口的示意图;5 is a schematic diagram of an interconnection port in a network device according to a second embodiment of the present disclosure;
图6是根据本公开第二实施例中提供的一种网络设备中配置的聚合组的示意图;6 is a schematic diagram of an aggregation group configured in a network device according to a second embodiment of the present disclosure;
图7是根据本公开第二实施例中提供的一种网络设备中另一连接方式下的聚合组的示意图;7 is a schematic diagram of an aggregation group in another connection mode in a network device provided according to a second embodiment of the present disclosure;
图8是根据本公开第三实施例中提供的一种网络设备中配置的主备方式的示意图;8 is a schematic diagram of an active/standby mode configured in a network device according to a third embodiment of the present disclosure;
图9是根据本公开第四实施例中提供的一种网络设备中板间通讯的方法的流程图。FIG. 9 is a flowchart of a method for inter-board communication in a network device provided in a fourth embodiment of the present disclosure.
具体实施方式Detailed ways
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合附图对本公开的各实施例进行详细的阐述。然而,本领域的普通技术人员可以理解,在本公开各实施例中,为了使读者更好地理解本公开而提出了许多技术细节。但是,即使没有这些技术细节和基于以下各实施例的种种变化和修改,也可以实现本公开所要求保护的技术方案。以下各个实施例的划分是为了描述方便,不应对本公开的具体实现方式构成任何限定,各个实施例在不矛盾的前提下可以相互结合相互引用。In order to make the objectives, technical solutions and advantages of the embodiments of the present disclosure more clear, each embodiment of the present disclosure will be described in detail below with reference to the accompanying drawings. However, those of ordinary skill in the art can appreciate that in the various embodiments of the present disclosure, many technical details are set forth for the reader to better understand the present disclosure. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in the present disclosure can be implemented. The following divisions of the various embodiments are for the convenience of description, and should not constitute any limitation on the specific implementation of the present disclosure, and the various embodiments may be combined with each other and referred to each other on the premise of not contradicting each other.
相关的网络设备的结构框图如图1所示,目前的网络设备中包括主用主控板、备用主控板和至少一个线卡。主用主控板、备用主控板和线卡之间的控制链路称为板间通讯链路。一般板间通讯链路与业务链路是独立的。常用的板间通讯链路有以太网或HDLC等。以太网是最常用的板间通讯方式,其连接方式是主用主控板上的交换芯片与备用主控板板及所有线卡相连,而备用主控板上的交换芯片同时与主用主控板和所有线卡连接,通过线卡上 开关切换线卡端口的通讯链路。图1为主用主控板和备用主控板在正常情况下的连接状态,当主用主控板和备用主控板进行了主备倒换之后,板间通讯链路进行了切换,形成如图1所示的连接,新的主用主控板上的交换芯片与新的备用主控板板及所有线卡相连。这种整体切换的方式存在缺陷:若该网络设备的板卡采用插卡式方式插在背板上,由于采用接插件连接,板卡与背板之间存在因频繁插拔导致板卡与部分线卡连接断开的问题,当线卡1与主用主控板上的交换芯片通讯中断后,只有主备倒换切换到新的主控板上才能恢复主用主控板与线卡间的通讯,若线卡2与新的主用主控板上的交换芯片通讯不通时,又需要倒换回去,出现了反复倒换的情况。A structural block diagram of a related network device is shown in FIG. 1 , and a current network device includes an active main control board, a standby main control board and at least one line card. The control link between the active main control board, the standby main control board and the line card is called the inter-board communication link. Generally, the communication link between boards and the service link are independent. Commonly used communication links between boards are Ethernet or HDLC. Ethernet is the most commonly used communication method between boards. The connection method is that the switch chip on the main main control board is connected to the standby main control board and all line cards, and the switch chip on the standby main control board is connected to the main main control board at the same time. The control board is connected to all line cards, and the communication link of the line card port is switched through the switch on the line card. Figure 1 shows the connection status of the active main control board and the backup main control board under normal conditions. The connection shown in 1, the switch chip on the new active main control board is connected to the new standby main control board and all line cards. There is a defect in this overall switching method: if the board of the network device is inserted into the backplane in a plug-in manner, due to the use of connectors to connect the board and the backplane, there will be frequent plugging and unplugging between the board and some parts of the board. The problem of disconnection of the line card is that when the communication between the line card 1 and the switch chip on the active main control board is interrupted, the communication between the main main control board and the line card can be restored only when the active and standby switches are switched to the new main control board. For communication, if the line card 2 cannot communicate with the switching chip on the new active main control board, it needs to be switched back, and repeated switching occurs.
本公开的第一实施例涉及一种网络设备,如图2所示,该网络设备包括主用主控板10、备用主控板20以及至少一个线卡30。The first embodiment of the present disclosure relates to a network device. As shown in FIG. 2 , the network device includes an active main control board 10 , a standby main control board 20 and at least one line card 30 .
主用主控板10与备用主控板20之间通过至少一个通信端口连接。线卡30上设置有至少两个线卡端口,至少两个线卡端口分别连接主用主控板10和备用主控板20,形成至少两条主用主控板与线卡之间的通讯链路。若任意板卡检测到主用主控板与线卡之间任一条通讯链路异常的情况下,使用另一条正常的通讯链路,以使主用主控板与线卡通信。The main main control board 10 and the standby main control board 20 are connected through at least one communication port. The line card 30 is provided with at least two line card ports, and the at least two line card ports are respectively connected to the main main control board 10 and the standby main control board 20 to form communication between the at least two main main control boards and the line cards. link. If any board detects that any communication link between the main main control board and the line card is abnormal, another normal communication link is used to enable the main main control board to communicate with the line card.
利用本公开提出的网络设备,网络设备的线卡上设置有至少两个线卡端口,该两个线卡端口分别连接主用主控板和备用主控板,使得该在同一时刻网络设备中的每个线卡与该主用主控板之间同时存在至少两条通讯链路,当线卡与主用主控板之间任意一条通讯链路断开时,可以使用另一条正常的通讯链路,由于无需在主用主控板与备用主控板之间进行主备倒换,即可确保线卡与主用主控板之间的正常通讯,提高了通讯的效率;另一方面,当备用主用板同时与其他线卡也发生连接中断的情况,由于无需在主用主控板和备用主控板之间进行主备倒换,避免出现反复倒换的情况;同时也不会影响其他正常线卡与主用主控板或与备用主控板之间的通讯,进一步提高了板间通讯的可靠性。By using the network device proposed in the present disclosure, at least two line card ports are set on the line card of the network device, and the two line card ports are respectively connected to the main main control board and the standby main control board, so that the network device at the same time There are at least two communication links between each line card and the main main control board. When any communication link between the line card and the main main control board is disconnected, another normal communication link can be used. Link, since there is no need to perform active/standby switchover between the active main control board and the standby main control board, the normal communication between the line card and the active main control board can be ensured, and the communication efficiency is improved; on the other hand, When the connection between the standby main board and other line cards is interrupted at the same time, it is not necessary to perform the active-standby switchover between the active main control board and the standby main control board to avoid repeated switching; at the same time, it will not affect other The communication between the normal line card and the main main control board or the standby main control board further improves the reliability of the communication between the boards.
本公开的第二实施例涉及一种网络设备,第二实施例是对第一实施例的详细介绍,其网络设备的结构框图如图3所示。The second embodiment of the present disclosure relates to a network device, the second embodiment is a detailed introduction to the first embodiment, and a structural block diagram of the network device is shown in FIG. 3 .
在一个例子中,主用主控板包括主用主控板处理器以及与主用主控板处理器连接的第一转发芯片。备用主控板包括备用主控板处理器以及与备用主控板处理器连接的第二转发芯片。线卡端口设置在该线卡的线卡处理器上。第一转发芯片与任一个线卡端口连接,形成主用主控板处理器与线卡的第一通讯链路。第一转发芯片与第二转发芯片之间通过至少一个通信端口连接,第二转发芯片与线卡的另一线卡端口连接,形成第一转发芯片与线卡的第二通讯链路。主用主控板处理器用于配置第一通讯链路与第二通讯链路为负荷分担模式,或者,用于配置第一通讯链路与第二通讯链路为主备模式。In one example, the main main control board includes a main main control board processor and a first forwarding chip connected to the main main control board processor. The standby main control board includes a standby main control board processor and a second forwarding chip connected to the standby main control board processor. A line card port is provided on the line card processor of the line card. The first forwarding chip is connected to any line card port to form a first communication link between the processor of the main main control board and the line card. The first forwarding chip and the second forwarding chip are connected through at least one communication port, and the second forwarding chip is connected with another line card port of the line card to form a second communication link between the first forwarding chip and the line card. The active main control board processor is configured to configure the first communication link and the second communication link to be in a load sharing mode, or configured to configure the first communication link and the second communication link to be in an active/standby mode.
例如,本示例中,网络设备可以为插卡式网络设备,板卡以插卡方式与背板连接,背板中设置有与线卡连接的金属连接器。网络设备外部为机框结构,用于保护板卡以及方便设置背板。本示例中,该网络设备的板卡包括主用主控板、备用主控板和线卡,线卡可以有多个,例如,2个线卡、3个以上线卡等。每个线卡设置有至少两个线卡端口,线卡包括线卡处理器和线卡转发芯片,线卡端口可以设置在线卡处理器上,也可以设置在线卡转发芯片上。若备用主控板的数量有2个以上,则线卡端口可以有3个以上。本示例中,以线卡处理器上内置的两个线卡端口为例进行介绍。For example, in this example, the network device may be a plug-in network device, the board is connected to the backplane in a plug-in manner, and the backplane is provided with a metal connector connected to the line card. The outside of the network equipment is a frame structure, which is used to protect the board and facilitate the setting of the backplane. In this example, the boards of the network device include an active main control board, a standby main control board, and line cards, and there may be multiple line cards, for example, two line cards, three or more line cards, and so on. Each line card is provided with at least two line card ports. The line card includes a line card processor and a line card forwarding chip. The line card ports can be arranged on the line card processor or on the line card forwarding chip. If there are more than two standby main control boards, there can be more than three line card ports. In this example, the two line card ports built into the line card processor are used as an example.
如图4所示,线卡有n个,n为大于2的整数,线卡中未示出线卡转发芯片,主用主控板与每个线卡的线卡处理器之间有两条通讯链路,分别为第一通讯链路和第二通讯链路。第一转发芯片上的端口与线卡处理器上的任意一个线卡端口直连,形成第一通讯链路。第一转发芯片的通信端口连接第二转发芯片的通信端口,第二转发芯片的端口连接该线卡处理器上的另一线卡端口,形成第二通讯链路。如图4所示中,线卡1与第一转发芯片之间的第一通讯链路记为实线a1,第二通讯链路记为a2。As shown in Figure 4, there are n line cards, n is an integer greater than 2, the line card forwarding chip is not shown in the line card, and there are two communications between the main main control board and the line card processor of each line card The links are respectively a first communication link and a second communication link. The port on the first forwarding chip is directly connected to any line card port on the line card processor to form a first communication link. The communication port of the first forwarding chip is connected to the communication port of the second forwarding chip, and the port of the second forwarding chip is connected to another line card port on the line card processor to form a second communication link. As shown in FIG. 4 , the first communication link between the line card 1 and the first forwarding chip is marked as a solid line a1, and the second communication link is marked as a2.
其中,第一转发芯片与第二转发芯片之间的通讯链路可以为一条,也可以为两条,即,第一转发芯片的a端口与第二转发芯片的a端口连接,第一转发芯片的b端口与第二转发芯片的b端口连接,形成第一转发芯片与第二转发芯片之间的两条通讯链路,如图5所示。The number of communication links between the first forwarding chip and the second forwarding chip may be one or two, that is, port a of the first forwarding chip is connected to port a of the second forwarding chip, and the first forwarding chip is connected to port a of the second forwarding chip. The b port of the second forwarding chip is connected to the b port of the second forwarding chip to form two communication links between the first forwarding chip and the second forwarding chip, as shown in FIG. 5 .
在一个例子中,主用主控板处理器用于:配置第一转发芯片中用于连接第二转发芯片的通信端口为第一堆叠口;备用主控板处理器用于配置第二转发芯片中用于连接第一转发芯片的通信端口为第二堆叠口。主用主控板处理器和备用主控板处理器分别用于:将第一转发芯片中用于连接线卡的端口以及第二转发芯片上用于连接线卡的端口配置为第一聚合组。线卡用于将与第一转发芯片连接的线卡端口和与第二转发芯片连接的线卡端口配置为本板的第二聚合组。其中,第一聚合组与第二聚合组对接形成聚合链路,以使第一通讯链路和第二通讯链路成为负荷分担模式。In one example, the active main control board processor is used to configure the communication port in the first forwarding chip for connecting to the second forwarding chip as the first stack port; the standby main control board processor is used to configure the communication port used in the second forwarding chip The communication port connected to the first forwarding chip is the second stack port. The main main control board processor and the standby main control board processor are respectively used for: configuring the port used for connecting the line card in the first forwarding chip and the port used for connecting the line card on the second forwarding chip as the first aggregation group . The line card is used for configuring the line card port connected with the first forwarding chip and the line card port connected with the second forwarding chip to the second aggregation group of the board. The first aggregation group is connected with the second aggregation group to form an aggregation link, so that the first communication link and the second communication link are in a load sharing mode.
下面结合附图6详细介绍配置第一通讯链路和第二通讯链路为负荷分担模式的过程。The following describes the process of configuring the first communication link and the second communication link in the load sharing mode in detail with reference to FIG. 6 .
如图6所示,第一转发芯片的通信端口a与第二转发芯片的通信端口a连接,同时将该第一转发芯片上的通信端口a配置为第一堆叠口,将第二转发芯片上的通信端口a配置为第二堆叠口。第一转发芯片中端口p1与线卡1的线卡端口1连接,第二转发芯片中端口p1'与线卡1的线卡端口2连接。主用主控板处理器用于将主用主控板处理器上的端口p1和备用主控板处理器上的端口p1'配置为第一聚合组;线卡处理器用于将与第一转发芯片连接的线卡端口1和与第二转发芯片连接的线卡端口2配置为第二聚合组,其中,第一聚合组与第二聚合组对接形成第一转发芯片与线卡之间的聚合链路,以使第一通讯链路和第二 通讯链路被配置为负荷分担模式。图6中以粗体实线示出了线卡1与第一转发芯片的聚合链路的示意图,聚合的标记以圈标识。As shown in FIG. 6 , the communication port a of the first forwarding chip is connected to the communication port a of the second forwarding chip. At the same time, the communication port a on the first forwarding chip is configured as the first stack port, and the communication port a on the second forwarding chip is The communication port a is configured as the second stack port. The port p1 in the first forwarding chip is connected to the line card port 1 of the line card 1 , and the port p1 ′ of the second forwarding chip is connected to the line card port 2 of the line card 1 . The active main control board processor is used to configure the port p1 on the active main control board processor and the port p1' on the standby main control board processor as the first aggregation group; the line card processor is used for connecting with the first forwarding chip The connected line card port 1 and the line card port 2 connected to the second forwarding chip are configured as a second aggregation group, wherein the first aggregation group and the second aggregation group are connected to form an aggregation chain between the first forwarding chip and the line card path, so that the first communication link and the second communication link are configured in a load sharing mode. In FIG. 6 , a schematic diagram of an aggregated link between the line card 1 and the first forwarding chip is shown with a bold solid line, and the aggregated mark is marked with a circle.
需要说明的是,主用主控板处理器和备用主控板处理器配置各自所处主控板上的第一聚合组信息。第一聚合组信息包括第一转发芯片的标识信息、第一转发芯片中用于与线卡连接的第一端口的信息、第二转发芯片的标识信息以及第二转发芯片中用于与线卡连接的第二端口的信息。线卡还用于配置线卡上的第二聚合组信息,第二聚合组信息中包括线卡上用于连接第一转发芯片的线卡端口的信息以及用于连接第二转发芯片的线卡端口的信息。It should be noted that, the active main control board processor and the standby main control board processor configure the first aggregation group information on the main control boards where they are located. The first aggregation group information includes identification information of the first forwarding chip, information of the first port in the first forwarding chip for connecting with the line card, identification information of the second forwarding chip, and information in the second forwarding chip for connecting with the line card. Information about the connected second port. The line card is also used to configure the second aggregation group information on the line card, where the second aggregation group information includes information on the line card port on the line card used to connect to the first forwarding chip and the line card used to connect to the second forwarding chip port information.
结合图6介绍第一聚合组信息和第二聚合组信息。第一转发芯片的标识信息记为card1,第二转发芯片的标识信息记为card2,第一转发芯片中用于与线卡连接的第一端口的信息记为p1,第二转发芯片中用于与线卡连接的第二端口的信息记为p1'。在主用主控板处理器存储的第一聚合组信息为{card1-p1,card2-p1'};同时备用主控板处理器也存储同样的第一聚合组信息{card1-p1,card2-p1'}。线卡处理器1中存储有第二聚合组信息{线卡1-port1,线卡1-port2}。The first aggregation group information and the second aggregation group information are introduced with reference to FIG. 6 . The identification information of the first forwarding chip is marked as card1, the identification information of the second forwarding chip is marked as card2, the information of the first port used to connect with the line card in the first forwarding chip is marked as p1, and the information of the second forwarding chip is marked as p1. The information of the second port connected to the line card is denoted as p1'. The first aggregation group information stored in the active main control board processor is {card1-p1, card2-p1'}; meanwhile, the standby main control board processor also stores the same first aggregation group information {card1-p1, card2- p1'}. The line card processor 1 stores second aggregation group information {line card 1-port1, line card 1-port2}.
值得一提的是,通过配置聚合链路的形式,使得线卡与第一转发芯片之间有两条通讯链路,以在出现一条链路出现异常的情况下,流量可以自动转至另一条正常的通讯链路上,确保了第一转发芯片与线卡之间通讯的可靠性。It is worth mentioning that by configuring an aggregated link, there are two communication links between the line card and the first forwarding chip, so that in the event of an abnormality in one link, the traffic can be automatically transferred to the other. On the normal communication link, the reliability of the communication between the first forwarding chip and the line card is ensured.
在另一例子中,若第一转发芯片与第二转发芯片之间通过两个通信端口连接。配置第一转发芯片中用于连接第二转发芯片的另一端口为第三堆叠口;将第一堆叠口和第三堆叠口配置为第三聚合组,存储对应的第三聚合组信息,第三聚合信息包括第三堆叠口的端口信息以及第一堆叠口的端口信息。备用主控板处理器还用于配置第二转发芯片中用于连接第一转发芯片的另一个端口为第四堆叠口;将第二堆叠口和第四堆叠口配置为第四聚合组,并存储第四聚合组信息,第四聚合组信息包括第二堆叠口的端口信息以及第四堆叠口的端口信息。其中,第一聚合组、第二聚合组、第三聚合组以及第四聚合组对接形成聚合链路。In another example, if the first forwarding chip and the second forwarding chip are connected through two communication ports. Configure another port in the first forwarding chip for connecting to the second forwarding chip as a third stacking port; configure the first stacking port and the third stacking port as a third aggregation group, store corresponding third aggregation group information, and The three-aggregation information includes port information of the third stack port and port information of the first stack port. The standby main control board processor is further configured to configure another port in the second forwarding chip for connecting to the first forwarding chip as a fourth stacking port; configure the second stacking port and the fourth stacking port as a fourth aggregation group, and Fourth aggregation group information is stored, where the fourth aggregation group information includes port information of the second stack port and port information of the fourth stack port. The first aggregation group, the second aggregation group, the third aggregation group and the fourth aggregation group are connected to each other to form an aggregation link.
下面将结合图7介绍第一转发芯片与第二转发芯片之间通过两个通信端口连接的情况。The following describes the case where the first forwarding chip and the second forwarding chip are connected through two communication ports with reference to FIG. 7 .
如图7所示的连接关系,将第一转发芯片中端口p4配置为第三堆叠口,将第二转发芯片中的端口p4'配置为第四堆叠口,主用主控板处理器用于将端口p3和p4配置为第三聚合组,将端口p3'和p4'配置为第四聚合组。如图7所示,第一转发芯片的标识信息记为card1,第二转发芯片的标识信息记为card2,第一转发芯片中用于与线卡连接的第一端口的信息记为p1,第二转发芯片中用于与线卡连接的第二端口的信息记为p1'。第一堆叠口记为p3、 第三堆叠口记为p4,第二堆叠口记为p3',第四堆叠口记为p4'。在主用主控板处理器存储的第一聚合组信息为{card1-p1,card2-p1'};同时备用主控板处理器也存储同样的第一聚合组信息{card1-p1,card2-p1'}。线卡处理器1中存储有第二聚合组信息{线卡1-port1,线卡1-port2}。主用主控板处理器存储的第三聚合组信息为{card1-p3,card1-p4},第四聚合组信息为{card2-p3',card2-p4'}。As shown in the connection relationship shown in Figure 7, the port p4 in the first forwarding chip is configured as the third stacking port, the port p4' in the second forwarding chip is configured as the fourth stacking port, and the main control board processor is used to connect the Ports p3 and p4 are configured as a third aggregation group, and ports p3' and p4' are configured as a fourth aggregation group. As shown in FIG. 7 , the identification information of the first forwarding chip is marked as card1, the identification information of the second forwarding chip is marked as card2, the information of the first port in the first forwarding chip for connecting to the line card is marked as p1, and the first The information of the second port in the two forwarding chips for connecting with the line card is denoted as p1'. The first stack port is denoted as p3, the third stack port is denoted as p4, the second stack port is denoted as p3', and the fourth stack port is denoted as p4'. The first aggregation group information stored in the active main control board processor is {card1-p1, card2-p1'}; meanwhile, the standby main control board processor also stores the same first aggregation group information {card1-p1, card2- p1'}. The line card processor 1 stores second aggregation group information {line card 1-port1, line card 1-port2}. The third aggregation group information stored by the processor of the active main control board is {card1-p3, card1-p4}, and the fourth aggregation group information is {card2-p3', card2-p4'}.
由于第一转发芯片与第二转发芯片之间各自通过两个端口连接,第一转发芯片和第二转发芯片之间有两条通讯链路,并且配置为聚合组,若其中一条链路异常,如处于断开状态,不会影响第一转发芯片与第二转发芯片之间的通讯,进一步提高了该板间通讯的可靠性。Since the first forwarding chip and the second forwarding chip are each connected through two ports, there are two communication links between the first forwarding chip and the second forwarding chip, and they are configured as an aggregation group. If one of the links is abnormal, the If it is in the disconnected state, the communication between the first forwarding chip and the second forwarding chip will not be affected, which further improves the reliability of the communication between the boards.
在一个例子中,网络设备中互联的端口均被配置为自协商模式;或者,网络设备中互联的端口均被配置为远程故障通知模式。In one example, the interconnected ports in the network device are all configured in the auto-negotiation mode; or, the interconnected ports in the network device are all configured in the remote fault notification mode.
例如,如图7所示,在互联的端口工作在100M或1G或2.5G时,线卡处理器中的线卡端口1与第一转发芯片的端口p1均被配置为自协商模式,同理,第二转发芯片的端口p1'与线卡处理器的线卡端口2也被配置为自协商模式,第一转发芯片上的通信端口p3与第二转发芯片上的通信端口p3'被配置为自协商模式,第一转发芯片上的通信端口p4与第二转发芯片上的通信端口p4'被配置为自协商模式。或者,在互联的端口为10G时,线卡处理器中的线卡端口1以及端口p1被配置为强制模式,并开启远端故障通知功能,同理,第二转发芯片上的端口p1'与线卡处理器中的线卡端口2也被配置为强制模式,并开启远端故障通知功能,第一转发芯片的通信端口p3与第二转发芯片上的通信端口p3'被配置为强制模式,第一转发芯片的通信端口p4与第二转发芯片上的通信端口p4'被配置为强制模式,并开启远端故障通知功能。For example, as shown in Figure 7, when the interconnected ports work at 100M or 1G or 2.5G, the line card port 1 in the line card processor and the port p1 of the first forwarding chip are both configured in auto-negotiation mode. , the port p1' of the second forwarding chip and the line card port 2 of the line card processor are also configured in auto-negotiation mode, and the communication port p3 on the first forwarding chip and the communication port p3' on the second forwarding chip are configured as In the auto-negotiation mode, the communication port p4 on the first forwarding chip and the communication port p4' on the second forwarding chip are configured in the auto-negotiation mode. Or, when the interconnected port is 10G, the line card port 1 and port p1 in the line card processor are configured in forced mode, and the remote fault notification function is enabled. Similarly, the port p1' on the second forwarding chip is connected to The line card port 2 in the line card processor is also configured in the forced mode, and the remote fault notification function is enabled, and the communication port p3 of the first forwarding chip and the communication port p3' on the second forwarding chip are configured in the forced mode, The communication port p4 of the first forwarding chip and the communication port p4' of the second forwarding chip are configured in forced mode, and the remote fault notification function is enabled.
采用自协商模式,连接的两个端口可以互相获知对端的状态,从而使得连接的两个端口保持同样的端口状态。10G端口开启远端故障通知功能后,若互联的两个端口其中一个端口出现故障,则会主动通知对端,以使对端的端口保持相同的链路状态。In the auto-negotiation mode, the two connected ports can learn the state of the opposite end from each other, so that the two connected ports maintain the same port state. After the remote fault notification function is enabled on the 10G port, if one of the two interconnected ports fails, it will actively notify the peer end to keep the peer port in the same link state.
当发生故障时,该网络设备的工作过程如下所述。When a failure occurs, the working process of this network device is as follows.
在一个例子中,主用主控板处理器还用于:若检测到第一端口的物理状态发生变更,则在第一聚合组信息中删除或增加第一端口聚合信息,重新设置第一端口的逻辑转发状态,并向备用主控板处理器发送第一端口的物理状态的信息,以供备用主控板处理器在所处主控板上的第一聚合信息中删除或增加第一端口聚合信息,其中,第一端口聚合信息包括第一端口的信息以及第一转发芯片的标识信息。备用主控板处理器还用于:若检测到第二端口的物理状态发生变更,则在第一聚合组信息中删除或增加第二端口聚合信息,重新设置 第二端口的逻辑转发状态,并向主用主控板处理器发送第二端口的物理状态的信息,以供主用主控板处理器在所处主控板上的第一聚合信息中删除或增加第二端口聚合信息,其中,第二端口聚合信息包括第二端口的信息以及第二转发芯片的标识信息。线卡还用于:若检测到线卡端口的物理状态发生变更,则在第二聚合信息中删除或增加线卡端口聚合信息,并重新设置变更状态的线卡端口的逻辑转发状态,线卡端口聚合信息包括线卡端口的端口信息。In one example, the active main control board processor is further configured to: if it is detected that the physical state of the first port changes, delete or add the first port aggregation information in the first aggregation group information, and reset the first port the logical forwarding state, and send the information of the physical state of the first port to the standby main control board processor, so that the standby main control board processor can delete or add the first port in the first aggregated information on the main control board where it is located Aggregation information, wherein the first port aggregation information includes information of the first port and identification information of the first forwarding chip. The standby main control board processor is further configured to: if it is detected that the physical state of the second port changes, delete or add the second port aggregation information in the first aggregation group information, reset the logical forwarding state of the second port, and Sending information about the physical state of the second port to the active main control board processor, so that the active main control board processor deletes or adds the second port aggregation information in the first aggregation information on the main control board where it is located, wherein , the second port aggregation information includes information of the second port and identification information of the second forwarding chip. The line card is also used for: if it is detected that the physical state of the line card port changes, delete or add the line card port aggregation information in the second aggregation information, and reset the logical forwarding state of the line card port of the changed state, and the line card Port aggregation information includes port information of line card ports.
例如,主用主控板处理器检测到第一端口的物理状态由连接状态变更为断开状态,则在第一聚合组信息中删除该第一端口的信息以及该第一转发芯片的标识信息;重新设置该第一端口的逻辑转发状态为禁止状态或阻塞状态,并向备用主控板处理器发送该第一端口处于断开状态的信息,备用主控板处理器同样将存储的第一聚合组信息中删除该第一端口的信息以及该第一转发芯片的标识信息。线卡中每个线卡端口有端口扫描任务,该线卡处理器检测到处于断开状态的线卡端口,则从第二聚合组信息中删除该处于断开状态的线卡端口的信息,将该处于断开状态的线卡端口的逻辑转发状态设置禁止状态或阻塞状态。For example, the processor of the active main control board detects that the physical state of the first port is changed from the connected state to the disconnected state, and deletes the information of the first port and the identification information of the first forwarding chip in the first aggregation group information ; reset the logical forwarding state of the first port to a disabled state or a blocked state, and send the information that the first port is in a disconnected state to the standby main control board processor, and the standby main control board processor will also store the first The information of the first port and the identification information of the first forwarding chip are deleted from the aggregation group information. Each line card port in the line card has a port scanning task, and the line card processor detects the disconnected line card port, and deletes the information of the disconnected line card port from the second aggregation group information, Set the logical forwarding state of the line card port in the disconnected state to the disabled state or the blocked state.
主用主控板处理器检测到第一端口的物理状态由断开状态变更为连接状态,则在第一聚合组信息中增加该第一端口的信息以及该第一转发芯片的标识信息;重新设置该第一端口的逻辑转发状态为转发状态,并向备用主控板处理器发送该第一端口处于连接状态的信息,备用主控板处理器同样在存储的第一聚合组信息中增加该第一端口的信息以及该第一转发芯片的标识信息。线卡中每个线卡端口有端口扫描任务,该线卡处理器检测线卡端口从断开状态变更为连接状态,则从第二聚合组信息中增加该处于连接状态的线卡端口的信息,将该处于连接状态的线卡端口的逻辑转发状态设置为转发状态。The processor of the active main control board detects that the physical state of the first port is changed from the disconnected state to the connected state, and adds the information of the first port and the identification information of the first forwarding chip to the first aggregation group information; Set the logical forwarding state of the first port to the forwarding state, and send the information that the first port is in a connected state to the standby main control board processor, and the standby main control board processor also adds this information to the stored first aggregation group information. information of the first port and identification information of the first forwarding chip. Each line card port in the line card has a port scanning task. The line card processor detects that the line card port changes from the disconnected state to the connected state, and adds the information of the line card port in the connected state from the second aggregation group information. , set the logical forwarding state of the line card port in the connected state to the forwarding state.
主用主控板处理器检测到第一堆叠口和/或第三堆叠口的物理状态由断开状态变更为连接状态,则在第三聚合组信息中增加该第一堆叠口的信息和/或第三堆叠口的信息;重新设置该第一堆叠口和/或第三堆叠口的逻辑转发状态为转发状态。若主用主控板处理器检测到第一堆叠口和/或第三堆叠口的物理状态由连接状态变更为断开状态,则在第三聚合组信息中删除该第一堆叠口的信息和/或第三堆叠口的信息;重新设置该第一堆叠口和/或第三堆叠口的逻辑转发状态为禁止状态,或者重新设置该第一堆叠口和/或第三堆叠口的逻辑转发状态为阻塞状态。The processor of the active main control board detects that the physical state of the first stack port and/or the third stack port is changed from the disconnected state to the connected state, and adds the information of the first stack port and/or the third aggregation group information to the information of the third aggregation group. or the information of the third stack port; reset the logical forwarding state of the first stack port and/or the third stack port to the forwarding state. If the processor of the active main control board detects that the physical state of the first stack port and/or the third stack port is changed from the connected state to the disconnected state, the information of the first stack port and/or the information of the first stack port are deleted from the third aggregation group information /or information of the third stack port; reset the logical forwarding state of the first stack port and/or the third stack port to the disabled state, or reset the logical forwarding state of the first stack port and/or the third stack port is blocked.
下面将结合附图7详细说明故障时的工作过程。The working process in the event of failure will be described in detail below with reference to FIG. 7 .
如图7所示,当主用主控板处理器检测到第一转发芯片的端口p1由连接状态变为断开状态,则从第一聚合组信息中删除{card1-p1},将该端口p1的逻辑转发状态设置为禁止状态或阻塞状态,并将该端口p1处于断开状态的信息发送至备用主控板处理器,备用主控板 处理器在所处主控板上的第一聚合组信息中删除{card1-p1}。当主用主控板处理器检测到第一转发芯片的端口p1由断开状态变为连接状态,则从第一聚合组信息中增加{card1-p1},将该端口p1的逻辑转发状态设置为转发状态,并将该端口p1的连接状态的信息发送至备用主控板处理器,备用主控板处理器在所处主控板上的第一聚合组信息中增加{card1-p1}的信息。As shown in Figure 7, when the processor of the active main control board detects that the port p1 of the first forwarding chip is changed from the connected state to the disconnected state, it deletes {card1-p1} from the first aggregation group information, and the port p1 The logical forwarding state is set to the disabled state or the blocking state, and the information that the port p1 is in the disconnected state is sent to the standby main control board processor, and the standby main control board processor is located in the first aggregation group on the main control board. Delete {card1-p1} from the message. When the active main control board processor detects that the port p1 of the first forwarding chip has changed from the disconnected state to the connected state, it adds {card1-p1} from the first aggregation group information, and sets the logical forwarding state of the port p1 to forwarding state, and send the information of the connection state of the port p1 to the standby main control board processor, and the standby main control board processor adds {card1-p1} information to the first aggregation group information on the main control board where it is located. .
当备用主控板处理器检测到第二转发芯片的端口p1'由连接状态变为断开状态,则从第一聚合组信息中删除{card2-p1'},将该端口p1'的逻辑转发状态设置为禁止状态或阻塞状态,并将该端口p1'的断开状态的信息发送至主用主控板处理器,主用主控板处理器在所处主控板上的第一聚合组信息中也删除{card2-p1'}。当备用主控板处理器检测到第二转发芯片的端口p1'由断开状态变为连接状态,则从第一聚合组信息中增加{card2-p1'},将该端口p1'的逻辑转发状态设置为转发状态,并将该端口p1'的连接状态的信息发送至主用主控板处理器,主用主控板处理器在所处主控板上的第一聚合组信息中也增加{card2-p1'}的信息。When the standby main control board processor detects that the port p1' of the second forwarding chip has changed from the connected state to the disconnected state, it deletes {card2-p1'} from the first aggregation group information, and logically forwards the port p1'. The state is set to the disabled state or the blocked state, and the information of the disconnection state of the port p1' is sent to the processor of the active main control board, and the processor of the active main control board is located in the first aggregation group on the main control board. Also delete {card2-p1'} from the message. When the standby main control board processor detects that the port p1' of the second forwarding chip has changed from the disconnected state to the connected state, it adds {card2-p1'} from the first aggregation group information, and logically forwards the port p1'. The state is set to the forwarding state, and the information of the connection state of the port p1' is sent to the active main control board processor, and the active main control board processor is also added to the first aggregation group information on the main control board where it is located. {card2-p1'} information.
线卡处理器周期性检测各线卡端口,若检测到线卡端口1变更为断开状态,则从第二聚合组信息中删除{线卡1-port1},并将断开状态的线卡端口1设置为阻塞状态;若线卡检测到由断开状态变为连接状态的线卡端口2,则从第二聚合组信息中增加{线卡1-port2},并将连接状态的线卡端口2设置为转发状态。The line card processor periodically detects each line card port. If it detects that the line card port 1 is changed to the disconnected state, it deletes {line card 1-port1} from the second aggregation group information, and removes the line card in the disconnected state. Port 1 is set to the blocking state; if the line card detects that the line card port 2 has changed from the disconnected state to the connected state, it will add {line card 1-port2} from the second aggregation group information, and the line card in the connected state will be added. Port 2 is set to forwarding state.
主用主控板处理器检测到堆叠口p3从连接状态变为断开状态时,从主用主控板第三聚合组信息中删除堆叠口p3的信息,并将该堆叠口p3设置为阻塞状态。备用主控板处理器检测到堆叠口p3'从连接状态变为断开状态时,从备用主控板上的第四聚合组信息中删除堆叠口p3'的信息,并将该堆叠口p3'设置为阻塞状态。主用主控板处理器检测到堆叠口p3从断开状态变为连接状态时,将该堆叠口p3加入主用主控板第三聚合组中,并将该堆叠口p3设置为转发状态。备用主控板处理器检测到堆叠口p3'从断开状态变为连接状态时,将该堆叠口加入备用主控板的第四聚合组信息中,并将该堆叠口p3'设置为转发状态。When the processor of the active main control board detects that the stack port p3 changes from the connected state to the disconnected state, it deletes the information of the stack port p3 from the third aggregation group information of the active main control board, and sets the stack port p3 to block state. When the processor of the standby main control board detects that the stack port p3' changes from the connected state to the disconnected state, it deletes the information of the stack port p3' from the information of the fourth aggregation group on the standby main control board, and stores the stack port p3'. Set to blocking state. When the processor of the active main control board detects that the stack port p3 changes from the disconnected state to the connected state, the processor of the active main control board adds the stack port p3 to the third aggregation group of the active main control board, and sets the stack port p3 to the forwarding state. When the processor of the standby main control board detects that the stack port p3' changes from the disconnected state to the connected state, it adds the stack port to the fourth aggregation group information of the standby main control board, and sets the stack port p3' to the forwarding state .
本示例中,主用主控板与备用主控板之间通过两个通信端口连接,进一步提高了主用主控板与线卡之间通信的稳定性。In this example, the main main control board and the standby main control board are connected through two communication ports, which further improves the stability of the communication between the main main control board and the line card.
本公开的第三实施例涉及一种网络设备,第三实施例是第一实施例的另一种用主备模式实现板间通讯的方式。该网络设备中主用主控板、备用主控板以及线卡之间的连接方式与第一实施例或第二实施例中的连接结构相同。图8为本实施例示意图。The third embodiment of the present disclosure relates to a network device, and the third embodiment is another way of implementing inter-board communication in the active-standby mode of the first embodiment. The connection mode between the main main control board, the standby main control board and the line card in the network device is the same as the connection structure in the first embodiment or the second embodiment. FIG. 8 is a schematic diagram of this embodiment.
在一个例子中,第一通讯链路与第二通讯链路均为正常链路。若主用主控板处理器被配置为链路控制端,则主用主控板处理器和备用主控板处理器用于执行如下处理:将处于指定通讯链路的端口置为使能状态,以启用指定通讯链路作为主用通讯链路;将处于其他 通讯链路中的端口置为禁止状态或阻塞状态,并从各自存储的MAC地址表中删除被置为禁止状态或阻塞状态的端口对应的MAC地址,以使其他通讯链路作为备用通讯链路。线卡用于将处于备用通讯链路中的端口对应的MAC地址从线卡存储的MAC地址表中删除,以使备用通讯链路与主用通讯链路组成主备模式。In one example, both the first communication link and the second communication link are normal links. If the active main control board processor is configured as the link control end, the main main control board processor and the standby main control board processor are used to perform the following processing: set the port in the specified communication link to the enabled state, To enable the specified communication link as the main communication link; set the ports in other communication links to the disabled or blocked state, and delete the ports that are set to the disabled or blocked state from the MAC address table stored in each Corresponding MAC address, so that other communication links can be used as backup communication links. The line card is used to delete the MAC address corresponding to the port in the standby communication link from the MAC address table stored in the line card, so that the standby communication link and the active communication link form an active-standby mode.
若线卡被配置为链路控制端,则线卡用于执行如下处理:将处于指定通讯链路的端口置为使能状态,以启用指定通讯链路作为主用通讯链路;将处于其他通讯链路中的端口置为禁止状态或阻塞状态,并从线卡存储的MAC地址表中删除被置为禁止状态或阻塞状态的端口对应的MAC地址,以使其他通讯链路作为备用通讯链路。主用主控板处理器和备用主控板处理器还用于:检测处于备用通讯链路的端口对应的MAC地址从各自存储的MAC地址表中删除,以使备用通讯链路与主用通讯链路组成主备模式。If the line card is configured as the link control terminal, the line card is used to perform the following processing: set the port in the specified communication link to the enabled state to enable the specified communication link as the main communication link; The ports in the communication link are set to the disabled state or the blocked state, and the MAC address corresponding to the port set to the disabled state or the blocked state is deleted from the MAC address table stored in the line card, so that other communication links can be used as backup communication links. road. The main main control board processor and the standby main control board processor are also used for: detecting that the MAC address corresponding to the port in the standby communication link is deleted from the respective stored MAC address tables, so that the standby communication link can communicate with the main control board. Links form active/standby mode.
例如,第一转发芯片可以与第二转发芯片连接的端口置为普通以太网端口模式,同理,第二转发芯片可以将与第一转发芯片连接的端口置也置为普通以太网端口模式。若主用主控板与线卡之间的通讯链路均属于正常通讯链路,可以优先选择打开第一通讯链路并关闭第二通讯链路,即将第一通讯链路作为指定通讯链路。打开第一通讯链路的方式为:若主用主控板处理器被配置为链路控制端,则主用主控板处理器设置处于第一通讯链路的端口为使能(enable)状态,并设置逻辑转发状态为转发状态。关闭第一通讯链路的方式是设置处于第一通讯链路的端口为禁止(disable)状态或阻塞状态并将该端口的MAC地址从当前板卡存储的MAC地址表中删除,同时通知备用主控板处理器,备用主控板处理器将处于备用通讯链路的端口置为禁止状态或阻塞状态,并将该端口的MAC地址从备用主控板处理器存储的MAC地址表中删除。线卡用于将处于备用通讯链路中的端口对应的MAC地址从线卡存储的MAC地址表中删除,以使备用通讯链路与主用通讯链路组成主备模式。当第一通讯链路中断时,关闭第一链路并打开第二链路。打开第二通讯链路的方式是设置第二通讯链路所在端口为使能(enable)状态,并将该端口的逻辑转发状态设为转发状态。关闭第二通讯链路的方式是设置第二通讯链路所在端口为禁止(disable)状态或阻塞状态并将该MAC地址从本地存储的MAC地址表中删除。For example, the port connected to the second forwarding chip can be set to the normal Ethernet port mode, and the second forwarding chip can also set the port connected to the first forwarding chip to the normal Ethernet port mode. If the communication link between the main control board and the line card is a normal communication link, you can choose to open the first communication link and close the second communication link, that is, the first communication link is used as the designated communication link . The way to open the first communication link is: if the main control board processor is configured as the link control terminal, the main control board processor sets the port in the first communication link to the enable state , and set the logical forwarding state to forwarding state. The way to close the first communication link is to set the port in the first communication link to a disabled state or a blocked state and delete the MAC address of the port from the MAC address table stored in the current board, and notify the standby master at the same time. The control board processor, the standby main control board processor sets the port in the standby communication link into a disabled state or a blocked state, and deletes the MAC address of the port from the MAC address table stored by the standby main control board processor. The line card is used to delete the MAC address corresponding to the port in the standby communication link from the MAC address table stored in the line card, so that the standby communication link and the active communication link form an active-standby mode. When the first communication link is interrupted, the first link is closed and the second link is opened. The way of opening the second communication link is to set the port where the second communication link is located to an enable state, and set the logical forwarding state of the port to the forwarding state. The way of closing the second communication link is to set the port where the second communication link is located to a disabled state or a blocked state and delete the MAC address from the locally stored MAC address table.
打开第一通讯链路的方式为:若线卡被配置为链路控制端,则将处于指定通讯链路的端口置为使能状态,以启用指定通讯链路作为主用通讯链路;将处于其他通讯链路中的端口置为禁止状态或阻塞状态,并从线卡存储的MAC地址表中删除被置为禁止状态或阻塞状态的端口对应的MAC地址,以使其他通讯链路作为备用通讯链路。同时主用主控板处理器和备用主控板处理器还用于:检测处于备用通讯链路的端口,并将备用通讯链路的端口对应的MAC地址从各自存储的MAC地址表中删除,以使备用通讯链路与主用通讯链路组成主备模式。The method of opening the first communication link is as follows: if the line card is configured as the link control terminal, the port in the designated communication link is set to the enabled state to enable the designated communication link as the main communication link; The ports in other communication links are set to the disabled or blocked state, and the MAC address corresponding to the port that is set to the disabled or blocked state is deleted from the MAC address table stored in the line card, so that other communication links can be used as backup communication link. At the same time, the main main control board processor and the standby main control board processor are also used for: detecting the port in the standby communication link, and deleting the MAC address corresponding to the port of the standby communication link from the MAC address table stored in each, In order to make the standby communication link and the active communication link form the active-standby mode.
说明:前面已经详细描述了主控板做控制端和线卡做控制端的方法,这里可以不再赘述。Note: The method of using the main control board as the control terminal and the line card as the control terminal has been described in detail above, so it is not necessary to repeat them here.
在一个例子中,若第一通讯链路与第二通讯链路为主备模式,主用主控板处理器、备用主控板处理器以及线卡还用于执行如下处理:周期性检测处于主用通讯链路的端口对应端口状态,若检测到端口对应端口状态变更为断开状态,则启用备用通讯链路,断开当前主用通讯链路。In one example, if the first communication link and the second communication link are in the active/standby mode, the active main control board processor, the standby main control board processor, and the line card are further configured to perform the following processing: Periodic detection is in The port of the main communication link corresponds to the port state. If it is detected that the state of the corresponding port of the port changes to the disconnected state, the standby communication link is activated and the current main communication link is disconnected.
主用主控板处理器周期性检测第一转发芯片与线卡连接的端口的状态,备用主控板处理器周期性检测第二转发芯片与线卡连接的端口的状态。若两个端口都是连接状态,优先选择打开第一通讯链路并关闭第二通讯链路。若主用主控板端口处于断开状态时,而备用主控板端口处于连接状态时,关闭第一通讯链路,打开第二通讯链路。若备用主控板的端口处于断开状态时,而主用主控板的端口处于连接状态时,关闭第二通讯链路,打开第一通讯链路。若两个端口都处于断开状态时,两条通讯链路都关闭。The active main control board processor periodically detects the state of the port connected with the first forwarding chip and the line card, and the standby main control board processor periodically detects the state of the port connected with the second forwarding chip and the line card. If both ports are in a connected state, the first communication link is preferably opened and the second communication link is closed. If the port of the active main control board is in a disconnected state and the port of the standby main control board is in a connected state, the first communication link is closed and the second communication link is opened. If the port of the standby main control board is in a disconnected state and the port of the active main control board is in a connected state, the second communication link is closed and the first communication link is opened. If both ports are disconnected, both communication links are closed.
同理,线卡处理器周期性检测与第一转发芯片连接的线卡端口的状态以及检测与第二转发芯片连接的线卡端口的状态,若两个线卡端口均处于连接状态,优先选择打开第一通讯链路并关闭第二通讯链路。若第一通讯链路所在线卡端口处于断开状态时,而第二通讯链路所在线卡端口处于连接状态时,关闭第一通讯链路,打开第二通讯链路。若第二通讯链路所在线卡端口处于断开状态且第一通讯链路所在线卡端口处于连接状态时,关闭第二通讯链路,打开第一通讯链路。若两个线卡端口都处于断开状态时,两条通讯链路都关闭。Similarly, the line card processor periodically detects the state of the line card port connected to the first forwarding chip and the state of the line card port connected to the second forwarding chip. Open the first communication link and close the second communication link. If the line card port of the first communication link is in a disconnected state and the line card port of the second communication link is in a connected state, the first communication link is closed and the second communication link is opened. If the line card port of the second communication link is in a disconnected state and the line card port of the first communication link is in a connected state, the second communication link is closed and the first communication link is opened. If both line card ports are disconnected, both communication links are closed.
若主用主控板处理器设置第一通讯链路和第二通讯链路为主备模式,下面结合附图8介绍主备模式的工作过程。If the processor of the main main control board sets the first communication link and the second communication link in the active/standby mode, the working process of the active/standby mode will be described below with reference to FIG. 8 .
在一个例子中,主用主控板处理器将p1端口设置为使能且p1端口处于连接状态,主用主控板处理器将备用主控板处理器的p1'端口设置为禁止状态,线卡处理器检测到与第二转发芯片p1'端口连接的线卡端口为断开状态,则将断开的线卡端口对应的MAC地址从线卡存储的本地MAC地址表中删除,此时使用第一通讯链路进行通信。当主用主控板处理器检测到p1端口处于断开状态,则将p1端口的MAC地址从本板的MAC地址表中删除,并将备用主控板处理器的p1'端口设置为使能状态,且p1'端口处于连接状态。线卡处理器检测到与第一转发芯片p1'连接的线卡端口为断开状态,则将断开的线卡端口对应的MAC地址从线卡存储的本地MAC地址表中删除,此时使用第二通讯链路进行通信。In one example, the active main control board processor sets the p1 port to enabled and the p1 port is in the connected state, the active main control board processor sets the p1' port of the standby main control board processor to the disabled state, and the line The card processor detects that the line card port connected to the port p1' of the second forwarding chip is in a disconnected state, and deletes the MAC address corresponding to the disconnected line card port from the local MAC address table stored in the line card. A first communication link communicates. When the active main control board processor detects that the p1 port is disconnected, it deletes the MAC address of the p1 port from the MAC address table of this board, and sets the p1' port of the standby main control board processor to the enabled state , and the p1' port is connected. The line card processor detects that the line card port connected to the first forwarding chip p1' is in a disconnected state, and deletes the MAC address corresponding to the disconnected line card port from the local MAC address table stored in the line card. The second communication link communicates.
在另一个例子中,线卡将与主用主控板的p1端口相连的端口设置为使能状态,且线卡上与p1端口相连的线卡端口处于连接状态,则线卡将与备用主控板处理器的p1'端口相连的线卡端口设置为禁止,备用主控板处理器检测到p1'端口为断开状态,就将p1'端口对应 的MAC地址从备用主控板处理器存储的本地MAC地址表中删除,此时使用第一通讯链路进行通讯。当线卡检测到与主用主控板处理器p1相连的线卡端口处于断开状态,则将该线卡端口的MAC地址从本板的MAC地址表中删除,并将与备用主控板处理器的p1'端口相连的线卡端口设置为使能状态,而且该线卡端口处于连接状态。主用主控板处理器检测到p1端口为断开状态,则将p1端口对应的MAC地址从本板存储的MAC地址表中删除,此时使用第二通讯链路进行通讯。In another example, the line card sets the port connected to the p1 port of the active main control board to the enabled state, and the line card port connected to the p1 port on the line card is in the connected state, then the line card will communicate with the standby main control board. The line card port connected to the p1' port of the control board processor is set to be disabled, and the standby main control board processor detects that the p1' port is disconnected, and stores the corresponding MAC address of the p1' port from the standby main control board processor. is deleted from the local MAC address table, and the first communication link is used for communication at this time. When the line card detects that the line card port connected to the processor p1 of the active main control board is disconnected, it deletes the MAC address of the line card port from the MAC address table of this board, and connects it with the standby main control board. The line card port connected to the p1' port of the processor is set to the enabled state, and the line card port is in the connected state. When the processor of the main main control board detects that the p1 port is disconnected, it deletes the MAC address corresponding to the p1 port from the MAC address table stored on the board, and uses the second communication link for communication at this time.
本示例中,与第二实施例类似,互联的端口在速率为10M或100M或1G或2.5G时都配置成自协商模式。在10G时配置为强制模式,此时需要打开芯片的远端错误通知功能。当链路的一端断开时,对端的端口也会更改为断开状态,因此,每块主控板和线卡只要检测自身线卡的端口的连接状态就可以设置转发状态,而不需要在主控和线卡之间做额外的同步。In this example, similar to the second embodiment, the interconnected ports are all configured in the auto-negotiation mode when the rate is 10M or 100M or 1G or 2.5G. It is configured in forced mode at 10G, and the remote error notification function of the chip needs to be turned on. When one end of the link is disconnected, the port on the opposite end will also change to the disconnected state. Therefore, each main control board and line card can set the forwarding state as long as it detects the connection state of the port of its own line card. Do additional synchronization between the master and the line cards.
主备配置方式下,主用主控板到线卡之间的板间通讯链路有一条是主用,一条是备用。当第一通讯链路上出现端口断开时,切换至第二通讯链路。同时还可以上报告警,避免出现反复倒换的情况。In the active-standby configuration mode, one of the inter-board communication links between the active main control board and the line card is active and the other is standby. When the port disconnection occurs on the first communication link, switch to the second communication link. At the same time, it can also report to the police to avoid repeated switching.
本公开的第四实施例涉及一种板间通讯的方法,应用于上述实施例中的网络设备,其流程如图9所示。The fourth embodiment of the present disclosure relates to a method for inter-board communication, which is applied to the network device in the above-mentioned embodiments, and the process is shown in FIG. 9 .
步骤401:对主用主控板与线卡之间形成的至少两条通讯链路进行配置。Step 401: Configure at least two communication links formed between the active main control board and the line card.
网络设备包括主用主控板、备用主控板以及至少一个线卡。主用主控板包括主用主控板处理器以及与主用主控板处理器连接的第一转发芯片。备用主控板包括备用主控板处理器以及与备用主控板处理器连接的第二转发芯片。第一转发芯片与线卡的一个线卡端口连接,形成第一转发芯片与线卡的第一通讯链路。第一转发芯片与第二转发芯片之间通过至少一个通讯端口连接,第二转发芯片与线卡的另一线卡端口连接,形成第一转发芯片与线卡的第二通讯链路。主用主控板处理器用于配置第一通讯链路与第二通讯链路为负荷分担模式,或者,用于配置第一通讯链路与第二通讯链路为主备通讯模式。The network device includes an active main control board, a standby main control board and at least one line card. The main main control board includes a main main control board processor and a first forwarding chip connected to the main main control board processor. The standby main control board includes a standby main control board processor and a second forwarding chip connected to the standby main control board processor. The first forwarding chip is connected to a line card port of the line card to form a first communication link between the first forwarding chip and the line card. The first forwarding chip and the second forwarding chip are connected through at least one communication port, and the second forwarding chip is connected with another line card port of the line card to form a second communication link between the first forwarding chip and the line card. The active main control board processor is configured to configure the first communication link and the second communication link to be in the load sharing mode, or configured to configure the first communication link and the second communication link to be the active and standby communication mode.
例如,本示例中网络设备可以为插卡式网络设备,板卡以插卡式方式与背板连接,背板中设置有与线卡连接的金属连接件。网络设备外部为机框结构,用于保护板卡以及方便设置背板。本示例中,板卡包括主用主控板、备用主控板和线卡,线卡有多个,例如,2个线卡、3个以上线卡等。每个线卡上设置有至少两个线卡端口,若备用主控板的数量有2个以上,则线卡上的线卡端口可以设置3个以上。本示例中,以两个线卡端口为例进行介绍。For example, in this example, the network device may be a plug-in network device, the board is connected to the backplane in a plug-in manner, and the backplane is provided with a metal connector connected to the line card. The outside of the network equipment is a frame structure, which is used to protect the board and facilitate the setting of the backplane. In this example, the board includes an active main control board, a standby main control board, and line cards, and there are multiple line cards, for example, two line cards, three or more line cards, and so on. Each line card is provided with at least two line card ports. If there are more than two standby main control boards, more than three line card ports can be configured on the line card. In this example, two line card ports are used as an example.
主用主控板与每个线卡之间的有两条链路,分别为第一通讯链路和第二通讯链路。第 一通讯链路是第一转发芯片连接线卡形成的,第二通讯链路是第一转发芯片连接第二转发芯片,第二转发芯片连接该线卡形成。其中,第一转发芯片与第二转发芯片之间的通讯链路可以为一条,也可以为两条以上,即,第一转发芯片的a端口与第二转发芯片的a端口连接,第一转发芯片的b端口与第二转发芯片的b端口连接,形成第一转发芯片与第二转发芯片之间的两条及以上通讯链路。There are two links between the main main control board and each line card, namely the first communication link and the second communication link. The first communication link is formed by connecting the first forwarding chip to the line card, and the second communication link is formed by connecting the first forwarding chip to the second forwarding chip, and the second forwarding chip is connected to the line card. There may be one or more than two communication links between the first forwarding chip and the second forwarding chip, that is, port a of the first forwarding chip is connected to port a of the second forwarding chip, and the first forwarding chip is connected to port a of the second forwarding chip. The b port of the chip is connected to the b port of the second forwarding chip to form two or more communication links between the first forwarding chip and the second forwarding chip.
步骤402:若任意板卡检测到主用主控板与线卡之间任一条通讯链路异常的情况下,使用另一条正常的通讯链路,以使主用主控板与线卡通信。Step 402: If any of the boards detects that any communication link between the main main control board and the line card is abnormal, another normal communication link is used to enable the main main control board to communicate with the line card.
在负荷分担模式下,两条通讯链路是同时工作的,当一条通讯链路断开后,流量自动转发到另一条正常的通讯链路。在主备模式下,若主用主控板与线卡之间的第一通讯链路出现异常,而备用主控板与线卡之间的第二通讯链路正常,可以切换至备用主控板与线卡之间的第二通讯链路进行通讯。同样,若备用主控板与线卡之间的第二通讯链路出现链路异常,而主用主控板与线卡之间的第一通讯链路正常,可以切换至主用主控板与线卡之间的第一通讯链路进行通讯。如果两条通讯链路都正常,优先使用第一通讯链路进行通讯。In the load sharing mode, the two communication links work at the same time. When one communication link is disconnected, the traffic is automatically forwarded to another normal communication link. In the active/standby mode, if the first communication link between the active main control board and the line card is abnormal, but the second communication link between the standby main control board and the line card is normal, you can switch to the standby main control board. A second communication link between the board and the line card communicates. Similarly, if the second communication link between the standby main control board and the line card is abnormal, but the first communication link between the active main control board and the line card is normal, it can be switched to the active main control board. Communicates with the first communication link between the line cards. If both communication links are normal, the first communication link is preferred for communication.
本公开第五实施例涉及一种计算机可读存储介质,存储有计算机程序,计算机程序被处理器执行时实现上述功能。The fifth embodiment of the present disclosure relates to a computer-readable storage medium storing a computer program, and the computer program implements the above-mentioned functions when executed by a processor.
本领域技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。Those skilled in the art can understand that all or part of the steps in the method of the above embodiments can be completed by instructing the relevant hardware through a program. The program is stored in a storage medium and includes several instructions to make a device (which may be a single-chip microcomputer) , chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present disclosure. The aforementioned storage medium includes various media that can store program codes, such as U disk, removable hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk.
本领域的普通技术人员可以理解,上述各实施例是实现本公开的具体实施例,而在实际应用中,可以在形式上和细节上对其作各种改变,而不偏离本公开的精神和范围。Those skilled in the art can understand that the above-mentioned embodiments are specific embodiments for realizing the present disclosure, and in practical applications, various changes in form and details can be made without departing from the spirit and the spirit of the present disclosure. scope.

Claims (12)

  1. 一种网络设备,其中,含有的板卡包括:主用主控板、备用主控板以及至少一个线卡;A network device, wherein the included boards include: an active main control board, a backup main control board, and at least one line card;
    所述主用主控板与所述备用主控板之间通过至少一个通信端口连接;The main main control board and the standby main control board are connected through at least one communication port;
    所述线卡上设置有至少两个用于板间通讯的线卡端口,至少两个所述线卡端口分别连接所述主用主控板和所述备用主控板,形成至少两条所述主用主控板与所述线卡之间的通讯链路;The line card is provided with at least two line card ports for inter-board communication, and at least two of the line card ports are respectively connected to the main main control board and the standby main control board, forming at least two the communication link between the main main control board and the line card;
    若任意所述板卡检测到所述主用主控板与所述线卡之间任一条所述通讯链路异常的情况下,使用另一条正常的所述通讯链路,以使所述主用主控板与所述线卡通信。If any of the boards detects that any one of the communication links between the active main control board and the line card is abnormal, another normal communication link is used, so that the main The main control board communicates with the line cards.
  2. 根据权利要求1所述的网络设备,其中,所述主用主控板包括:主用主控板处理器以及与所述主用主控板处理器连接的第一转发芯片;所述备用主控板包括:备用主控板处理器以及与所述备用主控板处理器连接的第二转发芯片;The network device according to claim 1, wherein the main main control board comprises: a main main control board processor and a first forwarding chip connected to the main main control board processor; the backup main control board The control board includes: a standby main control board processor and a second forwarding chip connected to the standby main control board processor;
    所述第一转发芯片与任一个所述线卡端口连接,形成所述主用主控板处理器与所述线卡的第一通讯链路;The first forwarding chip is connected to any one of the line card ports to form a first communication link between the main main control board processor and the line card;
    所述第一转发芯片与所述第二转发芯片之间通过至少一个所述通信端口连接,所述第二转发芯片与所述线卡的另一所述线卡端口连接,形成所述第一转发芯片与所述线卡的第二通讯链路;The first forwarding chip and the second forwarding chip are connected through at least one of the communication ports, and the second forwarding chip is connected with the other port of the line card to form the first forwarding chip. a second communication link between the forwarding chip and the line card;
    所述主用主控板处理器用于配置所述第一通讯链路与所述第二通讯链路为负荷分担模式,或者,用于配置所述第一通讯链路与所述第二通讯链路为主备模式。The main main control board processor is configured to configure the first communication link and the second communication link to be in a load sharing mode, or configured to configure the first communication link and the second communication link The road is in active and standby mode.
  3. 根据权利要求2所述的网络设备,其中,所述主用主控板处理器用于:配置所述第一转发芯片中用于连接所述第二转发芯片的通信端口为第一堆叠口;所述备用主控板处理器用于配置所述第二转发芯片中用于连接所述第一转发芯片的通信端口为第二堆叠口;The network device according to claim 2, wherein the active main control board processor is configured to: configure a communication port in the first forwarding chip for connecting the second forwarding chip to be a first stack port; The standby main control board processor is configured to configure the communication port in the second forwarding chip for connecting the first forwarding chip as a second stack port;
    所述主用主控板处理器和所述备用主控板处理器分别用于:将所述第一转发芯片中用于连接所述线卡的端口以及所述第二转发芯片上用于连接所述线卡的端口配置为第一聚合组;所述线卡用于将与所述主用芯片连接的所述线卡端口和与所述备用芯片连接的所述线卡端口配置为本板的第二聚合组;The main main control board processor and the standby main control board processor are respectively used for: connecting the port in the first forwarding chip for connecting the line card and the port on the second forwarding chip for connecting The port of the line card is configured as a first aggregation group; the line card is used to configure the line card port connected with the main chip and the line card port connected with the backup chip as the board The second aggregation group of ;
    其中,所述第一聚合组与所述第二聚合组对接形成聚合链路,以使所述第一通讯链路和所述第二通讯链路成为负荷分担模式。Wherein, the first aggregation group is connected with the second aggregation group to form an aggregation link, so that the first communication link and the second communication link are in a load sharing mode.
  4. 根据权利要求3所述的网络设备,其中,所述主用主控板处理器和所述备用主控板处理器配置各自所处主控板上的第一聚合组信息;The network device according to claim 3, wherein the active main control board processor and the standby main control board processor configure the first aggregation group information on the main control boards where they are located;
    所述第一聚合组信息包括:第一转发芯片的标识信息、所述第一转发芯片中用于与所述线卡连接的第一端口的信息、所述第二转发芯片的标识信息以及所述第二转发芯片中用于与所述线卡连接的第二端口的信息;The first aggregation group information includes: identification information of the first forwarding chip, information of the first port in the first forwarding chip for connecting with the line card, identification information of the second forwarding chip, and the information of the second port in the second forwarding chip for connecting with the line card;
    所述线卡还用于配置所述线卡上的第二聚合组信息,所述第二聚合组信息中包括:所述线卡上用于连接所述第一转发芯片的线卡端口的信息以及用于连接第二转发芯片的线卡端口的信息。The line card is further configured to configure second aggregation group information on the line card, where the second aggregation group information includes: information on the line card used to connect the line card port of the first forwarding chip and information on the line card port used to connect the second forwarding chip.
  5. 根据权利要求4所述的网络设备,其中,若所述主用主控板处理器配置所述第一通讯链路和所述第二通讯链路为负荷分担模式;The network device according to claim 4, wherein, if the main main control board processor configures the first communication link and the second communication link to be a load sharing mode;
    所述主用主控板处理器还用于:若检测到所述第一端口的物理状态发生变更,则在所述第一聚合组信息中删除或增加第一端口聚合信息,重新设置所述第一端口的逻辑转发状态,并向所述备用主控板处理器发送所述第一端口的物理状态的信息,以供所述备用主控板处理器在所处主控板上的第一聚合信息中删除或增加所述第一端口聚合信息,其中,所述第一端口聚合信息包括:所述第一端口的信息以及所述第一转发芯片的标识信息;The active main control board processor is further configured to delete or add the first port aggregation information in the first aggregation group information if it is detected that the physical state of the first port has changed, and reset the the logical forwarding state of the first port, and send information about the physical state of the first port to the standby main control board processor for the first port of the standby main control board processor on the main control board where the standby main control board processor is located. Deleting or adding the first port aggregation information from the aggregation information, wherein the first port aggregation information includes: the information of the first port and the identification information of the first forwarding chip;
    所述备用主控板处理器还用于:若检测到所述第二端口的物理状态发生变更,则在所述第一聚合组信息中删除或增加第二端口聚合信息,重新设置所述第二端口的逻辑转发状态,并向所述主用主控板处理器发送所述第二端口的物理状态的信息,以供所述主用主控板处理器在所处主控板上的第一聚合信息中删除或增加所述第二端口聚合信息,其中,所述第二端口聚合信息包括:所述第二端口的信息以及所述第二转发芯片的标识信息;The standby main control board processor is further configured to delete or add second port aggregation information in the first aggregation group information, and reset the second port aggregation information if it is detected that the physical state of the second port changes. The logical forwarding state of the second port, and send the information of the physical state of the second port to the active main control board processor, so that the active main control board processor can be used for the second port on the main control board where the active main control board processor is located. The second port aggregation information is deleted or added in a piece of aggregation information, wherein the second port aggregation information includes: the information of the second port and the identification information of the second forwarding chip;
    所述线卡还用于:若检测到所述线卡端口的物理状态发生变更,则在所述第二聚合信息中删除或增加线卡端口聚合信息,并重新设置变更状态的所述线卡端口的逻辑转发状态,所述线卡端口聚合信息包括:所述线卡端口的端口信息。The line card is also used for: if it is detected that the physical state of the line card port changes, delete or add line card port aggregation information in the second aggregation information, and reset the line card in the changed state The logical forwarding state of the port, and the line card port aggregation information includes: port information of the line card port.
  6. 根据权利要求2所述的网络设备,其中,若主用主控板处理器被配置为链路控制端,则所述主用主控板处理器和所述备用主控板处理器用于执行如下处理:将处于指定通讯链路的端口置为使能状态,以启用所述指定通讯链路作为主用通讯链路;将处于其他通讯链路中的端口置为禁止状态或阻塞状态,并从各自存储的MAC地址表中删除被置为禁止状态或阻塞状态的端口对应的MAC地址,以使其他通讯链路作为备用通讯链路;所述线卡用于将处于所述备用通讯链路中的端口对应的MAC地址从所述线 卡存储的MAC地址表中删除,以使所述备用通讯链路与所述主用通讯链路组成主备模式;The network device according to claim 2, wherein, if the active main control board processor is configured as a link control end, the main main control board processor and the standby main control board processor are configured to execute the following: Processing: Set the port in the specified communication link to the enabled state to enable the specified communication link as the main communication link; set the port in the other communication link to the disabled or blocked state, and use the specified communication link as the main communication link. Delete the MAC address corresponding to the port set to the disabled state or the blocked state from the MAC address table stored in each, so that other communication links can be used as backup communication links; the line card is used to be in the backup communication link. The MAC address corresponding to the port is deleted from the MAC address table stored in the line card, so that the standby communication link and the main communication link form an active-standby mode;
    若所述线卡被配置为链路控制端,则所述线卡用于执行如下处理:将处于指定通讯链路的端口置为使能状态,以启用所述指定通讯链路作为主用通讯链路;将处于其他通讯链路中的端口置为禁止状态或阻塞状态,并从所述线卡存储的MAC地址表中删除被置为禁止状态或阻塞状态的端口对应的MAC地址,以使其他通讯链路作为备用通讯链路;所述主用主控板处理器和所述备用主控板处理器还用于:检测处于所述备用通讯链路的端口对应的MAC地址从各自存储的MAC地址表中删除,以使所述备用通讯链路与所述主用通讯链路组成主备模式。If the line card is configured as the link control terminal, the line card is configured to perform the following processing: set the port in the designated communication link to the enabled state, so as to enable the designated communication link as the main communication link link; set the ports in other communication links to the forbidden state or the blocked state, and delete the MAC address corresponding to the port that is set to the forbidden state or the blocked state from the MAC address table stored in the line card, so that the Other communication links are used as backup communication links; the active main control board processor and the backup main control board processor are also used to: detect that the MAC address corresponding to the port in the backup communication link is stored from the respective stored ones. The MAC address table is deleted, so that the standby communication link and the active communication link form an active-standby mode.
  7. 根据权利要求6所述的网络设备,其中,所述第一通讯链路与所述第二通讯链路为主备模式;The network device according to claim 6, wherein the first communication link and the second communication link are in active/standby mode;
    所述主用主控板处理器、所述备用主控板处理器以及所述线卡还用于执行如下处理:周期性检测处于所述主用通讯链路的端口对应端口状态,若检测到所述端口对应端口状态变更为断开状态,则启用所述备用通讯链路,断开当前所述主用通讯链路。The main main control board processor, the standby main control board processor, and the line card are further configured to perform the following processing: Periodically detect the port state corresponding to the port in the main communication link, and if detected When the state of the corresponding port of the port is changed to the disconnected state, the backup communication link is enabled, and the current active communication link is disconnected.
  8. 根据权利要求3所述的网络设备,其中,所述第一转发芯片与所述第二转发芯片之间采用两个通讯端口连接;The network device according to claim 3, wherein the first forwarding chip and the second forwarding chip are connected by two communication ports;
    所述主用主控板处理器还用于:配置所述第一转发芯片中用于连接所述第二转发芯片的另一端口为第三堆叠口;将所述第一堆叠口和所述第三堆叠口配置为第三聚合组,存储对应的第三聚合组信息,所述第三聚合信息包括:所述第三堆叠口的端口信息以及所述第一堆叠口的端口信息;The active main control board processor is further configured to: configure another port in the first forwarding chip for connecting to the second forwarding chip as a third stacking port; connect the first stacking port and the The third stack port is configured as a third aggregation group, and stores corresponding third aggregation group information, where the third aggregation information includes: port information of the third stack port and port information of the first stack port;
    所述备用主控板处理器还用于配置所述第二转发芯片中用于连接所述第一转发芯片的另一端口为第四堆叠口;将所述第二堆叠口和所述第四堆叠口配置为第四聚合组,并存储第四聚合组信息,所述第四聚合组信息包括:所述第二堆叠口的端口信息以及所述第四堆叠口的端口信息;The standby main control board processor is further configured to configure another port in the second forwarding chip for connecting the first forwarding chip as a fourth stacking port; the second stacking port and the fourth The stack port is configured as a fourth aggregation group, and stores fourth aggregation group information, where the fourth aggregation group information includes: port information of the second stack port and port information of the fourth stack port;
    其中,所述第一聚合组、所述第二聚合组、所述第三聚合组以及所述第四聚合组对接形成聚合链路。Wherein, the first aggregation group, the second aggregation group, the third aggregation group and the fourth aggregation group are interconnected to form an aggregation link.
  9. 根据权利要求8所述的网络设备,其中,所述主用主控板处理器还用于:检测到所述第三聚合组中任一堆叠口的物理状态发生变更,则在所述第三聚合组信息中删除或增加第一堆叠口变更信息,重新设置所述堆叠口的逻辑转发状态,其中,所述第一堆叠口变更信息包括:所述主用主控板处理器上物理状态发生变更的堆叠口对应的 端口信息;The network device according to claim 8, wherein the active main control board processor is further configured to: detect that the physical state of any stack port in the third aggregation group is changed, then in the third aggregation group Delete or add the first stack port change information in the aggregation group information, and reset the logical forwarding state of the stack port, wherein the first stack port change information includes: the physical state on the active main control board processor occurs. Port information corresponding to the changed stack port;
    所述备用主控板处理器还用于:检测到所述第四聚合组中任一堆叠口的物理状态发生变更,则在所述第四聚合组信息中删除或增加第二堆叠口变更信息,重新设置所述堆叠口的逻辑转发状态,其中,所述第二堆叠口变更信息包括:所述备用主控板处理器上物理状态发生变更的堆叠口对应的端口信息。The standby main control board processor is further configured to: detect that the physical state of any stack port in the fourth aggregation group is changed, and delete or add the second stack port change information in the fourth aggregation group information , reset the logical forwarding state of the stack port, wherein the second stack port change information includes: port information corresponding to the stack port whose physical state is changed on the processor of the standby main control board.
  10. 根据权利要求2所述的网络设备,其中,所述网络设备中两个互联的端口均被配置为自协商模式;或者,所述网络设备中两个互联的端口均被配置为远端故障通知模式。The network device according to claim 2, wherein two interconnected ports in the network device are both configured in an auto-negotiation mode; or, both interconnected ports in the network device are configured as remote fault notification model.
  11. 一种板间通讯方法,应用于根据上述权利要求中任一项所述的网络设备,所述方法包括:An inter-board communication method, applied to the network device according to any one of the preceding claims, the method comprising:
    对主用主控板与线卡之间形成的至少两条通讯链路进行配置;Configure at least two communication links formed between the main main control board and the line card;
    若任意板卡检测到主用主控板与线卡之间任一条通讯链路异常,则使用另一条正常的通讯链路,以使主用主控板与线卡通信。If any board detects that any communication link between the main main control board and the line card is abnormal, another normal communication link is used to enable the main main control board to communicate with the line card.
  12. 一种计算机可读存储介质,存储有计算机程序,计算机程序被处理器执行时实现根据权利要求11所述方法的步骤。A computer-readable storage medium storing a computer program, the computer program implementing the steps of the method according to claim 11 when executed by a processor.
PCT/CN2021/128587 2021-03-22 2021-11-04 Network device, inter-board communication method, and storage medium WO2022199033A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110302471.8 2021-03-22
CN202110302471.8A CN115190003A (en) 2021-03-22 2021-03-22 Network equipment

Publications (1)

Publication Number Publication Date
WO2022199033A1 true WO2022199033A1 (en) 2022-09-29

Family

ID=83396300

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/128587 WO2022199033A1 (en) 2021-03-22 2021-11-04 Network device, inter-board communication method, and storage medium

Country Status (2)

Country Link
CN (1) CN115190003A (en)
WO (1) WO2022199033A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5455959A (en) * 1992-03-02 1995-10-03 Alcatel Network Systems, Inc. System for collecting from masters information independently collected from associated slaves in shelves of a telecommunications terminal
CN101483540A (en) * 2008-01-11 2009-07-15 上海博达数据通信有限公司 Master-slave switching method in high class data communication equipment
CN102148724A (en) * 2011-01-31 2011-08-10 中兴通讯股份有限公司 Link detecting method and network access device
CN105634774A (en) * 2014-10-31 2016-06-01 中兴通讯股份有限公司 Method, service line card and system for recovering link communication
CN105790965A (en) * 2014-12-17 2016-07-20 中兴通讯股份有限公司 Method and device for link switching and line card

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5455959A (en) * 1992-03-02 1995-10-03 Alcatel Network Systems, Inc. System for collecting from masters information independently collected from associated slaves in shelves of a telecommunications terminal
CN101483540A (en) * 2008-01-11 2009-07-15 上海博达数据通信有限公司 Master-slave switching method in high class data communication equipment
CN102148724A (en) * 2011-01-31 2011-08-10 中兴通讯股份有限公司 Link detecting method and network access device
CN105634774A (en) * 2014-10-31 2016-06-01 中兴通讯股份有限公司 Method, service line card and system for recovering link communication
CN105790965A (en) * 2014-12-17 2016-07-20 中兴通讯股份有限公司 Method and device for link switching and line card

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
DU YONG ,YU XUNLING ,XIONG GUILAN: "An Access Controller Multi-board Communication Strategy Based on Dynamic Regulation", STUDY ON OPTICAL COMMUNICATIONS, 11 January 2013 (2013-01-11), pages 64 - 66, XP055973953, ISSN: 1005-8788, DOI: 10.13756/j.gtxyj.2013.01.019 *
HU PENG;KANG MIN;SHI YAN-YUAN: "Research and Application of Internal Communication Technology in Complex Communication Equipment", COMMUNICATIONS TECHNOLOGY, vol. 53, no. 8, 10 August 2020 (2020-08-10), pages 2088 - 2092, XP055973949, ISSN: 1002-0802, DOI: 10.3969/j.issn.1002-0802.2020.08.042 *

Also Published As

Publication number Publication date
CN115190003A (en) 2022-10-14

Similar Documents

Publication Publication Date Title
US7792016B2 (en) Network relay device for relaying data in a network and control method for the same
US7076594B2 (en) Apparatus and method for preventing one way connectivity loops in a computer network
US7639605B2 (en) System and method for detecting and recovering from virtual switch link failures
US8339943B2 (en) Virtual router failover dampening
US7911938B2 (en) System and method for preventing loops in the presence of control plane failures
CN101588304B (en) Implementation method of VRRP and device
US8411690B2 (en) Preventing data traffic connectivity between endpoints of a network segment
CN101557313B (en) Method for protecting uplink plate card of carrier-grade broadband access equipment
CN101127674B (en) Initialization method for transmission nodes of Ethernet loop network system
CN101060485B (en) Topology changed messages processing method and processing device
US7787363B2 (en) Dual-purpose uplinks used in a fault-tolerant stack
EP2618523B1 (en) Method, network device and system for ethernet ring protection switching
CN110912815B (en) Network element ring formation preventing method, device, equipment and readable storage medium
CN102437967B (en) Method and device for forwarding messages
CN102355414B (en) Automatic protection switching state machine processing method and device
US6928049B2 (en) Modular bridging-device
WO2022199033A1 (en) Network device, inter-board communication method, and storage medium
CN100527686C (en) Method and device for restraining virtual local area network interface state change
CN101340315B (en) End-to-end Ethernet protection method and communication apparatus adopting the same
CN102857423A (en) Service flow transferring method and node in distributed link polymerization system
CN103840965B (en) Method for enhancing quick fault convergence in RSTP
CN114039907A (en) Method for improving link stability based on network card binding
WO2023065750A1 (en) State synchronization method and apparatus, and device
JP2013192022A (en) Network device, link aggregation system and redundancy method therefor
CN114172855A (en) Network switch and network switch system thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21932641

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE