WO2020156355A1 - Load sharing method, device, system, single board and storage medium - Google Patents

Load sharing method, device, system, single board and storage medium Download PDF

Info

Publication number
WO2020156355A1
WO2020156355A1 PCT/CN2020/073377 CN2020073377W WO2020156355A1 WO 2020156355 A1 WO2020156355 A1 WO 2020156355A1 CN 2020073377 W CN2020073377 W CN 2020073377W WO 2020156355 A1 WO2020156355 A1 WO 2020156355A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
single board
board
bum
bum message
Prior art date
Application number
PCT/CN2020/073377
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 WO2020156355A1 publication Critical patent/WO2020156355A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/08Load balancing or load distribution

Definitions

  • the present disclosure relates to link aggregation load sharing technologies, for example, to a load sharing method, device, system, single board, and storage medium.
  • the multi-chassislinkaggregationgroup supports the aggregation of Ethernet links of two subracks to form a link aggregation group across subracks, which provides links and subrack-level masters for services. ⁇ protection.
  • the cross-subrack channel protection technology only realizes the cross-subrack active and standby protection of services. That is, under normal circumstances, the services are only forwarded on the main link and the main device.
  • the main node device board detects the client side ( Customer Edge, CE)
  • the equipment board of the master node switches the customer service to the board of the standby node through the cross-subrack aggregation group.
  • the service can be protected in this way, the service can only be forwarded from one of the main link or the backup link, and the service load sharing cannot be realized, and the bandwidth of the cross-subrack aggregation group is not fully utilized.
  • the embodiment of the present invention provides a load sharing method, device, system, single board and storage medium.
  • the embodiment of the present application provides a load sharing method, including:
  • At least one of the first single board and the second single board receives service packets, and the first single board and the second single board are each other as a master and backup board;
  • the link where the first board is located and the chain where the second board is located Load sharing and corresponding forwarding.
  • An embodiment of the present application provides a load sharing system, including a first single board and a second single board that are mutually active and standby single boards, and at least one of the first single board and the second single board is configured to: receive Service message; the link where the first single board is located and the link where the second single board is located are set to: in response to determining that the service message is a non-BUM message, load sharing and corresponding forwarding are performed.
  • the embodiment of the present application provides a single board, including a load sharing module and a message processing module.
  • the load sharing module is configured to receive service messages; the message processing module is configured to respond to determining the service messages.
  • load sharing and corresponding forwarding are performed by the link where the single board is located and the link where the other single board that is the active and standby single board with the single board is located.
  • An embodiment of the present application provides a load sharing device, including a processor and a memory for storing a computer program that can run on the processor.
  • a processor When the processor is used to run the computer program, any implementation of the application is executed.
  • the load sharing method described in the example is described in the example.
  • An embodiment of the present application provides a storage medium in which executable instructions are stored, and the executable instructions are executed by a processor to implement the load sharing method described in any embodiment of the present application.
  • Figure 1 is a schematic diagram of the architecture of a load sharing system in related technologies
  • FIG. 2 is a schematic diagram of the architecture of a load sharing system in an embodiment of the application
  • FIG. 3 is a schematic flowchart of a load sharing method in an embodiment of this application.
  • FIG. 4 is a schematic diagram of the forwarding process of the load sharing method in an embodiment of the application using a known unicast service as an example
  • FIG. 5 is a schematic diagram of the forwarding process of the load sharing method in an embodiment of the present application using an upstream known unicast service as an example;
  • FIG. 6 is a schematic flowchart of a load sharing method in another embodiment of this application.
  • FIG. 7 is a schematic diagram of the forwarding process of the load sharing method in an embodiment of the application, where the main board receives the uplink BUM message as an example;
  • FIG. 8 is a schematic diagram of the forwarding process of the load sharing method in an embodiment of the application, taking the standby board receiving the uplink BUM message as an example;
  • FIG. 9 is a schematic diagram of the forwarding process of the load sharing method in an embodiment of the application, taking the main board receiving downlink BUM packets as an example;
  • FIG. 10 is a schematic diagram of the forwarding process of the load sharing method in an embodiment of the application, taking the standby board receiving the downlink BUM message as an example;
  • FIG. 11 is a schematic diagram of a forwarding process in which the load sharing method in an embodiment of the application adopts the combination of cross-subrack aggregation group and Ethernet multi-environment protection technology;
  • FIG. 12 is a schematic structural diagram of a load sharing system in another embodiment of the application.
  • FIG. 13 is a schematic structural diagram of a single board in an embodiment of the application.
  • FIG. 14 is a schematic structural diagram of a load sharing device in an embodiment of the application.
  • 15 is a schematic flowchart of a load sharing method in an optional embodiment of the application, taking a known unicast packet scenario as an example;
  • FIG. 16 is a schematic flowchart of a load sharing method using the upstream BUM message scenario as an example in an optional embodiment of the application;
  • FIG. 17 is a schematic flowchart of a load sharing method using the following BUM message scenario as an example in an optional embodiment of the application.
  • MC-LAG also known as a link aggregation group between multiple subracks, refers to the aggregation of two corresponding ports on two identical single boards into a protection group to realize the protection of inter-board ports.
  • One access device can simultaneously access two upstream physical devices through the link bundle formed by the cross-subrack aggregation group.
  • Single boards are combined by subracks as units.
  • a subracks can carry multiple different types of boards, and a network element device can include one or more subracks.
  • BUM message refers to Broadcast broadcast message, Unknown unicast unknown unicast message, Multicast multicast message.
  • Aggregation group ports also known as ethernet channels, refer to combining a group of physical ports as a logical channel, that is, a channel-group.
  • the cross-subrack channel protection technology only realizes the cross-subrack active and standby protection of services, that is, under normal circumstances, services are only forwarded on the main link and the main device.
  • the master node equipment board detects that the client-side transmission quality and link status are abnormal, the board switches the client-side business to the standby node's single board through the cross-subrack aggregation group. Service protection, but the service can only be forwarded from the main or backup link, and the bandwidth of the cross-subrack aggregation group cannot be fully utilized.
  • the inventor of the present application discovered in research that the load sharing protection mode can be set for the cross-sub-rack aggregation group, and the load sharing method of the client side business is realized through the cross-sub-rack aggregation group.
  • the main and backup links work at the same time.
  • rules are set to limit the uplink BUM message capabilities of the primary and backup links, which can avoid BUM messages.
  • the messages form a ring between the main and backup boards, so as to ensure the bandwidth utilization and forwarding capacity of the network during the balanced forwarding process of BUM messages through the two links of the main and backup at the same time.
  • FIG. 2 is a schematic structural diagram of a load sharing system provided by an embodiment of the application.
  • the system includes a first single board and a second single board that are mutually active and standby.
  • the first single board and the second single board that are the main and standby boards each other refer to two boards of the same type that together form a cross-subrack aggregation group.
  • the first single board and the second single board The configuration can be the same.
  • the first board can be optionally configured as the main board and the second board can be configured as the backup board; or the second board can be optionally configured according to the aggregation group configuration information.
  • the board is configured as the main board, and the first board is configured as the backup board.
  • the main board A as the first board and the standby board B as the second board as an example.
  • the single-board interconnection port L1 of the first single board and the single-board interconnection port L1 of the second single board are interconnected.
  • the upstream forwarding port C2 of the first board and the upstream forwarding port C2 of the second board are associated with the aggregation group port C1 on the client side to form a cross-subrack aggregation group.
  • the first board and the second board share the load of incoming services through the cross-subrack aggregation group, so that the incoming service packets (ie, downstream packets) from the client side are balanced by the first and second boards It is forwarded to the network side locally, and the service messages (that is, uplink messages) that enter the network side are forwarded to the client side in a balanced manner by the first single board and the second single board.
  • FIG. 3 is a schematic flowchart of a load sharing method provided by an embodiment of this application, which can be applied to the load sharing system shown in FIG. 1, and the method includes the following steps.
  • Step 101 At least one of a first single board and a second single board receives a service message, and the first single board and the second single board are each other as a master and a backup board.
  • the first single board and the second single board are mutually active and standby single boards refer to that the first single board and the second single board are two single boards of the same type that together form a cross-subrack aggregation group, which can be the master single board.
  • the board is the first single board and the backup single board is the second single board; or the main single board is the second single board and the backup single board is the first single board.
  • At least one of the first single board and the second single board receives service packets, which means that the first single board and the second single board receive service packets separately, or the first single board and the second single board jointly receive service packets. Different actual scenes of the text.
  • Step 103 In response to determining that the service message is a non-BUM message, load sharing and corresponding forwarding are performed by the link where the first board is located and the link where the second board is located.
  • non-BUM messages refer to other types of messages except BUM (that is, broadcast messages, unknown unicast messages, and multicast messages), for example, known unicast messages.
  • Load sharing and corresponding forwarding are performed by the link where the first board is located and the link where the second board is located, that is, the service is formed by the link where the first board is located and the link where the second board is located.
  • the main and backup links are forwarded in a balanced manner at the same time, thus making full use of the link bandwidth on the network.
  • the first and second boards receiving downlink packets from the client side as an example.
  • the downlink packets are known unicast packets, they directly pass through the link and the first board where the first board is located.
  • the link where the second board is located performs load sharing, and after reaching the first board and the second board, forwarding is performed according to the destination Media Access Control (MAC) address.
  • MAC Media Access Control
  • the first and second boards directly Forwarding is performed according to the destination MAC address, load sharing is performed through the link where the first board is located and the link where the second board is located, and forwarded to the client side.
  • At least one of the first single board and the second single board receives a service message, and in response to determining that the service message is a non-BUM message, the link and Load sharing and corresponding forwarding are performed on the link where the second single board is located.
  • the load sharing and forwarding of packets through the first board and the second board solves the problem that the related technology can only be forwarded through one of the links of the active and standby boards, and the link bandwidth cannot be fully utilized. Bandwidth utilization is higher.
  • the load sharing method may further include the following steps.
  • Step 105 In response to determining that the service message is a BUM message, restrict the uplink BUM message capability of at least one of the first single board and the second single board according to a setting rule, by restricting the uplink BUM message The first single board and the second single board after the message capability perform corresponding forwarding.
  • BUM message refers to Broadcast broadcast message, unknown unicast unknown unicast message, and multicast multicast message.
  • the service message is a BUM message
  • the BUM message will be broadcast between the first board and the second board.
  • the downstream BUM message Take the downstream BUM message from the client side as an example, the downstream BUM of the first board The message may return to the client side again through the second board, causing the BUM message to form a loop between the first board, the second board and the client side.
  • Restricting the uplink BUM message capability of at least one of the first board and the second board according to the set rules may mean prohibiting the BUM of the first board or the second board according to the forwarding situation of the BUM message Message reporting capability, or limit the reporting capability of the first board and the second board to the BUM message forwarded by the opposite end, by restricting the upstream BUM message capability of the first board and the second board
  • the single board performs corresponding forwarding, so as to avoid the problem of BUM packets forming a loop between the first single board, the second single board, and the client side.
  • the first board and the second board restrict the uplink BUM of at least one of the first board and the second board according to the set rules.
  • the corresponding forwarding can be carried out, so as to avoid the problem of BUM messages forming a loop between the first board, the second board and the client side, and improve the communication between the first board and the second board. Forwarding ability.
  • the step 105 may include the following steps.
  • the second board disables the uplink BUM message function.
  • disabling the upstream BUM message function of the second board refers to prohibiting the upstream forwarding port C2 of the second board from reporting the BUM message.
  • the second board forwards the received upstream BUM packets from the board interconnection port L1 to For the first board, the first board reports the received uplink BUM message to the client side.
  • FIG. 7 Take the first board receiving the upstream packet from the network side as an example.
  • the upstream packet is a BUM packet
  • the first board will receive the upstream BUM packet through the upstream forwarding port C2. Normal forwarding, but when the BUM message passes through the upstream forwarding port C2 of the second board, it will be blocked, thereby ensuring that the upstream BUM message can only be reported to the client side through the upstream forwarding port C2 of the first board.
  • Figure 8 take the second board receiving the upstream packet from the network side as an example.
  • the upstream packet is a BUM packet
  • the second board receives the upstream BUM packet directly and forwards it normally.
  • BUM packets pass through the upstream forwarding port C2 of the second board, they will be blocked.
  • the BUM packets that need to be upstreamed to the client side can only be forwarded through the upstream forwarding port C2 of the first board. In this way, the first board can be guaranteed. Only one node of the single board and the second single board forwards the upstream BUM message to the client side at the same time to prevent the upstream BUM message from forming a loop.
  • the service message is an uplink BUM message
  • restricting the uplink BUM message capability of at least one of the first board and the second board according to the setting rule means prohibiting the second board.
  • the upstream forwarding port C2 of the single board is capable of reporting BUM messages, so as to ensure that only one node on the first and second boards at the same time forwards upstream BUM messages to the client side, preventing upstream BUM messages from forming a loop.
  • the reporting of the received uplink BUM message from the first board to the client side may include the following steps.
  • the second single board adds a designated tag to the received uplink BUM message to obtain an uplink forwarded BUM message, and forwards the uplink forwarded BUM message to the first single board.
  • the first single board reports the received uplink BUM message and the received uplink forwarded BUM message forwarded by the second single board to the client side.
  • the designated label can refer to the virtual local area network (Virtual Local Area Network, vlan) mark set between the first board and the second board in the cross-subrack aggregation group.
  • the vlan mark is added in front of the BUM message to facilitate The first board distinguishes the upstream forwarded BUM message forwarded by the second board from the upstream BUM message received by the local end.
  • the second board disables the upstream BUM message function.
  • the second board adds the vlan tag to the upstream BUM message received to form an upstream forwarding BUM message and forwards it to the first board.
  • the board forwards the upstream BUM message and the upstream BUM message received by the local end to the client side, so as to ensure that the upstream BUM message can only be sent to the client side through the upstream forwarding port C2 of the first board to avoid upstream BUM. Messages are looped.
  • the reporting of the received uplink BUM message from the first board to the client side may include the following steps.
  • the second single board When the link where the first single board is located fails, the second single board enables the uplink BUM message function.
  • the second single board reports the received uplink BUM message and the received uplink forwarded BUM message forwarded by the first single board to the client side.
  • the failure of the link where the first board is located refers to a situation where the link where the first board is located cannot perform normal service forwarding.
  • the second board will switch from disabling the upstream BUM message function to enabling the upstream BUM message function, and switch the business of the link where the first board is located to the second board
  • the second single board reports the received uplink BUM message and the received uplink forwarded BUM message forwarded by the first single board to the client side, thus realizing the service protection function.
  • the load sharing and forwarding mode of the first board and the second board is adopted to realize the balanced sharing and forwarding of service protection.
  • the step 105 may include the following steps.
  • the first single board and the second single board report the uplink BUM message received by the local end to the client side, and forward the received opposite end The upstream forwarded BUM packet is discarded.
  • restricting the uplink BUM message capability of at least one of the first board and the second board according to the setting rule refers to restricting the BUM message forwarded by the first board and the second board to the opposite end Reporting ability.
  • the first board reports the upstream BUM message received by the local end to the client side, and the upstream forwarded BUM message forwarded by the received second board passes through the upstream forwarding port C2 is discarded.
  • the second board reports the upstream BUM message received by the local end to the client side, and discards the upstream forwarded BUM message forwarded by the first board when passing through the upstream forwarding port C2. It can be ensured that the same upstream BUM message can only be sent to the client side through the upstream forwarding port C2 of one of the first board and the second board, so as to prevent the upstream BUM message from forming a loop.
  • the first single board and the second single board report the uplink BUM message received by the local end to the client side, and discard the received uplink forwarded BUM message forwarded by the opposite end. Including the following steps.
  • the first board reports the uplink BUM message received by the local end to the client side, adds the first label to the received uplink BUM message to obtain the uplink forwarded BUM message, and forwards the uplink BUM message Forward to the second board.
  • the second board reports the uplink BUM message received by the local end to the client side, adds the second label to the received uplink BUM message to obtain the uplink forwarded BUM message, and forwards the uplink BUM message Forward to the first board.
  • the first single board and the second single board respectively discard the received uplink forwarding BUM messages forwarded by the opposite end at their respective uplink forwarding ports.
  • the first board adds the first label to the received upstream BUM message and forwards it to The second board.
  • the second board adds a second label to the received upstream BUM message and forwards it to The first board.
  • the first board discards the received upstream forwarding BUM packet forwarded by the second board when it passes through the upstream forwarding port C2, and the second board discards the upstream forwarding BUM packet received by the first board forwarded by the upstream Discard when forwarding port C2. In this way, it can be ensured that the same upstream BUM message can only be sent to the client side through the upstream forwarding port C2 of one of the first board and the second board, so as to prevent the upstream BUM message from forming a loop.
  • the step 105 may include the following steps.
  • the second board disables the uplink BUM message function.
  • the second board In response to determining that the service message is a downlink BUM message, the second board adds a designated tag to the received downlink BUM message to obtain a downlink forwarded BUM message, and forwards the downlink forwarded BUM message to all For the first single board, the first single board discards the received downstream forwarding BUM message forwarded by the second single board at the upstream forwarding port of the first single board.
  • restricting the uplink BUM message capability of at least one of the first single board and the second single board according to the setting rule refers to prohibiting the uplink forwarding port C2 of the second single board from reporting the BUM message capability.
  • the designated label can refer to the VLAN tag set between the first board and the second board in the cross-subrack aggregation group.
  • FIG. 9 Take the first board receiving the downstream message from the customer side (CE) as an example.
  • the downstream message is a BUM message
  • the first board directly performs normal forwarding, and the first board will The received downstream BUM message is forwarded to the second board.
  • the downstream BUM message passes through the upstream forwarding port C2 of the second board, it will be blocked. This ensures that the downstream BUM message received from the first board The message will not be uploaded and forwarded back to the CE, avoiding the looping of downstream BUM messages.
  • Figure 10 taking the second board receiving the downstream message from the client side as an example.
  • the second board When the downstream message is a BUM message, the second board performs normal forwarding and adds a designated label to the downstream BUM message Then, it is forwarded to the first board through the board interconnection port L1. After the first board receives the downstream forwarded BUM message with the specified label, it forwards the downstream forwarded BUM message to the upstream forwarding port C2. The downstream BUM packets are forwarded normally through the upstream forwarding port C2 of the first board. This ensures that the downstream BUM packets received from the second board will not be forwarded and forwarded back to the CE , To avoid the loop of downlink BUM messages.
  • the second board when at least one of the first board and the second board receives a service message and determines that the service message is a downlink BUM message entered by the client, the second board will receive the downlink BUM The message is forwarded to the network side, and the received downstream BUM message is added with a specified label to form a downstream forwarded BUM message, and then forwarded to the first board through the board interconnection port L1, and the downstream forwarded BUM message passes through the first board When the upstream forwarding port C2 is discarded. In this way, the downlink BUM message can be prevented from returning to the client side again via the uplink forwarding port C2 of the first board, and the loop of the downlink BUM message can be avoided.
  • the step 105 may include the following steps.
  • the first single board and the second single board respectively forward the received downlink BUM message to the network side, and forward the received downlink BUM message to the network side.
  • Downlink forwarding BUM packets are discarded at their respective upstream forwarding ports.
  • restricting the uplink BUM message capability of at least one of the first board and the second board according to the setting rule refers to restricting the BUM message forwarded by the first board and the second board to the opposite end Reporting ability.
  • the first board forwards the downlink BUM packet received at the local end to the network side, and the received downlink forwarded BUM packet forwarded by the second board passes the uplink forwarding port
  • the second single board forwards the downstream BUM message received by the local end to the network side, and discards the received downstream forwarded BUM message forwarded by the first single board when passing through the upstream forwarding port C2.
  • the step of discarding the received downlink forwarding BUM message of the opposite end at the respective uplink forwarding port may include the following steps.
  • the first single board adds a first label to the received downlink BUM message to obtain a downlink forwarded BUM message, and forwards the downlink forwarded BUM message to the second single board, and the second single board
  • the received downstream forwarding BUM message forwarded by the first single board is discarded at the upstream forwarding port of the second single board.
  • the second single board adds a second label to the received downlink BUM message to obtain a downlink forwarded BUM message, and forwards the downlink forwarded BUM message to the first single board, and the first single board will The received downstream forwarding BUM message forwarded by the second single board is discarded at the upstream forwarding port of the first single board.
  • the first board adds the first label to the received downstream BUM message and forwards it to The second board.
  • the second board adds a second label to the received downstream BUM packets and forwards them to The first board.
  • the first board discards the received downstream forwarded BUM packets forwarded by the second board when passing through the upstream forwarding port C2
  • the second board discards the received downstream forwarded BUM packets forwarded by the first board through the upstream Discard when forwarding port C2.
  • step 101 before at least one of the first board and the second board receives a service packet, the method may further include the following steps.
  • Step 1021 Obtain aggregation group configuration information.
  • Step 1022 According to the aggregation group configuration information, respectively associate the upstream forwarding port of the first board with the client-side aggregation group port, and the upstream forwarding port of the second board with the client-side aggregation group port.
  • the ports are associated to form a cross-subrack aggregation group, and the cross-subrack aggregation group is configured to perform load sharing through the associated aggregation group ports.
  • the aggregation group configuration information can be configured on the management side of the network.
  • two cascaded boards or devices can be configured as active and standby, and the uplink forwarding ports of the two boards can be associated with the aggregation group ports on the client side to form a cross-subrack aggregation group.
  • Obtaining aggregation group configuration information can also include: creating a vlan mark between the active and standby nodes, marking forwarding BUM packets, and blocking the associated aggregation group port of the standby board, that is, the upstream BUM forwarding function of the upstream forwarding port C2, to ensure Only one of the active and standby nodes can forward the BUM message upstream.
  • the active and standby links where the two single boards are located can perform load sharing and forwarding according to the set rules, thereby improving link bandwidth utilization and service forwarding capabilities.
  • the load sharing method may further include the following steps.
  • the master node is determined according to the master node selection instruction, and the link between the master node and the nodes adjacent to the master node is set as a low-power lossy network routing protocol (Routing Protocol for Low Power and Lossy Network) (LLN), RPL) link.
  • LLC Low Power and Lossy Network
  • ring network protection is established on the first single board, the second single board, and the third single board and the fourth single board communicatively connected to the first single board and the second single board.
  • the master node is selected and determined on the ring network, and the link between the master node and the node adjacent to the master node is set to RPL link.
  • the link is not faulty, in order to ensure that the business is not ringed, the RPL link is in a blocked state, and the link is detected by the Connectivity Fault Management (cfm).
  • Connectivity Fault Management cfm
  • the RPL link is set to the forwarding state, the ring network is switched, and the ring network protection is generated.
  • a ring network protection is established between the third board C and the fourth board D and the main board A and the backup board B.
  • select the fourth board D as the master node, and set the link between the fourth board D and the standby board B as the RPL link.
  • the RPL link is in a blocked state to ensure that the business does not form a loop.
  • Use cfm to detect the link.
  • the RPL link is set to the forwarding state, the ring network is switched, and the ring network protection is generated.
  • MC-LAG and Ethernet Ring Protection Switching are combined to implement a load sharing method to ensure that services are not looped in the ring network architecture.
  • services Load sharing is carried out across subrack aggregation groups, and forwarding is performed on the main and backup links at the same time, which greatly improves bandwidth utilization and forwarding capabilities.
  • the cross-subrack aggregation group will promptly switch the service of the failed link to another normal link, thereby achieving service protection.
  • the failed link recovers, the service continues to perform load sharing through the active and standby links.
  • An embodiment of the present application provides a load sharing system, including a first single board and a second single board that are mutually active and standby single boards, and at least one of the first single board and the second single board is configured to: receive Service message; the link where the first single board is located and the link where the second single board is located are set to: in response to determining that the service message is a non-BUM message, load sharing and corresponding forwarding are performed.
  • the first board and the second board which are the main and backup boards for each other, mean that the first board is the main board and the second board is the backup board; or the first board is the backup board and the second board is the backup board.
  • the board is the main board. Refer to Figure 12, taking the first board as the main board A and the second board as the backup board B as an example, the link where the first board is located is the main link, and the link where the second board is located is the backup link
  • the upstream forwarding port C2 of the first single board and the upstream forwarding port C2 of the second single board are associated with the aggregation group port C1 on the client side to form a cross-subrack aggregation group.
  • the first single board and the second single board identify the type of service message, and when it is determined that the service message is a non-BUM message, the link and The link where the second single board is located performs load sharing and corresponding forwarding, so that the first single board and the second single board complete cross-board aggregation service forwarding, and the primary link and the backup link jointly implement the load sharing of the active and standby links.
  • At least one of the first single board and the second single board is further configured to: in response to determining that the service message is a BUM message, restrict the respective uplink BUM message according to a setting rule Ability, to limit the uplink BUM message capability and forward accordingly.
  • the second board adds a vlan tag to the received upstream BUM message and forwards it to the first board so that the first board can recognize the upstream forwarded BUM message forwarded by the second board.
  • the second board is set to disable the uplink BUM message function.
  • the first single board and the second single board are set to: in response to determining that the service packet is an uplink BUM packet, report the received uplink BUM packet from the first single board to the client side .
  • the second board is configured to: disable the uplink BUM message function; in response to determining that the service message is a downlink BUM message, add a designated tag to the received downlink BUM message Obtain a downlink forwarded BUM message, and forward the downlink forwarded BUM message to the first board.
  • the first single board is configured to discard the received downlink forwarding BUM message forwarded by the second single board at the uplink forwarding port of the first single board.
  • the second board is further configured to enable the uplink BUM message function when the link where the first board is located fails.
  • the first single board and the second single board are configured as:
  • the downlink BUM message received by the local end is forwarded to the network side, and the downlink forwarded BUM message forwarded by the opposite end is received at the respective uplink forwarding port throw away.
  • restricting the upstream BUM message capability of at least one of the first board and the second board according to the setting rule refers to restricting the upstream forwarding port pair of the first board and the second board to receive Reporting capability of BUM packets forwarded by the peer.
  • the first board adds the first label to the BUM message and forwards it to the second board, and the second board sends the BUM message to the second board.
  • the message is forwarded to the first board after adding the second label.
  • the first label and the second label can be different vlan labels, so that the first board and the second board can identify the received BUM message forwarded by the opposite end Then discard it at the upstream forwarding port C2.
  • the first single board and the second single board are further configured to: obtain aggregation group configuration information; according to the aggregation group configuration information, the first single board transfers the first single board
  • the uplink forwarding port of the second single board is associated with the aggregation group port on the client side, and the second single board associates the uplink forwarding port of the second single board with the aggregation group port to form a cross-subrack aggregation group.
  • the rack aggregation group is configured to perform load sharing through the associated aggregation group ports.
  • the load sharing system determines that the service packet is a non-BUM packet through the first board and the second board
  • the link between the first board and the chain where the second board is located Load sharing and corresponding forwarding.
  • the first single board and the second single board forward packets through load sharing, which solves the problem that the related technology can only be forwarded through one of the links of the active and standby single boards, thereby achieving higher bandwidth utilization.
  • the first board and the second board determine that the service message is a BUM message
  • the first board and the second board restrict at least one of the first board and the second board according to the set rule
  • the upstream BUM message capability is then forwarded accordingly. In this way, the problem of BUM messages forming a loop between the first board, the second board and the client side can be avoided, and the first board and the second board can be improved. 2.
  • the forwarding capability of the single board is a non-BUM packet through the first board and the second board.
  • an embodiment of the present invention also provides a single board, including a load sharing module 21 and a message processing module 23.
  • the load sharing module 21 is configured to receive service messages; the message processing module 23, In response to determining that the service message is a non-BUM message, load sharing and corresponding forwarding are performed by the link where the single board is located and the link where the other single board that is the master and backup board is mutually active with the single board .
  • the single board may refer to the first single board described in any embodiment of the present application, and the other single board that is the active and standby single board with the single board refers to any implementation of the present application
  • the other board refers to the first board described in any embodiment of the present application, and is not limited herein.
  • the message processing module 23 is further configured to, in response to determining that the service message is a BUM message, limit the uplink BUM message capability of the board according to a setting rule, and based on the restriction The single board after the uplink BUM message capability and the other single board perform corresponding forwarding.
  • the message processing module 23 is further configured to prohibit the upstream BUM message function of the upstream forwarding port of the board; in response to determining that the service message is an upstream BUM message, it will receive Add a specified label to the upstream BUM message to obtain the upstream forwarded BUM message, and forward the upstream forwarded BUM message to the other single board, and the other single board forwards the upstream forwarded BUM message to the Report to the client at the upstream forwarding port of the other board; or, in response to determining that the service message is a downstream BUM message, add the designated label to the received downstream BUM message to obtain a downstream forwarded BUM message And forward the downstream forwarded BUM message to the another single board, and the other single board discards the downstream forwarded BUM message at the upstream forwarding port of the other single board.
  • the message processing module 23 is further configured to enable the uplink BUM message function of the uplink forwarding port of the single board when the link where the other single board is located fails.
  • the message processing module 23 is further configured to, in response to determining that the service message is an uplink BUM message, report the received uplink BUM message to the client side, and send the received uplink BUM message. Adding a specified label to the message to obtain an upstream forwarding BUM message, forwarding the upstream forwarding BUM message to the other single board, and discarding the received upstream forwarding BUM message forwarded by the other single board; Or, in response to determining that the service message is a downlink BUM message, forward the received downlink BUM message to the network side, add a designated label to the received downlink BUM message to obtain a downlink forwarded BUM message, and transfer all The downstream forwarded BUM message is forwarded to the other single board, and the received downstream forwarded BUM message of the other single board is discarded at the upstream forwarding port of the single board.
  • the load sharing module 21 is further configured to obtain aggregation group configuration information, associate the uplink forwarding port of the board with the aggregation group port on the client side according to the aggregation group configuration information, and form a cross-connect Subrack aggregation group.
  • the single board provided in the above embodiment implements the load sharing method
  • only the division of the above multiple program modules is used as an example.
  • the above steps can be allocated to different program modules to complete according to needs, that is, The internal structure of the program for the single board to implement the load sharing method is divided into different program modules to complete all or part of the processing described above.
  • the message processing module 23 may include a BUM message processing module and a message forwarding module.
  • the BUM message processing module includes a tag creation unit, a message judgment unit, and a BUM message processing unit.
  • the tag creation unit It is set to create a special tag vlan between the active and standby boards, which is used to identify the BUM packets transmitted between the active and standby boards.
  • the message judging unit is set to judge the received messages by the active and standby nodes, and distinguish between known unicast and BUM messages.
  • the BUM message processing unit is configured to turn off the upstream BUM function of the upstream forwarding port of the backup board, the downstream BUM message received by the main board is forwarded normally, and the downstream BUM message received by the backup board is marked
  • the vlan label is forwarded to the main single board for forwarding.
  • the main single board directly forwards it normally after receiving it, and the standby single board also forwards it normally after receiving it, but the upstream forwarding port of the standby single board does not forward it.
  • the message forwarding module includes a downlink known unicast message forwarding unit, a downlink BUM message forwarding unit, an uplink known unicast message forwarding unit, and an uplink BUM message forwarding unit.
  • the known downlink unicast message forwarding unit is set to directly perform the forwarding according to the destination MAC address after load sharing through the active and standby links.
  • the downlink BUM message forwarding unit is configured to directly forward the downlink BUM message received by the main single board, and the uplink forwarding port of the standby single board does not forward the BUM message; Downlink BUM packets are forwarded to the main single board after adding a vlan label, and other ports perform normal forwarding. After the main single board receives a vlan-labeled packet, it does not forward to the upstream forwarding port, but other ports perform normal forwarding. .
  • the uplink known unicast message forwarding unit is configured to forward the known uplink unicast messages directly according to the destination MAC address after load sharing through the active and standby links.
  • the upstream BUM message forwarding unit is set to perform normal forwarding directly after receiving the upstream BUM message on the active and standby single board, and the upstream forwarding port of the standby single board does not perform upload forwarding.
  • the embodiment of the present invention also provides a load sharing device.
  • the load sharing device may belong to one or more single boards in the network. Please refer to FIG. 14.
  • the load sharing device includes a processor 201 and a processor for storing 201 is a storage medium 202 of a computer program running on it.
  • the processor 201 is configured to execute the steps of the load sharing method provided in any embodiment of the present application when running the computer program.
  • the processor 201 and the storage medium 202 do not mean that the corresponding number is one, but may be one or more.
  • the storage medium 202 may store an operating system and a load sharing device for implementing the load sharing method provided in the embodiment of the present invention.
  • the processor 201 is used to improve calculation and control capabilities and support the operation of the entire server.
  • the embodiment of the present invention also provides a storage medium, for example, including a memory storing a computer program, and the computer program can be executed by a processor to complete the steps of the load sharing method provided in any embodiment of the present application.
  • the storage medium can be Ferroelectric Random Access Memory (FRAM), Read-Only Memory (ROM), Programmable Read-Only Memory (PROM), erasable and programmable Read-only memory (Erasable Programmable Read-Only Memory, EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), flash memory (Flash Memory), magnetic surface memory, optical disk, or optical disk only CD-ROM (Compact Disc Read-Only Memory) and other memories; it can also be a variety of devices including one or any combination of the foregoing memories.
  • FRAM Ferroelectric Random Access Memory
  • ROM Read-Only Memory
  • PROM Programmable Read-Only Memory
  • EPROM Erasable Programmable Read-Only Memory
  • EEPROM Electrically Erasable Programmable Read
  • At least one of the first single board and the second single board receives a service packet, and responds to determining that the service packet is a non-BUM packet
  • load sharing and corresponding forwarding are performed by the link where the first single board is located and the link where the second single board is located. In this way, the load sharing and forwarding of packets by the first single board and the second single board solves the problem that the related technology can only be forwarded through one of the links of the active and standby single boards, thereby achieving higher bandwidth utilization.
  • the load sharing methods in different scenarios of known unicast packet, uplink BUM packet, and downlink BUM packet transmission are exemplified below.
  • the load sharing method includes the following steps.
  • Step S11 at least one of the main single board and the standby single board receives a known unicast message.
  • Step S12 Determine that the known unicast message is an uplink message or a downlink message.
  • steps S131 to S133 are executed; when it is determined to be an uplink known unicast message, steps S141 to S143 are executed.
  • Step S131 When it is determined that it is a known downlink unicast message, the active and standby links perform load sharing and forward them to the active and standby boards.
  • step S132 the active and standby single boards forward according to the destination MAC address of the known unicast message.
  • Step S133 When one of the active and standby links fails, the service of the failed link is switched to the normal link for forwarding.
  • Step S141 When it is determined that it is an uplink known unicast message, the active and standby single boards forward it according to the destination MAC address.
  • Step S142 the services that reach the client side are load-shared by the active and standby links.
  • Step S143 When one of the active and standby links fails, the service of the failed link is switched to the normal link for forwarding.
  • the active and standby single boards determine that the service message is a known unicast message
  • the active and standby links perform load sharing and corresponding forwarding.
  • the active and standby boards are used to forward packets through load sharing, which solves the problem that the related technology can only forward through one of the links of the active and standby boards but cannot effectively use the network bandwidth, and the bandwidth utilization is higher.
  • the load sharing method further includes the steps of acquiring configuration information, and forming a cross-subrack aggregation group according to the configuration information.
  • the acquiring configuration information and forming a cross-subrack aggregation group based on the configuration information may include: creating an aggregation group port on the client-side device CE to achieve service load sharing; configuring the aggregation group port on the CE device, which can be configured as static or as required Manual aggregation group; establish MC-LAG on the first board and the second board, board A is the main board, board B is the backup board, and the upstream forwarding port C2 of the main board A and the backup board B
  • port L1 is the board interconnection port, and the protection mode selects load sharing; the upstream forwarding port C2 on the standby board prohibits the BUM message sending function; the main board A and Configure the designated vlan label between the standby single
  • the load sharing method may include the following steps.
  • Step S21 at least one of the main single board and the standby single board receives an uplink BUM message.
  • Step S22 Determine that the uplink BUM message is received by the master board or the backup board.
  • step S231 When the master board receives the upstream BUM message, step S231 is executed; when the backup board receives the upstream BUM message, steps S241 to S242 are executed.
  • step S231 the main single board directly forwards the received uplink BUM message normally.
  • step S241 the standby single board prohibits the ability of its upstream forwarding port to report the BUM message, and normally forwards the received upstream BUM message.
  • step S242 the standby single board tags and forwards the received uplink BUM message to the main single board, and reports to the client side through the uplink forwarding port of the main single board.
  • the standby board prevents the upstream forwarding port from reporting BUM messages to ensure that there is only one node in the active and standby boards at the same time Forwarding the upstream BUM message to the client side prevents the upstream BUM message from forming a loop.
  • the forwarding capability of the active and standby boards is improved. It should be noted that in this embodiment, restricting the upstream BUM message capability of at least one of the first board and the second board according to the setting rules is to prohibit the upstream forwarding port C2 of the standby board. Take the reporting capability of BUM packets as an example.
  • the backup board By disabling the reporting capability of BUM packets on the upstream forwarding port C2 of the backup board, the backup board does not need to perform the load sharing and forwarding of upstream BUM packets.
  • the upstream BUM messages received by the single board are distinguished, and the main single board can forward it normally. In this way, the first single board and the second single board can greatly simplify the way of forwarding BUM packets and avoid the problem of BUM packets forming a loop.
  • the load sharing method may include the following steps.
  • Step S31 at least one of the main single board and the standby single board receives the downlink BUM message.
  • Step S22 It is determined that the downlink BUM message is received by the master board or the backup board.
  • steps S331 to S332 are executed; when the slave single board receives the downlink BUM message, steps S341 to S342 are executed.
  • Step S331 When the main single board receives the downlink BUM message, the main single board directly forwards the received downlink BUM message normally.
  • step S332 the main single board normally forwards the downlink BUM message carrying the vlan tag and forwarded by the main single board on other ports except the uplink forwarding port C2.
  • Step S341 The standby single board forwards the received downlink BUM message on other ports except the single board interconnection port L1 normally, and adds the vlan tag to the downstream BUM message and forwards it to the single board interconnection port L1. Main board.
  • step S342 the standby single board prohibits its upstream forwarding port C2 from reporting the BUM message, and the received downstream BUM message forwarded by the primary single board is discarded at its upstream forwarding port C2.
  • the standby board prevents the upstream forwarding port from reporting the BUM message to ensure that the standby board is forwarded to the main board.
  • Downlink BUM packets will not be forwarded and sent back to the client side through the upstream forwarding port of the main board to prevent the downstream BUM packets from forming a loop.
  • the forwarding of the main and standby boards is improved. ability. It should be noted that in this embodiment, restricting the upstream BUM message capability of at least one of the first board and the second board according to the setting rules is to prohibit the upstream forwarding port C2 of the standby board.
  • the backup board can only add designated labels for the downstream BUM packets and forward them To the main single board, and the main single board recognizes the downstream BUM packet forwarded by the standby single board and discards it at the upstream forwarding port C2. In other scenarios, the main single board can forward it normally. In this way, the first single board and the second single board can greatly simplify the way of forwarding BUM packets and avoid the problem of BUM packets forming a loop.

Abstract

The present document discloses a load sharing method, device, system, a single board and a storage medium, wherein the method comprises: at least one of a first single board and a second single board receives a service message, and the first single board and the second single board are mutually active and standby single boards; in response to determining that the service message is a non-BUM message, load sharing and corresponding forwarding are performed by the link where the first single board is located and the link where the second single board is located.

Description

负载分担方法、装置、系统、单板及存储介质Load sharing method, device, system, single board and storage medium
本申请要求在2019年01月29日提交中国专利局、申请号为201910085733.2的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office with an application number of 201910085733.2 on January 29, 2019. The entire content of this application is incorporated into this application by reference.
技术领域Technical field
本公开涉及对链路聚合负载分担技术,例如涉及一种负载分担方法、装置、系统、单板及存储介质。The present disclosure relates to link aggregation load sharing technologies, for example, to a load sharing method, device, system, single board, and storage medium.
背景技术Background technique
随着第五代移动通信技术(5th generation wireless systems,5G)网络的发展,对于带宽、时延、业务转发能力等都提出了新需求。目前跨子架聚合组(multi-chassislinkaggregationgroup,MC-LAG)支持把两个子架的以太网链路聚合在一起,形成一个跨子架的链路聚合组,为业务提供链路以及子架级主备保护。With the development of the 5th generation wireless systems (5G) network, new requirements have been put forward for bandwidth, delay, and service forwarding capabilities. At present, the multi-chassislinkaggregationgroup (MC-LAG) supports the aggregation of Ethernet links of two subracks to form a link aggregation group across subracks, which provides links and subrack-level masters for services.备protection.
相关技术中,跨子架通道保护技术,仅实现了对于业务进行跨子架主备保护,即正常情况下,业务只在主链路和主设备转发,当主节点设备单板检测到客户侧(Customer Edge,CE)传输质量和链路状态不正常时,该主节点设备单板通过跨子架聚合组将客户业务切换至备节点的单板上。这样虽然可以进行业务保护,但业务只能从主链路或者备链路中的一条链路转发,无法实现业务负载分担,没有充分利用跨子架聚合组的带宽。Among the related technologies, the cross-subrack channel protection technology only realizes the cross-subrack active and standby protection of services. That is, under normal circumstances, the services are only forwarded on the main link and the main device. When the main node device board detects the client side ( Customer Edge, CE) When the transmission quality and link status are abnormal, the equipment board of the master node switches the customer service to the board of the standby node through the cross-subrack aggregation group. Although the service can be protected in this way, the service can only be forwarded from one of the main link or the backup link, and the service load sharing cannot be realized, and the bandwidth of the cross-subrack aggregation group is not fully utilized.
发明内容Summary of the invention
本发明实施例提供一种负载分担方法,装置、系统、单板及存储介质。The embodiment of the present invention provides a load sharing method, device, system, single board and storage medium.
本发明实施例的技术方案是这样实现的:The technical solution of the embodiment of the present invention is realized as follows:
本申请实施例提供一种负载分担方法,包括:The embodiment of the present application provides a load sharing method, including:
第一单板和第二单板中至少之一接收业务报文,所述第一单板和所述第二单板互为主备单板;At least one of the first single board and the second single board receives service packets, and the first single board and the second single board are each other as a master and backup board;
响应于确定所述业务报文为非广播、未知单播、组播(Broadcast,Unknown unicast,Multicast,BUM)报文,由所述第一单板所在链路和所述第二单板所在链路进行负载分担和相应转发。In response to determining that the service message is a non-broadcast, unknown unicast, multicast (Broadcast, Unknown unicast, Multicast, BUM) message, the link where the first board is located and the chain where the second board is located Load sharing and corresponding forwarding.
本申请实施例提供一种负载分担系统,包括互为主备单板的第一单板和第 二单板,所述第一单板和所述第二单板中至少之一设置为:接收业务报文;所述第一单板所在链路和所述第二单板所在链路设置为:响应于确定所述业务报文为非BUM报文,进行负载分担和相应转发。An embodiment of the present application provides a load sharing system, including a first single board and a second single board that are mutually active and standby single boards, and at least one of the first single board and the second single board is configured to: receive Service message; the link where the first single board is located and the link where the second single board is located are set to: in response to determining that the service message is a non-BUM message, load sharing and corresponding forwarding are performed.
本申请实施例提供一种单板,包括负载分担模块和报文处理模块,所述负载分担模块,设置为接收业务报文;所述报文处理模块,设置为响应于确定所述业务报文为非BUM报文,由所述单板所在链路和与所述单板互为主备单板的另一单板所在链路进行负载分担和相应转发。The embodiment of the present application provides a single board, including a load sharing module and a message processing module. The load sharing module is configured to receive service messages; the message processing module is configured to respond to determining the service messages. For non-BUM messages, load sharing and corresponding forwarding are performed by the link where the single board is located and the link where the other single board that is the active and standby single board with the single board is located.
本申请实施例提供一种负载分担装置,包括处理器和用于存储能够在所述处理器上运行的计算机程序的存储器,所述处理器用于运行所述计算机程序时,执行本申请任一实施例所述的负载分担方法。An embodiment of the present application provides a load sharing device, including a processor and a memory for storing a computer program that can run on the processor. When the processor is used to run the computer program, any implementation of the application is executed. The load sharing method described in the example.
本申请实施例提供一种存储介质,所述存储介质中存储有可执行指令,所述可执行指令被处理器执行时实现本申请任一实施例所述的负载分担方法。An embodiment of the present application provides a storage medium in which executable instructions are stored, and the executable instructions are executed by a processor to implement the load sharing method described in any embodiment of the present application.
附图说明Description of the drawings
图1为相关技术中负载分担系统的架构示意图;Figure 1 is a schematic diagram of the architecture of a load sharing system in related technologies;
图2为本申请一实施例中负载分担系统的架构示意图;2 is a schematic diagram of the architecture of a load sharing system in an embodiment of the application;
图3为本申请一实施例中负载分担方法的流程示意图;FIG. 3 is a schematic flowchart of a load sharing method in an embodiment of this application;
图4为本申请一实施例中负载分担方法以下行已知单播业务为例的转发流程示意图;4 is a schematic diagram of the forwarding process of the load sharing method in an embodiment of the application using a known unicast service as an example;
图5为为本申请一实施例中负载分担方法以上行已知单播业务为例的转发流程示意图;;FIG. 5 is a schematic diagram of the forwarding process of the load sharing method in an embodiment of the present application using an upstream known unicast service as an example;
图6为本申请另一实施例中负载分担方法的流程示意图;6 is a schematic flowchart of a load sharing method in another embodiment of this application;
图7为本申请一实施例中负载分担方法以主单板接收上行BUM报文为例的转发流程示意图;FIG. 7 is a schematic diagram of the forwarding process of the load sharing method in an embodiment of the application, where the main board receives the uplink BUM message as an example;
图8为本申请一实施例中负载分担方法以备单板接收上行BUM报文为例的转发流程示意图;FIG. 8 is a schematic diagram of the forwarding process of the load sharing method in an embodiment of the application, taking the standby board receiving the uplink BUM message as an example;
图9为本申请一实施例中负载分担方法以主单板接收下行BUM报文为例的转发流程示意图;FIG. 9 is a schematic diagram of the forwarding process of the load sharing method in an embodiment of the application, taking the main board receiving downlink BUM packets as an example;
图10为本申请一实施例中负载分担方法以备单板接收下行BUM报文为例的转发流程示意图;FIG. 10 is a schematic diagram of the forwarding process of the load sharing method in an embodiment of the application, taking the standby board receiving the downlink BUM message as an example;
图11为本申请一实施例中负载分担方法采用跨子架聚合组与以太网多环保 护技术结合的转发流程示意图;FIG. 11 is a schematic diagram of a forwarding process in which the load sharing method in an embodiment of the application adopts the combination of cross-subrack aggregation group and Ethernet multi-environment protection technology;
图12为本申请另一实施例中负载分担系统的架构示意图;FIG. 12 is a schematic structural diagram of a load sharing system in another embodiment of the application;
图13为本申请一实施例中单板的结构示意图;FIG. 13 is a schematic structural diagram of a single board in an embodiment of the application;
图14为本申请一实施例中负载分担装置的结构示意图;14 is a schematic structural diagram of a load sharing device in an embodiment of the application;
图15为本申请一可选的实施例中,以已知单播报文场景为例的负载分担方法的流程示意图;15 is a schematic flowchart of a load sharing method in an optional embodiment of the application, taking a known unicast packet scenario as an example;
图16为本申请一可选的实施例中,以上行BUM报文场景为例的负载分担方法的流程示意图;FIG. 16 is a schematic flowchart of a load sharing method using the upstream BUM message scenario as an example in an optional embodiment of the application;
图17为本申请一可选的实施例中,以下行BUM报文场景为例的负载分担方法的流程示意图。FIG. 17 is a schematic flowchart of a load sharing method using the following BUM message scenario as an example in an optional embodiment of the application.
具体实施方式detailed description
以下结合说明书附图及具体实施例对本发明技术方案做进一步的详细阐述。The technical solution of the present invention will be further described in detail below in conjunction with the drawings and specific embodiments of the specification.
在以下的描述中,涉及到“一些实施例”的表述,其描述了所有可能实施例的子集,但是应当理解,“一些实施例”可以是所有可能实施例的相同子集或不同子集,并且可以在不冲突的情况下相互结合。In the following description, the expression "some embodiments" is involved, which describes a subset of all possible embodiments, but it should be understood that "some embodiments" may be the same subset or different subsets of all possible embodiments , And can be combined with each other without conflict.
对本申请进行进一步详细说明之前,对本发明实施例中涉及的名词和术语进行说明,本发明实施例中涉及的名词和术语适用于如下的解释。Before further describing this application in detail, the terms and terms involved in the embodiments of the present invention will be described. The terms and terms involved in the embodiments of the present invention are applicable to the following explanations.
1)、MC-LAG,又称多子架间的链路聚合组,是指分布在两块相同单板上的两个对应端口聚合成一个保护组,实现板间端口的保护。一台接入设备可以同时通过跨子架聚合组形成的链路捆绑接入上游两台物理设备。单板是以子架为单元进行组合,一个子架内可承载多个不同类型的单板,一个网元设备内可以包括一个或者多个子架。1) MC-LAG, also known as a link aggregation group between multiple subracks, refers to the aggregation of two corresponding ports on two identical single boards into a protection group to realize the protection of inter-board ports. One access device can simultaneously access two upstream physical devices through the link bundle formed by the cross-subrack aggregation group. Single boards are combined by subracks as units. A subracks can carry multiple different types of boards, and a network element device can include one or more subracks.
2)、BUM报文,是指Broadcast广播报文,Unknown unicast未知单播报文,Multicast组播报文。2) BUM message refers to Broadcast broadcast message, Unknown unicast unknown unicast message, Multicast multicast message.
3)、聚合组端口,又称为以太通道(ethernet channel),是指把一组物理端口联合起来,作为一个逻辑通道,也就是通道组(channel-group)。3). Aggregation group ports, also known as ethernet channels, refer to combining a group of physical ports as a logical channel, that is, a channel-group.
相关技术中,跨子架通道保护技术,仅实现了对业务进行跨子架主备保护,即正常情况下,业务只在主链路和主设备转发。请参阅图1,当主节点设备单板检测到客户侧传输质量和链路状态不正常时,该单板通过跨子架聚合组将客户侧业务切换到备节点的单板上,这样虽然可以进行业务保护,但业务只能从主 或备一条链路转发,不能充分利用跨子架聚合组的带宽。Among the related technologies, the cross-subrack channel protection technology only realizes the cross-subrack active and standby protection of services, that is, under normal circumstances, services are only forwarded on the main link and the main device. Refer to Figure 1. When the master node equipment board detects that the client-side transmission quality and link status are abnormal, the board switches the client-side business to the standby node's single board through the cross-subrack aggregation group. Service protection, but the service can only be forwarded from the main or backup link, and the bandwidth of the cross-subrack aggregation group cannot be fully utilized.
本申请发明人在研究中发现,可以针对跨子架聚合组设置负载分担的保护模式,通过跨子架聚合组对客户侧业务实现负载分担的方法,主和备两条链路同时工作,充分的利用网络上的链路带宽。The inventor of the present application discovered in research that the load sharing protection mode can be set for the cross-sub-rack aggregation group, and the load sharing method of the client side business is realized through the cross-sub-rack aggregation group. The main and backup links work at the same time. The use of link bandwidth on the network.
一实施例中,在通过跨子架聚合组对客户侧业务实现负载分担的方法中,针对BUM报文,通过设置规则限制主和备两条链路的上行BUM报文能力,可以避免BUM报文在客户侧、主和备单板间报文成环,从而确保BUM报文通过主和备两条链路同时均衡的转发过程中网络的带宽利用率和转发能力。In one embodiment, in the method of implementing load sharing for client-side services through cross-subrack aggregation groups, for BUM messages, rules are set to limit the uplink BUM message capabilities of the primary and backup links, which can avoid BUM messages. On the client side, the messages form a ring between the main and backup boards, so as to ensure the bandwidth utilization and forwarding capacity of the network during the balanced forwarding process of BUM messages through the two links of the main and backup at the same time.
请参阅图2,为本申请一实施例所提供的负载分担系统的架构示意图。该系统包括互为主备单板的第一单板和第二单板。本申请实施例中,互为主备单板的第一单板和第二单板是指共同形成跨子架聚合组的两块相同类型的单板,第一单板和第二单板的配置可以相同,根据聚合组配置信息而可选择地将第一单板配置为主单板、将第二单板配置为备单板;或者,根据聚合组配置信息而可选择地将第二单板配置为主单板、将第一单板配置为备单板。为了便于描述和理解,以下均以主单板A为第一单板,备单板B为第二单板为例进行说明。第一单板的单板互连端口L1和第二单板的单板互连端口L1互联。第一单板的上行转发端口C2和第二单板的上行转发端口C2与客户侧的聚合组端口C1关联共同形成跨子架聚合组。第一单板和第二单板通过跨子架聚合组对进入的业务进行负载分担,实现对客户侧进入的业务报文(也即下行报文)由第一单板和第二单板均衡地转发到网络侧,且实现对网络侧进入的业务报文(也即上行报文)由第一单板和第二单板均衡地转发到客户侧。Please refer to FIG. 2, which is a schematic structural diagram of a load sharing system provided by an embodiment of the application. The system includes a first single board and a second single board that are mutually active and standby. In the embodiments of the present application, the first single board and the second single board that are the main and standby boards each other refer to two boards of the same type that together form a cross-subrack aggregation group. The first single board and the second single board The configuration can be the same. According to the configuration information of the aggregation group, the first board can be optionally configured as the main board and the second board can be configured as the backup board; or the second board can be optionally configured according to the aggregation group configuration information. The board is configured as the main board, and the first board is configured as the backup board. For ease of description and understanding, the following uses the main board A as the first board and the standby board B as the second board as an example. The single-board interconnection port L1 of the first single board and the single-board interconnection port L1 of the second single board are interconnected. The upstream forwarding port C2 of the first board and the upstream forwarding port C2 of the second board are associated with the aggregation group port C1 on the client side to form a cross-subrack aggregation group. The first board and the second board share the load of incoming services through the cross-subrack aggregation group, so that the incoming service packets (ie, downstream packets) from the client side are balanced by the first and second boards It is forwarded to the network side locally, and the service messages (that is, uplink messages) that enter the network side are forwarded to the client side in a balanced manner by the first single board and the second single board.
请参阅图3,为本申请一实施例提供的负载分担方法的流程示意图,可应用于如图1所示负载分担系统,该方法包括如下步骤。Please refer to FIG. 3, which is a schematic flowchart of a load sharing method provided by an embodiment of this application, which can be applied to the load sharing system shown in FIG. 1, and the method includes the following steps.
步骤101,第一单板和第二单板中至少之一接收业务报文,所述第一单板和所述第二单板互为主备单板。Step 101: At least one of a first single board and a second single board receives a service message, and the first single board and the second single board are each other as a master and a backup board.
这里,第一单板和第二单板互为主备单板是指,第一单板和第二单板为共同形成跨子架聚合组的两块相同类型的单板,可以是主单板为第一单板、备单板为第二单板;或者可以是主单板为第二单板、备单板为第一单板。第一单板和第二单板中至少之一接收业务报文,是指包括第一单板和第二单板分别接收业务报文、或者第一单板和第二单板共同接收业务报文的不同实际场景。Here, the first single board and the second single board are mutually active and standby single boards refer to that the first single board and the second single board are two single boards of the same type that together form a cross-subrack aggregation group, which can be the master single board. The board is the first single board and the backup single board is the second single board; or the main single board is the second single board and the backup single board is the first single board. At least one of the first single board and the second single board receives service packets, which means that the first single board and the second single board receive service packets separately, or the first single board and the second single board jointly receive service packets. Different actual scenes of the text.
步骤103,响应于确定所述业务报文为非BUM报文,由所述第一单板所在 链路和所述第二单板所在链路进行负载分担和相应转发。Step 103: In response to determining that the service message is a non-BUM message, load sharing and corresponding forwarding are performed by the link where the first board is located and the link where the second board is located.
这里,非BUM报文是指除BUM(即广播报文、未知单播报文、组播报文)之外的其它类型报文,比如,已知单播报文。由所述第一单板所在链路和所述第二单板所在链路进行负载分担和相应转发,也即,业务通过第一单板所在链路和第二单板所在链路共同形成的主和备两条链路同时均衡的转发,从而充分的利用网络上的链路带宽。Here, non-BUM messages refer to other types of messages except BUM (that is, broadcast messages, unknown unicast messages, and multicast messages), for example, known unicast messages. Load sharing and corresponding forwarding are performed by the link where the first board is located and the link where the second board is located, that is, the service is formed by the link where the first board is located and the link where the second board is located. The main and backup links are forwarded in a balanced manner at the same time, thus making full use of the link bandwidth on the network.
请参阅图4,以第一单板和第二单板接收到客户侧进入的下行报文为例,当下行报文为已知单播报文时,直接通过第一单板所在链路和第二单板所在链路进行负载分担,到达第一单板和第二单板后按照目的媒体访问控制(Media Acess Control,MAC)地址进行转发。请参阅图5,再以第一单板和第二单板接收到网络侧进入的上行报文为例,当上行报文为已知单播报文时,第一单板和第二单板直接根据目的MAC地址进行转发,通过第一单板所在链路和第二单板所在链路进行负载分担并转发到客户侧。Refer to Figure 4, taking the first and second boards receiving downlink packets from the client side as an example. When the downlink packets are known unicast packets, they directly pass through the link and the first board where the first board is located. The link where the second board is located performs load sharing, and after reaching the first board and the second board, forwarding is performed according to the destination Media Access Control (MAC) address. Please refer to Figure 5, and then take the first and second boards receiving upstream packets from the network side as an example. When the upstream packets are known unicast packets, the first and second boards directly Forwarding is performed according to the destination MAC address, load sharing is performed through the link where the first board is located and the link where the second board is located, and forwarded to the client side.
本申请上述实施例中,第一单板和第二单板中至少之一接收业务报文,响应于确定所述业务报文为非BUM报文,由所述第一单板所在链路和所述第二单板所在链路进行负载分担和相应转发。如此,通过第一单板和第二单板通过负载分担和转发报文,解决了相关技术中仅能通过主备单板的其中一条链路进行转发而不能充分利用链路带宽的问题,从而带宽利用率更高。In the foregoing embodiment of the present application, at least one of the first single board and the second single board receives a service message, and in response to determining that the service message is a non-BUM message, the link and Load sharing and corresponding forwarding are performed on the link where the second single board is located. In this way, the load sharing and forwarding of packets through the first board and the second board solves the problem that the related technology can only be forwarded through one of the links of the active and standby boards, and the link bandwidth cannot be fully utilized. Bandwidth utilization is higher.
在一些实施例中,请参阅图6,所述负载分担方法还可以包括如下步骤。In some embodiments, referring to FIG. 6, the load sharing method may further include the following steps.
步骤105,响应于确定所述业务报文为BUM报文,根据设置规则限制所述第一单板和所述第二单板中至少之一的上行BUM报文能力,通过限制所述上行BUM报文能力后的所述第一单板和所述第二单板进行相应转发。Step 105: In response to determining that the service message is a BUM message, restrict the uplink BUM message capability of at least one of the first single board and the second single board according to a setting rule, by restricting the uplink BUM message The first single board and the second single board after the message capability perform corresponding forwarding.
这里,BUM报文,是指Broadcast广播报文,unknown unicast未知单播报文,multicast组播报文。当业务报文为BUM报文时,由于BUM报文会在第一单板和第二单板之间进行广播,以从客户侧进入的下行BUM报文为例,第一单板的下行BUM报文可能通过第二单板再次回到客户侧,从而导致BUM报文在第一单板、第二单板和客户侧之间成环。根据设置规则限制所述第一单板和所述第二单板中至少之一的上行BUM报文能力,可以是指根据BUM报文的转发情况禁止第一单板或第二单板的BUM报文上报能力、或者限制第一单板和第二单板对对端转发的BUM报文的上报能力,通过限制所述上行BUM报文能力后的所 述第一单板和所述第二单板进行相应转发,从而可以避免BUM报文在第一单板、第二单板和客户侧之间成环的问题。Here, BUM message refers to Broadcast broadcast message, unknown unicast unknown unicast message, and multicast multicast message. When the service message is a BUM message, the BUM message will be broadcast between the first board and the second board. Take the downstream BUM message from the client side as an example, the downstream BUM of the first board The message may return to the client side again through the second board, causing the BUM message to form a loop between the first board, the second board and the client side. Restricting the uplink BUM message capability of at least one of the first board and the second board according to the set rules may mean prohibiting the BUM of the first board or the second board according to the forwarding situation of the BUM message Message reporting capability, or limit the reporting capability of the first board and the second board to the BUM message forwarded by the opposite end, by restricting the upstream BUM message capability of the first board and the second board The single board performs corresponding forwarding, so as to avoid the problem of BUM packets forming a loop between the first single board, the second single board, and the client side.
本申请实施例中,当业务报文为BUM报文时,第一单板和第二单板通过根据设置规则限制所述第一单板和所述第二单板中至少之一的上行BUM报文能力后再进行相应转发,从而可以避免BUM报文在第一单板、第二单板和客户侧之间成环的问题,提升所述第一单板和所述第二单板的转发能力。In the embodiment of the present application, when the service message is a BUM message, the first board and the second board restrict the uplink BUM of at least one of the first board and the second board according to the set rules. After the message capability, the corresponding forwarding can be carried out, so as to avoid the problem of BUM messages forming a loop between the first board, the second board and the client side, and improve the communication between the first board and the second board. Forwarding ability.
在一些实施例中,所述步骤105,可以包括如下步骤。In some embodiments, the step 105 may include the following steps.
所述第二单板禁用所述上行BUM报文功能。The second board disables the uplink BUM message function.
响应于确定所述业务报文为上行BUM报文,将接收到的上行BUM报文由所述第一单板上报至客户侧。In response to determining that the service message is an uplink BUM message, report the received uplink BUM message from the first board to the client side.
这里,第二单板禁用上行BUM报文功能,是指禁止第二单板的上行转发端口C2进行BUM报文的上报能力。如此,第一单板和第二单板接收到的业务报文为从网络侧过来的上行BUM报文时,第二单板将接收到的上行BUM报文从单板互连端口L1转发给第一单板,由第一单板将接收到的上行BUM报文上报至客户侧。Here, disabling the upstream BUM message function of the second board refers to prohibiting the upstream forwarding port C2 of the second board from reporting the BUM message. In this way, when the service packets received by the first and second boards are upstream BUM packets from the network side, the second board forwards the received upstream BUM packets from the board interconnection port L1 to For the first board, the first board reports the received uplink BUM message to the client side.
请参阅图7,以第一单板接收到网络侧进入的上行报文为例,当上行报文为BUM报文时,第一单板将接收到的上行BUM报文通过上行转发端口C2进行正常转发,而当BUM报文经过第二单板的上行转发端口C2时,则会被阻止,由此确保上行BUM报文只能通过第一单板的上行转发端口C2上报到客户侧。请参阅图8,再以第二单板接收到网络侧进入的上行报文为例,当上行报文为BUM报文时,第二单板收到上行BUM报文直接进行正常转达,而当BUM报文经过第二单板的上行转发端口C2时,则会被阻止,需要上行到客户侧的BUM报文只能通过第一单板的上行转发端口C2进行转发,如此,可以确保第一单板和第二单板同时只有一个节点转发上行BUM报文到客户侧,防止上行BUM报文成环。Refer to Figure 7. Take the first board receiving the upstream packet from the network side as an example. When the upstream packet is a BUM packet, the first board will receive the upstream BUM packet through the upstream forwarding port C2. Normal forwarding, but when the BUM message passes through the upstream forwarding port C2 of the second board, it will be blocked, thereby ensuring that the upstream BUM message can only be reported to the client side through the upstream forwarding port C2 of the first board. Please refer to Figure 8, and take the second board receiving the upstream packet from the network side as an example. When the upstream packet is a BUM packet, the second board receives the upstream BUM packet directly and forwards it normally. When BUM packets pass through the upstream forwarding port C2 of the second board, they will be blocked. The BUM packets that need to be upstreamed to the client side can only be forwarded through the upstream forwarding port C2 of the first board. In this way, the first board can be guaranteed. Only one node of the single board and the second single board forwards the upstream BUM message to the client side at the same time to prevent the upstream BUM message from forming a loop.
本申请上述实施例中,当业务报文是上行BUM报文时,根据设置规则限制所述第一单板和所述第二单板中至少之一的上行BUM报文能力是指禁止第二单板的上行转发端口C2进行BUM报文的上报能力,如此确保第一单板和第二单板同时只有一个节点转发上行BUM报文到客户侧,防止上行BUM报文成环。In the foregoing embodiment of the present application, when the service message is an uplink BUM message, restricting the uplink BUM message capability of at least one of the first board and the second board according to the setting rule means prohibiting the second board. The upstream forwarding port C2 of the single board is capable of reporting BUM messages, so as to ensure that only one node on the first and second boards at the same time forwards upstream BUM messages to the client side, preventing upstream BUM messages from forming a loop.
在一些实施例中,所述将接收到的上行BUM报文由所述第一单板上报至客户侧,可以包括如下步骤。In some embodiments, the reporting of the received uplink BUM message from the first board to the client side may include the following steps.
所述第二单板将接收到的上行BUM报文添加指定标签得到上行转发BUM报文,并将所述上行转发BUM报文转发给所述第一单板。The second single board adds a designated tag to the received uplink BUM message to obtain an uplink forwarded BUM message, and forwards the uplink forwarded BUM message to the first single board.
所述第一单板将接收到的上行BUM报文和将接收到的所述第二单板转发的所述上行转发BUM报文上报至客户侧。The first single board reports the received uplink BUM message and the received uplink forwarded BUM message forwarded by the second single board to the client side.
这里,指定标签可以是指设置于跨子架聚合组的第一单板和第二单板之间的虚拟局域网(Virtual Local Area Network,vlan)标记,通过在BUM报文前面添加vlan标记,以便于第一单板区分由第二单板转发过来的上行转发BUM报文以及本端所接收到的上行BUM报文。Here, the designated label can refer to the virtual local area network (Virtual Local Area Network, vlan) mark set between the first board and the second board in the cross-subrack aggregation group. The vlan mark is added in front of the BUM message to facilitate The first board distinguishes the upstream forwarded BUM message forwarded by the second board from the upstream BUM message received by the local end.
本申请上述实施例中,第二单板禁用上行BUM报文功能,第二单板将接收到上行BUM报文添加vlan标记后形成上行转发BUM报文并转发给第一单板,由第一单板将上行转发BUM报文和本端接收到的上行BUM报文上报至客户侧,如此确保上行BUM报文只能通过第一单板的上行转发端口C2上送到客户侧,避免上行BUM报文成环。In the above-mentioned embodiment of this application, the second board disables the upstream BUM message function. The second board adds the vlan tag to the upstream BUM message received to form an upstream forwarding BUM message and forwards it to the first board. The board forwards the upstream BUM message and the upstream BUM message received by the local end to the client side, so as to ensure that the upstream BUM message can only be sent to the client side through the upstream forwarding port C2 of the first board to avoid upstream BUM. Messages are looped.
所述将接收到的上行BUM报文由所述第一单板上报至客户侧,可以包括如下步骤。The reporting of the received uplink BUM message from the first board to the client side may include the following steps.
当所述第一单板所在链路发生故障时,所述第二单板开启所述上行BUM报文功能。When the link where the first single board is located fails, the second single board enables the uplink BUM message function.
所述第二单板将接收到的上行BUM报文和将接收到的所述第一单板转发的上行转发BUM报文上报至客户侧。The second single board reports the received uplink BUM message and the received uplink forwarded BUM message forwarded by the first single board to the client side.
这里,第一单板所在链路发生故障,是指第一单板所在链路无法进行正常业务转发的情况。当第一单板所在链路发生故障时,则第二单板由禁用上行BUM报文功能切换为开启上行BUM报文功能,并将第一单板所在链路的业务切换到第二单板所在链路上,由第二单板将接收到的上行BUM报文和将接收到的所述第一单板转发的上行转发BUM报文上报至客户侧,实现了对业务的保护功能。本申请上述实施例中,相比于传统的保护模式,采用了第一单板和第二单板的负载分担的转发方式,实现对业务保护的均衡分担转发,当其中一条链路故障时,还能将业务报文切换到正常链路上,实现了对业务的保护,在不增加成本的前提下,使得在不同应用场景下提高业务传输的带宽利用率,转发能力和可 靠性。Here, the failure of the link where the first board is located refers to a situation where the link where the first board is located cannot perform normal service forwarding. When the link where the first board is located fails, the second board will switch from disabling the upstream BUM message function to enabling the upstream BUM message function, and switch the business of the link where the first board is located to the second board On the link, the second single board reports the received uplink BUM message and the received uplink forwarded BUM message forwarded by the first single board to the client side, thus realizing the service protection function. In the above-mentioned embodiments of this application, compared with the traditional protection mode, the load sharing and forwarding mode of the first board and the second board is adopted to realize the balanced sharing and forwarding of service protection. When one of the links fails, It can also switch service messages to the normal link, realizing service protection, and improving the bandwidth utilization, forwarding capability and reliability of service transmission in different application scenarios without increasing costs.
在一些实施例中,所述步骤105,可以包括如下步骤。In some embodiments, the step 105 may include the following steps.
响应于确定所述业务报文为上行BUM报文,所述第一单板和所述第二单板将本端接收到的上行BUM报文上报至客户侧,并将接收到的对端转发的上行转发BUM报文丢弃。In response to determining that the service message is an uplink BUM message, the first single board and the second single board report the uplink BUM message received by the local end to the client side, and forward the received opposite end The upstream forwarded BUM packet is discarded.
这里,根据设置规则限制所述第一单板和所述第二单板中至少之一的上行BUM报文能力,是指限制第一单板和第二单板对对端转发的BUM报文的上报能力。确定业务报文为上行BUM报文时,第一单板将本端接收到的上行BUM报文上报至客户侧,并将接收到的第二单板转发的上行转发BUM报文经过上行转发端口C2时丢弃,第二单板将本端接收到的上行BUM报文上报至客户侧,并将接收到的第一单板转发的上行转发BUM报文在经过上行转发端口C2时丢弃,如此,可以确保同一上行BUM报文只能通过第一单板和第二单板中的其中之一的上行转发端口C2上送到客户侧,避免上行BUM报文成环。Here, restricting the uplink BUM message capability of at least one of the first board and the second board according to the setting rule refers to restricting the BUM message forwarded by the first board and the second board to the opposite end Reporting ability. When it is determined that the service message is an upstream BUM message, the first board reports the upstream BUM message received by the local end to the client side, and the upstream forwarded BUM message forwarded by the received second board passes through the upstream forwarding port C2 is discarded. The second board reports the upstream BUM message received by the local end to the client side, and discards the upstream forwarded BUM message forwarded by the first board when passing through the upstream forwarding port C2. It can be ensured that the same upstream BUM message can only be sent to the client side through the upstream forwarding port C2 of one of the first board and the second board, so as to prevent the upstream BUM message from forming a loop.
一些实施例中,所述第一单板和所述第二单板将本端接收到的上行BUM报文上报至客户侧,并将接收到的对端转发的上行转发BUM报文丢弃,可以包括如下步骤。In some embodiments, the first single board and the second single board report the uplink BUM message received by the local end to the client side, and discard the received uplink forwarded BUM message forwarded by the opposite end. Including the following steps.
所述第一单板将本端接收到的上行BUM报文上报至客户侧,并将接收到的上行BUM报文添加第一标签得到上行转发BUM报文,并将所述上行转发BUM报文转发给所述第二单板。The first board reports the uplink BUM message received by the local end to the client side, adds the first label to the received uplink BUM message to obtain the uplink forwarded BUM message, and forwards the uplink BUM message Forward to the second board.
所述第二单板将本端接收到的上行BUM报文上报至客户侧,并将接收到的上行BUM报文添加第二标签得到上行转发BUM报文,并将所述上行转发BUM报文转发给所述第一单板。The second board reports the uplink BUM message received by the local end to the client side, adds the second label to the received uplink BUM message to obtain the uplink forwarded BUM message, and forwards the uplink BUM message Forward to the first board.
所述第一单板和所述第二单板分别将接收到的对端转发的上行转发BUM报文在各自的上行转发端口处丢弃。The first single board and the second single board respectively discard the received uplink forwarding BUM messages forwarded by the opposite end at their respective uplink forwarding ports.
这里,为了便于第一单板区分本端接收到的上行BUM报文以及第二单板转发的上行转发BUM报文,第一单板将接收到的上行BUM报文添加第一标签后转发给第二单板。同理,为了第二单板区分本端接收到的上行BUM报文以及第一单板转发的上行转发BUM报文,第二单板将接收到的上行BUM报文添加第二标签后转发给第一单板。第一单板将接收到的第二单板转发的上行转发BUM 报文在经过上行转发端口C2时丢弃,第二单板将接收到的第一单板转发的上行转发BUM报文在经过上行转发端口C2时丢弃。如此,可以确保同一上行BUM报文只能通过第一单板和第二单板中的其中之一的上行转发端口C2上送到客户侧,避免上行BUM报文成环。Here, in order to facilitate the first board to distinguish between the upstream BUM message received by the local end and the upstream forwarded BUM message forwarded by the second board, the first board adds the first label to the received upstream BUM message and forwards it to The second board. In the same way, in order for the second board to distinguish between the upstream BUM message received by the local end and the upstream forwarded BUM message forwarded by the first board, the second board adds a second label to the received upstream BUM message and forwards it to The first board. The first board discards the received upstream forwarding BUM packet forwarded by the second board when it passes through the upstream forwarding port C2, and the second board discards the upstream forwarding BUM packet received by the first board forwarded by the upstream Discard when forwarding port C2. In this way, it can be ensured that the same upstream BUM message can only be sent to the client side through the upstream forwarding port C2 of one of the first board and the second board, so as to prevent the upstream BUM message from forming a loop.
在一些实施例中,所述步骤105,可以包括如下步骤。In some embodiments, the step 105 may include the following steps.
所述第二单板禁用所述上行BUM报文功能。The second board disables the uplink BUM message function.
响应于确定所述业务报文为下行BUM报文,所述第二单板将接收到的下行BUM报文添加指定标签得到下行转发BUM报文,并将所述下行转发BUM报文转发给所述第一单板,所述第一单板将接收到的所述第二单板转发的所述下行转发BUM报文在所述第一单板的上行转发端口处丢弃。In response to determining that the service message is a downlink BUM message, the second board adds a designated tag to the received downlink BUM message to obtain a downlink forwarded BUM message, and forwards the downlink forwarded BUM message to all For the first single board, the first single board discards the received downstream forwarding BUM message forwarded by the second single board at the upstream forwarding port of the first single board.
这里,根据设置规则限制所述第一单板和所述第二单板中至少之一的上行BUM报文能力,是指禁止第二单板的上行转发端口C2进行BUM报文的上报能力。指定标签可以是指设置于跨子架聚合组的第一单板和第二单板之间的vlan标记,通过在BUM报文前面添加vlan标记,以便于第一单板区分由第二单板转发过来的下行转发BUM报文以及本端所接收到的下行BUM报文。为了避免第二单板将接收到的客户侧进入的下行BUM报文转发给第一单板后,经由第一单板的上行转发端口C2再次上送转发回到客户侧,第二单板将下行BUM报文转发给第一单板时添加指定标签,供第一单板将接收到的第二单板转发的下行转发BUM报文在上行转发端口处丢弃。Here, restricting the uplink BUM message capability of at least one of the first single board and the second single board according to the setting rule refers to prohibiting the uplink forwarding port C2 of the second single board from reporting the BUM message capability. The designated label can refer to the VLAN tag set between the first board and the second board in the cross-subrack aggregation group. By adding the VLAN tag in front of the BUM message, the first board can be distinguished from the second board. The forwarded downlink forwarding BUM message and the downlink BUM message received by the local end. In order to prevent the second board from forwarding the received downstream BUM packets from the client side to the first board, it will be forwarded and forwarded back to the client side through the upstream forwarding port C2 of the first board. When the downstream BUM message is forwarded to the first board, a designated label is added, so that the first board discards the received downstream forwarded BUM message forwarded by the second board at the upstream forwarding port.
请参阅图9,以第一单板接收到客户侧(CE)进入的下行报文为例,当下行报文为BUM报文时,第一单板直接进行正常的转发,第一单板将接收到的下行BUM报文转发至第二单板,当下行BUM报文经过第二单板的上行转发端口C2时,则会被阻止,如此可以确保从第一单板接收到的下行BUM报文不会再上送转发回CE,避免了下行BUM报文成环。请参阅图10,以第二单板接收到客户侧进入的下行报文为例,当下行报文为BUM报文时,第二单板进行正常的转发,并将下行BUM报文添加指定标签后通过单板互连端口L1转发至第一单板,第一单板接收到添加有指定标签的下行转发BUM报文后,将所述下行转发BUM报文在除上行转发端口C2处之外的其它端口进行正常转达,所述下行转发BUM报文经过第一单板的上行转发端口C2处丢弃,如此确保了从第二单板接收到的下行BUM报文不会再上送转发回CE,避免了下行BUM报文成环。Refer to Figure 9. Take the first board receiving the downstream message from the customer side (CE) as an example. When the downstream message is a BUM message, the first board directly performs normal forwarding, and the first board will The received downstream BUM message is forwarded to the second board. When the downstream BUM message passes through the upstream forwarding port C2 of the second board, it will be blocked. This ensures that the downstream BUM message received from the first board The message will not be uploaded and forwarded back to the CE, avoiding the looping of downstream BUM messages. Refer to Figure 10, taking the second board receiving the downstream message from the client side as an example. When the downstream message is a BUM message, the second board performs normal forwarding and adds a designated label to the downstream BUM message Then, it is forwarded to the first board through the board interconnection port L1. After the first board receives the downstream forwarded BUM message with the specified label, it forwards the downstream forwarded BUM message to the upstream forwarding port C2. The downstream BUM packets are forwarded normally through the upstream forwarding port C2 of the first board. This ensures that the downstream BUM packets received from the second board will not be forwarded and forwarded back to the CE , To avoid the loop of downlink BUM messages.
本申请上述实施例中,第一单板和第二单板中至少之一接收业务报文,确定业务报文为客户侧进入的下行BUM报文时,第二单板将接收到的下行BUM报文转发到网络侧,并将接收到的下行BUM报文添加指定标签形成下行转发BUM报文后通过单板互连端口L1转发给第一单板,下行转发BUM报文经过第一单板的上行转发端口C2时丢弃。如此,可以避免下行BUM报文经由第一单板的上行转发端口C2再次回到客户侧,避免下行BUM报文成环。In the above-mentioned embodiment of this application, when at least one of the first board and the second board receives a service message and determines that the service message is a downlink BUM message entered by the client, the second board will receive the downlink BUM The message is forwarded to the network side, and the received downstream BUM message is added with a specified label to form a downstream forwarded BUM message, and then forwarded to the first board through the board interconnection port L1, and the downstream forwarded BUM message passes through the first board When the upstream forwarding port C2 is discarded. In this way, the downlink BUM message can be prevented from returning to the client side again via the uplink forwarding port C2 of the first board, and the loop of the downlink BUM message can be avoided.
在一些实施例中,所述步骤105,可以包括如下步骤。In some embodiments, the step 105 may include the following steps.
响应于确定所述业务报文为下行BUM报文,所述第一单板和所述第二单板分别将接收到的下行BUM报文转发至网络侧,并将接收到的对端转发的下行转发BUM报文在各自的上行转发端口处丢弃。In response to determining that the service message is a downlink BUM message, the first single board and the second single board respectively forward the received downlink BUM message to the network side, and forward the received downlink BUM message to the network side. Downlink forwarding BUM packets are discarded at their respective upstream forwarding ports.
这里,根据设置规则限制所述第一单板和所述第二单板中至少之一的上行BUM报文能力,是指限制第一单板和第二单板对对端转发的BUM报文的上报能力。确定业务报文为下行BUM报文时,第一单板将本端接收到的下行BUM报文转发到网络侧,并将接收到的第二单板转发的下行转发BUM报文经过上行转发端口C2时丢弃,第二单板将本端接收到的下行BUM报文转发至网络侧,并将接收到的第一单板转发的下行转发BUM报文在经过上行转发端口C2时丢弃。如此,可以确保下行BUM报文通过第一单板和第二单板进行负载分担相应转发后,不会再经由对端的上行转发端口C2上送转发回客户侧而导致BUM报文成环,避免了BUM报文成环的问题,提高了对业务传输的带宽利用率、转发能力和可靠性。Here, restricting the uplink BUM message capability of at least one of the first board and the second board according to the setting rule refers to restricting the BUM message forwarded by the first board and the second board to the opposite end Reporting ability. When it is determined that the service packet is a downlink BUM packet, the first board forwards the downlink BUM packet received at the local end to the network side, and the received downlink forwarded BUM packet forwarded by the second board passes the uplink forwarding port When discarding at C2, the second single board forwards the downstream BUM message received by the local end to the network side, and discards the received downstream forwarded BUM message forwarded by the first single board when passing through the upstream forwarding port C2. In this way, it can be ensured that after the downlink BUM packets are forwarded by the load sharing of the first and second boards, they will not be forwarded and forwarded back to the client side through the upstream forwarding port C2 of the opposite end, which will cause the BUM packets to become a ring. This solves the problem of BUM message looping, and improves the bandwidth utilization, forwarding capability and reliability of service transmission.
一些实施例中,所述将接收到的对端的下行转发BUM报文在各自的上行转发端口处丢弃,可以包括如下步骤。In some embodiments, the step of discarding the received downlink forwarding BUM message of the opposite end at the respective uplink forwarding port may include the following steps.
所述第一单板将接收到的下行BUM报文添加第一标签得到下行转发BUM报文,并将所述下行转发BUM报文转发给所述第二单板,所述第二单板将接收到的所述第一单板转发的所述下行转发BUM报文在所述第二单板的上行转发端口处丢弃。The first single board adds a first label to the received downlink BUM message to obtain a downlink forwarded BUM message, and forwards the downlink forwarded BUM message to the second single board, and the second single board The received downstream forwarding BUM message forwarded by the first single board is discarded at the upstream forwarding port of the second single board.
所述第二单板将接收到的下行BUM报文添加第二标签得到下行转发BUM报文,并将所述下行转发BUM报文转发给所述第一单板,所述第一单板将接收到的所述第二单板转发的所述下行转发BUM报文在所述第一单板的上行转发 端口处丢弃。The second single board adds a second label to the received downlink BUM message to obtain a downlink forwarded BUM message, and forwards the downlink forwarded BUM message to the first single board, and the first single board will The received downstream forwarding BUM message forwarded by the second single board is discarded at the upstream forwarding port of the first single board.
这里,为了便于第一单板区分本端接收到的下行BUM报文以及第二单板转发的下行转发BUM报文,第一单板将接收到的下行BUM报文添加第一标签后转发给第二单板。同理,为了第二单板区分本端接收到的下行BUM报文以及第一单板转发的下行转发BUM报文,第二单板将接收到的下行BUM报文添加第二标签后转发给第一单板。第一单板将接收到的第二单板转发的下行转发BUM报文在经过上行转发端口C2时丢弃,第二单板将接收到的第一单板转发的下行转发BUM报文在经过上行转发端口C2时丢弃。如此,可以确保下行BUM报文通过第一单板和第二单板进行负载分担相应转发后,不会再经由对端的上行转发端口C2上送转发回客户侧而导致BUM报文成环,避免了BUM报文成环的问题。Here, in order to facilitate the first board to distinguish between the downstream BUM message received by the local end and the downstream forwarded BUM message forwarded by the second board, the first board adds the first label to the received downstream BUM message and forwards it to The second board. In the same way, in order for the second board to distinguish between the downstream BUM packets received at the local end and the downstream forwarded BUM packets forwarded by the first board, the second board adds a second label to the received downstream BUM packets and forwards them to The first board. The first board discards the received downstream forwarded BUM packets forwarded by the second board when passing through the upstream forwarding port C2, and the second board discards the received downstream forwarded BUM packets forwarded by the first board through the upstream Discard when forwarding port C2. In this way, it can be ensured that after the downlink BUM packets are forwarded by the load sharing of the first and second boards, they will not be forwarded and forwarded back to the client side through the upstream forwarding port C2 of the opposite end, which will cause the BUM packets to become a ring. The problem of BUM packet looping is solved.
在一些实施例中,请再次参阅图6,所述步骤101,第一单板和第二单板中至少之一接收业务报文之前,该方法还可以包括如下步骤。In some embodiments, please refer to FIG. 6 again. In step 101, before at least one of the first board and the second board receives a service packet, the method may further include the following steps.
步骤1021,获取聚合组配置信息。Step 1021: Obtain aggregation group configuration information.
步骤1022,根据所述聚合组配置信息,分别将所述第一单板的上行转发端口与客户侧的聚合组端口关联、所述第二单板的上行转发端口与所述客户侧的聚合组端口关联,并组成跨子架聚合组,所述跨子架聚合组配置为通过关联后的所述聚合组端口进行负载分担。Step 1022: According to the aggregation group configuration information, respectively associate the upstream forwarding port of the first board with the client-side aggregation group port, and the upstream forwarding port of the second board with the client-side aggregation group port. The ports are associated to form a cross-subrack aggregation group, and the cross-subrack aggregation group is configured to perform load sharing through the associated aggregation group ports.
这里,聚合组配置信息可以通过在网络的管理侧进行配置。通过获取聚合组配置信息,可以将级联的两个单板或者设备配置主备,并将两个单板的上行转发端口与客户侧的聚合组端口关联而形成跨子架聚合组。获取聚合组配置信息还可以包括:在主备节点间创建vlan标记,对转发BUM报文进行标记,并且阻断备板的关联聚合组端口,也即上行转发端口C2的上行BUM转发功能,保证主备节点中只有一个节点可对BUM报文进行上行转发。如此,上下行业务经过跨子架聚合组时,可以通过两个单板分别所在的主备链路根据设定的规则进行负载分担转发,提升链路带宽利用率和业务转发能力。Here, the aggregation group configuration information can be configured on the management side of the network. By obtaining the aggregation group configuration information, two cascaded boards or devices can be configured as active and standby, and the uplink forwarding ports of the two boards can be associated with the aggregation group ports on the client side to form a cross-subrack aggregation group. Obtaining aggregation group configuration information can also include: creating a vlan mark between the active and standby nodes, marking forwarding BUM packets, and blocking the associated aggregation group port of the standby board, that is, the upstream BUM forwarding function of the upstream forwarding port C2, to ensure Only one of the active and standby nodes can forward the BUM message upstream. In this way, when the uplink and downlink services pass through the cross-subrack aggregation group, the active and standby links where the two single boards are located can perform load sharing and forwarding according to the set rules, thereby improving link bandwidth utilization and service forwarding capabilities.
在一些实施例中,该负载分担方法还可以包括如下步骤。In some embodiments, the load sharing method may further include the following steps.
基于与所述第一单板通信连接的第三单板和与所述第二单板通信连接的第四单板中,获取主节点选取指令。Acquire a master node selection instruction based on the third single board communicatively connected with the first single board and the fourth single board communicatively connected with the second single board.
根据所述主节点选取指令确定主节点,将所述主节点和与所述主节点相邻的节点之间的链路设置为低功耗有损网络路由协议(Routing Protocol for Low Power and Lossy Network(LLN),RPL)链路。The master node is determined according to the master node selection instruction, and the link between the master node and the nodes adjacent to the master node is set as a low-power lossy network routing protocol (Routing Protocol for Low Power and Lossy Network) (LLN), RPL) link.
这里,在第一单板、第二单板以及分别与第一单板和第二单板通信连接的第三单板和第四单板上建立环网保护。通过获取基于第三单板和第四单板的主节点选取指令,在环网上选择确定主节点,并将所述主节点和与所述主节点相邻的节点之间的链路设置为RPL链路。当链路没有发生故障时,为了保障业务不成环,RPL链路处于阻塞状态,利用连接故障管理(Connectivity Fault Management,cfm)对链路进行检测,当发生总线上有站点连接不上的告警(SystemFault,SF)时,RPL链路设置为转发状态,环网进行切换,产生环网保护。Here, ring network protection is established on the first single board, the second single board, and the third single board and the fourth single board communicatively connected to the first single board and the second single board. By obtaining the master node selection instruction based on the third single board and the fourth single board, the master node is selected and determined on the ring network, and the link between the master node and the node adjacent to the master node is set to RPL link. When the link is not faulty, in order to ensure that the business is not ringed, the RPL link is in a blocked state, and the link is detected by the Connectivity Fault Management (cfm). When there is an alarm ( When SystemFault, SF), the RPL link is set to the forwarding state, the ring network is switched, and the ring network protection is generated.
请参阅图11,第三单板C和第四单板D与主单板A、备单板B之间建立环网保护。在环网的东西端口方向,选取第四单板D为主节点,并将第四单板D和备单板B之前的链路设置为RPL链路。当链路没有发生故障时,RPL链路处于阻塞状态,保障业务不成环。利用cfm对链路进行检测,当发生SF告警时,RPL链路设置为转发状态,环网进行切换,产生环网保护。Referring to Figure 11, a ring network protection is established between the third board C and the fourth board D and the main board A and the backup board B. In the direction of the east and west ports of the ring network, select the fourth board D as the master node, and set the link between the fourth board D and the standby board B as the RPL link. When the link does not fail, the RPL link is in a blocked state to ensure that the business does not form a loop. Use cfm to detect the link. When an SF alarm occurs, the RPL link is set to the forwarding state, the ring network is switched, and the ring network protection is generated.
本申请上述实施例中,将MC-LAG和以太网多环保护技术(Ethernet Ring Protection Switching,ERPS)进行结合实现负载分担方法,保障业务在环行的组网架构中不成环,正常情况下,业务通过跨子架聚合组进行负载分担,同时在主和备两条链路上转发,大大提高了带宽利用率和转发能力。而且,当其中任何一条链路发生故障时,跨子架聚合组会及时将故障链路的业务切换到另外一条正常链路上,从而达到了对业务的保护。当故障链路恢复的时候,业务又继续通过主备链路进行负载分担。In the above-mentioned embodiments of this application, MC-LAG and Ethernet Ring Protection Switching (ERPS) are combined to implement a load sharing method to ensure that services are not looped in the ring network architecture. Normally, services Load sharing is carried out across subrack aggregation groups, and forwarding is performed on the main and backup links at the same time, which greatly improves bandwidth utilization and forwarding capabilities. Moreover, when any one of the links fails, the cross-subrack aggregation group will promptly switch the service of the failed link to another normal link, thereby achieving service protection. When the failed link recovers, the service continues to perform load sharing through the active and standby links.
本申请实施例提供一种负载分担系统,包括互为主备单板的第一单板和第二单板,所述第一单板和所述第二单板中至少之一设置为:接收业务报文;所述第一单板所在链路和所述第二单板所在链路设置为:响应于确定所述业务报文为非BUM报文,进行负载分担和相应转发。An embodiment of the present application provides a load sharing system, including a first single board and a second single board that are mutually active and standby single boards, and at least one of the first single board and the second single board is configured to: receive Service message; the link where the first single board is located and the link where the second single board is located are set to: in response to determining that the service message is a non-BUM message, load sharing and corresponding forwarding are performed.
互为主备单板的第一单板和第二单板,是指第一单板为主单板而第二单板为备单板;或者第一单板为备单板而第二单板为主单板。请参阅图12,以第一单板为主单板A、第二单板为备单板B为例,第一单板所在链路为主链路,第 二单板所在链路为备链路,第一单板的上行转发端口C2和第二单板的上行转发端口C2与客户侧的聚合组端口C1关联,组成跨子架聚合组。负载分担系统进行业务收发时,第一单板和第二单板对业务报文的类型进行识别,确定所述业务报文为非BUM报文时,由所述第一单板所在链路和所述第二单板所在链路进行负载分担相应转发,从而,第一单板和第二单板完成跨板聚合业务转发,主链路和备链路共同实现主备链路负载分担。The first board and the second board, which are the main and backup boards for each other, mean that the first board is the main board and the second board is the backup board; or the first board is the backup board and the second board is the backup board. The board is the main board. Refer to Figure 12, taking the first board as the main board A and the second board as the backup board B as an example, the link where the first board is located is the main link, and the link where the second board is located is the backup link The upstream forwarding port C2 of the first single board and the upstream forwarding port C2 of the second single board are associated with the aggregation group port C1 on the client side to form a cross-subrack aggregation group. When the load sharing system performs service transmission and reception, the first single board and the second single board identify the type of service message, and when it is determined that the service message is a non-BUM message, the link and The link where the second single board is located performs load sharing and corresponding forwarding, so that the first single board and the second single board complete cross-board aggregation service forwarding, and the primary link and the backup link jointly implement the load sharing of the active and standby links.
在一些实施例中,所述第一单板和所述第二单板中至少之一还设置为:响应于确定所述业务报文为BUM报文,根据设置规则限制各自的上行BUM报文能力,限制所述上行BUM报文能力后进行相应转发。In some embodiments, at least one of the first single board and the second single board is further configured to: in response to determining that the service message is a BUM message, restrict the respective uplink BUM message according to a setting rule Ability, to limit the uplink BUM message capability and forward accordingly.
这里,请再次参阅图12,以根据设置规则限制所述第一单板和所述第二单板中至少之一的上行BUM报文能力,为禁止第二单板的上行转发端口的BUM报文的上报能力为例,第二单板将接收到的上行BUM报文添加vlan标签后转发给第一单板,以供第一单板识别第二单板转发的上行转发BUM报文后,经由第一单板的上行转发端口C2上报至客户侧;且第二单板将接收到的下行BUM报文添加vlan标签后转发给第一单板,以供第一单板识别第二单板转发的下行转发BUM报文后,在第一单板的上行转发端口C2处丢弃。通过由第二单板禁止其上行转发端口的BUM报文的上报能力以及将BUM报文添加vlan标签后转发给第一单板,实现BUM报文处理,避免了BUM报文成环的问题。Here, please refer to FIG. 12 again to restrict the upstream BUM message capability of at least one of the first board and the second board according to the setting rule, which is to prohibit the BUM message of the upstream forwarding port of the second board. Take the message reporting capability as an example. The second board adds a vlan tag to the received upstream BUM message and forwards it to the first board so that the first board can recognize the upstream forwarded BUM message forwarded by the second board. Report to the client through the upstream forwarding port C2 of the first board; and the second board adds a vlan tag to the received downstream BUM message and forwards it to the first board so that the first board can identify the second board After the forwarded downlink forwarding BUM message, it is discarded at the uplink forwarding port C2 of the first board. By disabling the reporting capability of the BUM message of its upstream forwarding port by the second single board and adding a vlan tag to the BUM message and forwarding it to the first single board, BUM message processing is realized and the problem of BUM message looping is avoided.
在一些实施例中,所述第二单板是设置为:禁用所述上行BUM报文功能。In some embodiments, the second board is set to disable the uplink BUM message function.
所述第一单板和所述第二单板是设置为:响应于确定所述业务报文为上行BUM报文,将接收到的上行BUM报文由所述第一单板上报至客户侧。The first single board and the second single board are set to: in response to determining that the service packet is an uplink BUM packet, report the received uplink BUM packet from the first single board to the client side .
在一些实施例中,所述第二单板是设置为:禁用所述上行BUM报文功能;响应于确定所述业务报文为下行BUM报文,将接收到的下行BUM报文添加指定标签得到下行转发BUM报文,并将所述下行转发BUM报文转发至所述第一单板。所述第一单板是设置为:将接收到的所述第二单板转发的所述下行转发BUM报文在所述第一单板的上行转发端口处丢弃。In some embodiments, the second board is configured to: disable the uplink BUM message function; in response to determining that the service message is a downlink BUM message, add a designated tag to the received downlink BUM message Obtain a downlink forwarded BUM message, and forward the downlink forwarded BUM message to the first board. The first single board is configured to discard the received downlink forwarding BUM message forwarded by the second single board at the uplink forwarding port of the first single board.
在一些实施例中,所述第二单板还设置为:当所述第一单板所在链路发生故障时,开启所述上行BUM报文功能。In some embodiments, the second board is further configured to enable the uplink BUM message function when the link where the first board is located fails.
在一些实施例中,所述第一单板和所述第二单板是设置为:In some embodiments, the first single board and the second single board are configured as:
响应于确定所述业务报文为上行BUM报文,将本端接收到的上行BUM报文上报至客户侧,并将接收到的对端转发的上行转发BUM报文丢弃;和/或In response to determining that the service message is an uplink BUM message, report the uplink BUM message received by the local end to the client side, and discard the received uplink forwarded BUM message forwarded by the opposite end; and/or
响应于确定所述业务报文为下行BUM报文,将本端接收到的下行BUM报文转发至网络侧,并将接收到的对端转发的下行转发BUM报文在各自的上行转发端口处丢弃。In response to determining that the service message is a downlink BUM message, the downlink BUM message received by the local end is forwarded to the network side, and the downlink forwarded BUM message forwarded by the opposite end is received at the respective uplink forwarding port throw away.
这里,根据设置规则限制所述第一单板和所述第二单板中至少之一的上行BUM报文能力,是指限制第一单板和第二单板的上行转发端口对接收到的对端转发的BUM报文的上报能力。第一单板和第二单板的单板互连端口之间分配配置指定标签,如第一单板将BUM报文添加第一标签后转发给第二单板,第二单板将BUM报文添加第二标签后转发给第一单板,第一标签和第二标签可以为不同的vlan标签,以便于第一单板和第二单板可以识别接收到的对端转发的BUM报文后在上行转发端口C2处丢弃。通过由第一单板和第二单板分别限制其上行转发端口对接收到的对端的BUM报文的上报能力,实现BUM报文处理,避免了BUM报文成环的问题。Here, restricting the upstream BUM message capability of at least one of the first board and the second board according to the setting rule refers to restricting the upstream forwarding port pair of the first board and the second board to receive Reporting capability of BUM packets forwarded by the peer. Assign and configure designated labels between the board interconnection ports of the first board and the second board. For example, the first board adds the first label to the BUM message and forwards it to the second board, and the second board sends the BUM message to the second board. The message is forwarded to the first board after adding the second label. The first label and the second label can be different vlan labels, so that the first board and the second board can identify the received BUM message forwarded by the opposite end Then discard it at the upstream forwarding port C2. Through the first single board and the second single board respectively restricting the ability of its upstream forwarding port to report the received BUM message of the opposite end, BUM message processing is realized, and the problem of BUM message looping is avoided.
在一些实施例中,所述第一单板和所述第二单板还设置为:获取聚合组配置信息;根据所述聚合组配置信息,所述第一单板将所述第一单板的上行转发端口与客户侧的聚合组端口关联、所述第二单板将所述第二单板的上行转发端口与所述聚合组端口关联,并组成跨子架聚合组,所述跨子架聚合组配置为通过关联后的所述聚合组端口进行负载分担。In some embodiments, the first single board and the second single board are further configured to: obtain aggregation group configuration information; according to the aggregation group configuration information, the first single board transfers the first single board The uplink forwarding port of the second single board is associated with the aggregation group port on the client side, and the second single board associates the uplink forwarding port of the second single board with the aggregation group port to form a cross-subrack aggregation group. The rack aggregation group is configured to perform load sharing through the associated aggregation group ports.
本申请上述实施例中,负载分担系统通过第一单板和第二单板确定业务报文为非BUM报文时,由所述第一单板所在链路和所述第二单板所在链路进行负载分担和相应转发。如此,第一单板和第二单板通过负载分担转发报文,解决了相关技术中仅能通过主备单板的其中一条链路进行转发的问题,从而带宽利用率更高。第一单板和第二单板确定业务报文为BUM报文时,第一单板和第二单板通过根据设置规则限制所述第一单板和所述第二单板中至少之一的上行BUM报文能力后再进行相应转发,如此,可以避免BUM报文在第一单板、第二单板和客户侧之间成环的问题,提升所述第一单板和所述第二单板的转发能力。In the above-mentioned embodiment of the present application, when the load sharing system determines that the service packet is a non-BUM packet through the first board and the second board, the link between the first board and the chain where the second board is located Load sharing and corresponding forwarding. In this way, the first single board and the second single board forward packets through load sharing, which solves the problem that the related technology can only be forwarded through one of the links of the active and standby single boards, thereby achieving higher bandwidth utilization. When the first board and the second board determine that the service message is a BUM message, the first board and the second board restrict at least one of the first board and the second board according to the set rule The upstream BUM message capability is then forwarded accordingly. In this way, the problem of BUM messages forming a loop between the first board, the second board and the client side can be avoided, and the first board and the second board can be improved. 2. The forwarding capability of the single board.
请参阅图13,本发明实施例还提供一种单板,包括负载分担模块21和报文处理模块23,所述负载分担模块21,设置为接收业务报文;所述报文处理模块23,设置为响应于确定所述业务报文为非BUM报文,由所述单板所在链路和与所述单板互为主备单板的另一单板所在链路进行负载分担和相应转发。Referring to FIG. 13, an embodiment of the present invention also provides a single board, including a load sharing module 21 and a message processing module 23. The load sharing module 21 is configured to receive service messages; the message processing module 23, In response to determining that the service message is a non-BUM message, load sharing and corresponding forwarding are performed by the link where the single board is located and the link where the other single board that is the master and backup board is mutually active with the single board .
需要说明的,所述单板可以是指本申请任一实施例中所述的第一单板,则与所述单板互为主备单板的另一单板是指本申请任一实施例中所述的第二单板;反之同样成立,所述单板也可以是指本申请任一实施例中所述的第二单板,则与所述单板互为主备单板的另一单板是指本申请任一实施例中所述的第一单板,在此不做限制。It should be noted that the single board may refer to the first single board described in any embodiment of the present application, and the other single board that is the active and standby single board with the single board refers to any implementation of the present application The second single board in the example; the opposite is true, the single board can also refer to the second single board described in any of the embodiments of the present application, and it is the primary and standby board of the single board. The other board refers to the first board described in any embodiment of the present application, and is not limited herein.
在一些实施例中,所述报文处理模块23,还设置为响应于确定所述业务报文为BUM报文,根据设置规则限制所述单板的上行BUM报文能力,并基于限制所述上行BUM报文能力后的所述单板和所述另一单板进行相应转发。In some embodiments, the message processing module 23 is further configured to, in response to determining that the service message is a BUM message, limit the uplink BUM message capability of the board according to a setting rule, and based on the restriction The single board after the uplink BUM message capability and the other single board perform corresponding forwarding.
在一些实施例中,所述报文处理模块23,还设置为禁止所述单板的上行转发端口的上行BUM报文功能;响应于确定所述业务报文为上行BUM报文,将接收到的上行BUM报文添加指定标签得到上行转发BUM报文,并将所述上行转发BUM报文转发给所述另一单板,由所述另一单板将所述上行转发BUM报文在所述另一单板的上行转发端口处上报至客户侧;或,响应于确定所述业务报文为下行BUM报文,将接收到的下行BUM报文添加所述指定标签得到下行转发BUM报文,并将所述下行转发BUM报文转发给所述另一单板,由所述另一单板将所述下行转发BUM报文在所述另一单板的上行转发端口处丢弃。In some embodiments, the message processing module 23 is further configured to prohibit the upstream BUM message function of the upstream forwarding port of the board; in response to determining that the service message is an upstream BUM message, it will receive Add a specified label to the upstream BUM message to obtain the upstream forwarded BUM message, and forward the upstream forwarded BUM message to the other single board, and the other single board forwards the upstream forwarded BUM message to the Report to the client at the upstream forwarding port of the other board; or, in response to determining that the service message is a downstream BUM message, add the designated label to the received downstream BUM message to obtain a downstream forwarded BUM message And forward the downstream forwarded BUM message to the another single board, and the other single board discards the downstream forwarded BUM message at the upstream forwarding port of the other single board.
在一些实施例中,所述报文处理模块23,还设置为所述另一单板所在链路发生故障时,开启所述单板的上行转发端口的上行BUM报文功能。In some embodiments, the message processing module 23 is further configured to enable the uplink BUM message function of the uplink forwarding port of the single board when the link where the other single board is located fails.
在一些实施例中,所述报文处理模块23,还设置为响应于确定所述业务报文为上行BUM报文,将接收到的上行BUM报文上报至客户侧,将接收到的上行BUM报文添加指定标签得到上行转发BUM报文,并将所述上行转发BUM报文转发给所述另一单板,并将接收到的所述另一单板转发的上行转发BUM报文丢弃;或,响应于确定所述业务报文为下行BUM报文,将接收到的下行BUM报文转发至网络侧,将接收到的下行BUM报文添加指定标签得到下行转发BUM报文,并将所述下行转发BUM报文转发给所述另一单板,并将接收到的所述另一单板抓饭的下行转发BUM报文在所述单板的上行转发端口处丢弃。In some embodiments, the message processing module 23 is further configured to, in response to determining that the service message is an uplink BUM message, report the received uplink BUM message to the client side, and send the received uplink BUM message. Adding a specified label to the message to obtain an upstream forwarding BUM message, forwarding the upstream forwarding BUM message to the other single board, and discarding the received upstream forwarding BUM message forwarded by the other single board; Or, in response to determining that the service message is a downlink BUM message, forward the received downlink BUM message to the network side, add a designated label to the received downlink BUM message to obtain a downlink forwarded BUM message, and transfer all The downstream forwarded BUM message is forwarded to the other single board, and the received downstream forwarded BUM message of the other single board is discarded at the upstream forwarding port of the single board.
在一些实施例中,所述负载分担模块21,还设置为获取聚合组配置信息,根据所述聚合组配置信息将所述单板的上行转发端口与客户侧的聚合组端口关联,并组成跨子架聚合组。In some embodiments, the load sharing module 21 is further configured to obtain aggregation group configuration information, associate the uplink forwarding port of the board with the aggregation group port on the client side according to the aggregation group configuration information, and form a cross-connect Subrack aggregation group.
上述实施例提供的单板在实现负载分担方法时,仅以上述多个程序模块的划分进行举例说明,在实际应用中,可以根据需要而将上述步骤分配由不同的 程序模块完成,即可以将单板实现负载分担方法的程序的内部结构划分成不同的程序模块,以完成以上描述的全部或者部分处理。When the single board provided in the above embodiment implements the load sharing method, only the division of the above multiple program modules is used as an example. In actual applications, the above steps can be allocated to different program modules to complete according to needs, that is, The internal structure of the program for the single board to implement the load sharing method is divided into different program modules to complete all or part of the processing described above.
例如,报文处理模块23可以包括BUM报文处理模块和报文转发模块,所述BUM报文处理模块包括创建标记vlan单元、报文判断单元和BUM报文处理单元,所述创建标记vlan单元设置为在主备单板间创建一个专门的标记vlan,用于对在主备间传递BUM报文进行标识。所述报文判断单元,设置为主备节点将收到的报文做判断,区分已知单播和BUM报文。所述BUM报文处理单元,设置为将备单板的上行转发端口的上行BUM功能关闭,主单板收到的下行BUM报文正常转发,备单板收到的下行BUM报文加上标记vlan标签,转发给主单板进行转发,对于上行BUM报文,主单板收到后直接正常转发,备单板收到后也正常转发,而备单板的上行转发端口不会转发。所述报文转发模块包括下行已知单播报文转发单元、下行BUM报文转发单元、上行已知单播报文转发单元和上行BUM报文转发单元。所述下行已知单播报文转发单元,设置为直接通过主备链路负载分担后,根据目的MAC地址进行转发。所述下行BUM报文转发单元,设置为将主单板收到的下行BUM报文,直接进行转发,备单板的上行转发端口不进行BUM报文上送转发;将备单板收到的下行BUM报文,则添加vlan标签后,转发到主单板,其他端口进行正常转发,主单板收到带vlan标签的报文后,则除了不转发到上行转发端口,其他端口进行正常转发。所述上行已知单播报文转发单元,设置为对于上行的已知单播报文,直接通过主备链路负载分担后,根据目的MAC地址进行转发。所述上行BUM报文转发单元,设置为主备单板收到上行BUM报文后,都直接进行正常的转发,备单板的上行转发端口不进行上送转发。以上述多个程序模块的划分也仅用于进行举例说明。For example, the message processing module 23 may include a BUM message processing module and a message forwarding module. The BUM message processing module includes a tag creation unit, a message judgment unit, and a BUM message processing unit. The tag creation unit It is set to create a special tag vlan between the active and standby boards, which is used to identify the BUM packets transmitted between the active and standby boards. The message judging unit is set to judge the received messages by the active and standby nodes, and distinguish between known unicast and BUM messages. The BUM message processing unit is configured to turn off the upstream BUM function of the upstream forwarding port of the backup board, the downstream BUM message received by the main board is forwarded normally, and the downstream BUM message received by the backup board is marked The vlan label is forwarded to the main single board for forwarding. For upstream BUM packets, the main single board directly forwards it normally after receiving it, and the standby single board also forwards it normally after receiving it, but the upstream forwarding port of the standby single board does not forward it. The message forwarding module includes a downlink known unicast message forwarding unit, a downlink BUM message forwarding unit, an uplink known unicast message forwarding unit, and an uplink BUM message forwarding unit. The known downlink unicast message forwarding unit is set to directly perform the forwarding according to the destination MAC address after load sharing through the active and standby links. The downlink BUM message forwarding unit is configured to directly forward the downlink BUM message received by the main single board, and the uplink forwarding port of the standby single board does not forward the BUM message; Downlink BUM packets are forwarded to the main single board after adding a vlan label, and other ports perform normal forwarding. After the main single board receives a vlan-labeled packet, it does not forward to the upstream forwarding port, but other ports perform normal forwarding. . The uplink known unicast message forwarding unit is configured to forward the known uplink unicast messages directly according to the destination MAC address after load sharing through the active and standby links. The upstream BUM message forwarding unit is set to perform normal forwarding directly after receiving the upstream BUM message on the active and standby single board, and the upstream forwarding port of the standby single board does not perform upload forwarding. The above-mentioned division of multiple program modules is only used for illustration.
另外,上述实施例提供的单板与负载分担方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。In addition, the single board provided in the foregoing embodiment and the load sharing method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, and will not be repeated here.
本发明实施例还提供一种负载分担装置,该负载分担装置可以归属于网络中的一个或者多个单板,请参阅图14,该负载分担装置包括处理器201以及用于存储能够在处理器201上运行的计算机程序的存储介质202。所述处理器201用于运行所述计算机程序时,执行本申请任一实施例所提供的负载分担方法的步骤。这里,处理器201和存储介质202并非指代对应的数量为一个,而是可以为一个或者多个。存储介质202中可以存储有操作系统和用于实现本发明实施例所提供的负载分担方法的负载分担装置,该处理器201用于提高计算和控 制能力,支撑整个服务器的运行。The embodiment of the present invention also provides a load sharing device. The load sharing device may belong to one or more single boards in the network. Please refer to FIG. 14. The load sharing device includes a processor 201 and a processor for storing 201 is a storage medium 202 of a computer program running on it. The processor 201 is configured to execute the steps of the load sharing method provided in any embodiment of the present application when running the computer program. Here, the processor 201 and the storage medium 202 do not mean that the corresponding number is one, but may be one or more. The storage medium 202 may store an operating system and a load sharing device for implementing the load sharing method provided in the embodiment of the present invention. The processor 201 is used to improve calculation and control capabilities and support the operation of the entire server.
本发明实施例还提供了一种存储介质,例如包括存储有计算机程序的存储器,该计算机程序可以由处理器执行,以完成本申请任一实施例所提供的负载分担方法的步骤。该存储介质可以是铁电随机存储器(Ferroelectric Random Access Memory,FRAM)、只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable Read-Only Memory,PROM)、可擦除可编程只读存储器(Erasable Programmable Read-Only Memory,EPROM)、电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、闪存(Flash Memory)、磁表面存储器、光盘、或光盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)等存储器;也可以是包括上述存储器之一或任意组合的各种设备。The embodiment of the present invention also provides a storage medium, for example, including a memory storing a computer program, and the computer program can be executed by a processor to complete the steps of the load sharing method provided in any embodiment of the present application. The storage medium can be Ferroelectric Random Access Memory (FRAM), Read-Only Memory (ROM), Programmable Read-Only Memory (PROM), erasable and programmable Read-only memory (Erasable Programmable Read-Only Memory, EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), flash memory (Flash Memory), magnetic surface memory, optical disk, or optical disk only CD-ROM (Compact Disc Read-Only Memory) and other memories; it can also be a variety of devices including one or any combination of the foregoing memories.
上述实施例所提供的负载分担方法、装置、系统、单板及存储介质,第一单板和第二单板中至少之一接收业务报文,响应于确定所述业务报文为非BUM报文,由所述第一单板所在链路和所述第二单板所在链路进行负载分担和相应转发。如此,通过第一单板和第二单板通过负载分担和转发报文,解决了相关技术中仅能通过主备单板的其中一条链路进行转发的问题,从而带宽利用率更高。In the load sharing method, device, system, single board, and storage medium provided in the foregoing embodiments, at least one of the first single board and the second single board receives a service packet, and responds to determining that the service packet is a non-BUM packet In the text, load sharing and corresponding forwarding are performed by the link where the first single board is located and the link where the second single board is located. In this way, the load sharing and forwarding of packets by the first single board and the second single board solves the problem that the related technology can only be forwarded through one of the links of the active and standby single boards, thereby achieving higher bandwidth utilization.
为了能够对本申请实施例所提供的负载分担方法的实现流程能够进一步了解,下面分别结合已知单播报文、上行BUM报文和下行BUM报文传输的不同场景下的负载分担方法进行举例性说明。请参阅图15,以已知单播报文场景为例,所述负载分担可以方法包括如下步骤。In order to be able to further understand the implementation process of the load sharing method provided by the embodiments of the present application, the load sharing methods in different scenarios of known unicast packet, uplink BUM packet, and downlink BUM packet transmission are exemplified below. . Referring to FIG. 15, taking a known unicast message scenario as an example, the load sharing method includes the following steps.
步骤S11,主单板和备单板中至少之一接收已知单播报文。Step S11, at least one of the main single board and the standby single board receives a known unicast message.
步骤S12,确定所述已知单播报文为上行报文或下行报文。Step S12: Determine that the known unicast message is an uplink message or a downlink message.
当确定为下行已知单播报文时,执行步骤S131~S133;当确定为上行已知单播报文时,执行步骤S141~S143。When it is determined to be a known downlink unicast message, steps S131 to S133 are executed; when it is determined to be an uplink known unicast message, steps S141 to S143 are executed.
步骤S131,当确定为下行已知单播报文时,主备链路进行负载分担后转发到主备单板。Step S131: When it is determined that it is a known downlink unicast message, the active and standby links perform load sharing and forward them to the active and standby boards.
步骤S132,主备单板按照已知单播报文的目的MAC地址进行转发。In step S132, the active and standby single boards forward according to the destination MAC address of the known unicast message.
步骤S133,当主备链路其中之一出现故障时,将故障链路的业务切换到正常链路进行转发。Step S133: When one of the active and standby links fails, the service of the failed link is switched to the normal link for forwarding.
步骤S141,当确定为上行已知单播报文时,主备单板按照目的MAC地址进行转发。Step S141: When it is determined that it is an uplink known unicast message, the active and standby single boards forward it according to the destination MAC address.
步骤S142,达到客户侧的业务由主备链路进行负载分担。Step S142, the services that reach the client side are load-shared by the active and standby links.
步骤S143,当主备链路其中之一出现故障时,将故障链路的业务切换到正常链路进行转发。Step S143: When one of the active and standby links fails, the service of the failed link is switched to the normal link for forwarding.
本申请上述实施例中,主备单板确定所述业务报文为已知单播报文时,由主备两条链路进行负载分担相应转发。如此,通过主备单板通过负载分担转发报文,解决了相关技术中仅能通过主备单板的其中一条链路进行转发而不能有效利用网络带宽的问题,从而带宽利用率更高。In the foregoing embodiment of the present application, when the active and standby single boards determine that the service message is a known unicast message, the active and standby links perform load sharing and corresponding forwarding. In this way, the active and standby boards are used to forward packets through load sharing, which solves the problem that the related technology can only forward through one of the links of the active and standby boards but cannot effectively use the network bandwidth, and the bandwidth utilization is higher.
需要说明的是,负载分担方法在执行步骤S11之前,还包括获取配置信息,根据配置信息组成跨子架聚合组的步骤。所述获取配置信息,根据配置信息组成跨子架聚合组可以包括:在客户侧设备CE上创建聚合组端口,实现业务负载分担;在CE设备上,配置聚合组端口,可以根据需要配置静态或者手工聚合组;在第一单板和第二单板上建立MC-LAG,单板A为主单板,单板B为备单板,主单板A和备单板B的上行转发端口C2为与客户侧的聚合组端口关联的聚合组端口,端口L1为单板互联端口,保护模式选择负载分担;备单板上的上行转发端口C2禁止BUM报文上送功能;主单板A和备单板B之间配置指定vlan标签;在整个网络上建立业务,将所有单板的相关设备端口加入到业务中。It should be noted that, before step S11 is performed, the load sharing method further includes the steps of acquiring configuration information, and forming a cross-subrack aggregation group according to the configuration information. The acquiring configuration information and forming a cross-subrack aggregation group based on the configuration information may include: creating an aggregation group port on the client-side device CE to achieve service load sharing; configuring the aggregation group port on the CE device, which can be configured as static or as required Manual aggregation group; establish MC-LAG on the first board and the second board, board A is the main board, board B is the backup board, and the upstream forwarding port C2 of the main board A and the backup board B For the aggregation group port associated with the aggregation group port on the client side, port L1 is the board interconnection port, and the protection mode selects load sharing; the upstream forwarding port C2 on the standby board prohibits the BUM message sending function; the main board A and Configure the designated vlan label between the standby single board B; establish the service on the entire network, and add all the relevant device ports of the single board to the service.
请参阅图16,以上行BUM报文场景为例,所述负载分担方法可以包括如下步骤。Referring to FIG. 16, the above BUM message scenario is taken as an example, and the load sharing method may include the following steps.
步骤S21,主单板和备单板中至少之一接收上行BUM报文。Step S21, at least one of the main single board and the standby single board receives an uplink BUM message.
步骤S22,确定所述上行BUM报文为主单板或者备单板接收。Step S22: Determine that the uplink BUM message is received by the master board or the backup board.
当为主单板接收到上行BUM报文时,执行步骤S231;当为备单板接收到上行BUM报文时,执行步骤S241~S242。When the master board receives the upstream BUM message, step S231 is executed; when the backup board receives the upstream BUM message, steps S241 to S242 are executed.
步骤S231,主单板对接收到的上行BUM报文直接进行正常转发。In step S231, the main single board directly forwards the received uplink BUM message normally.
步骤S241,备单板禁止其上行转发端口对BUM报文的上报能力,将接收到的上行BUM报文进行正常转发。In step S241, the standby single board prohibits the ability of its upstream forwarding port to report the BUM message, and normally forwards the received upstream BUM message.
步骤S242,备单板将接收到上行BUM报文添加标签转发至主单板,通过主单板的上行转发端口上报到客户侧。In step S242, the standby single board tags and forwards the received uplink BUM message to the main single board, and reports to the client side through the uplink forwarding port of the main single board.
本申请上述实施例中,主备单板确定所述业务报文为上行BUM报文时,备 单板通过禁止上行转发端口对BUM报文的上报能力,确保主备单板中同时只有一个节点转发上行BUM报文到客户侧,防止上行BUM报文成环,在确保主板单板的带宽利用率的基础上,提升了主备单板的转发能力。需要说明的是,本实施例中,根据设置规则限制所述第一单板和所述第二单板中至少之一的上行BUM报文能力,是以禁止备单板的上行转发端口C2的BUM报文的上报能力为例,通过禁止备单板的上行转发端口C2的BUM报文的上报能力,从而进行上行BUM报文的业务负载分担转发时,备单板无需对主单板或备单板接收到的上行BUM报文进行区分,主单板进行正常的转发即可。如此,第一单板和第二单板可以较大程度简化对BUM报文的转发方式且避免BUM报文成环的问题。In the above-mentioned embodiment of this application, when the active and standby boards determine that the service message is an upstream BUM message, the standby board prevents the upstream forwarding port from reporting BUM messages to ensure that there is only one node in the active and standby boards at the same time Forwarding the upstream BUM message to the client side prevents the upstream BUM message from forming a loop. On the basis of ensuring the bandwidth utilization of the main board single board, the forwarding capability of the active and standby boards is improved. It should be noted that in this embodiment, restricting the upstream BUM message capability of at least one of the first board and the second board according to the setting rules is to prohibit the upstream forwarding port C2 of the standby board. Take the reporting capability of BUM packets as an example. By disabling the reporting capability of BUM packets on the upstream forwarding port C2 of the backup board, the backup board does not need to perform the load sharing and forwarding of upstream BUM packets. The upstream BUM messages received by the single board are distinguished, and the main single board can forward it normally. In this way, the first single board and the second single board can greatly simplify the way of forwarding BUM packets and avoid the problem of BUM packets forming a loop.
请参阅图17,以下行BUM报文场景为例,所述负载分担方法可以包括如下步骤。Referring to FIG. 17, the following BUM message scenario is taken as an example, and the load sharing method may include the following steps.
步骤S31,主单板和备单板中至少之一接收下行BUM报文。Step S31, at least one of the main single board and the standby single board receives the downlink BUM message.
步骤S22,确定所述下行BUM报文为主单板或者备单板接收。Step S22: It is determined that the downlink BUM message is received by the master board or the backup board.
当为主单板接收到下行BUM报文时,执行步骤S331~S332;当为备单板接收到下行BUM报文时,执行步骤S341~S342。When the master single board receives the downlink BUM message, steps S331 to S332 are executed; when the slave single board receives the downlink BUM message, steps S341 to S342 are executed.
步骤S331,当为主单板接收到下行BUM报文时,主单板对接收到的下行BUM报文直接进行正常转发。Step S331: When the main single board receives the downlink BUM message, the main single board directly forwards the received downlink BUM message normally.
步骤S332,主单板对接收到主单板转发的携带有vlan标签的下行BUM报文,在除了上行转发端口C2之外其它端口进行正常转发。In step S332, the main single board normally forwards the downlink BUM message carrying the vlan tag and forwarded by the main single board on other ports except the uplink forwarding port C2.
步骤S341,备单板将接收到的下行BUM报文在除单板互连端口L1之外的其它端口进行正常转发,并将下行BUM报文添加vlan标签后通过单板互连端口L1转发到主单板。Step S341: The standby single board forwards the received downlink BUM message on other ports except the single board interconnection port L1 normally, and adds the vlan tag to the downstream BUM message and forwards it to the single board interconnection port L1. Main board.
步骤S342,备单板禁止其上行转发端口C2对BUM报文的上报能力,对接收到的主单板转发的下行BUM报文在其上行转发端口C2处丢弃。In step S342, the standby single board prohibits its upstream forwarding port C2 from reporting the BUM message, and the received downstream BUM message forwarded by the primary single board is discarded at its upstream forwarding port C2.
本申请上述实施例中,主备单板确定所述业务报文为下行BUM报文时,备单板通过禁止上行转发端口对BUM报文的上报能力,确保备单板转发到主单板的下行BUM报文不会通过主单板的上行转发端口转发上送回客户侧,防止下行BUM报文成环,在确保主板单板的带宽利用率的基础上,提升了主备单板的转发能力。需要说明的是,本实施例中,根据设置规则限制所述第一单板和所述第二单板中至少之一的上行BUM报文能力,是以禁止备单板的上行转发端口 C2的BUM报文的上报能力为例,通过禁止备单板的上行转发端口C2的BUM报文的上报能力,从而进行业务负载分担转发时,备单板可以仅针对下行BUM报文添加指定标签后转发给主单板,而主单板识别备单板转发的下行BUM报文后在上行转发端口C2处丢弃,其它场景下主单板进行正常的转发即可。如此,第一单板和第二单板可以较大程度简化对BUM报文的转发方式且避免BUM报文成环的问题。In the above-mentioned embodiment of this application, when the active and standby boards determine that the service message is a downlink BUM message, the standby board prevents the upstream forwarding port from reporting the BUM message to ensure that the standby board is forwarded to the main board. Downlink BUM packets will not be forwarded and sent back to the client side through the upstream forwarding port of the main board to prevent the downstream BUM packets from forming a loop. On the basis of ensuring the bandwidth utilization of the main board, the forwarding of the main and standby boards is improved. ability. It should be noted that in this embodiment, restricting the upstream BUM message capability of at least one of the first board and the second board according to the setting rules is to prohibit the upstream forwarding port C2 of the standby board. Take the reporting capability of BUM packets as an example. By disabling the reporting capability of BUM packets on the upstream forwarding port C2 of the backup board, when performing business load sharing and forwarding, the backup board can only add designated labels for the downstream BUM packets and forward them To the main single board, and the main single board recognizes the downstream BUM packet forwarded by the standby single board and discards it at the upstream forwarding port C2. In other scenarios, the main single board can forward it normally. In this way, the first single board and the second single board can greatly simplify the way of forwarding BUM packets and avoid the problem of BUM packets forming a loop.

Claims (27)

  1. 一种负载分担方法,包括:A load sharing method includes:
    第一单板和第二单板中至少之一接收业务报文,其中,所述第一单板和所述第二单板互为主备单板;At least one of the first single board and the second single board receives a service message, wherein the first single board and the second single board are each other as a master and a backup board;
    响应于确定所述业务报文为非广播、未知单播、组播BUM报文,由所述第一单板所在链路和所述第二单板所在链路进行负载分担和相应转发。In response to determining that the service message is a non-broadcast, unknown unicast, or multicast BUM message, load sharing and corresponding forwarding are performed by the link where the first board is located and the link where the second board is located.
  2. 如权利要求1所述的方法,还包括:The method of claim 1, further comprising:
    响应于确定所述业务报文为BUM报文,根据设置规则限制所述第一单板和所述第二单板中至少之一的上行BUM报文能力,通过限制所述上行BUM报文能力后的所述第一单板和所述第二单板进行相应转发。In response to determining that the service message is a BUM message, restrict the uplink BUM message capability of at least one of the first single board and the second single board according to the setting rule, and limit the uplink BUM message capability The subsequent first single board and the second single board perform corresponding forwarding.
  3. 如权利要求2所述的方法,其中,所述响应于确定所述业务报文为BUM报文,根据设置规则限制所述第一单板和所述第二单板中至少之一的上行BUM报文能力,通过限制所述上行BUM报文能力后的所述第一单板和所述第二单板进行相应转发,包括:The method according to claim 2, wherein, in response to determining that the service message is a BUM message, the uplink BUM of at least one of the first single board and the second single board is restricted according to a set rule The message capability, the corresponding forwarding of the first board and the second board after limiting the upstream BUM message capability, includes:
    所述第二单板禁用所述上行BUM报文功能;Disabling the uplink BUM message function on the second board;
    响应于确定所述业务报文为上行BUM报文,将接收到的上行BUM报文由所述第一单板上报至客户侧。In response to determining that the service message is an uplink BUM message, report the received uplink BUM message from the first board to the client side.
  4. 如权利要求3所述的方法,其中,所述将接收到的上行BUM报文由所述第一单板上报至客户侧,包括:The method according to claim 3, wherein the reporting the received uplink BUM message from the first board to the client side comprises:
    所述第二单板将接收到的上行BUM报文添加指定标签得到上行转发BUM报文,并将所述上行转发BUM报文转发给所述第一单板;Adding a designated tag to the received uplink BUM message by the second single board to obtain an uplink forwarding BUM message, and forwarding the uplink forwarding BUM message to the first single board;
    所述第一单板将接收到的上行BUM报文和将接收到的所述第二单板转发的所述上行转发BUM报文上报至客户侧。The first single board reports the received uplink BUM message and the received uplink forwarded BUM message forwarded by the second single board to the client side.
  5. 如权利要求4所述的方法,其中,所述将接收到的上行BUM报文由所述第一单板上报至客户侧,还包括:The method according to claim 4, wherein the reporting the received uplink BUM message from the first board to the client side further comprises:
    在所述第一单板所在链路发生故障的情况下,所述第二单板开启所述上行BUM报文功能;In the case that the link where the first single board is located fails, the second single board enables the uplink BUM message function;
    所述第二单板将接收到的上行BUM报文和将接收到的所述第一单板转发的上行转发BUM报文上报至客户侧。The second single board reports the received uplink BUM message and the received uplink forwarded BUM message forwarded by the first single board to the client side.
  6. 如权利要求2所述的方法,其中,所述响应于确定所述业务报文为BUM报文,根据设置规则限制所述第一单板和所述第二单板中至少之一的上行BUM报文能力,通过限制所述上行BUM报文能力后的所述第一单板和所述第二单板 进行相应转发,包括:The method according to claim 2, wherein, in response to determining that the service message is a BUM message, the uplink BUM of at least one of the first single board and the second single board is restricted according to a set rule The message capability, the corresponding forwarding of the first board and the second board after limiting the upstream BUM message capability, includes:
    响应于确定所述业务报文为上行BUM报文,所述第一单板和所述第二单板将本端接收到的上行BUM报文上报至客户侧,并将接收到的对端转发的上行转发BUM报文丢弃。In response to determining that the service message is an uplink BUM message, the first single board and the second single board report the uplink BUM message received by the local end to the client side, and forward the received opposite end The upstream forwarded BUM packet is discarded.
  7. 如权利要求6所述的方法,其中,所述第一单板和所述第二单板将本端接收到的上行BUM报文上报至客户侧,并将接收到的对端转发的上行转发BUM报文丢弃,包括:The method according to claim 6, wherein the first single board and the second single board report the uplink BUM message received at the local end to the client side, and forward the received uplink BUM message forwarded by the opposite end BUM packets are discarded, including:
    所述第一单板将本端接收到的上行BUM报文上报至客户侧,并将接收到的上行BUM报文添加第一标签得到上行转发BUM报文,并将所述上行转发BUM报文转发给所述第二单板;The first board reports the uplink BUM message received by the local end to the client side, adds the first label to the received uplink BUM message to obtain the uplink forwarded BUM message, and forwards the uplink BUM message Forward to the second board;
    所述第二单板将本端接收到的上行BUM报文上报至客户侧,并将接收到的上行BUM报文添加第二标签得到上行转发BUM报文,并将所述上行转发BUM报文转发给所述第一单板;The second board reports the uplink BUM message received by the local end to the client side, adds the second label to the received uplink BUM message to obtain the uplink forwarded BUM message, and forwards the uplink BUM message Forward to the first board;
    所述第一单板和所述第二单板分别将接收到的对端转发的上行转发BUM报文在各自的上行转发端口处丢弃。The first single board and the second single board respectively discard the received uplink forwarding BUM messages forwarded by the opposite end at their respective uplink forwarding ports.
  8. 如权利要求2所述的方法,其中,所述响应于确定所述业务报文为BUM报文,根据设置规则限制所述第一单板和所述第二单板中至少之一的上行BUM报文能力,通过限制所述上行BUM报文能力后的所述第一单板和所述第二单板进行相应转发,包括:The method according to claim 2, wherein, in response to determining that the service message is a BUM message, the uplink BUM of at least one of the first single board and the second single board is restricted according to a set rule The message capability, the corresponding forwarding of the first board and the second board after limiting the upstream BUM message capability, includes:
    所述第二单板禁用所述上行BUM报文功能;Disabling the uplink BUM message function on the second board;
    响应于确定所述业务报文为下行BUM报文,所述第二单板将接收到的下行BUM报文添加指定标签得到下行转发BUM报文,并将所述下行转发BUM报文转发给所述第一单板,所述第一单板将接收到的所述第二单板转发的所述下行转发BUM报文在所述第一单板的上行转发端口处丢弃。In response to determining that the service message is a downlink BUM message, the second board adds a designated tag to the received downlink BUM message to obtain a downlink forwarded BUM message, and forwards the downlink forwarded BUM message to all For the first single board, the first single board discards the received downstream forwarding BUM message forwarded by the second single board at the upstream forwarding port of the first single board.
  9. 如权利要求2所述的方法,其中,所述响应于确定所述业务报文为BUM报文,根据设置规则限制所述第一单板和所述第二单板中至少之一的上行BUM报文能力,通过限制所述上行BUM报文能力后的所述第一单板和所述第二单板进行相应转发,包括:The method according to claim 2, wherein, in response to determining that the service message is a BUM message, the uplink BUM of at least one of the first single board and the second single board is restricted according to a set rule The message capability, the corresponding forwarding of the first board and the second board after limiting the upstream BUM message capability, includes:
    响应于确定所述业务报文为下行BUM报文,所述第一单板和所述第二单板分别将接收到的下行BUM报文转发至网络侧,并将接收到的对端转发的下行转发BUM报文在各自的上行转发端口处丢弃。In response to determining that the service message is a downlink BUM message, the first single board and the second single board respectively forward the received downlink BUM message to the network side, and forward the received downlink BUM message to the network side. Downlink forwarding BUM packets are discarded at their respective upstream forwarding ports.
  10. 如权利要求9所述的方法,其中,所述将接收到的对端转发的下行转发BUM报文在各自的上行转发端口处丢弃,包括:The method according to claim 9, wherein the discarding the received downlink forwarding BUM message forwarded by the opposite end at the respective uplink forwarding port comprises:
    所述第一单板将接收到的下行BUM报文添加第一标签得到下行转发BUM报文,并将所述下行转发BUM报文转发给所述第二单板,所述第二单板将接收到的所述第一单板转发的所述下行转发BUM报文在所述第二单板的上行转发端口处丢弃;The first single board adds a first label to the received downlink BUM message to obtain a downlink forwarded BUM message, and forwards the downlink forwarded BUM message to the second single board, and the second single board The received downstream forwarding BUM message forwarded by the first single board is discarded at the upstream forwarding port of the second single board;
    所述第二单板将接收到的下行BUM报文添加第二标签得到下行转发BUM报文,并将所述下行转发BUM报文转发给所述第一单板,所述第一单板将接收到的所述第二单板转发的所述下行转发BUM报文在所述第一单板的上行转发端口处丢弃。The second single board adds a second label to the received downlink BUM message to obtain a downlink forwarded BUM message, and forwards the downlink forwarded BUM message to the first single board, and the first single board will The received downstream forwarding BUM message forwarded by the second single board is discarded at the upstream forwarding port of the first single board.
  11. 如权利要求1至10中任一项所述的方法,其中,所述第一单板和第二单板中至少之一接收业务报文之前,还包括:The method according to any one of claims 1 to 10, wherein before at least one of the first single board and the second single board receives a service message, the method further comprises:
    获取聚合组配置信息;Obtain aggregation group configuration information;
    根据所述聚合组配置信息,分别将所述第一单板的上行转发端口与客户侧的聚合组端口关联、所述第二单板的上行转发端口与所述客户侧的聚合组端口关联,并组成跨子架聚合组,其中,所述跨子架聚合组配置为通过关联后的所述聚合组端口进行负载分担。According to the aggregation group configuration information, respectively associating the uplink forwarding port of the first single board with the aggregation group port on the client side, and the uplink forwarding port of the second single board with the aggregation group port on the client side, respectively, And form a cross-sub-rack aggregation group, where the cross-sub-rack aggregation group is configured to perform load sharing through the associated aggregation group ports.
  12. 如权利要求1至10中任一项所述的方法,其中,The method according to any one of claims 1 to 10, wherein:
    基于与所述第一单板通信连接的第三单板和与所述第二单板通信连接的第四单板,获取主节点选取指令;Acquiring a master node selection instruction based on a third single board communicatively connected with the first single board and a fourth single board communicatively connected with the second single board;
    根据所述主节点选取指令确定主节点,将所述主节点和与所述主节点相邻的节点之间的链路设置为低功耗有损网络路由协议RPL链路。The master node is determined according to the master node selection instruction, and the link between the master node and a node adjacent to the master node is set as a low-power lossy network routing protocol RPL link.
  13. 一种负载分担系统,包括互为主备单板的第一单板和第二单板,其中,A load sharing system includes a first single board and a second single board that are mutually active and standby boards, wherein,
    所述第一单板和所述第二单板中至少之一设置为:接收业务报文;At least one of the first single board and the second single board is configured to receive service packets;
    所述第一单板所在链路和所述第二单板所在链路设置为:响应于确定所述业务报文为非广播、未知单播、组播BUM报文,进行负载分担和相应转发。The link where the first single board is located and the link where the second single board is located are set to: in response to determining that the service message is a non-broadcast, unknown unicast, or multicast BUM message, perform load sharing and corresponding forwarding .
  14. 如权利要求13所述的系统,其中,The system of claim 13, wherein:
    所述第一单板和所述第二单板中至少之一还设置为:响应于确定所述业务报文为BUM报文,根据设置规则限制各自的上行BUM报文能力,限制所述上行BUM报文能力后进行相应转发。At least one of the first single board and the second single board is further configured to: in response to determining that the service message is a BUM message, restrict the respective upstream BUM message capabilities according to a setting rule, and restrict the upstream After the BUM message is capable, it will be forwarded accordingly.
  15. 如权利要求14所述的系统,其中,The system of claim 14, wherein:
    所述第二单板是设置为:禁用所述上行BUM报文功能;The second board is set to: disable the uplink BUM message function;
    所述第一单板和所述第二单板是设置为:响应于确定所述业务报文为上行BUM报文,将接收到的上行BUM报文由所述第一单板上报至客户侧。The first single board and the second single board are set to: in response to determining that the service packet is an uplink BUM packet, report the received uplink BUM packet from the first single board to the client side .
  16. 如权利要求14所述的系统,其中,The system of claim 14, wherein:
    所述第二单板是设置为:禁用所述上行BUM报文功能;响应于确定所述业务报文为下行BUM报文,将接收到的下行BUM报文添加指定标签得到下行转发BUM报文,并将所述下行转发BUM报文转发至所述第一单板;The second board is set to: disable the uplink BUM message function; in response to determining that the service message is a downlink BUM message, add a designated label to the received downlink BUM message to obtain a downlink forwarded BUM message , And forward the downlink forwarding BUM message to the first board;
    所述第一单板是设置为:将接收到的所述第二单板转发的所述下行转发BUM报文在所述第一单板的上行转发端口处丢弃。The first single board is configured to discard the received downlink forwarding BUM message forwarded by the second single board at the uplink forwarding port of the first single board.
  17. 如权利要求15或16所述的系统,其中,The system according to claim 15 or 16, wherein:
    所述第二单板还设置为:在所述第一单板所在链路发生故障的情况下,开启所述上行BUM报文功能。The second single board is further configured to enable the uplink BUM message function in the case that the link where the first single board is located fails.
  18. 如权利要求14所述的系统,其中,所述第一单板和所述第二单板是设置为:The system according to claim 14, wherein the first single board and the second single board are configured as:
    响应于确定所述业务报文为上行BUM报文,将本端接收到的上行BUM报文上报至客户侧,并将接收到的对端转发的上行转发BUM报文丢弃;和/或In response to determining that the service message is an uplink BUM message, report the uplink BUM message received by the local end to the client side, and discard the received uplink forwarded BUM message forwarded by the opposite end; and/or
    响应于确定所述业务报文为下行BUM报文,将本端接收到的下行BUM报文转发至网络侧,并将接收到的对端转发的下行转发BUM报文在各自的上行转发端口处丢弃。In response to determining that the service message is a downlink BUM message, the downlink BUM message received by the local end is forwarded to the network side, and the downlink forwarded BUM message forwarded by the opposite end is received at the respective uplink forwarding port throw away.
  19. 如权利要求13所述的系统,其中,所述第一单板和所述第二单板还设置为:The system according to claim 13, wherein the first single board and the second single board are further configured as:
    获取聚合组配置信息;Obtain aggregation group configuration information;
    根据所述聚合组配置信息,所述第一单板将所述第一单板的上行转发端口与客户侧的聚合组端口、所述第二单板将所述第二单板的上行转发端口与所述聚合组端口关联,并组成跨子架聚合组,其中,所述跨子架聚合组配置为通过关联后的所述聚合组端口进行负载分担。According to the aggregation group configuration information, the first single board connects the upstream forwarding port of the first single board to the client-side aggregation group port, and the second single board connects the upstream forwarding port of the second single board It is associated with the port of the aggregation group and forms a cross-sub-rack aggregation group, wherein the cross-sub-rack aggregation group is configured to perform load sharing through the associated port of the aggregation group.
  20. 一种单板,包括负载分担模块和报文处理模块,其中,A single board includes a load sharing module and a message processing module, in which,
    所述负载分担模块,设置为接收业务报文;The load sharing module is configured to receive service messages;
    所述报文处理模块,设置为响应于确定所述业务报文为非广播、未知单播、组播BUM报文,由所述单板所在链路和与所述单板互为主备单板的另一单板所在链路进行负载分担和相应转发。The message processing module is configured to respond to determining that the service message is a non-broadcast, unknown unicast, or multicast BUM message, and the link where the single board is located and the single board are mutually active and standby. The link on which the other board of the board is located performs load sharing and corresponding forwarding.
  21. 如权利要求20所述的单板,其中,The single board according to claim 20, wherein:
    所述报文处理模块,还设置为响应于确定所述业务报文为BUM报文,根据设置规则限制所述单板的上行BUM报文能力,并基于限制所述上行BUM报文能力后的所述单板和所述另一单板进行相应转发。The message processing module is further configured to, in response to determining that the service message is a BUM message, limit the uplink BUM message capability of the board according to a setting rule, and based on the limitation of the uplink BUM message capability The single board and the other single board perform corresponding forwarding.
  22. 如权利要求20所述的单板,其中,The single board according to claim 20, wherein:
    所述报文处理模块,还设置为禁止所述单板的上行转发端口的上行BUM报文功能;响应于确定所述业务报文为上行BUM报文,将接收到的上行BUM报文添加指定标签得到上行转发BUM报文,并将所述上行转发BUM报文转发给所述另一单板,由所述另一单板将所述上行转发BUM报文在所述另一单板的上行转发端口处上报至客户侧;或,响应于确定所述业务报文为下行BUM报文,将接收到的下行BUM报文添加所述指定标签得到下行转发BUM报文,并将所述下行转发BUM报文转发给所述另一单板,由所述另一单板将所述下行转发BUM报文在所述另一单板的上行转发端口处丢弃。The message processing module is also set to prohibit the upstream BUM message function of the upstream forwarding port of the single board; in response to determining that the service message is an upstream BUM message, add a specified upstream BUM message to the received upstream BUM message The label obtains the upstream forwarded BUM message, and forwards the upstream forwarded BUM message to the other single board, and the other single board forwards the upstream forwarded BUM message to the upstream of the other single board Report to the client at the forwarding port; or, in response to determining that the service message is a downlink BUM message, add the designated label to the received downlink BUM message to obtain a downlink forwarded BUM message, and forward the downlink The BUM message is forwarded to the other single board, and the other single board discards the downstream forwarded BUM message at the upstream forwarding port of the other single board.
  23. 如权利要求22所述的单板,其中,The single board according to claim 22, wherein:
    所述报文处理模块,还设置为在所述另一单板所在链路发生故障的情况下,开启所述单板的上行转发端口的上行BUM报文功能。The message processing module is further configured to enable the uplink BUM message function of the uplink forwarding port of the single board in the case that the link where the other single board is located fails.
  24. 如权利要求20所述的单板,其中,The single board according to claim 20, wherein:
    所述报文处理模块,还设置为响应于确定所述业务报文为上行BUM报文,将接收到的上行BUM报文上报至客户侧,将接收到的上行BUM报文添加指定标签得到上行转发BUM报文,并将所述上行转发BUM报文转发给所述另一单板,并将接收到的所述另一单板转发的上行转发BUM报文丢弃;或,响应于确定所述业务报文为下行BUM报文,将接收到的下行BUM报文转发至网络侧,将接收到的下行BUM报文添加所述指定标签得到下行转发BUM报文,并将所述下行转发BUM报文转发给所述另一单板,并将接收到的所述另一单板转发的下行转发BUM报文在所述单板的上行转发端口处丢弃。The message processing module is further configured to, in response to determining that the service message is an uplink BUM message, report the received uplink BUM message to the client side, and add a designated tag to the received uplink BUM message to obtain the uplink Forward the BUM message, and forward the upstream forwarded BUM message to the other single board, and discard the received upstream forwarded BUM message forwarded by the other single board; or, in response to determining the The service message is a downlink BUM message, forward the received downlink BUM message to the network side, add the designated label to the received downlink BUM message to obtain a downlink forwarded BUM message, and forward the downlink BUM message The message is forwarded to the other single board, and the received downstream forwarding BUM message forwarded by the other single board is discarded at the upstream forwarding port of the single board.
  25. 如权利要求20至24中任一项所述的单板,其中,The single board according to any one of claims 20 to 24, wherein:
    所述负载分担模块,还设置为获取聚合组配置信息,根据所述聚合组配置信息将所述单板的上行转发端口与客户侧的聚合组端口关联,并组成跨子架聚合组。The load sharing module is further configured to obtain aggregation group configuration information, associate the uplink forwarding port of the single board with the aggregation group port on the client side according to the aggregation group configuration information, and form a cross-subrack aggregation group.
  26. 一种负载分担装置,包括处理器和用于存储能够在所述处理器上运行的计算机程序的存储器;其中,A load sharing device includes a processor and a memory for storing a computer program that can run on the processor; wherein,
    所述处理器用于运行所述计算机程序时,执行权利要求1至12中任一项所述的负载分担方法。When the processor is used to run the computer program, it executes the load sharing method according to any one of claims 1 to 12.
  27. 一种存储介质,其中,所述存储介质中存储有可执行指令,所述可执行指令被处理器执行时实现权利要求1至12中任一项所述的负载分担方法。A storage medium, wherein executable instructions are stored in the storage medium, and when the executable instructions are executed by a processor, the load sharing method according to any one of claims 1 to 12 is implemented.
PCT/CN2020/073377 2019-01-29 2020-01-21 Load sharing method, device, system, single board and storage medium WO2020156355A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910085733.2 2019-01-29
CN201910085733.2A CN111491334B (en) 2019-01-29 2019-01-29 Load sharing method, device, system, single board and storage medium

Publications (1)

Publication Number Publication Date
WO2020156355A1 true WO2020156355A1 (en) 2020-08-06

Family

ID=71812162

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/073377 WO2020156355A1 (en) 2019-01-29 2020-01-21 Load sharing method, device, system, single board and storage medium

Country Status (2)

Country Link
CN (1) CN111491334B (en)
WO (1) WO2020156355A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291160B (en) * 2020-09-23 2022-03-01 浪潮思科网络科技有限公司 BUM message suppression method, device and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242335A (en) * 2008-02-26 2008-08-13 中兴通讯股份有限公司 Multi-link load share processing device and method and MPLS VPN network device
CN101252531A (en) * 2008-04-02 2008-08-27 杭州华三通信技术有限公司 Equipment, system and method for realizing load sharing and main standby switching
CN101394260A (en) * 2007-09-17 2009-03-25 华为技术有限公司 Method and apparatus for realizing main standby inverting and load sharing
WO2011113395A2 (en) * 2011-04-27 2011-09-22 华为技术有限公司 A method and apparatus for load balance
CN108134744A (en) * 2017-12-06 2018-06-08 新华三技术有限公司 Load sharing method and veneer in a kind of IRF stackings

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100440799C (en) * 2005-09-06 2008-12-03 华为技术有限公司 Main/standby board back-up in access-in apparatus and rearranging method therefor
CN101132374B (en) * 2006-10-09 2012-02-08 杭州华三通信技术有限公司 Method and device for transmitting message
CN101674240B (en) * 2009-09-24 2012-05-09 中兴通讯股份有限公司 Method and device for realizing single-node dual home for distributed system
EP2753111B1 (en) * 2011-11-22 2016-04-27 Huawei Technologies Co., Ltd. Method and device for implementing lte baseband resource pool
CN104426794B (en) * 2013-08-23 2018-06-26 华为技术有限公司 A kind of message forwarding method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101394260A (en) * 2007-09-17 2009-03-25 华为技术有限公司 Method and apparatus for realizing main standby inverting and load sharing
CN101242335A (en) * 2008-02-26 2008-08-13 中兴通讯股份有限公司 Multi-link load share processing device and method and MPLS VPN network device
CN101252531A (en) * 2008-04-02 2008-08-27 杭州华三通信技术有限公司 Equipment, system and method for realizing load sharing and main standby switching
WO2011113395A2 (en) * 2011-04-27 2011-09-22 华为技术有限公司 A method and apparatus for load balance
CN108134744A (en) * 2017-12-06 2018-06-08 新华三技术有限公司 Load sharing method and veneer in a kind of IRF stackings

Also Published As

Publication number Publication date
CN111491334A (en) 2020-08-04
CN111491334B (en) 2021-05-25

Similar Documents

Publication Publication Date Title
US11178001B2 (en) Multi-stage switch fabric fault detection and handling
US9660939B2 (en) Protection switching over a virtual link aggregation
US7061875B1 (en) Spanning tree loop guard
US7751329B2 (en) Providing an abstraction layer in a cluster switch that includes plural switches
US7639605B2 (en) System and method for detecting and recovering from virtual switch link failures
US8520508B2 (en) Spanning tree ring protocol
US8411690B2 (en) Preventing data traffic connectivity between endpoints of a network segment
CN101155109B (en) Ethernet switching system and equipment
US9485198B1 (en) Methods and apparatus for multicast traffic failover in a network
US20120236859A1 (en) Method & apparatus for configuring a link aggregation group on a stacked switch
US20230090072A1 (en) Protocol independent multicast (pim) designated router (dr) election
US9984028B2 (en) Redundancy for port extender chains
WO2017113929A1 (en) Method and controller for controlling forwarding device cluster in software-defined networking
CN111935013A (en) Flow forwarding control method and device, flow forwarding method and chip, and switch
CN111901133B (en) Multicast switching method, device, network equipment and storage medium
US20050163137A1 (en) Switching mesh with broadcast path redundancy
CN114401191B (en) Error configured uplink identification
WO2020156355A1 (en) Load sharing method, device, system, single board and storage medium
US11296980B2 (en) Multicast transmissions management
US10567218B2 (en) Systems and methods for enabling frontside stacking of switches

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: 20747674

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20747674

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 04/02/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20747674

Country of ref document: EP

Kind code of ref document: A1