WO2017041577A1 - Method and device for managing link aggregation member port packet loss - Google Patents

Method and device for managing link aggregation member port packet loss Download PDF

Info

Publication number
WO2017041577A1
WO2017041577A1 PCT/CN2016/088709 CN2016088709W WO2017041577A1 WO 2017041577 A1 WO2017041577 A1 WO 2017041577A1 CN 2016088709 W CN2016088709 W CN 2016088709W WO 2017041577 A1 WO2017041577 A1 WO 2017041577A1
Authority
WO
WIPO (PCT)
Prior art keywords
member port
port
packet loss
loss rate
set threshold
Prior art date
Application number
PCT/CN2016/088709
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 WO2017041577A1 publication Critical patent/WO2017041577A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/23Bit dropping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/32Flow control; Congestion control by discarding or delaying data units, e.g. packets or frames

Definitions

  • This document refers to, but is not limited to, the packet loss management technology in the field of data communication, and the packet loss management scheme involving the member ports of the link aggregation group.
  • SMARTGROUP also known as Link Aggregation
  • Link Aggregation is a standard mechanism defined in IEEE 802.3ad. It refers to bundling multiple physical ports into one logical port to implement inbound/outbound traffic in each member port.
  • Load balancing the switch determines which member port the packet is sent to the peer switch based on the port load balancing policy configured by the user. When the switch detects that the link of one of the member ports is faulty, the switch stops sending packets on the port and recalculates the port that the packet is sent on the remaining link according to the load balancing policy. Calculate the packet sending port.
  • Link aggregation is an important technology in terms of increasing link bandwidth, achieving link transmission flexibility and redundancy.
  • SMARTGROUP is divided into manual, static mode and dynamic mode.
  • Manual mode adds multiple physical ports to the SG (Smart Group) to form a logical port.
  • the LACP protocol is not running.
  • the static and dynamic modes are in compliance with the Link Aggregation Control Protocol (LACP).
  • LACP Link Aggregation Control Protocol
  • the application of the standard LAG (Link Aggregation Group) is shown in Figure 1.
  • the embodiment of the invention provides a method and a device for managing packet loss on a link aggregation member port, which solves the problem that the port packet loss cannot be managed in the existing link aggregation.
  • An embodiment of the present invention provides a method for managing packet loss on a link aggregation member port, where the method includes:
  • the device After the dynamic management of the link aggregation member port is enabled, the device detects that the member ports in the aggregation link are in the set time. Rate or ordinary packet loss rate;
  • the state of the peer member port of the member port whose normal packet loss rate exceeds or equals the set threshold is set to Inactive state
  • the state of the member port whose normal packet loss rate exceeds or equals the set threshold is set to an inactive state
  • the port for transmitting the message is recalculated in the remaining links except the active member ports;
  • the inactive member port When the inactive member port is in the set time period, the normal packet loss rate is lower than the set threshold, and the inactive member port of the member port in the inactive state is lower than the set packet loss rate.
  • the threshold When the threshold is set, the status of the member port in the inactive state is updated to the active state, and the port on which the packet is sent is recalculated.
  • the peer member port of the member port whose normal packet loss rate exceeds or equals the set threshold is received.
  • the process of setting the status to inactive includes:
  • the device corresponding to the member port B of the peer port A is notified by the link aggregation control protocol LACP.
  • the device corresponding to the member port B sets the state of the member port B to an inactive state.
  • the state of the member port with the normal packet loss rate exceeding or equal to the set threshold is set to a non-
  • the process of active status includes:
  • the CPU of the member port a obtains the information that the member port a sends a normal packet loss rate that is greater than or equal to the set threshold, and sets the state of the member port a to the inactive state.
  • the process of updating the status of the inactive member port to the active state includes:
  • the device corresponding to the member port B of the peer port of the member port A is notified to the member port A to receive the normal packet loss.
  • Normal information
  • the CPU corresponding to the member port B After receiving the information that the member port A receives the normal packet loss, the CPU corresponding to the member port B detects that the normal packet loss rate of the member port B within the set duration is lower than the set threshold. The status of member port B is updated to the active state.
  • the process of updating the status of the inactive member port to the active state includes:
  • the normal packet loss rate of the member port a is lower than the set threshold within the set duration, if it is determined that the peer member port b of the member port a is within the set duration, the normal packet loss rate is lower than the set. Threshold, the status of the member port a is updated to the active state.
  • the method further includes:
  • the information about the packet loss of the member port X is notified to the member port X of the local port and the member port Y of the member port X of the member port X. If the member port Y is the destination port of any service redirection, the service redirected to the member port Y is redirected to another port with low bandwidth utilization.
  • the method further includes:
  • the member port Y uses the hash key as a feature value to redirect the service access control list ACL redirected to the member port Y to the port with the lowest bandwidth utilization, and repeats the redirection action until the member port X no longer receives excess bandwidth loss.
  • the method further includes:
  • the member port x is sent out of the bandwidth loss, the information about the packet loss of the local end is reported to the CPU of the local member port x and the CPU of the member port y of the peer end; the CPU of the member port x is obtained. After the information about the bandwidth loss packet is sent to the local end, if the member port x is determined to be the destination port of any service redirection, the service redirected to the member port x is redirected to the other bandwidth utilization. port.
  • the method further includes:
  • the member port x is characterized by a hash key, and the service redirected to the member port x is redirected to the port with the lowest bandwidth utilization, and the redirection action is repeated until the member port x is no longer used. Send over bandwidth loss.
  • the method further includes:
  • the current mode is the manual link aggregation mode
  • the member port of the link aggregation port is detected to be longer than or equal to the set threshold
  • the member port with the normal packet loss rate exceeding or equal to the set threshold will be received.
  • the status is set to inactive, and the port for sending packets is recalculated in the remaining links except the member ports that have been set to inactive according to the load sharing policy until the detected member ports are within the set duration. If the packet loss rate is lower than the set threshold, the status of the member port is updated to the active state, and the packet sending port is recalculated again;
  • the state of the member port whose normal packet loss rate exceeds or equals the set threshold is set to an inactive state;
  • the port for sending packets is recalculated in the remaining links except the member ports that have been set to inactive, until the detected member ports lose the packet loss rate within the set duration. Threshold, then update the status of the member port to the active state, and recalculate the message sending port again.
  • the embodiment of the invention further provides an apparatus for managing packet loss of a link aggregation member port, including:
  • the first detecting unit is configured to detect the normal loss of the member ports in the aggregated link within the set duration when the current mode is static or dynamic link aggregation mode after the dynamic management link aggregation member port bandwidth management function is enabled. Packet rate or ordinary packet loss rate;
  • the state setting unit is configured to: when detecting that the normal packet loss rate of the member port within the set duration is greater than or equal to the set threshold, the peer packet with the normal packet loss rate exceeding or equal to the set threshold is received.
  • the status is set to inactive; it is also set to detect that the member port is set for the duration
  • the state of the member port whose normal packet loss rate exceeds or equals the set threshold is set to an inactive state; and the member that is also set to be inactive is also set. If the normal packet loss rate of the port is lower than the set threshold within the set duration, and the peer member port of the inactive member port is lower than the set threshold within the set duration, the The status of the inactive member port is updated to the active state;
  • a load sharing unit configured to recalculate a port for sending a message in a remaining link other than the active member port according to a load sharing policy when the state of one or more member ports is set to an inactive state; When the inactive member port is updated to the active state, the port on which the message is sent is recalculated.
  • the state setting unit is configured to: when detecting that the normal packet loss rate of the member port exceeds or exceeds a set threshold within a set duration, the normal packet loss rate is greater than or equal to the Set the status of the peer end of the member port of the threshold to inactive:
  • the device corresponding to the member port B of the peer port A is notified by the link aggregation control protocol LACP to indicate The device corresponding to the member port B of the peer end sets the state of the peer member port B to an inactive state.
  • the state setting unit is configured to: when detecting that the normal packet loss rate of the member port exceeds or exceeds a set threshold within a set duration, the normal packet loss rate is greater than or equal to the The status of the member port that sets the threshold is set to inactive:
  • the CPU and the member port of the member port a that sends the normal packet loss rate exceeding or equal to the set threshold are detected respectively.
  • the member port b of the peer end of a sends a message informing the member port a that the normal packet loss rate exceeds or equals the set threshold, and sets the state of the member port a to the inactive state.
  • the state setting unit is configured to: when the member port in the inactive state is lower than the set threshold in the set duration, and the peer member of the member port in the inactive state is configured by: When the normal packet loss rate of the port within the set duration is lower than the set threshold, the status of the inactive member port is updated to the active state:
  • the device corresponding to the member port B of the peer end of the member port A is notified to the member port A when the normal packet loss rate of the member port A in the inactive state is lower than the set threshold.
  • the information about the normal packet loss is normal.
  • the device corresponding to the member port B receives the member port A. After receiving the normal packet loss information, if it is detected that the normal packet loss rate of the peer member port B within the set duration is also lower than the set threshold, the status of the member port B is updated to the active state.
  • the state setting unit is configured to: when the member port in the inactive state is lower than the set threshold in the set duration, and the peer member of the member port in the inactive state is configured by: When the normal packet loss rate of the port within the set duration is lower than the set threshold, the status of the inactive member port is updated to the active state:
  • the device further includes:
  • the second detecting unit is configured to detect whether a member port of the link aggregation port receives an excess bandwidth packet loss or sends an excessive bandwidth packet loss;
  • the ultra-bandwidth packet loss processing unit is configured to notify the member port Y of the member port X of the member port X that the member port is over-bandwidthed by the LACP when the member port X is detected to receive the bandwidth loss packet.
  • the CPU is further configured to: when the CPU corresponding to the member port Y of the peer end receives the information of the packet loss of the member port X, if it is determined that the member port Y is the destination port of any service redirection, Traffic redirected to the member port Y is redirected to the other port with the lowest bandwidth utilization.
  • the ultra-bandwidth packet loss processing unit is further configured to redirect the traffic redirected to the member port Y to another port with the lowest bandwidth utilization, and if the member port X still receives the bandwidth loss packet Then, the hash key of the member port Y is used as a feature value, and the service access control list ACL redirected to the member port Y is redirected to the port with the lowest bandwidth utilization, and the member is repeatedly redirected until the member is redirected. Port X no longer receives bandwidth loss.
  • the ultra-bandwidth packet loss processing unit is further configured to: notify the CPU of the local member port x by using LACP to detect the packet loss of the local end by using the LACP when detecting that the member port x sends the ultra-bandwidth packet loss. And the CPU of the member port y of the peer port of the member port x, and the CPU of the local member port x obtain the information of the excessive bandwidth loss packet of the local end, and if it is determined that the member port x is any service weight at the same time The directed destination port redirects traffic redirected to the member port x to other ports with low bandwidth utilization.
  • the ultra-bandwidth packet loss processing unit is further configured to redirect to the member port If the service on the member port is redirected to another port with low bandwidth utilization, if the member port x still sends over-bandwidth packet loss, the hash value of the member port x is used as the eigenvalue and will be redirected to the device. The service on member port x is redirected to the port with the lowest bandwidth utilization. The redirection action is repeated until the member port no longer sends excessive bandwidth loss.
  • the first detecting unit is further configured to: when the current mode is the manual link aggregation mode, detect that the member port in the link aggregation port receives the normal packet loss rate and/or sends the normal lost packet within the set duration. Packet rate
  • the state setting unit is further configured to: when the current mode is the manual link aggregation mode, if the normal packet loss rate of the member port in the link aggregation port is longer than or equal to the set threshold, The status of the member port whose normal packet loss rate is greater than or equal to the set threshold is set to inactive. It is also set to detect the member port of the link aggregation port when the current mode is manual link aggregation mode. When the normal packet loss rate is greater than or equal to the set threshold, the state of the member port whose normal packet loss rate exceeds or equals the set threshold is set to an inactive state.
  • the embodiment of the invention is a computer storage medium, wherein the computer storage medium stores computer executable instructions, and when the computer executable instructions are executed, a method for managing packet loss of a link aggregation member port is implemented.
  • the above technical solution provides a corresponding management method, which greatly improves the quality of the line transmission, and is of great significance to a large customer service such as a bank.
  • the above technical solution improves the traffic redistribution capability and greatly improves the bandwidth utilization.
  • the bandwidth carried by member ports is g.
  • FIG. 1 is a schematic diagram of an existing standard LAG application networking
  • FIG. 2 is a flowchart of a manual LAG packet loss limit processing in the first embodiment of the present invention
  • FIG. 3 is a flowchart of a process for processing a static or dynamic LAG to receive an ordinary packet loss in the first embodiment of the present invention
  • FIG. 4 is a flowchart of a static or dynamic LAG sending ordinary packet loss limit processing in the first embodiment of the present invention
  • FIG. 5 is a flowchart of processing a static or dynamic LAG over-bandwidth limit in the first embodiment of the present invention
  • FIG. 6 is a flowchart of processing a static or dynamic LAG transmission overband limit in the first embodiment of the present invention
  • FIG. 7 is a complete flowchart of managing packet loss processing of a smartgroup member port according to Embodiment 1 of the present invention.
  • FIG. 8 is a schematic structural diagram of an apparatus for managing packet loss of a link aggregation member port in the second embodiment
  • FIG. 9 is another schematic structural diagram of an apparatus for managing packet loss of a link aggregation member port in the second embodiment of the present invention.
  • the standard LAG application method has its own drawbacks as follows:
  • the switch When the switch detects that the link of one of the member ports is faulty, it stops sending packets on the port and recalculates the port for sending packets on the remaining link according to the load sharing policy. After the faulty port is restored, Recalculate the message sending port again.
  • the link failure mentioned here generally refers to link down (Link Down) or other serious link failures that can cause Link Down; obviously, this is a strict requirement. If there is packet loss in the link, it is impossible to switch in time to ensure the link quality.
  • the present embodiment provides a method for managing packet loss on a smartgroup member port, which can be applied to a real network of a smartgroup to improve the transmission quality and bandwidth utilization of the smartgroup.
  • the method mainly includes the following operations:
  • the member port status is set to inactive. (inactive).
  • the port member status can be set to inactive.
  • the device stops sending packets on the port and recalculates the port for sending packets based on the load sharing policy.
  • the port detection function is enabled.
  • T2 When the local port receives/transmits for a certain period of time, T2 continues to not drop packets or does not exceed the set packet loss threshold H1, and then resets the member port state to the active state (actvie). After re-calculating the packet sending port, the process is as shown in Figure 2, including the processing when the manual LAG is received, the normal packet loss is exceeded, and the manual LAG packet loss disappears.
  • the methods for managing packet loss on smartgroup member ports include the following operations:
  • Step 10 After the dynamic management of the link aggregation member port bandwidth management function is enabled, when the current mode is static or dynamic link aggregation mode, the normal packet loss rate of the member ports in the aggregation link is set or sent. Packet loss rate;
  • Step 11 If it is detected that the normal packet loss rate of the member port in the set duration is greater than or equal to the set threshold, the peer member port of the member port whose normal packet loss rate exceeds or equals the set threshold is received. The status is set to inactive;
  • Step 12 If it is detected that the normal packet loss rate of the member port exceeds or is equal to the set threshold within the set duration, the state of the member port with the normal packet loss rate exceeding or equal to the set threshold is set to be inactive. status;
  • Step 13 When the state of one or more member ports is set to an inactive state, according to the load sharing policy, the port for sending the message is recalculated in the remaining links except the member ports in the active state;
  • Step 14 When the inactive member port is within the set duration, the normal packet loss rate is lower than the set threshold, and the inactive member port of the inactive member port is lost within the set duration.
  • the packet rate is lower than the set threshold, the status of the member port in the inactive state is updated to the active state, and the port for sending the packet is recalculated.
  • step 14 of step 11 is not limited, and the corresponding steps are performed according to the result of the detection.
  • the problem of transmitting and receiving ultra-bandwidth packet loss is also considered.
  • the LACP protocol can be used.
  • the LACP packet has three reserved bytes, Reserved[0] ⁇ Reserved[2]. Therefore, in the implementation process, ordinary packet loss alarms and ultra-bandwidth alarms can be transmitted by using bits 0 to 3 of Reserved[0]. as follows:
  • the normal packet rate of the peer end exceeds the set threshold (including CRC and other non-super bandwidth packet loss)--coded to 0100;
  • the next step is to set the behavior of the LACP protocol when receiving various encodings:
  • a device detects each member port of the device. When the device detects that the packet loss rate of any member port of the device exceeds the threshold Rx1, the device generates the corresponding port A.
  • the device (the LACP packet can be sent to the CPU of the device, and the LACP packet is described as being sent to the CPU) is in the LACP packet.
  • the bits 0 to 3 of Reserved[0] are set to 0001 to the peer end of the member port. Set the bit 0 to 3 of Reserved[0] of the LACP packet sent by the CPU of member port B to 0010. After receiving the packet with Reserved[0]bit0 ⁇ 3 as 0010, the CPU of the peer member port B sets the state of the peer member port B to inactive.
  • the device stops sending packets on the port B and is based on the load sharing policy. In the remaining link, the port for packet transmission is recalculated, and port detection is enabled. If the normal packet loss rate of the peer member port B continues to exceed the threshold Rx1, the inactive state of the peer member port B is maintained. If the peer member port B receives the packet loss during the T1 period. If the rate is lower than the set threshold Rx2, the bits 0 to 3 of the Reserved[0] in the LACP packet sent to the member port B are set to 0000, and the reserved LACP message sent to the CPU of the member port A is Reserved[0]. Bits 0 to 3 are set to 0000.
  • the CPU of member port A After receiving the message of Reserved[0]bit0 ⁇ 3 to 0000, the CPU of member port A will update member port B if it is determined that the common rate of member port A within the set duration is also lower than the set threshold Tx2. In the active state, the packet sending port is recalculated again, and the port detection function is disabled. This process is shown in Figure 3. In this way, it has great significance for improving the quality of the link.
  • the bits 0 to 3 of the Reserved[0] in the CPULACP packet corresponding to the member port a are set to 0011 to the peer member port.
  • the corresponding CPU sends the bit 0 to 3 of Reserved[0] in the LACP packet to 0100.
  • the CPU of member port a sets the member port a state to inactive after receiving the message with Reserved[0]bit0 ⁇ 3 being 0011.
  • the device stops sending packets on the port a, and recalculates the port for sending packets on the remaining links according to the load sharing policy.
  • port detection is enabled. If the normal packet loss exceeds the set threshold Tx1 in the T2, the inactive state of the member port a is maintained. If the normal packet loss of the member port a is lower than the set threshold Tx2 in the T2 time, the member port is sent.
  • Bits 0 to 3 of the LACP packet Reserved[0] of the CPU of a are set to 0000, and the bits 0 to 3 of the LACP packet Reserved[0] are set to 0000 to the CPU of the peer member port b.
  • the CPU of member port a determines that the normal rate of the peer member port b of the member port a is less than the set threshold Rx2. Then, the status of member port a is updated to the active state, and the packet sending port is recalculated again. At the same time, the port detection function is disabled. This process is shown in Figure 4. In this way, it has great significance for improving the quality of the link.
  • the device corresponding to the member port can be a switch, and each switch can have multiple ports.
  • switch 1 has ports A, B, and C
  • switch 2 has ports a, b, and c.
  • the peer port is b.
  • switch 1 detects that the normal packet loss rate of port A is exceeded, switch 1 reports LACP packets to the CPU of switch 1.
  • the bits 0 to 3 of Reserved[0] are set to 0001, and switch 1 is in the opposite direction.
  • the CPU of the switch 2 corresponding to the port b sends an LACP packet.
  • the bits 0 to 3 of the Reserved[0] of the LACP packet are set to 0010.
  • Switch 2 sets the state of port b to inactive.
  • the bits 0 to 3 of Reserved[0] in the LACP packet sent to the member port X are set to 0101.
  • Bits 0 to 3 of Reserved[0] in the LACP packet of the CPU corresponding to the peer member port Y of the member port X are set to 0110.
  • the CPU of the peer member port Y After receiving the message with Reserved[0] of 0110, the CPU of the peer member port Y first redirects these services to other bandwidth utilizations if it determines that the peer member port Y is the destination port of any service redirection.
  • the port with the lowest utilization rate repeats the redirection action until the ultra-bandwidth packet loss disappears. This process is shown in Figure 5.
  • the packets of the CPU corresponding to the member port x are set to 0-11 of the reserved message[0], and are sent to the peer member port of the member port x.
  • Bits 0 to 3 of the LACP message Reserved[0] of the CPU corresponding to y are set to 1000. If the member port ⁇ x receives the message with Reserved[0] of 0111, if it confirms that member port x is the destination port of any service redirection, it first redirects these services to other ports with the lowest bandwidth utilization.
  • the hash key is used as the classid, and the ACL is directed to the port with the lowest bandwidth utilization, and the redirection action is repeated until the ultra-bandwidth packet loss disappears. This process is shown in Figure 6.
  • Step 701 The version is started normally. After the smartgroup is configured, the dynamic management smartgroup bandwidth function is enabled. If it is manual smartgroup mode, go to step 702; if it is static or / dynamic smartgroup mode, go to step 705;
  • Step 702 Detecting the normal packet loss rate or the normal packet loss rate in the member port duration T1; when it is detected that the normal packet loss rate in any member port duration T1 exceeds the specified threshold H1, then step 703 is performed; When it is detected that the normal packet loss rate in any member port duration T1 exceeds the specified threshold H2, then step 704 is performed;
  • Step 703 Set the state of the member port to the inactive state, and enable the port packet loss detection function, and recalculate the port for sending the packet in the remaining link according to the load sharing policy. If the normal packet loss in the member port port duration T2 does not exceed the specified threshold H3, the The status update of the member port is set to the active state, and the packet sending port is recalculated again. Disable port packet loss detection. Go to step S712;
  • Step 704 Set the state of the member port to the inactive state, and enable the port packet loss detection function, and recalculate the port for sending the packet in the remaining link according to the load sharing policy. If the normal packet loss in the member port port duration T2 does not exceed the specified threshold H4, the status update of the member port is set to the active state, and the packet sending port is recalculated again. Disable port packet loss detection. Go to step S712;
  • step 705 it is detected whether the normal packet loss rate and/or the normal packet loss rate are detected, or whether the over-bandwidth packet loss and/or the ultra-bandwidth packet loss are detected. If it is detected that the normal packet loss rate and/or the normal packet loss rate is further limited to step 706; if it is detected, the over bandwidth loss packet and/or the ultra bandwidth loss packet is transferred to step 709;
  • step 706 the normal packet loss rate is exceeded or the normal packet loss rate is exceeded. If the normal packet loss rate is exceeded, the process proceeds to step 707; if the normal packet loss rate is exceeded, the process proceeds to step 708.
  • Step 707 If it is detected that the normal packet loss rate of the member port A in the duration T1 exceeds the specified threshold H1, the bits 0 to 3 of the Reserved[0] in the LACP packet sent to the member port A are set to 0001. Bits 0 to 3 of Reserved[0] in the LACP packets sent by the peer member port B of member port A are set to 0010. The CPU of the peer member port B sets the state of the peer member port B to inactive after receiving the message with Reserved[0]bit0 ⁇ 3 being 0010. After the peer member port B is set to inactive, the device stops sending packets on the peer member port B, and recalculates the port for sending packets on the remaining links according to the load balancing policy. .
  • the inactive state of the peer member port B is maintained. If the peer member port B receives the normal packet loss rate during the T1 time. If the value is lower than the set threshold, the bits 0 to 3 of Reserved[0] in the LACP packets sent to the CPU of the peer port B are set to 0000, and the LACP packets sent by the CPU of the member port A are Reserved[0. Bits 0 to 3 of the ] are set to 0000. After receiving the message of Reserved[0]bit0 ⁇ 3 to 0000, the CPU of the peer member port B determines that the normal packet loss rate of the member port A within the set duration is lower than the set threshold. The status of the member port B is updated to the active state. The packet sending port is recalculated and the port detection function is disabled. Go to step 712;
  • Step 708 If it is detected that the normal packet loss rate of the member port a in the duration T2 exceeds the specified threshold H2, the bits 0 to 3 of the Reserved[0] in the LACP packet sent to the CPU of the member port a are set to 0011, bit 0 to 3 of Reserved[0] in the LACP packet sent to the peer member port b. Set to 0100.
  • the CPU of the member port a sets the status of the member port a to inactive after receiving the message with Reserved[0]bit0 ⁇ 3 being 0011. After the member port a is set to inactive, the device stops sending packets on the member port a, and recalculates the port for sending packets on the remaining links according to the load balancing policy.
  • the inactive state of the member port a is maintained; if the member port a is in the duration T2, the normal packet loss is lower than the setting.
  • the threshold is H2
  • the bits 0 to 3 of Reserved[0] in the LACP packet sent to the member port a are set to 0000, and the bits 0 to 3 of Reserved[0] in the LACP packet sent to the peer member port b are set. It is 0000.
  • the CPU of the member port a determines that the normal packet loss rate of the peer member port b within the set duration is also lower than the set threshold.
  • the status of port a is updated to the active state.
  • the packet sending port is recalculated again. At the same time, the port detection function is disabled. Go to step 712;
  • step 709 the over-limit of the bandwidth loss packet or the over-bandwidth packet loss exceeds the limit. If the packet loss exceeds the limit, the process proceeds to step 710; if the packet loss exceeds the limit, the process proceeds to step 711;
  • Step 710 When it is detected that any member port X receives the bandwidth loss packet, the bit 0 to 3 of Reserved[0] in the LACP packet sent to the member port x is set to 0101, and the pair is sent to the member port X. Bits 0 to 3 of Reserved[0] in the LACP packet of the CPU of the member port Y are set to 0110. After receiving the message with Reserved[0] of 0110, the CPU of the peer member port Y first redirects these services to other bandwidths if it determines that the peer member port Y is the destination port of any service redirection.
  • the hash key is used as the classid, and the ACL is used to redirect to the port with the lowest bandwidth utilization. The redirection action is repeated until the ultra-bandwidth packet loss disappears. Go to step 712;
  • Step 711 When it is detected that any member port x sends an excessive bandwidth packet loss, the packets sent from the CPU of the member port x to the reserved port 0 of the reserved port 0 are set to 0111, and are sent to the opposite end of the member port x. Bits 0 to 3 of Reserved[0] in the LACP packet of member port y are set to 1000. If the member port x receives the message with the reserved [0] of 0111, if the member port x is determined to be the destination port of any service redirection, the CPU is redirected to the other port with the lowest bandwidth utilization.
  • the hash key is used as the classid, and the ACL is redirected to the port with the lowest bandwidth utilization. The redirection action is repeated until the ultra-bandwidth packet loss disappears.
  • Step S712 End.
  • the above technical solution provides a corresponding management method for a case where a link has a small amount or even a large number of ordinary packet loss, which greatly improves the quality of the line transmission, and is of great significance to a large customer service such as a bank.
  • the traffic redistribution capability is improved, and the bandwidth utilization is greatly improved.
  • the embodiment provides a device for managing packet loss of a link aggregation member port, and the method of the first embodiment is implemented, and at least includes the following units.
  • the first detecting unit 11 is configured to detect that the member ports in the aggregation link are within the set duration when the current mode is static or dynamic link aggregation mode after the dynamic management link aggregation member port bandwidth management function is enabled. Packet loss rate or ordinary packet loss rate;
  • the state setting unit 12 is configured to: if it is detected that the normal packet loss rate of the member port within the set duration is greater than or equal to the set threshold, the state of the peer end of the member port whose normal packet loss rate exceeds or equals the threshold is received.
  • Set to inactive state if it is detected that the normal packet loss rate of the member port within the set duration is greater than or equal to the set threshold, then the member port with the normal packet loss rate exceeding or equal to the threshold is sent.
  • the status is set to inactive; and the member port that is inactive is set to a lower than the set threshold within the set duration, and the peer member port of the inactive member port is set.
  • the status of the member port in the inactive state is updated to the active state;
  • the load sharing unit 13 is configured to recalculate the port for sending the message in the remaining links except the active member port according to the load sharing policy when the state of the one or more member ports is set to the inactive state; Recalculates the port on which the message is sent when the inactive member port is updated to the active state.
  • the state setting unit 12 implements, if it is detected that the normal packet loss rate of the member port within the set duration is greater than or equal to the set threshold, the normal packet loss rate is greater than or equal to the The status of the peer end of the member port of the threshold is set to inactive:
  • the device corresponding to the member port B of the peer port A is notified by the link aggregation control protocol LACP to indicate The device corresponding to the member port B of the peer end sets the state of the peer member port B to an inactive state.
  • the state setting unit 12 implements the following manner: if it is detected that the normal packet loss rate of the member port exceeds or is equal to the set threshold within the set duration, the normal packet loss rate is greater than or equal to the threshold.
  • the status of the member port is set to inactive:
  • the CPU and the member port of the member port a that sends the normal packet loss rate exceeding or equal to the set threshold are detected respectively.
  • the CPU of the peer member port of a sends a message to the member port to notify the member port that the normal packet loss rate exceeds or equals the set threshold, and detects that the normal packet loss rate exceeds or equals the set threshold.
  • the status is set to inactive.
  • the state setting unit 12 implements, by using the following manner, that the normal packet loss rate of the member port in the inactive state is lower than the set threshold within the set duration, and the peer member port of the member port in the inactive state is configured.
  • the status of the inactive member port is updated to the active state:
  • the CPU notification corresponding to the member port B of the peer port of the member port A of the member port is respectively notified. If the member port A sends the normal packet loss information, the CPU corresponding to the member port B receives the information that the member port A receives the normal packet loss. If the normal packet loss rate is lower than the set threshold, the status of the member port B is updated to the active state.
  • the state setting unit 12 implements, by using the following manner, that the normal packet loss rate of the member port in the inactive state is lower than the set threshold within the set duration, and the peer member port of the member port in the inactive state is configured.
  • the status of the inactive member port is updated to the active state:
  • the number of the normal packet loss rate of the peer member port b that determines the member port a is within the set duration.
  • the threshold is set, the status of the member port a is updated to the active state.
  • the preferred solution of this embodiment also considers that the member port receives and sends. The problem of ultra-bandwidth packet loss.
  • the device further includes:
  • the second detecting unit 14 is configured to detect whether a member port of the link aggregation port receives an excess bandwidth packet loss or sends an excessive bandwidth packet loss;
  • the ultra-bandwidth packet loss processing unit 15 is configured to notify the member port Y of the member port X of the member port X that the member port is over-bandwidthed by the LACP when the member port X is detected to receive the bandwidth loss packet. If the device corresponding to the member port Y receives the packet loss information of the member port X, if it is determined that the member port Y is the destination port of any service redirection at the same time, The traffic redirected to the member port Y is redirected to the other port with the lowest bandwidth utilization.
  • the ultra-bandwidth packet loss processing unit 15 is further configured to redirect the traffic redirected to the member port Y to another port with the lowest bandwidth utilization, if the member port X still receives the bandwidth. If the packet is lost, the hash key of the member port Y, such as the VLAN, is used as the eigenvalue (class id), and the ACL redirected to the member port Y is redirected to the bandwidth. The port with the lowest utilization rate repeats the redirection action until the member port X no longer receives the excess bandwidth packet loss.
  • the ultra-bandwidth packet loss processing unit 15 is further configured to: notify the local member port x of the packet loss of the local end by using the LACP when detecting that the member port x sends the ultra-bandwidth packet loss.
  • the CPU and the CPU of the member port y of the peer port of the member port x and the CPU of the member port x obtain the information of the excessive bandwidth loss packet of the local end, and if the member port x is determined to be any service weight at the same time,
  • the directed destination port redirects traffic redirected to the member port x to other ports with low bandwidth utilization.
  • the ultra-bandwidth packet loss processing unit 15 is further configured to redirect the service redirected to the member port x member port to another port with low bandwidth utilization, if the member port x still exceeds If the bandwidth is lost, the hash value of the member port x is used as the eigenvalue, and the service redirected to the member port x is redirected to the port with the lowest bandwidth utilization, and the redirection action is repeated until the packet is used. Member ports no longer send excessive bandwidth drops.
  • the first detecting unit 11 is further configured to: when the current mode is the manual link aggregation mode, detect that the member port in the link aggregation port receives an ordinary packet loss rate or sends a normal packet loss within a set time period. Rate
  • the state setting unit 12 is further configured to: when the current mode is the manual link aggregation mode, if the normal packet loss rate of the member port in the link aggregation port is greater than or equal to the set threshold within the set duration, The status of the member port whose normal packet loss rate is greater than or equal to the set threshold is set to inactive. If the current mode is manual link aggregation mode, the member port of the link aggregation port is set. When the normal packet loss rate in the duration exceeds or equals the set threshold, the state of the member port with the normal packet loss rate exceeding or equal to the set threshold is set to the inactive state.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and when the computer executable instructions are executed, a method for managing packet loss of a link aggregation member port is implemented.
  • each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function.
  • This application is not limited to any specific combination of hardware and software.
  • the above technical solution improves the quality of the line transmission and the traffic redistribution capability, and improves the bandwidth utilization.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A method for managing link aggregation member port packet loss, comprising: after enabling a bandwidth management function of dynamically managing a link aggregation member port, detecting a receiving or sending general packet loss rate of a member port in an aggregation link within a set time duration; if it is detected that the receiving general packet loss rate of the member port within the set time duration exceeds or equals to a set threshold, setting the state of a peer member port of the member port, the receiving general packet loss rate of which exceeds or equals to the set threshold, as an inactive state; and if it is detected that the sending general packet loss rate of the member port within the set time duration exceeds or equals to the set threshold, setting the state of the member port, the sending general packet loss rate of which exceeds or equals to the set threshold, as the inactive state. The technical solution significantly improves the quality of line transmission, and is of great significance to the business of large customers such as banks.

Description

一种管理链路聚合成员端口丢包的方法和装置Method and device for managing packet loss of link aggregation member port 技术领域Technical field
本文涉及但不限于数据通信领域中的丢包管理技术,涉及链路聚合组成员端口的丢包管理方案。This document refers to, but is not limited to, the packet loss management technology in the field of data communication, and the packet loss management scheme involving the member ports of the link aggregation group.
背景技术Background technique
SMARTGROUP也称链路聚合(Link Aggregation),是定义在IEEE 802.3ad中的标准机制,是指将多个物理端口捆绑在一起,成为一个逻辑端口,以实现出/入流量在各成员端口中的负荷分担,交换机根据用户配置的端口负荷分担策略决定报文从哪一个成员端口发送到对端的交换机。当交换机检测到其中一个成员端口的链路发生故障时,就停止在此端口上发送报文,并根据负荷分担策略在剩下链路中重新计算报文发送的端口,故障端口恢复后再次重新计算报文发送端口。链路聚合在增加链路带宽、实现链路传输弹性和冗余等方面是一项很重要的技术。SMARTGROUP分为手工、静态模式和动态模式三种。手工模式将多个物理端口直接加入到SG(Smart Group)中,形成一个逻辑端口,不运行LACP协议。静态和动态模式遵循LACP(Link Aggregation Control Protocol,链路汇聚控制协议)。其中,标准LAG(Link Aggregation Group,链路聚合组)应用如图1所示。SMARTGROUP, also known as Link Aggregation, is a standard mechanism defined in IEEE 802.3ad. It refers to bundling multiple physical ports into one logical port to implement inbound/outbound traffic in each member port. Load balancing, the switch determines which member port the packet is sent to the peer switch based on the port load balancing policy configured by the user. When the switch detects that the link of one of the member ports is faulty, the switch stops sending packets on the port and recalculates the port that the packet is sent on the remaining link according to the load balancing policy. Calculate the packet sending port. Link aggregation is an important technology in terms of increasing link bandwidth, achieving link transmission flexibility and redundancy. SMARTGROUP is divided into manual, static mode and dynamic mode. Manual mode adds multiple physical ports to the SG (Smart Group) to form a logical port. The LACP protocol is not running. The static and dynamic modes are in compliance with the Link Aggregation Control Protocol (LACP). The application of the standard LAG (Link Aggregation Group) is shown in Figure 1.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供一种管理链路聚合成员端口丢包的方法和装置,解决现有链路聚合中端口丢包无法管理的问题。The embodiment of the invention provides a method and a device for managing packet loss on a link aggregation member port, which solves the problem that the port packet loss cannot be managed in the existing link aggregation.
本发明实施例提供一种管理链路聚合成员端口丢包的方法,该方法包括:An embodiment of the present invention provides a method for managing packet loss on a link aggregation member port, where the method includes:
开启动态管理链路聚合成员端口带宽管理功能后,在当前模式为静态或动态链路聚合模式时,检测聚合链路中成员端口在设定时长内的收普通丢包 率或发普通丢包率;After the dynamic management of the link aggregation member port is enabled, the device detects that the member ports in the aggregation link are in the set time. Rate or ordinary packet loss rate;
若检测到成员端口在设定时长内的收普通丢包率超过或等于设定门限,则将收普通丢包率超过或等于所述设定门限的成员端口的对端成员端口的状态设置为非活动状态;If it is detected that the normal packet loss rate of the member port is greater than or equal to the set threshold within the set duration, the state of the peer member port of the member port whose normal packet loss rate exceeds or equals the set threshold is set to Inactive state
若检测到成员端口在设定时长内的发普通丢包率超过或等于设定门限,则将发普通丢包率超过或等于所述设定门限的成员端口的状态设置为非活动状态;If it is detected that the normal packet loss rate of the member port exceeds or is equal to the set threshold within the set duration, the state of the member port whose normal packet loss rate exceeds or equals the set threshold is set to an inactive state;
当一个或多个成员端口的状态被设置为非活动状态时,根据负荷分担策略,在除非活动状态的成员端口以外的剩余链路中重新计算报文发送的端口;When the state of one or more member ports is set to an inactive state, according to the load sharing policy, the port for transmitting the message is recalculated in the remaining links except the active member ports;
当非活动状态的成员端口在设定时长内的发普通丢包率低于设定门限,且非活动状态的成员端口的对端成员端口在设定时长内的收普通丢包率低于设定门限时,将该非活动状态的成员端口的状态更新为活动状态,并重新计算报文发送的端口。When the inactive member port is in the set time period, the normal packet loss rate is lower than the set threshold, and the inactive member port of the member port in the inactive state is lower than the set packet loss rate. When the threshold is set, the status of the member port in the inactive state is updated to the active state, and the port on which the packet is sent is recalculated.
可选地,若检测到成员端口在设定时长内的收普通丢包率超过或等于设定门限,则将收普通丢包率超过或等于所述设定门限的成员端口的对端成员端口的状态设置为非活动状态的过程包括:Optionally, if it is detected that the normal packet loss rate of the member port in the set duration is greater than or equal to the set threshold, the peer member port of the member port whose normal packet loss rate exceeds or equals the set threshold is received. The process of setting the status to inactive includes:
若检测到成员端口A在设定时长内的收普通丢包率超过或等于设定门限,则通过链路汇聚控制协议LACP通知所述成员端口A对端的成员端口B对应的设备,以使所述成员端口B对应的设备将所述成员端口B的状态设置为非活动状态。If the normal packet loss rate of the member port A is greater than or equal to the set threshold, the device corresponding to the member port B of the peer port A is notified by the link aggregation control protocol LACP. The device corresponding to the member port B sets the state of the member port B to an inactive state.
可选地,若检测到成员端口在设定时长内的发普通丢包率超过或等于设定门限,则将发普通丢包率超过或等于所述设定门限的成员端口的状态设置为非活动状态的过程包括:Optionally, if it is detected that the normal packet loss rate of the member port in the set duration is greater than or equal to the set threshold, the state of the member port with the normal packet loss rate exceeding or equal to the set threshold is set to a non- The process of active status includes:
若检测到成员端口a在设定时长内的发普通丢包率超过或等于设定门限,If it is detected that the normal packet loss rate of the member port a within the set duration exceeds or is equal to the set threshold,
分别向本端成员端口a的CPU和所述成员端口a的对端的成员端口b发送通知成员端口a发普通丢包率超过或等于设定门限的信息;Sending information to the member port b of the local member port a and the member port b of the peer port a to notify the member port a that the normal packet loss rate exceeds or equals the set threshold.
所述成员端口a的CPU获取成员端口a发普通丢包率超过或等于设定门限的信息,则将本成员端口a的状态设置为非活动状态。 The CPU of the member port a obtains the information that the member port a sends a normal packet loss rate that is greater than or equal to the set threshold, and sets the state of the member port a to the inactive state.
可选地,当非活动状态的成员端口在设定时长内的发普通丢包率低于设定门限,且非活动状态的成员端口的对端成员端口在设定时长内的收普通丢包率低于设定门限时,再将该非活动状态的成员端口的状态更新为活动状态的过程包括:Optionally, when the inactive member port is in the set time period, the normal packet loss rate is lower than the set threshold, and the inactive member port of the inactive member port receives the normal packet loss within the set duration. When the rate is lower than the set threshold, the process of updating the status of the inactive member port to the active state includes:
当成员端口A在设定时长内的收普通丢包率低于设定门限时,分别向本端CPU和所述成员端口A的对端的成员端口B对应的设备通知成员端口A收普通丢包正常的信息;When the member port A receives the normal packet loss rate within the set time period, the device corresponding to the member port B of the peer port of the member port A is notified to the member port A to receive the normal packet loss. Normal information;
所述成员端口B对应的CPU收到成员端口A收普通丢包正常的信息后,若检测到所述成员端口B在设定时长内的发普通丢包率也低于设定门限,则将本成员端口B的状态更新为活动状态。After receiving the information that the member port A receives the normal packet loss, the CPU corresponding to the member port B detects that the normal packet loss rate of the member port B within the set duration is lower than the set threshold. The status of member port B is updated to the active state.
可选地,当非活动状态的成员端口在设定时长内的发普通丢包率低于设定门限,且非活动状态的成员端口在设定时长内的收普通丢包率低于设定门限时,再将该非活动状态的成员端口的状态更新为活动状态的过程包括:Optionally, when the member port in the inactive state has a normal packet loss rate within a set duration, the normal packet loss rate is lower than a set threshold, and the inactive member port has a lower packet loss rate within the set duration. When the threshold is reached, the process of updating the status of the inactive member port to the active state includes:
当成员端口a在设定时长内的发普通丢包率低于设定门限时,如果确定所述成员端口a的对端成员端口b在设定时长内的收普通丢包率低于设定门限,则将本成员端口a的状态更新为活动状态。If the normal packet loss rate of the member port a is lower than the set threshold within the set duration, if it is determined that the peer member port b of the member port a is within the set duration, the normal packet loss rate is lower than the set. Threshold, the status of the member port a is updated to the active state.
可选地,该方法还包括:Optionally, the method further includes:
检测链路聚合端口中是否有成员端口收超带宽丢包或发超带宽丢包;Check whether there are member ports in the link aggregation port that receive bandwidth loss or excessive bandwidth loss.
若检测到成员端口X收超带宽丢包,则通过LACP将所述成员端口X收超带宽丢包的信息通知给本端成员端口X的CPU和所述成员端口X的对端的成员端口Y对应的CPU;如果判断所述成员端口Y同时是任一业务重定向的目的端口,则将重定向到所述成员端口Y上的业务重定向到其他带宽利用率低的端口。If it is detected that the member port X receives the bandwidth loss packet, the information about the packet loss of the member port X is notified to the member port X of the local port and the member port Y of the member port X of the member port X. If the member port Y is the destination port of any service redirection, the service redirected to the member port Y is redirected to another port with low bandwidth utilization.
可选地,将重定向到所述成员端口Y上的业务重定向到其他带宽利用率最低的端口后,若所述成员端口X仍然收超带宽丢包,该方法还包括:Optionally, after the service redirected to the member port Y is redirected to the other port with the lowest bandwidth utilization, if the member port X still receives the bandwidth loss packet, the method further includes:
所述成员端口Y以哈希关键字做特征值,将重定向到所述成员端口Y上的业务用访问控制列表ACL重定向到带宽利用率最低的端口,重复重定向动作直至所述成员端口X不再收超带宽丢包。The member port Y uses the hash key as a feature value to redirect the service access control list ACL redirected to the member port Y to the port with the lowest bandwidth utilization, and repeats the redirection action until the member port X no longer receives excess bandwidth loss.
可选地,该方法还包括: Optionally, the method further includes:
若检测到成员端口x发超带宽丢包,则通过LACP将本端发超带宽丢包的信息通知给本端成员端口x的CPU和对端的成员端口y所在的CPU;成员端口x的CPU获取到本端发超带宽丢包的信息后,如果判断所述成员端口x同时是任一业务重定向的目的端口,则将重定向到成员端口x上的业务重定向到其他带宽利用率最低的端口。If the member port x is sent out of the bandwidth loss, the information about the packet loss of the local end is reported to the CPU of the local member port x and the CPU of the member port y of the peer end; the CPU of the member port x is obtained. After the information about the bandwidth loss packet is sent to the local end, if the member port x is determined to be the destination port of any service redirection, the service redirected to the member port x is redirected to the other bandwidth utilization. port.
可选地,将重定向到所述成员端口x上的业务重定向到其他带宽利用率最低的端口后,若所述成员端口x仍然发超带宽丢包,该方法还包括:Optionally, after the service redirected to the member port x is redirected to the other port with the lowest bandwidth utilization, if the member port x still sends an excessive bandwidth packet loss, the method further includes:
所述成员端口x以哈希关键字做特征值,将重定向到所述成员端口x上的业务用ACL重定向到带宽利用率最低的端口,重复重定向动作直至所述成员端口x不再发超带宽丢包。The member port x is characterized by a hash key, and the service redirected to the member port x is redirected to the port with the lowest bandwidth utilization, and the redirection action is repeated until the member port x is no longer used. Send over bandwidth loss.
可选地,该方法还包括:Optionally, the method further includes:
如果当前模式为手工链路聚合模式,若检测到链路聚合端口中成员端口在设定时长内的收超过或等于设定门限,则将收普通丢包率超过或等于设定门限的成员端口的状态设置为非活动状态,并根据负荷分担策略在除已设置为非活动状态的成员端口以外剩余链路中重新计算报文发送的端口,直到所检测到的成员端口在设定时长内的收丢包率低于设定门限,再将该成员端口的状态更新为活动状态,并再次重新计算报文发送端口;If the current mode is the manual link aggregation mode, if the member port of the link aggregation port is detected to be longer than or equal to the set threshold, the member port with the normal packet loss rate exceeding or equal to the set threshold will be received. The status is set to inactive, and the port for sending packets is recalculated in the remaining links except the member ports that have been set to inactive according to the load sharing policy until the detected member ports are within the set duration. If the packet loss rate is lower than the set threshold, the status of the member port is updated to the active state, and the packet sending port is recalculated again;
若检测到链路聚合端口中成员端口在设定时长内的发超过或等于设定门限,则将发普通丢包率超过或等于所述设定门限的成员端口的状态设置为非活动状态;并根据负荷分担策略在除已设置为非活动状态的成员端口以外剩余链路中重新计算报文发送的端口,直到所检测到的成员端口在设定时长内的发丢包率低于设定门限,再将该成员端口的状态更新为活动状态,并再次重新计算报文发送端口。本发明实施例还提供一种管理链路聚合成员端口丢包的装置,包括:If it is detected that the member port in the link aggregation port is greater than or equal to the set threshold within the set duration, the state of the member port whose normal packet loss rate exceeds or equals the set threshold is set to an inactive state; According to the load sharing policy, the port for sending packets is recalculated in the remaining links except the member ports that have been set to inactive, until the detected member ports lose the packet loss rate within the set duration. Threshold, then update the status of the member port to the active state, and recalculate the message sending port again. The embodiment of the invention further provides an apparatus for managing packet loss of a link aggregation member port, including:
第一检测单元,设置为在开启动态管理链路聚合成员端口带宽管理功能后,在当前模式为静态或动态链路聚合模式时,检测聚合链路中成员端口在设定时长内的收普通丢包率或发普通丢包率;The first detecting unit is configured to detect the normal loss of the member ports in the aggregated link within the set duration when the current mode is static or dynamic link aggregation mode after the dynamic management link aggregation member port bandwidth management function is enabled. Packet rate or ordinary packet loss rate;
状态设置单元,设置为在检测到成员端口在设定时长内的收普通丢包率超过或等于设定门限时,将收普通丢包率超过或等于所述设定门限的成员端口的对端的状态设置为非活动状态;还设置为在检测到成员端口在设定时长 内的发普通丢包率超过或等于设定门限时,将发普通丢包率超过或等于所述设定门限的成员端口的状态设置为非活动状态;以及还设置为当非活动状态的成员端口在设定时长内的发普通丢包率低于设定门限,且非活动状态的成员端口的对端成员端口在设定时长内的收普通丢包率低于设定门限时,将该非活动状态的成员端口的状态更新为活动状态;The state setting unit is configured to: when detecting that the normal packet loss rate of the member port within the set duration is greater than or equal to the set threshold, the peer packet with the normal packet loss rate exceeding or equal to the set threshold is received. The status is set to inactive; it is also set to detect that the member port is set for the duration When the normal packet loss rate is greater than or equal to the set threshold, the state of the member port whose normal packet loss rate exceeds or equals the set threshold is set to an inactive state; and the member that is also set to be inactive is also set. If the normal packet loss rate of the port is lower than the set threshold within the set duration, and the peer member port of the inactive member port is lower than the set threshold within the set duration, the The status of the inactive member port is updated to the active state;
负荷分担单元,设置为在一个或多个成员端口的状态设置为非活动状态时,根据负荷分担策略,在除非活动状态的成员端口以外的剩余链路中重新计算报文发送的端口;以及在非活动状态的成员端口更新为活动状态时,重新计算报文发送的端口。a load sharing unit configured to recalculate a port for sending a message in a remaining link other than the active member port according to a load sharing policy when the state of one or more member ports is set to an inactive state; When the inactive member port is updated to the active state, the port on which the message is sent is recalculated.
可选地,所述状态设置单元设置为通过以下方式实现在检测到成员端口在设定时长内的收普通丢包率超过或等于设定门限时,将收普通丢包率超过或等于所述设定门限的成员端口的对端的状态设置为非活动状态:Optionally, the state setting unit is configured to: when detecting that the normal packet loss rate of the member port exceeds or exceeds a set threshold within a set duration, the normal packet loss rate is greater than or equal to the Set the status of the peer end of the member port of the threshold to inactive:
若检测到成员端口A在设定时长内的收普通丢包率超过或等于设定门限时,通过链路汇聚控制协议LACP通知所述成员端口A的对端的成员端口B对应的设备,以指示所述对端的成员端口B对应的设备将所述对端成员端口B的状态设置为非活动状态。If it is detected that the normal packet loss rate of the member port A is greater than or equal to the set threshold, the device corresponding to the member port B of the peer port A is notified by the link aggregation control protocol LACP to indicate The device corresponding to the member port B of the peer end sets the state of the peer member port B to an inactive state.
可选地,所述状态设置单元设置为通过以下方式实现在检测到成员端口在设定时长内的发普通丢包率超过或等于设定门限时,将发普通丢包率超过或等于所述设定门限的成员端口的状态设置为非活动状态:Optionally, the state setting unit is configured to: when detecting that the normal packet loss rate of the member port exceeds or exceeds a set threshold within a set duration, the normal packet loss rate is greater than or equal to the The status of the member port that sets the threshold is set to inactive:
若检测到成员端口a在设定时长内的发普通丢包率超过或等于设定门限,分别向检测到发普通丢包率超过或等于设定门限的成员端口a的CPU和所述成员端口a的对端的成员端口b发送通知本成员端口a发普通丢包率超过或等于设定门限的信息,以及将所述成员端口a的状态设置为非活动状态。If it is detected that the normal packet loss rate of the member port a is greater than or equal to the set threshold within the set duration, respectively, the CPU and the member port of the member port a that sends the normal packet loss rate exceeding or equal to the set threshold are detected respectively. The member port b of the peer end of a sends a message informing the member port a that the normal packet loss rate exceeds or equals the set threshold, and sets the state of the member port a to the inactive state.
可选地,所述状态设置单元设置为通过以下方式实现当非活动状态的成员端口在设定时长内的发普通丢包率低于设定门限,且非活动状态的成员端口的对端成员端口在设定时长内的收普通丢包率低于设定门限时,再该非活动状态的成员端口的状态更新为活动状态:Optionally, the state setting unit is configured to: when the member port in the inactive state is lower than the set threshold in the set duration, and the peer member of the member port in the inactive state is configured by: When the normal packet loss rate of the port within the set duration is lower than the set threshold, the status of the inactive member port is updated to the active state:
在检测到非活动状态的成员端口A在设定时长内的发普通丢包率低于设定门限时,向所述成员端口A的对端的成员端口B对应的设备通知所述成员端口A发普通丢包正常的信息;所述成员端口B对应的设备收到成员端口A 收普通丢包正常的信息后,若检测到所述对端成员端口B在设定时长内的收普通丢包率也低于设定门限,则将该成员端口B的状态更新为活动状态。The device corresponding to the member port B of the peer end of the member port A is notified to the member port A when the normal packet loss rate of the member port A in the inactive state is lower than the set threshold. The information about the normal packet loss is normal. The device corresponding to the member port B receives the member port A. After receiving the normal packet loss information, if it is detected that the normal packet loss rate of the peer member port B within the set duration is also lower than the set threshold, the status of the member port B is updated to the active state.
可选地,所述状态设置单元设置为通过以下方式实现当非活动状态的成员端口在设定时长内的发普通丢包率低于设定门限,且非活动状态的成员端口的对端成员端口在设定时长内的收普通丢包率低于设定门限时,再该非活动状态的成员端口的状态更新为活动状态:Optionally, the state setting unit is configured to: when the member port in the inactive state is lower than the set threshold in the set duration, and the peer member of the member port in the inactive state is configured by: When the normal packet loss rate of the port within the set duration is lower than the set threshold, the status of the inactive member port is updated to the active state:
当检测到成员端口a在设定时长内的收普通丢包率低于设定门限时,若干确定所述成员端口a的对端成员端口b在设定时长内的发普通丢包率也低于设定门限,则将该成员端口a的状态更新为活动状态。可选地,该装置还包括:When it is detected that the normal packet loss rate of the member port a within the set duration is lower than the set threshold, the number of the normal packet loss rate of the peer member port b that determines the member port a is within the set duration. When the threshold is set, the status of the member port a is updated to the active state. Optionally, the device further includes:
第二检测单元,设置为检测链路聚合端口中是否有成员端口收超带宽丢包或发超带宽丢包;The second detecting unit is configured to detect whether a member port of the link aggregation port receives an excess bandwidth packet loss or sends an excessive bandwidth packet loss;
超带宽丢包处理单元,设置为若检测到有成员端口X收超带宽丢包时,通过LACP将该成员端口收超带宽丢包的信息通知给所述成员端口X对端的成员端口Y对应的CPU;还设置为当所述对端成员端口Y对应的CPU收到成员端口X收超带宽丢包的信息后,若判断所述成员端口Y同时是任一业务重定向的目的端口,则将重定向到所述成员端口Y上的业务重定向到其他带宽利用率最低的端口。The ultra-bandwidth packet loss processing unit is configured to notify the member port Y of the member port X of the member port X that the member port is over-bandwidthed by the LACP when the member port X is detected to receive the bandwidth loss packet. The CPU is further configured to: when the CPU corresponding to the member port Y of the peer end receives the information of the packet loss of the member port X, if it is determined that the member port Y is the destination port of any service redirection, Traffic redirected to the member port Y is redirected to the other port with the lowest bandwidth utilization.
可选地,所述超带宽丢包处理单元,还设置为将重定向到所述成员端口Y上的业务重定向到其他带宽利用率最低的端口后,若成员端口X仍然收超带宽丢包,则将所述成员端口Y的哈希关键字做特征值,将重定向到本成员端口Y上的业务用访问控制列表ACL重定向到带宽利用率最低的端口,重复重定向动作直至的成员端口X不再收超带宽丢包。Optionally, the ultra-bandwidth packet loss processing unit is further configured to redirect the traffic redirected to the member port Y to another port with the lowest bandwidth utilization, and if the member port X still receives the bandwidth loss packet Then, the hash key of the member port Y is used as a feature value, and the service access control list ACL redirected to the member port Y is redirected to the port with the lowest bandwidth utilization, and the member is repeatedly redirected until the member is redirected. Port X no longer receives bandwidth loss.
可选地,所述超带宽丢包处理单元,还设置为在检测到成员端口x发超带宽丢包时,通过LACP将本端发超带宽丢包的信息通知给本端成员端口x的CPU和所述成员端口x的对端的成员端口y的CPU,以及在本端成员端口x的CPU获取到本端发超带宽丢包的信息后,若判断所述成员端口x同时是任一业务重定向的目的端口,则将重定向到所述成员端口x上的业务重定向到其他带宽利用率低的端口。Optionally, the ultra-bandwidth packet loss processing unit is further configured to: notify the CPU of the local member port x by using LACP to detect the packet loss of the local end by using the LACP when detecting that the member port x sends the ultra-bandwidth packet loss. And the CPU of the member port y of the peer port of the member port x, and the CPU of the local member port x obtain the information of the excessive bandwidth loss packet of the local end, and if it is determined that the member port x is any service weight at the same time The directed destination port redirects traffic redirected to the member port x to other ports with low bandwidth utilization.
可选地,所述超带宽丢包处理单元,还设置为将重定向到所述成员端口 x成员端口上的业务重定向到其他带宽利用率低的端口后,若成员端口x仍然发超带宽丢包,则以所述成员端口x的哈希关键字做特征值,将重定向到所述成员端口x上的业务用ACL重定向到带宽利用率最低的端口,重复重定向动作直至本成员端口不再发超带宽丢包。Optionally, the ultra-bandwidth packet loss processing unit is further configured to redirect to the member port If the service on the member port is redirected to another port with low bandwidth utilization, if the member port x still sends over-bandwidth packet loss, the hash value of the member port x is used as the eigenvalue and will be redirected to the device. The service on member port x is redirected to the port with the lowest bandwidth utilization. The redirection action is repeated until the member port no longer sends excessive bandwidth loss.
可选地,所述第一检测单元,还设置为在当前模式为手工链路聚合模式时,检测链路聚合端口中成员端口在设定时长内的收普通丢包率和/或发普通丢包率;Optionally, the first detecting unit is further configured to: when the current mode is the manual link aggregation mode, detect that the member port in the link aggregation port receives the normal packet loss rate and/or sends the normal lost packet within the set duration. Packet rate
所述状态设置单元,还设置为在当前模式为手工链路聚合模式时,若检测链路聚合端口中成员端口在设定时长内的收普通丢包率超过或等于设定门限时,将收普通丢包率超过或等于所述设定门限的成员端口的状态设置为非活动状态;还设置为在当前模式为手工链路聚合模式时,若检测链路聚合端口中成员端口在设定时长内的发普通丢包率超过或等于设定门限时,将发普通丢包率超过或等于所述设定门限的成员端口的状态设置为非活动状态。The state setting unit is further configured to: when the current mode is the manual link aggregation mode, if the normal packet loss rate of the member port in the link aggregation port is longer than or equal to the set threshold, The status of the member port whose normal packet loss rate is greater than or equal to the set threshold is set to inactive. It is also set to detect the member port of the link aggregation port when the current mode is manual link aggregation mode. When the normal packet loss rate is greater than or equal to the set threshold, the state of the member port whose normal packet loss rate exceeds or equals the set threshold is set to an inactive state.
本发明实施例一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令被执行时实现管理链路聚合成员端口丢包的方法。上述技术方案具有如下优势:The embodiment of the invention is a computer storage medium, wherein the computer storage medium stores computer executable instructions, and when the computer executable instructions are executed, a method for managing packet loss of a link aggregation member port is implemented. The above technical solution has the following advantages:
1、对于链路有少量甚至大量普通丢包的情况,上述技术方案提供了对应的管理方法,大大提高了线路传输的质量,对银行等大客户业务具有重要意义。1. For the case that the link has a small amount or even a large number of ordinary packet loss, the above technical solution provides a corresponding management method, which greatly improves the quality of the line transmission, and is of great significance to a large customer service such as a bank.
2、对于超带宽流量的情况,上述技术方案提高了流量重分配能力,大大提高了带宽利用率。如果smartgroup成员数为k,成员端口承载的带宽为g。按照本申请技术方案,最佳的,则所承载的带宽r的范围为g=<r<=(k-1)*g。2. For the case of ultra-bandwidth traffic, the above technical solution improves the traffic redistribution capability and greatly improves the bandwidth utilization. If the number of smartgroup members is k, the bandwidth carried by member ports is g. According to the technical solution of the present application, the range of the bandwidth r to be carried is preferably g=<r<=(k-1)*g.
在阅读并理解了附图和详细描述后,可以明白其它方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图说明DRAWINGS
图1是现有标准LAG应用组网示意图;FIG. 1 is a schematic diagram of an existing standard LAG application networking;
图2是本发明实施例一中的手工LAG丢包越限处理流程图;2 is a flowchart of a manual LAG packet loss limit processing in the first embodiment of the present invention;
图3是本发明实施例一中的静态或动态LAG收普通丢包越限处理流程图; 3 is a flowchart of a process for processing a static or dynamic LAG to receive an ordinary packet loss in the first embodiment of the present invention;
图4是本发明实施例一中的静态或动态LAG发普通丢包越限处理流程图;4 is a flowchart of a static or dynamic LAG sending ordinary packet loss limit processing in the first embodiment of the present invention;
图5是本发明实施例一中的静态或动态LAG收超带宽越限处理流程图;5 is a flowchart of processing a static or dynamic LAG over-bandwidth limit in the first embodiment of the present invention;
图6是本发明实施例一中的静态或动态LAG发超带宽越限处理流程图;6 is a flowchart of processing a static or dynamic LAG transmission overband limit in the first embodiment of the present invention;
图7是本发明实施例一中管理smartgroup成员端口丢包处理的完整流程图;7 is a complete flowchart of managing packet loss processing of a smartgroup member port according to Embodiment 1 of the present invention;
图8是本发明是实施例二中的管理链路聚合成员端口丢包的装置的结构示意图;FIG. 8 is a schematic structural diagram of an apparatus for managing packet loss of a link aggregation member port in the second embodiment;
图9是本发明是实施例二中的管理链路聚合成员端口丢包的装置的另一结构示意图。FIG. 9 is another schematic structural diagram of an apparatus for managing packet loss of a link aggregation member port in the second embodiment of the present invention.
具体实施方式detailed description
下文将结合附图和具体实施例对本发明实施例的技术方案作进一步详细说明。需要说明的是,在不冲突的情况下,本文中实施例和实施例中的特征可以任意相互组合。The technical solutions of the embodiments of the present invention are further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that the features in the embodiments and the embodiments herein may be combined with each other arbitrarily without conflict.
实施例一Embodiment 1
从图1所示的标准LAG应用中可以看出,标准LAG应用方法存在如下所述的自身缺陷:As can be seen from the standard LAG application shown in Figure 1, the standard LAG application method has its own drawbacks as follows:
1)当交换机检测到其中一个成员端口的链路发生故障时,就停止在此端口上发送报文,并根据负荷分担策略在剩下链路中重新计算报文发送的端口,故障端口恢复后再次重新计算报文发送端口。这里说的链路故障一般是指链路中断(Link Down),或者能引起链路Link Down的其它严重链路故障;显然,这是个严格的要求。对于链路中有丢包,这时候就无法及时进行切换保证链路质量。1) When the switch detects that the link of one of the member ports is faulty, it stops sending packets on the port and recalculates the port for sending packets on the remaining link according to the load sharing policy. After the faulty port is restored, Recalculate the message sending port again. The link failure mentioned here generally refers to link down (Link Down) or other serious link failures that can cause Link Down; obviously, this is a strict requirement. If there is packet loss in the link, it is impossible to switch in time to ensure the link quality.
2)对于标准LAG应用,可以要求所承载的带宽不要超过其中一个成员端口的带宽。当特征数据比较特殊,使得全部流量都计算到同一个成员端口,如果承载的带宽超过成员端口的带宽,显然会发生业务损失,这显然极大的 浪费了带宽。2) For standard LAG applications, you can require that the bandwidth carried should not exceed the bandwidth of one of the member ports. When the feature data is special, all traffic is calculated to the same member port. If the bandwidth of the bearer exceeds the bandwidth of the member port, traffic loss will obviously occur. This is obviously great. Wasting bandwidth.
为了克服上述缺陷,本实施例提供一种管理smartgroup成员端口丢包的方法,其可应用于smartgroup的现实组网中,提高smartgroup的传输质量和带宽利用率。该方法主要包括如下操作:In order to overcome the above-mentioned deficiencies, the present embodiment provides a method for managing packet loss on a smartgroup member port, which can be applied to a real network of a smartgroup to improve the transmission quality and bandwidth utilization of the smartgroup. The method mainly includes the following operations:
对于手工smartgroup方式,任一端口收/发普通丢包的持续时间T1超过设定的丢包门限H1(包括CRC及其它非超带宽丢包)时,则把此成员端口状态置为非活动状态(inactive)。当然,对于严格要求质量的链路,一旦检测到丢包,就可以把端口成员状态置为inactive。当成员端口被置为inactive,就停止在此端口上发送报文,并根据负荷分担策略在剩下链路中重新计算报文发送的端口。当成员端口为inactive的时候,开启端口检测功能,当本端端口收/发在一定时间T2持续不丢包或者没超过设定丢包门限H1,就重新把成员端口状态置为活动状态(actvie),再次重新计算报文发送端口,此过程如图2所示,包括手工LAG收、发普通丢包越限时的处理及手工LAG丢包越限消失时的处理过程。In the manual smartgroup mode, when the duration T1 of any port receiving/receiving normal packet loss exceeds the set packet loss threshold H1 (including CRC and other non-overbandwidth packet loss), the member port status is set to inactive. (inactive). Of course, for a link that strictly requires quality, once the packet loss is detected, the port member status can be set to inactive. When the member port is set to inactive, the device stops sending packets on the port and recalculates the port for sending packets based on the load sharing policy. When the member port is inactive, the port detection function is enabled. When the local port receives/transmits for a certain period of time, T2 continues to not drop packets or does not exceed the set packet loss threshold H1, and then resets the member port state to the active state (actvie). After re-calculating the packet sending port, the process is as shown in Figure 2, including the processing when the manual LAG is received, the normal packet loss is exceeded, and the manual LAG packet loss disappears.
对于静态或动态smartgroup方式,管理smartgroup成员端口丢包的方法主要包括如下操作:For the static or dynamic smartgroup mode, the methods for managing packet loss on smartgroup member ports include the following operations:
步骤10:开启动态管理链路聚合成员端口带宽管理功能后,在当前模式为静态或动态链路聚合模式时,检测聚合链路中成员端口在设定时长内的收普通丢包率或发普通丢包率;Step 10: After the dynamic management of the link aggregation member port bandwidth management function is enabled, when the current mode is static or dynamic link aggregation mode, the normal packet loss rate of the member ports in the aggregation link is set or sent. Packet loss rate;
步骤11:若检测到成员端口在设定时长内的收普通丢包率超过或等于设定门限,则将收普通丢包率超过或等于所述设定门限的成员端口的对端成员端口的状态设置为非活动状态;Step 11: If it is detected that the normal packet loss rate of the member port in the set duration is greater than or equal to the set threshold, the peer member port of the member port whose normal packet loss rate exceeds or equals the set threshold is received. The status is set to inactive;
步骤12:若检测到成员端口在设定时长内的发普通丢包率超过或等于设定门限,则将发普通丢包率超过或等于所述设定门限的成员端口的状态设置为非活动状态;Step 12: If it is detected that the normal packet loss rate of the member port exceeds or is equal to the set threshold within the set duration, the state of the member port with the normal packet loss rate exceeding or equal to the set threshold is set to be inactive. status;
步骤13:当一个或多个成员端口的状态被设置为非活动状态时,根据负荷分担策略,在除非活动状态的成员端口以外的剩余链路中重新计算报文发送的端口;Step 13: When the state of one or more member ports is set to an inactive state, according to the load sharing policy, the port for sending the message is recalculated in the remaining links except the member ports in the active state;
步骤14:当非活动状态的成员端口在设定时长内的发普通丢包率低于设定门限,且非活动状态的成员端口的对端成员端口在设定时长内的收普通丢 包率低于设定门限时,将该非活动状态的成员端口的状态更新为活动状态,并重新计算报文发送的端口。Step 14: When the inactive member port is within the set duration, the normal packet loss rate is lower than the set threshold, and the inactive member port of the inactive member port is lost within the set duration. When the packet rate is lower than the set threshold, the status of the member port in the inactive state is updated to the active state, and the port for sending the packet is recalculated.
需要说明的是,在本发明实施例中,不限定步骤11步骤14的执行顺序,根据检测的结果执行的相应的步骤。It should be noted that, in the embodiment of the present invention, the execution sequence of step 14 of step 11 is not limited, and the corresponding steps are performed according to the result of the detection.
可选地,在上述方法的基础上,还考虑到了收发超带宽丢包的问题。Optionally, on the basis of the foregoing method, the problem of transmitting and receiving ultra-bandwidth packet loss is also considered.
对于静态、动态smartgroup方式,可以采用LACP协议。而LACP报文中有3个保留字节,Reserved[0]~Reserved[2],因此,实现过程中,可以用Reserved[0]的bit0~3来传递普通丢包告警和超带宽告警,举例如下:For static and dynamic smartgroup methods, the LACP protocol can be used. The LACP packet has three reserved bytes, Reserved[0]~Reserved[2]. Therefore, in the implementation process, ordinary packet loss alarms and ultra-bandwidth alarms can be transmitted by using bits 0 to 3 of Reserved[0]. as follows:
1)本端收普通丢包率超过设定门限(包括CRC及其它非超带宽丢包)--编码为0001;1) The local receiving normal packet loss rate exceeds the set threshold (including CRC and other non-overbandwidth packet loss)--coded as 0001;
2)对端收普通丢包率超过设定门限(包括CRC及其它非超带宽丢包)--编码为0010;2) The normal packet loss rate of the peer end exceeds the set threshold (including CRC and other non-overbandwidth packet loss)--coded as 0010;
3)本端发普通丢包率超过设定门限(包括CRC及其它非超带宽丢包)--编码为0011;3) The local packet loss rate exceeds the set threshold (including CRC and other non-overbandwidth packet loss)--coded as 0011;
4)对端发普通包率超过设定门限(包括CRC及其它非超带宽丢包)--编码为0100;4) The normal packet rate of the peer end exceeds the set threshold (including CRC and other non-super bandwidth packet loss)--coded to 0100;
5)本端收超带宽丢包--------编码为0101;5) The local end receives bandwidth loss packet -------- code is 0101;
6)对端收超过带宽丢包-----编码为0110;6) The peer end receives more than the bandwidth packet loss ---- encoding is 0110;
7)本端发超带宽丢包--------编码为0111;7) The local end sends a bandwidth loss packet -------- coded to 0111;
8)对端发超过带宽丢包-----编码为1000。8) The end-to-end transmission exceeds the bandwidth loss-----coded to 1000.
有了以上定义,接下来设定收到各种编码时候LACP协议的行为:With the above definition, the next step is to set the behavior of the LACP protocol when receiving various encodings:
设备(如交换机)检测该设备的每个成员端口,当设备检测到该设备的任一成员端口收普通A丢包率超过设定的门限Rx1,则该设备生成上送该成员端口A对应的设备(LACP报文可以是上送到设备的CPU,下文中LACP报文都描述为发送至CPU)的LACP报文中Reserved[0]的bit0~3置为0001,往该成员端口的对端成员端口B的设CPU发送的LACP报文的Reserved[0]的bit0~3置为0010。对端成员端口B的CPU收到Reserved[0]bit0~3为0010的报文后,就把这个对端成员端口B的状态置为inactive。当对端成员端口B被置为inactive后,就停止在此端口B上发送报文,并根据负荷分担策略在 剩下链路中重新计算报文发送的端口,同时开启端口检测。如果T1时间内对端成员端口B的收普通丢包率继续超过设定的门限Rx1,则保持该对端成员端口B的inactive状态;如果T1时间内该对端成员端口B的收普通丢包率低于设定的门限Rx2,则上送成员端口B的CPU的LACP报文中Reserved[0]的bit0~3置为0000,往成员端口A的CPU发送的LACP报文中Reserved[0]的bit0~3置为0000。成员端口A的CPU收到Reserved[0]bit0~3为0000的报文后,若确定成员端口A在设定时长内的发普通率也低于设定的门限Tx2,则将成员端口B更新为active状态,再次重新计算报文发送端口,同时,关闭端口检测功能。此过程如图3所示。如此,对于提高链路的质量具有巨大意义。当检测到任一成员端口a的发普通丢包超过设定的门限Tx1,则将上送成员端口a对应的CPULACP报文中Reserved[0]的bit0~3置为0011,往对端成员端口b对应的CPU发送LACP报文中Reserved[0]的bit0~3置为0100。成员端口a的CPU收到Reserved[0]bit0~3为0011的报文后就把成员端口a状态置为inactive。当成员端口a被置为inactive后,就停止在此端口a上发送报文,并根据负荷分担策略在剩下链路中重新计算报文发送的端口,同时开启端口检测。如果T2时间内发普通丢包继续超过设定的门限Tx1,则保持成员端口a的inactive状态;如果T2时间内成员端口a的发普通丢包低于设定的门限Tx2,则上送成员端口a的CPU的LACP报文Reserved[0]的bit0~3置为0000,往对端成员端口b的CPU发送LACP报文Reserved[0]的bit0~3置为0000。成员端口a的CPU收到Reserved[0]bit0~3为0000的报文后,若确定本成员端口a的对端成员端口b在设定时长内的收普通率也低于设定的门限Rx2,则将成员端口a的状态更新为active状态,再次重新计算报文发送端口,同时,关闭端口检测功能。此过程如图4所示。如此,对于提高链路的质量具有巨大意义。A device (such as a switch) detects each member port of the device. When the device detects that the packet loss rate of any member port of the device exceeds the threshold Rx1, the device generates the corresponding port A. The device (the LACP packet can be sent to the CPU of the device, and the LACP packet is described as being sent to the CPU) is in the LACP packet. The bits 0 to 3 of Reserved[0] are set to 0001 to the peer end of the member port. Set the bit 0 to 3 of Reserved[0] of the LACP packet sent by the CPU of member port B to 0010. After receiving the packet with Reserved[0]bit0~3 as 0010, the CPU of the peer member port B sets the state of the peer member port B to inactive. After the peer member port B is set to inactive, the device stops sending packets on the port B and is based on the load sharing policy. In the remaining link, the port for packet transmission is recalculated, and port detection is enabled. If the normal packet loss rate of the peer member port B continues to exceed the threshold Rx1, the inactive state of the peer member port B is maintained. If the peer member port B receives the packet loss during the T1 period. If the rate is lower than the set threshold Rx2, the bits 0 to 3 of the Reserved[0] in the LACP packet sent to the member port B are set to 0000, and the reserved LACP message sent to the CPU of the member port A is Reserved[0]. Bits 0 to 3 are set to 0000. After receiving the message of Reserved[0]bit0~3 to 0000, the CPU of member port A will update member port B if it is determined that the common rate of member port A within the set duration is also lower than the set threshold Tx2. In the active state, the packet sending port is recalculated again, and the port detection function is disabled. This process is shown in Figure 3. In this way, it has great significance for improving the quality of the link. When it is detected that the normal packet loss of any member port a exceeds the set threshold Tx1, the bits 0 to 3 of the Reserved[0] in the CPULACP packet corresponding to the member port a are set to 0011 to the peer member port. The corresponding CPU sends the bit 0 to 3 of Reserved[0] in the LACP packet to 0100. The CPU of member port a sets the member port a state to inactive after receiving the message with Reserved[0]bit0~3 being 0011. After the member port a is set to inactive, the device stops sending packets on the port a, and recalculates the port for sending packets on the remaining links according to the load sharing policy. At the same time, port detection is enabled. If the normal packet loss exceeds the set threshold Tx1 in the T2, the inactive state of the member port a is maintained. If the normal packet loss of the member port a is lower than the set threshold Tx2 in the T2 time, the member port is sent. Bits 0 to 3 of the LACP packet Reserved[0] of the CPU of a are set to 0000, and the bits 0 to 3 of the LACP packet Reserved[0] are set to 0000 to the CPU of the peer member port b. After receiving the message of Reserved[0]bit0~3 to 0000, the CPU of member port a determines that the normal rate of the peer member port b of the member port a is less than the set threshold Rx2. Then, the status of member port a is updated to the active state, and the packet sending port is recalculated again. At the same time, the port detection function is disabled. This process is shown in Figure 4. In this way, it has great significance for improving the quality of the link.
需要说明的是,成员端口对应的设备可以是交换机,每个交换机下可以有多个端口,例如交换机1下有端口A、B、C,交换机2下有端口a、b、c,假设端口A的对端端口是b。当交换机1检测到端口A的收普通丢包率越限后,则交换机1会向交换机1的CPU上报LACP报文,其中Reserved[0]的bit0~3置为0001,同时交换机1会向对端端口b对应的交换机2的CPU发送LACP报文,该LACP报文的Reserved[0]的bit0~3置为0010。交换机2收到该报文后,就把端口b的状态设置为inactive。 It should be noted that the device corresponding to the member port can be a switch, and each switch can have multiple ports. For example, switch 1 has ports A, B, and C, and switch 2 has ports a, b, and c. The peer port is b. When switch 1 detects that the normal packet loss rate of port A is exceeded, switch 1 reports LACP packets to the CPU of switch 1. The bits 0 to 3 of Reserved[0] are set to 0001, and switch 1 is in the opposite direction. The CPU of the switch 2 corresponding to the port b sends an LACP packet. The bits 0 to 3 of the Reserved[0] of the LACP packet are set to 0010. After receiving the packet, Switch 2 sets the state of port b to inactive.
当检测到任一成员端口X收超带宽丢包,则将上送给成员端口X对应的CPU的LACP报文中Reserved[0]的bit0~3置为0101。同时发送给成员端口X的对端成员端口Y对应的CPU的LACP报文中Reserved[0]的bit0~3置为0110。对端成员端口Y的CPU收到Reserved[0]为0110的报文后,如果确定对端成员端口Y同时是任一业务重定向的目的端口,则先把这些业务重定向到其他带宽利用率最低的端口,如果对端成员端口Y还存在收超带宽丢包,则以哈希关键字(hash key)做特征值(classid),用ACL(Acess Control List,访问控制列表)重定向到带宽利用率最低的端口,重复重定向动作直至超带宽丢包消失。此过程如图5所示。When any member port X is detected to receive bandwidth loss, the bits 0 to 3 of Reserved[0] in the LACP packet sent to the member port X are set to 0101. Bits 0 to 3 of Reserved[0] in the LACP packet of the CPU corresponding to the peer member port Y of the member port X are set to 0110. After receiving the message with Reserved[0] of 0110, the CPU of the peer member port Y first redirects these services to other bandwidth utilizations if it determines that the peer member port Y is the destination port of any service redirection. The lowest port, if the peer member port Y still has the bandwidth loss packet, the hash key is used as the eigenvalue (classid), and the ACL (Acess Control List) is used to redirect the bandwidth. The port with the lowest utilization rate repeats the redirection action until the ultra-bandwidth packet loss disappears. This process is shown in Figure 5.
当检测到任一成员端口x发超带宽丢包,则将上送成员端口x对应的CPU的报文Reserved[0]的bit0~3置为0111,同时发送给成员端口x的对端成员端口y对应的CPU的LACP报文Reserved[0]的bit0~3置为1000。成员端寇x的CPU收到Reserved[0]为0111的报文后,如果确认成员端口x同时是任一业务重定向的目的端口,则先把这些业务重定向到其他带宽利用率最低的端口,如果成员端口x还存在发超带宽丢包,则以hash key做classid,用ACL定向像到带宽利用率最低的端口,重复重定向动作直至超带宽丢包消失。此过程如图6所示。When any member port x is detected to send an excessive bandwidth packet, the packets of the CPU corresponding to the member port x are set to 0-11 of the reserved message[0], and are sent to the peer member port of the member port x. Bits 0 to 3 of the LACP message Reserved[0] of the CPU corresponding to y are set to 1000. If the member port 寇x receives the message with Reserved[0] of 0111, if it confirms that member port x is the destination port of any service redirection, it first redirects these services to other ports with the lowest bandwidth utilization. If the member port x still has a bandwidth loss packet, the hash key is used as the classid, and the ACL is directed to the port with the lowest bandwidth utilization, and the redirection action is repeated until the ultra-bandwidth packet loss disappears. This process is shown in Figure 6.
下面详细描述一下上述方法的完整实施过程,如图7所示,包括如下操作:The complete implementation process of the above method is described in detail below. As shown in FIG. 7, the following operations are included:
步骤701:版本正常启动,配置smartgroup后,开启动态管理smartgroup带宽功能。如果是手工smartgroup模式,转步骤702;如果是静态或/动态smartgroup模式,转步骤705;Step 701: The version is started normally. After the smartgroup is configured, the dynamic management smartgroup bandwidth function is enabled. If it is manual smartgroup mode, go to step 702; if it is static or / dynamic smartgroup mode, go to step 705;
步骤702:检测成员端口持续时间T1内的收普通丢包率或发普通丢包率;当检测到任一成员端口持续时间T1内的收普通丢包率超过指定门限H1,则转步骤703;当检测到任一成员端口持续时间T1内的发普通丢包率超过指定门限H2,则转步骤704;Step 702: Detecting the normal packet loss rate or the normal packet loss rate in the member port duration T1; when it is detected that the normal packet loss rate in any member port duration T1 exceeds the specified threshold H1, then step 703 is performed; When it is detected that the normal packet loss rate in any member port duration T1 exceeds the specified threshold H2, then step 704 is performed;
步骤703:将该成员端口的状态置为inactive状态,同时开启端口丢包检测功能,并根据负荷分担策略在剩下链路中重新计算报文发送的端口。如果该成员端口端口持续时间T2内的收普通丢包未超过指定的门限H3,则将该 成员端口的状态更新置为active状态,再次重新计算报文发送端口。关闭端口丢包检测功能。转步骤S712;Step 703: Set the state of the member port to the inactive state, and enable the port packet loss detection function, and recalculate the port for sending the packet in the remaining link according to the load sharing policy. If the normal packet loss in the member port port duration T2 does not exceed the specified threshold H3, the The status update of the member port is set to the active state, and the packet sending port is recalculated again. Disable port packet loss detection. Go to step S712;
步骤704:将该成员端口的状态置为inactive状态,同时开启端口丢包检测功能,并根据负荷分担策略在剩下链路中重新计算报文发送的端口。如果该成员端口端口持续时间T2内的发普通丢包未超过指定的门限H4,则将该成员端口的状态更新置为active状态,再次重新计算报文发送端口。关闭端口丢包检测功能。转步骤S712;Step 704: Set the state of the member port to the inactive state, and enable the port packet loss detection function, and recalculate the port for sending the packet in the remaining link according to the load sharing policy. If the normal packet loss in the member port port duration T2 does not exceed the specified threshold H4, the status update of the member port is set to the active state, and the packet sending port is recalculated again. Disable port packet loss detection. Go to step S712;
步骤705:是检测收普通丢包率和/或发普通丢包率,还是检测收超带宽丢包和/或发超带宽丢包。如果是检测收普通丢包率和/或发普通丢包率越限转步骤706;如果是检测收超带宽丢包和/或发超带宽丢包越限转步骤709;In step 705, it is detected whether the normal packet loss rate and/or the normal packet loss rate are detected, or whether the over-bandwidth packet loss and/or the ultra-bandwidth packet loss are detected. If it is detected that the normal packet loss rate and/or the normal packet loss rate is further limited to step 706; if it is detected, the over bandwidth loss packet and/or the ultra bandwidth loss packet is transferred to step 709;
步骤706:是收普通丢包率越限还是发普通丢包率越限。如果是收普通丢包率越限则转步骤707;如果是发普通丢包率越限则转步骤708。In step 706, the normal packet loss rate is exceeded or the normal packet loss rate is exceeded. If the normal packet loss rate is exceeded, the process proceeds to step 707; if the normal packet loss rate is exceeded, the process proceeds to step 708.
步骤707:如果检测到成员端口A在持续时间T1内的收普通丢包率超过指定门限H1,则将发送给成员端口A的LACP报文中Reserved[0]的bit0~3置为0001,往成员端口A的对端成员端口B发送的LACP报文中Reserved[0]的bit0~3置为0010。对端成员端口B的CPU收到Reserved[0]bit0~3为0010的报文后就把这个对端成员端口B的状态置为inactive。当该对端成员端口B被置为inactive后,就停止在此对端成员端口B上发送报文,并根据负荷分担策略在剩下链路中重新计算报文发送的端口,同时开启端口检测。如果T1时间内该对端成员端口B的收普通丢包率继续超过设定门限,则保持该对端成员端口B的inactive状态;如果T1时间内该对端成员端口B的收普通丢包率低于设定门限了,则上送该对端成员端口B的CPU的LACP报文中Reserved[0]的bit0~3置为0000,往成员端口A的CPU发送的LACP报文中Reserved[0]的bit0~3置为0000。对端成员端口B的CPU收到Reserved[0]bit0~3为0000的报文后,若确定成员端口A在设定时长内的发普通丢包率也低于设定门限,则将该对端成员端口B的状态更新为active状态,再次重新计算报文发送端口,同时,关闭端口检测功能。转步骤712;Step 707: If it is detected that the normal packet loss rate of the member port A in the duration T1 exceeds the specified threshold H1, the bits 0 to 3 of the Reserved[0] in the LACP packet sent to the member port A are set to 0001. Bits 0 to 3 of Reserved[0] in the LACP packets sent by the peer member port B of member port A are set to 0010. The CPU of the peer member port B sets the state of the peer member port B to inactive after receiving the message with Reserved[0]bit0~3 being 0010. After the peer member port B is set to inactive, the device stops sending packets on the peer member port B, and recalculates the port for sending packets on the remaining links according to the load balancing policy. . If the normal packet loss rate of the peer member port B exceeds the threshold in the T1, the inactive state of the peer member port B is maintained. If the peer member port B receives the normal packet loss rate during the T1 time. If the value is lower than the set threshold, the bits 0 to 3 of Reserved[0] in the LACP packets sent to the CPU of the peer port B are set to 0000, and the LACP packets sent by the CPU of the member port A are Reserved[0. Bits 0 to 3 of the ] are set to 0000. After receiving the message of Reserved[0]bit0~3 to 0000, the CPU of the peer member port B determines that the normal packet loss rate of the member port A within the set duration is lower than the set threshold. The status of the member port B is updated to the active state. The packet sending port is recalculated and the port detection function is disabled. Go to step 712;
步骤708:如果检测到成员端口a在持续时间T2内的发普通丢包率超过指定门限H2,则将上送该成员端口a的CPU的LACP报文中Reserved[0]的bit0~3置为0011,往对端成员端口b发送的LACP报文中Reserved[0]的bit0~3 置为0100。本成员端口a的CPU收到Reserved[0]bit0~3为0011的报文后就把这个成员端口a的状态置为inactive。当成员端口a被置为inactive后,就停止在此成员端口a上发送报文,并根据负荷分担策略在剩下链路中重新计算报文发送的端口,同时开启端口检测。如果该成员端口a在T2时间内的发普通丢包继续超过设定的门限Tx1,则保持该成员端口a的inactive状态;如果成员端口a在持续时间T2内的发普通丢包低于设定门限H2,则上送成员端口a的CPU的LACP报文中Reserved[0]的bit0~3置为0000,往对端成员端口b的发送的LACP报文中Reserved[0]的bit0~3置为0000。该成员端口a的CPU收到Reserved[0]bit0~3为0000的报文后,若确定对端成员端口b在设定时长内的收普通丢包率也低于设定门限,则将成员端口a的状态更新为active状态,再次重新计算报文发送端口,同时,关闭端口检测功能。转步骤712;Step 708: If it is detected that the normal packet loss rate of the member port a in the duration T2 exceeds the specified threshold H2, the bits 0 to 3 of the Reserved[0] in the LACP packet sent to the CPU of the member port a are set to 0011, bit 0 to 3 of Reserved[0] in the LACP packet sent to the peer member port b. Set to 0100. The CPU of the member port a sets the status of the member port a to inactive after receiving the message with Reserved[0]bit0~3 being 0011. After the member port a is set to inactive, the device stops sending packets on the member port a, and recalculates the port for sending packets on the remaining links according to the load balancing policy. If the normal packet loss of the member port a in the T2 time continues to exceed the threshold Tx1, the inactive state of the member port a is maintained; if the member port a is in the duration T2, the normal packet loss is lower than the setting. If the threshold is H2, the bits 0 to 3 of Reserved[0] in the LACP packet sent to the member port a are set to 0000, and the bits 0 to 3 of Reserved[0] in the LACP packet sent to the peer member port b are set. It is 0000. After receiving the message of Reserved[0]bit0~3 to 0000, the CPU of the member port a determines that the normal packet loss rate of the peer member port b within the set duration is also lower than the set threshold. The status of port a is updated to the active state. The packet sending port is recalculated again. At the same time, the port detection function is disabled. Go to step 712;
步骤709:是收超带宽丢包越限还是发超带宽丢包越限。如果是收超带宽丢包越限则转步骤710;如果是发超带宽丢包越限则转步骤711;In step 709, the over-limit of the bandwidth loss packet or the over-bandwidth packet loss exceeds the limit. If the packet loss exceeds the limit, the process proceeds to step 710; if the packet loss exceeds the limit, the process proceeds to step 711;
步骤710:当检测到任一成员端口X收超带宽丢包,则上送成员端口x的CPU的LACP报文中Reserved[0]的bit0~3置为0101,同时发送给成员端口X的对端成员端口Y的CPU的LACP报文中Reserved[0]的bit0~3置为0110。对端成员端口Y的CPU收到Reserved[0]为0110的报文后,如果确定该对端成员端口Y同时是任一业务重定向的目的端口,则先把这些业务重定向到其他带宽利用率最低的端口,如果该对端成员端口Y还存在超带宽丢包,则以hash key做classid,用ACL重定向到带宽利用率最低的端口,重复重定向动作直至超带宽丢包消失。转步骤712;Step 710: When it is detected that any member port X receives the bandwidth loss packet, the bit 0 to 3 of Reserved[0] in the LACP packet sent to the member port x is set to 0101, and the pair is sent to the member port X. Bits 0 to 3 of Reserved[0] in the LACP packet of the CPU of the member port Y are set to 0110. After receiving the message with Reserved[0] of 0110, the CPU of the peer member port Y first redirects these services to other bandwidths if it determines that the peer member port Y is the destination port of any service redirection. If the peer port member port Y still has ultra-bandwidth packet loss, the hash key is used as the classid, and the ACL is used to redirect to the port with the lowest bandwidth utilization. The redirection action is repeated until the ultra-bandwidth packet loss disappears. Go to step 712;
步骤711:当检测到任一成员端口x发超带宽丢包,则上送成员端口x的CPU的报文中Reserved[0]的bit0~3置为0111,同时发送给成员端口x的对端成员端口y的LACP报文中Reserved[0]的bit0~3置为1000。成员端口x的CPU收到Reserved[0]为0111的报文后,如果确定成员端口x同时是任一业务重定向的目的端口,则先把这些业务重定向到其他带宽利用率最低的端口,如果成员端口x还存在超带宽丢包,则以hash key做classid,用ACL重定向到带宽利用率最低的端口,重复重定向动作直至超带宽丢包消失;Step 711: When it is detected that any member port x sends an excessive bandwidth packet loss, the packets sent from the CPU of the member port x to the reserved port 0 of the reserved port 0 are set to 0111, and are sent to the opposite end of the member port x. Bits 0 to 3 of Reserved[0] in the LACP packet of member port y are set to 1000. If the member port x receives the message with the reserved [0] of 0111, if the member port x is determined to be the destination port of any service redirection, the CPU is redirected to the other port with the lowest bandwidth utilization. If the member port x still has an ultra-bandwidth packet loss, the hash key is used as the classid, and the ACL is redirected to the port with the lowest bandwidth utilization. The redirection action is repeated until the ultra-bandwidth packet loss disappears.
步骤S712:结束。 Step S712: End.
上述技术方案对于链路有少量甚至大量普通丢包的情况,提供了对应的管理方法,大大提高了线路传输的质量,对银行等大客户业务具有重要意义。同时,对于超带宽流量的情况,提高了流量重分配能力,大大提高了带宽利用率。如果smartgroup成员数为k,成员端口承载的带宽为g。按照本发明实施例的技术方案,所承载的带宽r的范围可以为g=<r<=(k-1)*g,其中,k为大于或等于1的正整数。The above technical solution provides a corresponding management method for a case where a link has a small amount or even a large number of ordinary packet loss, which greatly improves the quality of the line transmission, and is of great significance to a large customer service such as a bank. At the same time, for the case of ultra-bandwidth traffic, the traffic redistribution capability is improved, and the bandwidth utilization is greatly improved. If the number of smartgroup members is k, the bandwidth carried by member ports is g. According to the technical solution of the embodiment of the present invention, the bandwidth r to be carried may be in the range of g=<r<=(k-1)*g, where k is a positive integer greater than or equal to 1.
实施例二Embodiment 2
如图8所示,本实施例提供一种管理链路聚合成员端口丢包的装置,可实现上述实施例一的方法,其至少包括如下各单元。As shown in FIG. 8, the embodiment provides a device for managing packet loss of a link aggregation member port, and the method of the first embodiment is implemented, and at least includes the following units.
第一检测单元11,设置为在开启动态管理链路聚合成员端口带宽管理功能后,在当前模式为静态或动态链路聚合模式时,检测聚合链路中成员端口在设定时长内的收普通丢包率或发普通丢包率;The first detecting unit 11 is configured to detect that the member ports in the aggregation link are within the set duration when the current mode is static or dynamic link aggregation mode after the dynamic management link aggregation member port bandwidth management function is enabled. Packet loss rate or ordinary packet loss rate;
状态设置单元12,设置为若检测到成员端口在设定时长内的收普通丢包率超过或等于设定门限,则将收普通丢包率超过或等于所述门限的成员端口的对端的状态设置为非活动状态;还设置为若检测到成员端口在设定时长内的发普通丢包率超过或等于设定门限时,则将发普通丢包率超过或等于所述门限的成员端口的状态设置为非活动状态;以及还设置为当非活动状态的成员端口在设定时长内的发普通丢包率低于设定门限,且非活动状态的成员端口的对端成员端口在设定时长内的收普通丢包率低于设定门限时,将该非活动状态的成员端口的状态更新为活动状态;The state setting unit 12 is configured to: if it is detected that the normal packet loss rate of the member port within the set duration is greater than or equal to the set threshold, the state of the peer end of the member port whose normal packet loss rate exceeds or equals the threshold is received. Set to inactive state; if it is detected that the normal packet loss rate of the member port within the set duration is greater than or equal to the set threshold, then the member port with the normal packet loss rate exceeding or equal to the threshold is sent. The status is set to inactive; and the member port that is inactive is set to a lower than the set threshold within the set duration, and the peer member port of the inactive member port is set. When the normal packet loss rate in the duration is lower than the set threshold, the status of the member port in the inactive state is updated to the active state;
负荷分担单元13,设置为当一个或多个成员端口的状态设置为非活动状态时,根据负荷分担策略,在除非活动状态的成员端口以外的剩余链路中重新计算报文发送的端口;以及在非活动状态的成员端口更新为活动状态时,重新计算报文发送的端口。The load sharing unit 13 is configured to recalculate the port for sending the message in the remaining links except the active member port according to the load sharing policy when the state of the one or more member ports is set to the inactive state; Recalculates the port on which the message is sent when the inactive member port is updated to the active state.
可选地,所述状态设置单元12通过以下方式实现若检测到成员端口在设定时长内的收普通丢包率超过或等于设定门限时,则将收普通丢包率超过或等于所述门限的成员端口的对端的状态设置为非活动状态: Optionally, the state setting unit 12 implements, if it is detected that the normal packet loss rate of the member port within the set duration is greater than or equal to the set threshold, the normal packet loss rate is greater than or equal to the The status of the peer end of the member port of the threshold is set to inactive:
若检测到成员端口A在设定时长内的收普通丢包率超过或等于设定门限时,通过链路汇聚控制协议LACP通知所述成员端口A的对端的成员端口B对应的设备,以指示所述对端的成员端口B对应的设备将所述对端成员端口B的状态设置为非活动状态。If it is detected that the normal packet loss rate of the member port A is greater than or equal to the set threshold, the device corresponding to the member port B of the peer port A is notified by the link aggregation control protocol LACP to indicate The device corresponding to the member port B of the peer end sets the state of the peer member port B to an inactive state.
可选地,所述状态设置单元12通过以下方式实现若检测到成员端口在设定时长内的发普通丢包率超过或等于设定门限时,将发普通丢包率超过或等于所述门限的成员端口的状态设置为非活动状态:Optionally, the state setting unit 12 implements the following manner: if it is detected that the normal packet loss rate of the member port exceeds or is equal to the set threshold within the set duration, the normal packet loss rate is greater than or equal to the threshold. The status of the member port is set to inactive:
若检测到成员端口a在设定时长内的发普通丢包率超过或等于设定门限,分别向检测到发普通丢包率超过或等于设定门限的成员端口a的CPU和所述成员端口a的对端成员端口b的CPU发送通知本成员端口发普通丢包率超过或等于设定门限的信息,以及检测到发普通丢包率超过或等于设定门限的则将所述成员端口的状态设置为非活动状态。If it is detected that the normal packet loss rate of the member port a is greater than or equal to the set threshold within the set duration, respectively, the CPU and the member port of the member port a that sends the normal packet loss rate exceeding or equal to the set threshold are detected respectively. The CPU of the peer member port of a sends a message to the member port to notify the member port that the normal packet loss rate exceeds or equals the set threshold, and detects that the normal packet loss rate exceeds or equals the set threshold. The status is set to inactive.
可选地,所述状态设置单元12通过以下方式实现当非活动状态的成员端口在设定时长内的发普通丢包率低于设定门限,且非活动状态的成员端口的对端成员端口在设定时长内的收普通丢包率低于设定门限时,再该非活动状态的成员端口的状态更新为活动状态:Optionally, the state setting unit 12 implements, by using the following manner, that the normal packet loss rate of the member port in the inactive state is lower than the set threshold within the set duration, and the peer member port of the member port in the inactive state is configured. When the normal packet loss rate within the set duration is lower than the set threshold, the status of the inactive member port is updated to the active state:
在检测到非活动状态的成员端口A在设定时长内的发普通丢包率低于设定门限时,分别向该成员端口的CPU所述成员端口A的对端的成员端口B对应的CPU通知所述成员端口A发普通丢包正常的信息;所述成员端口B对应的CPU收到成员端口A收普通丢包正常的信息后,若检测到所述对端成员端口B在设定时长内的收普通丢包率也低于设定门限,则将该成员端口B的状态更新为活动状态。When the normal packet loss rate of the member port A in the inactive state is lower than the set threshold, the CPU notification corresponding to the member port B of the peer port of the member port A of the member port is respectively notified. If the member port A sends the normal packet loss information, the CPU corresponding to the member port B receives the information that the member port A receives the normal packet loss. If the normal packet loss rate is lower than the set threshold, the status of the member port B is updated to the active state.
可选地,所述状态设置单元12通过以下方式实现当非活动状态的成员端口在设定时长内的发普通丢包率低于设定门限,且非活动状态的成员端口的对端成员端口在设定时长内的收普通丢包率低于设定门限时,再该非活动状态的成员端口的状态更新为活动状态:Optionally, the state setting unit 12 implements, by using the following manner, that the normal packet loss rate of the member port in the inactive state is lower than the set threshold within the set duration, and the peer member port of the member port in the inactive state is configured. When the normal packet loss rate within the set duration is lower than the set threshold, the status of the inactive member port is updated to the active state:
当检测到成员端口a在设定时长内的收普通丢包率低于设定门限时,若干确定所述成员端口a的对端成员端口b在设定时长内的发普通丢包率也低于设定门限,则将该成员端口a的状态更新为活动状态。可选地,除了考虑收、发普通丢包问题外,本实施例的优选方案还考虑到了,成员端口收、发 超带宽丢包的问题。When it is detected that the normal packet loss rate of the member port a within the set duration is lower than the set threshold, the number of the normal packet loss rate of the peer member port b that determines the member port a is within the set duration. When the threshold is set, the status of the member port a is updated to the active state. Optionally, in addition to considering the problem of receiving and sending ordinary packet loss, the preferred solution of this embodiment also considers that the member port receives and sends. The problem of ultra-bandwidth packet loss.
如图9所示,该装置还包括:As shown in FIG. 9, the device further includes:
第二检测单元14,设置为检测链路聚合端口中是否有成员端口收超带宽丢包或发超带宽丢包;The second detecting unit 14 is configured to detect whether a member port of the link aggregation port receives an excess bandwidth packet loss or sends an excessive bandwidth packet loss;
超带宽丢包处理单元15,设置为若检测到有成员端口X收超带宽丢包时,通过LACP将该成员端口收超带宽丢包的信息通知给所述成员端口X对端的成员端口Y对应的设备;还设置为当所述对端成员端口Y对应的设备收到成员端口X收超带宽丢包的信息后,若判断所述成员端口Y同时是任一业务重定向的目的端口,则将重定向到所述成员端口Y上的业务重定向到其他带宽利用率最低的端口。The ultra-bandwidth packet loss processing unit 15 is configured to notify the member port Y of the member port X of the member port X that the member port is over-bandwidthed by the LACP when the member port X is detected to receive the bandwidth loss packet. If the device corresponding to the member port Y receives the packet loss information of the member port X, if it is determined that the member port Y is the destination port of any service redirection at the same time, The traffic redirected to the member port Y is redirected to the other port with the lowest bandwidth utilization.
可选地,所述超带宽丢包处理单元15,还设置为将将重定向到所述成员端口Y上的业务重定向到其他带宽利用率最低的端口后,若成员端口X仍然收超带宽丢包,则将所述成员端口Y的哈希关键字(hash key),比如VLAN做特征值(class id),将重定向到本成员端口Y上的业务用访问控制列表ACL重定向到带宽利用率最低的端口,重复重定向动作直至的成员端口X不再收超带宽丢包。Optionally, the ultra-bandwidth packet loss processing unit 15 is further configured to redirect the traffic redirected to the member port Y to another port with the lowest bandwidth utilization, if the member port X still receives the bandwidth. If the packet is lost, the hash key of the member port Y, such as the VLAN, is used as the eigenvalue (class id), and the ACL redirected to the member port Y is redirected to the bandwidth. The port with the lowest utilization rate repeats the redirection action until the member port X no longer receives the excess bandwidth packet loss.
可选地,所述超带宽丢包处理单元15,还设置为在检测到成员端口x发超带宽丢包时,通过LACP将本端发超带宽丢包的信息通知给本端成员端口x的CPU和所述成员端口x的对端的成员端口y的CPU,以及在本成员端口x的CPU获取到本端发超带宽丢包的信息后,若判断所述成员端口x同时是任一业务重定向的目的端口,则将重定向到所述成员端口x上的业务重定向到其他带宽利用率低的端口。Optionally, the ultra-bandwidth packet loss processing unit 15 is further configured to: notify the local member port x of the packet loss of the local end by using the LACP when detecting that the member port x sends the ultra-bandwidth packet loss. The CPU and the CPU of the member port y of the peer port of the member port x and the CPU of the member port x obtain the information of the excessive bandwidth loss packet of the local end, and if the member port x is determined to be any service weight at the same time, The directed destination port redirects traffic redirected to the member port x to other ports with low bandwidth utilization.
可选地,所述超带宽丢包处理单元15,还设置为将重定向到所述成员端口x成员端口上的业务重定向到其他带宽利用率低的端口后,若成员端口x仍然发超带宽丢包,则以所述成员端口x的哈希关键字做特征值,将重定向到所述成员端口x上的业务用ACL重定向到带宽利用率最低的端口,重复重定向动作直至本成员端口不再发超带宽丢包。Optionally, the ultra-bandwidth packet loss processing unit 15 is further configured to redirect the service redirected to the member port x member port to another port with low bandwidth utilization, if the member port x still exceeds If the bandwidth is lost, the hash value of the member port x is used as the eigenvalue, and the service redirected to the member port x is redirected to the port with the lowest bandwidth utilization, and the redirection action is repeated until the packet is used. Member ports no longer send excessive bandwidth drops.
可选地,所述第一检测单元11,还设置为在当前模式为手工链路聚合模式时,检测链路聚合端口中成员端口在设定时长内的收普通丢包率或发普通丢包率; Optionally, the first detecting unit 11 is further configured to: when the current mode is the manual link aggregation mode, detect that the member port in the link aggregation port receives an ordinary packet loss rate or sends a normal packet loss within a set time period. Rate
所述状态设置单元12,还设置为在当前模式为手工链路聚合模式时,若检测链路聚合端口中成员端口在设定时长内的收普通丢包率超过或等于设定门限时,将收普通丢包率超过或等于所述设定门限的成员端口的状态设置为非活动状态;还设置为在当前模式为手工链路聚合模式时,若检测链路聚合端口中成员端口在设定时长内的发普通丢包率超过或等于设定门限时,将发普通丢包率超过或等于所述设定门限的成员端口的状态设置为非活动状态。The state setting unit 12 is further configured to: when the current mode is the manual link aggregation mode, if the normal packet loss rate of the member port in the link aggregation port is greater than or equal to the set threshold within the set duration, The status of the member port whose normal packet loss rate is greater than or equal to the set threshold is set to inactive. If the current mode is manual link aggregation mode, the member port of the link aggregation port is set. When the normal packet loss rate in the duration exceeds or equals the set threshold, the state of the member port with the normal packet loss rate exceeding or equal to the set threshold is set to the inactive state.
本发明实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令被执行时实现管理链路聚合成员端口丢包的方法。The embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and when the computer executable instructions are executed, a method for managing packet loss of a link aggregation member port is implemented.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本申请不限制于任何特定形式的硬件和软件的结合。本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或者等同替换,而不脱离本申请技术方案的精神和范围,均应涵盖在本申请的权利要求范围当中。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct related hardware, such as a processor, which may be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Wait. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function. This application is not limited to any specific combination of hardware and software. A person skilled in the art should understand that the technical solutions of the present application can be modified or equivalent, without departing from the spirit and scope of the technical solutions of the present application, and should be included in the scope of the claims of the present application.
工业实用性Industrial applicability
上述技术方案提提高了线路传输的质量以及流量重分配能力,并且提高了带宽利用率。 The above technical solution improves the quality of the line transmission and the traffic redistribution capability, and improves the bandwidth utilization.

Claims (20)

  1. 一种管理链路聚合成员端口丢包的方法,包括:A method for managing packet loss on a link aggregation member port includes:
    开启动态管理链路聚合成员端口带宽管理功能后,在当前模式为静态或动态链路聚合模式时,检测聚合链路中成员端口在设定时长内的收普通丢包率或发普通丢包率;After the dynamic management of the link aggregation member port is enabled, the device detects the normal packet loss rate or the normal packet loss rate of the member ports in the aggregation link in the static mode or the dynamic link aggregation mode. ;
    若检测到成员端口在设定时长内的收普通丢包率超过或等于设定门限,则将收普通丢包率超过或等于所述设定门限的成员端口的对端成员端口的状态设置为非活动状态;If it is detected that the normal packet loss rate of the member port is greater than or equal to the set threshold within the set duration, the state of the peer member port of the member port whose normal packet loss rate exceeds or equals the set threshold is set to Inactive state
    若检测到成员端口在设定时长内的发普通丢包率超过或等于设定门限,则将发普通丢包率超过或等于所述设定门限的成员端口的状态设置为非活动状态;If it is detected that the normal packet loss rate of the member port exceeds or is equal to the set threshold within the set duration, the state of the member port whose normal packet loss rate exceeds or equals the set threshold is set to an inactive state;
    当一个或多个成员端口的状态被设置为非活动状态时,根据负荷分担策略,在除非活动状态的成员端口以外的剩余链路中重新计算报文发送的端口;When the state of one or more member ports is set to an inactive state, according to the load sharing policy, the port for transmitting the message is recalculated in the remaining links except the active member ports;
    当非活动状态的成员端口在设定时长内的发普通丢包率低于设定门限,且非活动状态的成员端口的对端成员端口在设定时长内的收普通丢包率低于设定门限时,将该非活动状态的成员端口的状态更新为活动状态,并重新计算报文发送的端口。When the inactive member port is in the set time period, the normal packet loss rate is lower than the set threshold, and the inactive member port of the member port in the inactive state is lower than the set packet loss rate. When the threshold is set, the status of the member port in the inactive state is updated to the active state, and the port on which the packet is sent is recalculated.
  2. 如权利要求1所述的方法,其中,若检测到成员端口在设定时长内的收普通丢包率超过或等于设定门限,则将收普通丢包率超过或等于所述设定门限的成员端口的对端成员端口的状态设置为非活动状态的过程包括:The method of claim 1, wherein if the normal packet loss rate of the member port within the set duration is greater than or equal to the set threshold, the normal packet loss rate is greater than or equal to the set threshold. The process of setting the status of the peer member port of a member port to inactive includes:
    若检测到成员端口A在设定时长内的收普通丢包率超过或等于设定门限,则通过链路汇聚控制协议LACP通知所述成员端口A对端的成员端口B对应的CPU,以使所述成员端口B对应的设备将所述成员端口B的状态设置为非活动状态。If the normal packet loss rate of the member port A is greater than or equal to the set threshold, the member port A of the peer port A is notified by the link aggregation control protocol LACP. The device corresponding to the member port B sets the state of the member port B to an inactive state.
  3. 如权利要求1所述的方法,其中,若检测到成员端口在设定时长内的发普通丢包率超过或等于设定门限,则将发普通丢包率超过或等于所述设定门限的成员端口的状态设置为非活动状态的过程包括:The method of claim 1, wherein if the normal packet loss rate of the member port within the set duration is greater than or equal to the set threshold, the normal packet loss rate is greater than or equal to the set threshold. The process of setting the status of a member port to inactive includes:
    若检测到成员端口a在设定时长内的发普通丢包率超过或等于设定门限, If it is detected that the normal packet loss rate of the member port a within the set duration exceeds or is equal to the set threshold,
    分别向本端成员端口a的CPU和所述成员端口a的对端的成员端口b发送通知成员端口a发普通丢包率超过或等于设定门限的信息;Sending information to the member port b of the local member port a and the member port b of the peer port a to notify the member port a that the normal packet loss rate exceeds or equals the set threshold.
    所述成员端口a的CPU获取成员端口a发普通丢包率超过或等于设定门限的信息,则将本成员端口a的状态设置为非活动状态。The CPU of the member port a obtains the information that the member port a sends a normal packet loss rate that is greater than or equal to the set threshold, and sets the state of the member port a to the inactive state.
  4. 如权利要求2项权利要求所述的方法,其中,当非活动状态的成员端口在设定时长内的发普通丢包率低于设定门限,且非活动状态的成员端口的对端成员端口在设定时长内的收普通丢包率低于设定门限时,再将该非活动状态的成员端口的状态更新为活动状态的过程包括:The method according to claim 2, wherein the normal packet loss rate of the member port in the inactive state is lower than the set threshold within the set duration, and the peer member port of the member port in the inactive state When the normal packet loss rate within the set duration is lower than the set threshold, the process of updating the status of the inactive member port to the active state includes:
    当成员端口A在设定时长内的收普通丢包率低于设定门限时,分别向本端CPU和所述成员端口A的对端的成员端口B对应的CPU通知成员端口A收普通丢包正常的信息;When the member port A receives the normal packet loss rate within the set time period, the CPU corresponding to the member port B of the peer port of the member port A is notified to the member port A to receive the normal packet loss. Normal information;
    所述成员端口B对应的CPU收到成员端口A收普通丢包正常的信息后,若检测到所述成员端口B在设定时长内的发普通丢包率也低于设定门限,则将本成员端口B的状态更新为活动状态。After receiving the information that the member port A receives the normal packet loss, the CPU corresponding to the member port B detects that the normal packet loss rate of the member port B within the set duration is lower than the set threshold. The status of member port B is updated to the active state.
  5. 如权利要求3项权利要求所述的方法,其中,当非活动状态的成员端口在设定时长内的发普通丢包率低于设定门限,且非活动状态的成员端口的对端成员端口在设定时长内的收普通丢包率低于设定门限时,再将该非活动状态的成员端口的状态更新为活动状态的过程包括:The method according to claim 3, wherein the normal packet loss rate of the member port in the inactive state is lower than the set threshold within the set duration, and the peer member port of the member port in the inactive state When the normal packet loss rate within the set duration is lower than the set threshold, the process of updating the status of the inactive member port to the active state includes:
    当成员端口a在设定时长内的发普通丢包率低于设定门限时,如果确定所述成员端口a的对端成员端口b在设定时长内的收普通丢包率低于设定门限,则将本成员端口a的状态更新为活动状态。If the normal packet loss rate of the member port a is lower than the set threshold within the set duration, if it is determined that the peer member port b of the member port a is within the set duration, the normal packet loss rate is lower than the set. Threshold, the status of the member port a is updated to the active state.
  6. 如权利要求1至5任一所述的方法,所述方法还包括:The method of any one of claims 1 to 5, further comprising:
    检测链路聚合端口中是否有成员端口收超带宽丢包或发超带宽丢包;Check whether there are member ports in the link aggregation port that receive bandwidth loss or excessive bandwidth loss.
    若检测到成员端口X收超带宽丢包,则通过LACP将所述成员端口X收超带宽丢包的信息通知给所述成员端口X的CPU和所述成员端口X的对端的成员端口Y对应的CPU;如果判断所述成员端口Y同时是任一业务重定向的目的端口,则将重定向到所述成员端口Y上的业务重定向到其他带宽利用率最低的端口。If it is detected that the member port X receives the bandwidth loss packet, the information about the member port X receiving the bandwidth loss packet is notified to the member port X CPU and the member port Y of the member port X corresponding to the member port Y of the member port X. If the member port Y is determined to be the destination port of any service redirection, the traffic redirected to the member port Y is redirected to the other port with the lowest bandwidth utilization.
  7. 如权利要求6所述的方法,将重定向到所述成员端口Y上的业务重 定向到其他带宽利用率最低的端口后,若所述成员端口X仍然收超带宽丢包,该方法还包括:The method of claim 6 redirecting traffic to said member port Y After the port port X is still in excess of the bandwidth loss, the method further includes:
    所述成员端口Y以哈希关键字做特征值,将重定向到所述成员端口Y上的业务用访问控制列表ACL重定向到带宽利用率最低的端口,重复重定向动作直至所述成员端口X不再收超带宽丢包。The member port Y uses the hash key as a feature value to redirect the service access control list ACL redirected to the member port Y to the port with the lowest bandwidth utilization, and repeats the redirection action until the member port X no longer receives excess bandwidth loss.
  8. 如权利要求6所述的方法,该方法还包括:The method of claim 6 further comprising:
    若检测到成员端口x发超带宽丢包,则通过LACP将本端发超带宽丢包的信息通知给本端成员端口x的CPU和对端的成员端口y的CPU;成员端口x的CPU获取到本端发超带宽丢包的信息后,如果判断所述成员端口x同时是任一业务重定向的目的端口,则将重定向到成员端口x上的业务重定向到其他带宽利用率最低的端口。If the member port x is sent out of the bandwidth loss packet, the information about the packet loss of the local end is reported to the CPU of the local member port x and the CPU of the member port y of the peer end through the LACP; the CPU of the member port x is obtained. After the local end sends the information of the bandwidth loss packet, if the member port x is the destination port of any service redirection, the service redirected to the member port x is redirected to the other port with the lowest bandwidth utilization. .
  9. 如权利要求8所述的方法,将重定向到所述成员端口x上的业务重定向到其他带宽利用率最低的端口后,若所述成员端口x仍然发超带宽丢包,该方法还包括:The method of claim 8, after redirecting the traffic redirected to the member port x to another port with the lowest bandwidth utilization, if the member port x still sends an excessive bandwidth packet loss, the method further includes :
    所述成员端口x以哈希关键字做特征值,将重定向到所述成员端口x上的业务用ACL重定向到带宽利用率最低的端口,重复重定向动作直至所述成员端口x不再发超带宽丢包。The member port x is characterized by a hash key, and the service redirected to the member port x is redirected to the port with the lowest bandwidth utilization, and the redirection action is repeated until the member port x is no longer used. Send over bandwidth loss.
  10. 如权利要求1至5任一所述的方法,该方法还包括:The method of any one of claims 1 to 5, further comprising:
    如果当前模式为手工链路聚合模式,若检测到链路聚合端口中成员端口在设定时长内的收超过或等于设定门限,则将收普通丢包率超过或等于设定门限的成员端口的状态设置为非活动状态,并根据负荷分担策略在除已设置为非活动状态的成员端口以外剩余链路中重新计算报文发送的端口,直到所检测到的成员端口在设定时长内的收丢包率低于设定门限,再将该成员端口的状态更新为活动状态,并再次重新计算报文发送端口;If the current mode is the manual link aggregation mode, if the member port of the link aggregation port is detected to be longer than or equal to the set threshold, the member port with the normal packet loss rate exceeding or equal to the set threshold will be received. The status is set to inactive, and the port for sending packets is recalculated in the remaining links except the member ports that have been set to inactive according to the load sharing policy until the detected member ports are within the set duration. If the packet loss rate is lower than the set threshold, the status of the member port is updated to the active state, and the packet sending port is recalculated again;
    若检测到链路聚合端口中成员端口在设定时长内的发超过或等于设定门限,则将发普通丢包率超过或等于所述设定门限的成员端口的状态设置为非活动状态;并根据负荷分担策略在除已设置为非活动状态的成员端口以外剩余链路中重新计算报文发送的端口,直到所检测到的成员端口在设定时长内的发丢包率低于设定门限,再将该成员端口的状态更新为活动状态,并再次重新计算报文发送端口。 If it is detected that the member port in the link aggregation port is greater than or equal to the set threshold within the set duration, the state of the member port whose normal packet loss rate exceeds or equals the set threshold is set to an inactive state; According to the load sharing policy, the port for sending packets is recalculated in the remaining links except the member ports that have been set to inactive, until the detected member ports lose the packet loss rate within the set duration. Threshold, then update the status of the member port to the active state, and recalculate the message sending port again.
  11. 一种管理链路聚合成员端口丢包的装置,包括:A device for managing packet loss on a link aggregation member port includes:
    第一检测单元,设置为在开启动态管理链路聚合成员端口带宽管理功能后,在当前模式为静态或动态链路聚合模式时,检测聚合链路中成员端口在设定时长内的收普通丢包率或发普通丢包率;The first detecting unit is configured to detect the normal loss of the member ports in the aggregated link within the set duration when the current mode is static or dynamic link aggregation mode after the dynamic management link aggregation member port bandwidth management function is enabled. Packet rate or ordinary packet loss rate;
    状态设置单元,设置为在检测到成员端口在设定时长内的收普通丢包率超过或等于设定门限时,将收普通丢包率超过或等于所述设定门限的成员端口的对端的状态设置为非活动状态;还设置为在检测到成员端口在设定时长内的发普通丢包率超过或等于设定门限时,将发普通丢包率超过或等于所述设定门限的成员端口的状态设置为非活动状态;以及还设置为当非活动状态的成员端口在设定时长内的发普通丢包率低于设定门限,且非活动状态的成员端口的对端成员端口在设定时长内的收普通丢包率低于设定门限时,将该非活动状态的成员端口的状态更新为活动状态;The state setting unit is configured to: when detecting that the normal packet loss rate of the member port within the set duration is greater than or equal to the set threshold, the peer packet with the normal packet loss rate exceeding or equal to the set threshold is received. The status is set to inactive. It is also set to send a member whose normal packet loss rate exceeds or equals the set threshold when it detects that the normal packet loss rate of the member port is longer than or equal to the set threshold within the set duration. The status of the port is set to inactive; and the normal packet loss rate of the inactive member port is less than the set threshold within the set duration, and the inactive member port of the inactive member port is When the normal packet loss rate within the set duration is lower than the set threshold, the status of the member port in the inactive state is updated to the active state;
    负荷分担单元,设置为在一个或多个成员端口的状态设置为非活动状态时,根据负荷分担策略,在除非活动状态的成员端口以外的剩余链路中重新计算报文发送的端口;以及在非活动状态的成员端口更新为活动状态时,重新计算报文发送的端口。a load sharing unit configured to recalculate a port for sending a message in a remaining link other than the active member port according to a load sharing policy when the state of one or more member ports is set to an inactive state; When the inactive member port is updated to the active state, the port on which the message is sent is recalculated.
  12. 如权利要求11所述的装置,其中,所述状态设置单元设置为通过以下方式实现在检测到成员端口在设定时长内的收普通丢包率超过或等于设定门限时,将收普通丢包率超过或等于所述设定门限的成员端口的对端的状态设置为非活动状态:The device of claim 11, wherein the state setting unit is configured to: when detecting that the normal packet loss rate of the member port within a set duration is greater than or equal to a set threshold, The state of the peer end of the member port whose packet rate exceeds or equals the set threshold is set to the inactive state:
    若检测到成员端口A在设定时长内的收普通丢包率超过或等于设定门限,则通过链路汇聚控制协议LACP通知所述成员端口A的对端的成员端口B对应的CPU,以指示所述对端的成员端口B对应的CPU将所述对端成员端口B的状态设置为非活动状态。If it is detected that the normal packet loss rate of the member port A is greater than or equal to the set threshold, the member corresponding to the member port B of the peer port A of the member port A is notified by the link aggregation control protocol LACP to indicate The CPU corresponding to the member port B of the peer end sets the state of the peer member port B to an inactive state.
  13. 如权利要求11所述的装置,其中,所述状态设置单元设置为通过以下方式实现在检测到成员端口在设定时长内的发普通丢包率超过或等于设定门限时,将发普通丢包率超过或等于所述设定门限的成员端口的状态设置为非活动状态:The device of claim 11, wherein the state setting unit is configured to: when detecting that the normal packet loss rate of the member port within a set duration is greater than or equal to a set threshold, The status of the member port whose packet rate exceeds or equals the set threshold is set to inactive:
    若检测到成员端口a在设定时长内的发普通丢包率超过或等于设定门限,则分别向检测到发普通丢包率超过或等于设定门限的成员端口a的CPU 和所述成员端口a的对端的成员端口发送通知本成员端口a发普通丢包率超过或等于设定门限的信息,以及将所述成员端口a的状态设置为非活动状态。If it is detected that the normal packet loss rate of the member port a within the set duration exceeds or equals the set threshold, respectively, the CPU that detects the member port a whose normal packet loss rate exceeds or equals the set threshold is detected. The member port of the peer end of the member port a sends a message notifying that the member port a sends a normal packet loss rate exceeding or equal to a set threshold, and sets the state of the member port a to an inactive state.
  14. 如权利要求12项所述的装置,其中,所述状态设置单元设置为通过以下方式实现当非活动状态的成员端口在设定时长内的发普通丢包率低于设定门限,且非活动状态的成员端口的对端成员端口在设定时长内的收普通丢包率低于设定门限时,再该非活动状态的成员端口的状态更新为活动状态:The device according to claim 12, wherein the state setting unit is configured to realize that when a member port in an inactive state has a normal packet loss rate within a set duration, which is lower than a set threshold, and is inactive, When the peer member port of the member port of the status is lower than the set threshold within the set duration, the status of the member port in the inactive state is updated to the active state:
    在检测到非活动状态的成员端口A在设定时长内的发普通丢包率低于设定门限时,分别向该成员端口的CPU和所述成员端口A的对端的成员端口B对应的CPU通知所述成员端口A发普通丢包正常的信息;所述成员端口B对应的设备收到成员端口A收普通丢包正常的信息后,若检测到所述对端成员端口B在设定时长内的收普通丢包率也低于设定门限,则将该成员端口B的状态更新为活动状态。When the normal packet loss rate of the member port A in the inactive state is lower than the set threshold, the CPU corresponding to the member port and the CPU corresponding to the member port B of the peer port A of the member port A respectively. The member port A is notified that the normal packet loss is normal. After the member port B receives the information that the member port A receives the normal packet loss, the device detects that the peer member port B is in the set duration. If the internal normal packet loss rate is also lower than the set threshold, the status of the member port B is updated to the active state.
  15. 如权利要求13项所述的装置,其中,所述状态设置单元设置为通过以下方式实现当非活动状态的成员端口在设定时长内的发普通丢包率低于设定门限,且非活动状态的成员端口的对端成员端口在设定时长内的收普通丢包率低于设定门限时,再该非活动状态的成员端口的状态更新为活动状态:The apparatus according to claim 13, wherein the state setting unit is configured to realize that the normal packet loss rate in the inactive state is lower than a set threshold within a set duration, and is inactive by: When the peer member port of the member port of the status is lower than the set threshold within the set duration, the status of the member port in the inactive state is updated to the active state:
    当检测到成员端口a在设定时长内的收普通丢包率低于设定门限时,若干确定所述成员端口a的对端成员端口b在设定时长内的发普通丢包率也低于设定门限,则将该成员端口a的状态更新为活动状态。When it is detected that the normal packet loss rate of the member port a within the set duration is lower than the set threshold, the number of the normal packet loss rate of the peer member port b that determines the member port a is within the set duration. When the threshold is set, the status of the member port a is updated to the active state.
  16. 如权利要求11至15任一所述的装置,该装置还包括:The apparatus according to any one of claims 11 to 15, the apparatus further comprising:
    第二检测单元,设置为检测链路聚合端口中是否有成员端口收超带宽丢包或发超带宽丢包;The second detecting unit is configured to detect whether a member port of the link aggregation port receives an excess bandwidth packet loss or sends an excessive bandwidth packet loss;
    超带宽丢包处理单元,设置为若检测到有成员端口X收超带宽丢包时,通过LACP将该成员端口X收超带宽丢包的信息通知给本端成员端口X的CPU和所述成员端口X对端的成员端口Y对应的CPU;还设置为当所述对端成员端口Y对应的设备收到成员端口X收超带宽丢包的信息后,若判断所述成员端口Y同时是任一业务重定向的目的端口,则将重定向到所述成员端口Y上的业务重定向到其他带宽利用率最低的端口。The ultra-bandwidth packet loss processing unit is configured to notify the CPU of the local member port X and the member that the member port X receives the packet loss over the bandwidth when the member port X receives the bandwidth loss packet. The CPU corresponding to the member port Y of the peer X of the port X is configured to: when the device corresponding to the member port Y of the peer end receives the information of the packet loss of the member port X, if it is determined that the member port Y is any The destination port of the service redirection redirects the traffic redirected to the member port Y to the other port with the lowest bandwidth utilization.
  17. 如权利要求16所述的装置,其中,所述超带宽丢包处理单元,还设置为将重定向到所述成员端口Y上的业务重定向到其他带宽利用率最低的端 口后,若成员端口X仍然收超带宽丢包,则将所述成员端口Y的哈希关键字做特征值,将重定向到本成员端口Y上的业务用访问控制列表ACL重定向到带宽利用率最低的端口,重复重定向动作直至的成员端口X不再收超带宽丢包。The apparatus of claim 16, wherein the ultra-bandwidth packet loss processing unit is further configured to redirect traffic redirected to the member port Y to another terminal with the lowest bandwidth utilization If the member port X still receives the bandwidth loss packet, the hash key of the member port Y is eigenvalued, and the service access control list ACL redirected to the member port Y is redirected to the bandwidth. The port with the lowest utilization rate repeats the redirection action until the member port X no longer receives the excess bandwidth packet loss.
  18. 如权利要求16所述的装置,其中,The device of claim 16 wherein
    所述超带宽丢包处理单元,还设置为在检测到成员端口x发超带宽丢包时,通过LACP将本端发超带宽丢包的信息通知给本端成员端口想x的CPU和所述成员端口x的对端的成员端口y的CPU,以及在本端成员端口x的CPU获取到本端发超带宽丢包的信息后,若判断所述本端成员端口x同时是任一业务重定向的目的端口,则将重定向到所述成员端口x上的业务重定向到其他带宽利用率低的端口。The ultra-bandwidth packet loss processing unit is further configured to: notify the local member port of the CPU that wants to use the LA and the said After the CPU of the member port y of the member port x and the CPU of the local member port x obtain the information about the excessive bandwidth loss of the local end, the local member port x is determined to be any service redirection. The destination port redirects traffic redirected to the member port x to other ports with low bandwidth utilization.
  19. 如权利要求18所述的装置,其中,所述超带宽丢包处理单元,还设置为将重定向到所述成员端口x成员端口上的业务重定向到其他带宽利用率低的端口后,若成员端口x仍然发超带宽丢包,则以所述成员端口x的哈希关键字做特征值,将重定向到所述成员端口x上的业务用ACL重定向到带宽利用率最低的端口,重复重定向动作直至本成员端口不再发超带宽丢包。The apparatus of claim 18, wherein the ultra-bandwidth packet loss processing unit is further configured to redirect traffic redirected to the member port x member port to another port with low bandwidth utilization, if If the member port x still sends the bandwidth loss packet, the hash key of the member port x is used as the eigenvalue, and the service ACL redirected to the member port x is redirected to the port with the lowest bandwidth utilization. The redirection action is repeated until the member port no longer sends excessive bandwidth loss.
  20. 如权利要求11至15任一所述的装置,其中,The apparatus according to any one of claims 11 to 15, wherein
    所述第一检测单元,还设置为在当前模式为手工链路聚合模式时,检测链路聚合端口中成员端口在设定时长内的收普通丢包率或发普通丢包率;The first detecting unit is further configured to: when the current mode is the manual link aggregation mode, detect an ordinary packet loss rate or a normal packet loss rate of the member ports in the link aggregation port within a set duration;
    所述状态设置单元,还设置为在当前模式为手工链路聚合模式时,若检测链路聚合端口中成员端口在设定时长内的收普通丢包率超过或等于设定门限时,将收普通丢包率超过或等于所述设定门限的成员端口的状态设置为非活动状态;还设置为在当前模式为手工链路聚合模式时,若检测链路聚合端口中成员端口在设定时长内的发普通丢包率超过或等于设定门限时,将发普通丢包率超过或等于所述设定门限的成员端口的状态设置为非活动状态。 The state setting unit is further configured to: when the current mode is the manual link aggregation mode, if the normal packet loss rate of the member port in the link aggregation port is longer than or equal to the set threshold, The status of the member port whose normal packet loss rate is greater than or equal to the set threshold is set to inactive. It is also set to detect the member port of the link aggregation port when the current mode is manual link aggregation mode. When the normal packet loss rate is greater than or equal to the set threshold, the state of the member port whose normal packet loss rate exceeds or equals the set threshold is set to an inactive state.
PCT/CN2016/088709 2015-09-09 2016-07-05 Method and device for managing link aggregation member port packet loss WO2017041577A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510570704.7A CN106533964A (en) 2015-09-09 2015-09-09 Method and device for managing packet loss of link aggregation member ports
CN201510570704.7 2015-09-09

Publications (1)

Publication Number Publication Date
WO2017041577A1 true WO2017041577A1 (en) 2017-03-16

Family

ID=58240545

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/088709 WO2017041577A1 (en) 2015-09-09 2016-07-05 Method and device for managing link aggregation member port packet loss

Country Status (2)

Country Link
CN (1) CN106533964A (en)
WO (1) WO2017041577A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114640574A (en) * 2022-02-28 2022-06-17 天翼安全科技有限公司 Method and device for switching main equipment and standby equipment

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108989139A (en) * 2017-06-02 2018-12-11 中兴通讯股份有限公司 A kind of management method and device of the link aggregation group based on CFM
CN111200567B (en) * 2019-12-31 2021-09-10 苏州浪潮智能科技有限公司 Dispatching method and dispatching system applied to member port of switch
CN114268589B (en) * 2020-09-16 2024-05-03 北京华为数字技术有限公司 Traffic forwarding method, device and storage medium
CN113411254B (en) * 2021-05-13 2023-03-31 新华三大数据技术有限公司 Link processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130336104A1 (en) * 2012-06-15 2013-12-19 Ramanjaneyulu Y. Talla Systems and methods for propagating health of a cluster node
CN103560898A (en) * 2013-07-30 2014-02-05 北京华为数字技术有限公司 Port state setting method, and port priority selection method and device
CN103916281A (en) * 2014-04-29 2014-07-09 上海斐讯数据通信技术有限公司 Dynamic LACP aggregation link fault recovery method
CN104219107A (en) * 2014-08-26 2014-12-17 华为技术有限公司 Communication fault detecting method, communication fault detecting device and communication fault detecting system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130336104A1 (en) * 2012-06-15 2013-12-19 Ramanjaneyulu Y. Talla Systems and methods for propagating health of a cluster node
CN103560898A (en) * 2013-07-30 2014-02-05 北京华为数字技术有限公司 Port state setting method, and port priority selection method and device
CN103916281A (en) * 2014-04-29 2014-07-09 上海斐讯数据通信技术有限公司 Dynamic LACP aggregation link fault recovery method
CN104219107A (en) * 2014-08-26 2014-12-17 华为技术有限公司 Communication fault detecting method, communication fault detecting device and communication fault detecting system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114640574A (en) * 2022-02-28 2022-06-17 天翼安全科技有限公司 Method and device for switching main equipment and standby equipment
CN114640574B (en) * 2022-02-28 2023-11-28 天翼安全科技有限公司 Main and standby equipment switching method and device

Also Published As

Publication number Publication date
CN106533964A (en) 2017-03-22

Similar Documents

Publication Publication Date Title
WO2017041577A1 (en) Method and device for managing link aggregation member port packet loss
US9391877B2 (en) System and method for reducing information loss in an aggregated information handling system
US7729361B2 (en) Method and system for power-efficient adaptive link aggregation
JP4925218B2 (en) Intelligent failback in a load-balanced network environment
WO2017054547A1 (en) Bidirectional forwarding detection method and apparatus
US20150215224A1 (en) Positive feedback ethernet link flow control for promoting lossless ethernet
US9985928B2 (en) Dynamic link aggregation
AU2020201904B2 (en) Packet transmission method and apparatus
WO2015070383A1 (en) Link aggregation method, apparatus, and system
US9225535B2 (en) System and method for conserving power in link aggregation groups
CN112822102B (en) Link switching method, device, equipment, system and storage medium
EP3930267A1 (en) Link aggregation port switching method, network device and computer storage medium
KR102161422B1 (en) Service packet transmission method and node device
CN113472646B (en) Data transmission method, node, network manager and system
US11895228B2 (en) Pausing a media access control security (MACsec) key agreement (MKA) protocol of an MKA session using a fast heartbeat session
JP4093999B2 (en) Method and apparatus for preventing spanning tree loops during traffic overload conditions
US9762433B2 (en) Fault tolerant folded CLOS networks
JP5065269B2 (en) Local area network management
WO2014161421A1 (en) Data transmission method, device, and system
JP2008236733A (en) Bandwidth control apparatus, system, and method
CN106302215A (en) A kind of method and device E-Packeted
US20170214621A1 (en) Network switch, network control apparatus, and network system
JP2013192022A (en) Network device, link aggregation system and redundancy method therefor
WO2016051498A1 (en) Server system
JP2005176268A (en) Ip network rerouting system using life-and-death supervision

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

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

Country of ref document: EP

Kind code of ref document: A1