WO2014101125A1 - 聚合组链路协商方法、装置和系统 - Google Patents

聚合组链路协商方法、装置和系统 Download PDF

Info

Publication number
WO2014101125A1
WO2014101125A1 PCT/CN2012/087872 CN2012087872W WO2014101125A1 WO 2014101125 A1 WO2014101125 A1 WO 2014101125A1 CN 2012087872 W CN2012087872 W CN 2012087872W WO 2014101125 A1 WO2014101125 A1 WO 2014101125A1
Authority
WO
WIPO (PCT)
Prior art keywords
link
port
selection policy
notification message
aggregation group
Prior art date
Application number
PCT/CN2012/087872
Other languages
English (en)
French (fr)
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 华为技术有限公司
Priority to CN201280018044.6A priority Critical patent/CN104040973B/zh
Priority to PCT/CN2012/087872 priority patent/WO2014101125A1/zh
Publication of WO2014101125A1 publication Critical patent/WO2014101125A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/64Hybrid switching systems
    • H04L12/6418Hybrid transport

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to an aggregation group link negotiation method, apparatus, and system.
  • LACP Link Aggregation Control Protocol
  • load balancing mode all links in an aggregation group participate in forwarding at the same time.
  • backup mode some links in the aggregation group are forwarded at the same time.
  • the other links in the aggregation group are in the blocked state.
  • the forwarded link fails, other links can participate in the forwarding immediately, which plays the role of redundancy protection. .
  • the backup mode can effectively improve the reliability of the aggregation group, many operators use the LACP mode of operation in the actual networking.
  • the LACP backup mode if the link in the forwarding state fails, the LACP will be re-routed in the aggregation group. At this time, the backup link will be selected and participate in forwarding.
  • the first link selection policy the device selects the normal link according to the priority of the link. After the faulty link is restored, the device selects the link with the highest priority as the forwarding link in the normal link. This link selection strategy is relatively simple to implement. The disadvantage is that each state change of the primary link causes a link switch.
  • device 10 has two ports (port numbers a0 and a1 respectively), and device 15 has two ports (port numbers b0 and bl respectively), a0 is connected to b0, and al is connected to bl.
  • the link between a0 and b0 and the link between a1 and bl form an aggregation group and are backed up to each other. Normally, the link between a0 and b0 is the forwarding link, the link between al and bl is the standby link, and the standby link is blocked.
  • the forwarding link switches to the link between al and bl, and the link between al and bl becomes the primary link.
  • device 10 and device 15 will select the link between a0 and b0 as the forwarding link, block the link between a1 and bl, and restore the state of the aggregation group to the initial state.
  • the second link selection policy the device does not select the normal link according to the priority, but uses the currently used link as the forwarding link, the device does not re-route, and the link is restored from the fault state. In a blocked state, this can reduce one link switch.
  • device 10 has two ports (port numbers a0 and a1 respectively), and device 15 has two ports (port numbers b0 and bl respectively), a0 is connected to b0, and al is connected to bl.
  • the link between a0 and b0 and the link between a1 and bl form an aggregation group and are backed up to each other. Normally, the link between a0 and b0 is the forwarding link, the link between al and bl is the standby link, and the standby link is blocked.
  • the forwarding link switches to the link between a1 and bl, and the link between al and bl becomes the primary link.
  • the link between a0 and b0 returns to normal, follow the second A link selection policy, even if the link between a0 and b0 has a higher priority than the link between a1 and bl, the aggregation group still uses the currently used link as the forwarding link, that is, with al and b1.
  • the link between them acts as a forwarding link.
  • the above two link selection strategies have their own advantages and disadvantages. In the scenario where the primary link is better than the standby link, the operator wants to use the primary link preferentially after the primary link fails.
  • the first link selection policy should be used.
  • the second link selection policy can reduce the number of link handovers, which is more conducive to the stability of service data forwarding, especially when the primary link is unstable or repeated.
  • the first link selection policy will cause the LACP aggregation group to oscillate.
  • the second link selection policy is used, the stability of the forwarding link can be ensured, and the robustness of the network can be enhanced.
  • the device manufacturer can select one of the above two link selection strategies to apply to the produced device according to the actual situation, which causes the following problems: As shown in FIG. 3, it is assumed that the device 10 uses the first chain.
  • the device 15 uses the second link selection policy, if the primary link (the link between a0 and b0) fails and then recovers, because the priority of the link between a0 and b0 Higher than the link between a1 and bl, device 10 selects port a0 according to the first link selection policy, and device 15 selects bl port according to the second link selection policy, which causes both links to be The service cannot be forwarded normally.
  • An embodiment of the present invention provides a link negotiation method in a network, where the network includes a first device and a second device, and multiple links are set between the first device and the second device,
  • the link links form an aggregation group, and the method includes:
  • the second device selects a link from the aggregation group according to the link selection policy.
  • the link selection policy includes: selecting a normal link according to a priority of the link and using the currently used link as one of the forwarding links.
  • the method further includes:
  • the second device If the second device does not support the link selection policy in the first advertisement packet, the second device sends, to the first device, a link selection policy that does not support the first advertisement packet. Response message to cause the first device to use a default link selection policy.
  • the provided method further includes:
  • the second device receives the second advertisement packet of the first device from a link in the blocked state of the aggregation group, and obtains the synchronization identifier bit information from the second advertisement packet, if the sync If the identifier information is true and the second device is the slave device of the first device, the identifier information of the port to be used by the first device is obtained from the second advertisement packet, and the second device is used.
  • a corresponding port on the device is configured as a forwarding port, and a response message indicating that the setting is successful is sent to the first device.
  • An embodiment of the present invention provides a network device, where the network device is connected to the first device by using multiple links, and the multiple links form an aggregation group between the network device and the first device.
  • the network device includes:
  • a data transceiver configured to receive the first advertisement packet of the first device by using the multiple links, where the first advertisement packet carries the used by the first device Link selection strategy;
  • a processor configured to select a link from the aggregation group according to the link selection policy when the aggregation group has a link recovery from a failure.
  • the processor is further configured to determine whether the current device supports the link selection policy in the advertisement packet, and if not, send, by the data transceiver, the first device does not support the A response message of the link selection policy in the advertisement message, such that the first device uses a default link selection policy.
  • the data transceiver is further configured to receive a second advertisement packet of the first device from a link in the blocked state of the aggregation group;
  • the processor is further configured to obtain synchronization identifier bit information from the second advertisement packet, if If the synchronization flag information is true and the network device is a slave device of the first device, the identifier information of the port to be used by the first device is obtained from the second advertisement packet, and the network is used.
  • a corresponding port on the device is configured as a forwarding port, and the response message that the setting is successful is sent to the first device by using the data transceiver.
  • An embodiment of the present invention provides a network device, where the network device is connected to a second device by using multiple links, and the multiple links form an aggregation group; the network device includes:
  • a data transceiver configured to send, by using the multiple links, the second device, to send, by the second device, a first advertisement packet, where the first advertisement packet carries a chain used by the network device
  • the path selection policy is such that when the second device recovers from the failure in the aggregation group, the link is selected in the aggregation group according to the link selection policy.
  • the network device further includes a processor
  • the data transceiver is further configured to receive a response message that the second device does not support the link selection policy carried in the first advertisement packet, where the processor is configured to connect the link of the network device
  • the selection policy is set to the default link selection policy.
  • An embodiment of the present invention provides a link negotiation system, where the system includes a first device and a second device, and multiple links are set between the first device and the second device, and the multiple chains are The road forms an aggregation group;
  • the first device is configured to send a first advertisement message to the second device, where the first advertisement message carries a link selection policy used by the first device;
  • the second device is configured to select a link from the aggregation group according to the link selection policy when a fault occurs in the aggregation group.
  • the first device is further configured to receive a response message that the second device does not support the link selection policy in the advertisement packet, and use a default link selection policy.
  • the second device is further configured to receive a second advertisement packet of the first device from a link in the blocked state of the aggregation group, and obtain a synchronization identifier bit from the second advertisement packet.
  • Information if the synchronization identifier information is true and the second device is a slave device of the first device, obtaining, by using the second advertisement packet, identifier information of a port to be used by the first device , will be described
  • the corresponding port on the second device is configured as a forwarding port, and sends a response message that the setting is successful to the first device.
  • the method, the device, and the system provided by the embodiments of the present invention can negotiate a link selection policy between devices that have an aggregation group, so that a link selection policy can be used to select a normal link when the link is faulty. Therefore, the services in the 1:1 backup mode are normally forwarded, and the n:m backup mode can guarantee the service transmission capacity. Since the mechanism negotiated by both parties is used, the stability of link switching can be improved.
  • FIG. 1 is a schematic diagram of a routing process using a first link selection strategy in the prior art
  • FIG. 2 is a schematic diagram of a routing process using a second link selection strategy in the prior art
  • FIG. 3 is a schematic diagram of a routing process using different link selection policies between devices in the prior art
  • FIG. 4 is a structural diagram of a link negotiation system according to an embodiment of the present invention
  • FIG. 5 is a flowchart of a method according to Embodiment 1 of the present invention.
  • FIG. 6 is a frame structure diagram of a LACP packet according to Embodiment 1 of the present invention.
  • Embodiment 7 is a flowchart of a method further provided by Embodiment 1 of the present invention.
  • FIG. 8 is a schematic diagram of a structure of a network device according to Embodiment 2 of the present invention
  • FIG. 9 is a schematic diagram of a structure of another network device according to Embodiment 2 of the present invention.
  • the embodiment of the invention provides a link negotiation method in a network, where the provided network includes the first The device and the second device, as shown in FIG. 4, are disposed between the first device (device 40) and the second device (device 50) with a plurality of links (including a link between a0 and b0 between an and bn)
  • the link may form an aggregation group. If the link between the first device and the second device is a 1:1 backup mode, there may be two chains between the first device and the second device. road. These two links are load-sharing or backed up each other. If the link between the first device and the second device is in the n:m backup mode, there are three or more links between the first device and the second device, and the links are load-sharing or redundant. Backup.
  • the link selection policy selected by the first device and the second device is inconsistent, for the 1 : 1 backup mode, the two links cannot forward services.
  • the n: m backup mode although the service interruption may not occur, the forwarding capacity of the aggregation group becomes smaller, which also affects the service.
  • the embodiment provides a link negotiation method. As shown in FIG. 5, the method includes the following steps: Step 500: The first device sends a first advertisement packet to the second device, where the first advertisement packet carries the first The link selection strategy used by a device.
  • the first device and the second device often have a master-slave relationship.
  • the first advertisement packet may be sent by the master device.
  • the time of the initiator packet may be initiated when the aggregation group is successfully set or after the master device is powered on. Sending a notification message, passively receiving from the device, so that the slave device and the master device use the same link selection policy; of course, it can also be initiated by the slave device, and the master device passively receives the manner, for example, the slave device port appears.
  • the set event is initiated, etc., it can also achieve the purpose of using the same link selection policy from the device and the master device.
  • the first device is a master device
  • the second device is a slave device of the first device.
  • the link selection policy used by the first device may be to select a normal link according to the priority of the link (hereinafter referred to as a first link selection policy for convenience of description) and use the currently used link as a forwarding link (for convenience of description, hereinafter referred to as a second link selection policy)
  • the first link selection policy means that after the faulty link returns to normal, the device follows the priority of the link from the normal link. A link with a high priority is selected.
  • the second link selection policy refers to the restored link that does not switch after the faulty link is restored, but the link that is currently forwarding the service is used as the primary link.
  • the first advertisement packet may be a LACP packet
  • the frame structure of the LACP packet may be as shown in FIG. 6, including:
  • Address information Destination Address, Source Address; Length/Type (Length/Type); Subtype (Subtype);
  • TLV of the master device and the length of the master device information (Actor_Information_Length);
  • Master device information including: master device system (Actor_System), master device key value (Actor_Key), master device port priority (Actor_Port_Priorty), master device port (Actor_Port), and Actor State);
  • the TLV of the slave device and the length of the slave device information (Partner_Information_Length);
  • Slave device information including: slave system), slave key (Partner Key), slave port priority (Partner _Port_Priorty), slave port (Partner _Port), and slave state (Partner State) ; as well as
  • the link selection policy used by the first device may be carried in the data unit of the LACP packet, for example, in the reserved field of the frame structure of FIG. 6, and may be a string of 3 bytes (Oct). In this embodiment, the form of the link selection policy in the advertisement packet is not limited.
  • the advertisement packet may also be another packet carrying the LACP protocol.
  • the link selection policy used by the first device may be carried in the payload of the packet.
  • the embodiment of the present invention does not limit the specific format of the advertisement packet. .
  • the first device may send the first advertisement message by using the current forwarding link.
  • Step 510 The second device receives the first advertisement packet, and selects a link from the aggregation group according to the link selection policy when the link in the aggregation group fails.
  • the second device After receiving the link selection policy of the first device, the second device sets the link selection policy to the link selection policy of the aggregation group.
  • the link selection policy is used to aggregate according to the link selection policy. Select a link in the group.
  • both the first device and the second device support the two link selection policies, after the second device receives the advertisement packet, the second device needs to use the link selection policy of the first device as its own final. Link selection strategy.
  • the default link selection policy configured on the first device and the second device is the first link selection policy, and the set event on the first device needs to replace the current link selection policy with the second link selection.
  • the second device sends an advertisement message to the second device, and the second device sends a response message that does not support the first link selection policy to the first device, and the first device uses the default link selection when receiving the response message.
  • Strategy the first link selection strategy.
  • the link selection policy of the first device of the master device changes when the aggregation group is stable, you need to trigger re-routing, such as sending LACP packets to the second device.
  • the second device should be used.
  • the link selection policy of the first device is not limited to the link selection policy of the first device.
  • the method provided in this embodiment can negotiate a link selection policy between devices in an aggregation group, so that a link selection policy can be used to select a normal link when the link is faulty, thereby ensuring a 1: 1
  • the services in the backup mode are forwarded normally.
  • n: m backup mode the service transmission capacity can be guaranteed. Since the mechanism negotiated by both parties is used, the stability of link switching can be improved.
  • the provided method can also be as shown in FIG. 7, including:
  • Step 520 The second device receives the second advertisement packet of the first device from the link in the blocked state of the aggregation group, and obtains the synchronization identifier bit information from the second advertisement packet.
  • the second advertisement packet may be a LACP packet to obtain another packet carrying the LACP protocol. If the second advertisement packet is received from the blocked link, the synchronization identifier is extracted from the second advertisement packet.
  • the bit information, the sync flag information, can be carried in the Actor_State field of the LACP packet.
  • the other packets carrying the LACP protocol can be carried in the payload.
  • the Sync flag information is used to identify whether the current link needs to be the forwarding link.
  • Step 530 determining whether the sync flag bit information is true, if yes, performing step 540, otherwise Discard the second advertisement packet.
  • Step 540 The second device obtains the identifier information of the port to be used by the first device from the second advertisement packet, and sets the corresponding port on the second device as the forwarding port.
  • the identifier of the port to be used by the first device may be carried in the Actor_Port field, and the other packets carrying the LACP protocol may be carried at both ends. s position.
  • the second device needs to obtain the identifier information of the port corresponding to the identifier information of the port to be used by the first device.
  • the second device may obtain the correspondence between the identifier information of the port on the first device and the identifier information of the port on the second device, and the second device may obtain the device and the first device from the corresponding relationship.
  • the identification information of the port in this embodiment may be one or more of a port number and a frame/slot number of the port on the device.
  • the second device After the second device obtains the identifier information of the corresponding port, the second device sets the port to the forwarding state for the n: m backup mode. For the 1:1 backup mode, the second device sets the port to the forwarding state. Set the other port to the blocking state.
  • Step 550 The second device sends a response message that the setting is successful to the first device.
  • the first device After receiving the setup success response message, the first device sets the port to be used to the forwarding state. For the 1:1 backup mode, the first device also needs to set the other port to the blocking state.
  • the method provided in this embodiment by sending an advertisement packet forcibly using the blocked link, can be combined with the method of forcibly using a specific link on the basis of the negotiation of the link selection policy, so as to ensure the reliability of the negotiation of the aggregation group link. By using the sync parameter, you can prevent link negotiation failure.
  • Embodiment 2 by sending an advertisement packet forcibly using the blocked link, can be combined with the method of forcibly using a specific link on the basis of the negotiation of the link selection policy, so as to ensure the reliability of the negotiation of the aggregation group link.
  • This embodiment provides a network device, which may be an access device, a routing device, or a switch.
  • the access device may be a DSLAM (Digital Subscriber Line Access Multiplexer) or an OLT (Optical Line). Terminal, optical line terminal), or MS AN (Multiservice Access Node).
  • DSLAM Digital Subscriber Line Access Multiplexer
  • OLT Optical Line
  • Terminal optical line terminal
  • MS AN Multiservice Access Node
  • the provided network device 40 is connected to the device 50 through a plurality of links, and the plurality of links form an aggregation group.
  • Network device 40 includes: The data transceiver 80 is connected to the plurality of links, and the device 50 is connected through the plurality of links.
  • the data transceiver 80 can be configured to send a first advertisement message to the device 50, where the first advertisement message carries a link selection policy used by the network device 40, and the link selection policy can be the first link described in the foregoing embodiment.
  • the first advertisement packet sent by the data transceiver 80 may be an LACP packet or another packet carrying the LACP protocol.
  • the link selection policy used by the network device 40 may be carried in the data unit of the LACP packet, or carried in the data unit of the LACP packet.
  • the payload of the other packets carrying the LACP protocol is medium.
  • the network device 40 may further include a processor 82, configured to construct a first advertisement message, and send the first advertisement message through the data transceiver 80 when the aggregation group is successfully set or powered on.
  • the processor 82 may include a forwarding logic 821 and a CPU (Central Processing Unit) 823.
  • the forwarding logic 821 is configured to construct a first advertisement packet, including obtaining address information in the first advertisement packet, and at the first The link selection policy used by the network device 40 is inserted into the advertisement message.
  • the CPU 823 can be used to monitor events and control the forwarding logic 821 to send the first notification message.
  • the events monitored by the CPU can include the aggregation group setting success, power-on or other set events.
  • the forwarding logic 821 is further configured to construct a second advertisement packet, where the second advertisement packet is configured to carry the identifier information of the port to be used by the network device 40 and the true sync bit information.
  • the CPU 823 is further configured to control the forwarding logic 821 to send the second advertisement message to the device 50 through the port to be used. After the data transceiver 80 receives the response message that the device 50 is successfully set, the port to be used is set as the forwarding port. . The data transceiver 80 is further configured to receive a response message of the device 50 that does not support the link selection policy carried in the first advertisement message.
  • the processor 82 is further configured to set the link selection policy of the network device 40 to a default link selection policy. Specifically, the CPU 823 in the processor 82 sets the link selection policy of the network device 40 to the default link selection. Strategy.
  • Network device 40 may also include memory 84, service interface 86, and power supplies and the like.
  • the memory 84 is configured to store address information of the network device 40 and the device 50, such as an IP address, a MAC (Media Access Control) address, and a VLAN (Virtual Local Area) One or more of Network, Virtual Local Area Network.
  • IP address IP address
  • MAC Media Access Control
  • VLAN Virtual Local Area
  • the memory 84 is also used to store default link selection policies and the like.
  • the service interface 86 is used for processing services, such as protocol conversion.
  • the service interface 84 can be a three-mode adaptive interface, and the three touches include: GE (Gigabit Ethernet, Gigabit Ethernet), GPON (gigabit-capable passive) Optical network (Gigabit passive optical network), EPON (Ethernet passive optical network).
  • the power supply is used to supply power to the network device 40, and can be connected to an alternating current or a direct current through a power interface.
  • This embodiment further provides a network device. As shown in FIG. 9, the network device 50 can be connected to the device 40 through multiple links, and multiple links can form an aggregation group.
  • the network device 50 can be an access device, a routing device, or a switch, etc., can include a data transceiver 90 and a processor 92, and can also include a memory 94, a service interface 96, a power source, and the like.
  • the data transceiver 90 is configured to connect, by using the multiple links, the device 40, to receive the first advertisement packet of the device 40, where the first advertisement packet carries the link selection policy used by the device 40.
  • the link selection policy carried in the first advertisement packet may be the first link selection policy or the second link selection policy described in the foregoing embodiment.
  • the first advertisement packet may be an LACP packet or another packet carrying the LACP protocol.
  • the link selection policy used by the device 40 may be carried in the data unit of the LACP packet or carried in other bearers.
  • the payload of the message with LACP is medium.
  • the processor 92 is configured to select a link from the aggregation group according to a link selection policy in the first advertisement packet when the link of the aggregation group is faulty.
  • the processor 92 is further configured to: when determining that the link selection policy in the first advertisement message is not supported, use a default link selection policy, and send, by the data transceiver 90, the chain in the first advertisement message to the device 40.
  • the response message of the road selection policy is further configured to: when determining that the link selection policy in the first advertisement message is not supported, use a default link selection policy, and send, by the data transceiver 90, the chain in the first advertisement message to the device 40. The response message of the road selection policy.
  • the memory 94 is configured to store a default link selection policy, and store a link selection policy in the first advertisement message.
  • the memory 94 may be one or more of a flash disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, and an optical disk.
  • the service interface 96 is configured to process services, such as protocol conversion, and the service interface 96 may be a three-mode adaptive interface.
  • the power supply is used to supply power to the network device 50, and the AC or DC power can be connected through the power interface.
  • the data transceiver 90 provided in this embodiment is further configured to receive a second advertisement message of the device 40, where the second advertisement message is received by a link in the aggregation group in a blocked state, and the processor 92 is configured to use the second
  • the master-slave information in the notification message identifies the master-slave relationship between the network device 50 and the device 40.
  • the network device 50 is identified as the slave device, it is determined whether the synchronization flag information in the second advertisement packet is true. If yes, the identifier information of the port to be used by the device 40 in the second advertisement packet is extracted, and the corresponding port on the device is opened, and the response message of the setting success is sent to the device through the opened port.
  • the processor 92 may specifically be the identifier information of the port corresponding to the identifier information of the port to be used by the device 40 from the memory 94, and the identifier information of the port on the device 40 and the network device 50 are stored in the memory 94. Correspondence of the identification information of the port.
  • the processor 92 is further configured to close the port that is currently in the forwarding state, and switch the forwarding link to the link corresponding to the identifier information of the port that the device 40 wants to use.
  • the network device provided in this embodiment can negotiate a link selection policy between the devices in the aggregation group, so that a link can be selected to select a normal link when the link is faulty.
  • the service in the backup mode is forwarded normally.
  • m backup mode the service transmission capacity can be guaranteed.
  • the specific link can be forced to be used on the basis of the negotiation link selection policy.
  • the method can ensure the reliability of the link negotiation of the aggregation group. By using the sync parameter, the link negotiation failure can be avoided.
  • a person skilled in the art can understand that all or part of the various methods of the above embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium, and the storage medium can include: A disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
  • the storage medium can include: A disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

Landscapes

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

Abstract

本发明实施例公开了一种链路协商方法、装置和系统,所提供的方法可以通过双方协商从而在聚合组中选择链路,包括第二设备接收第一设备的LACP 报文,所述LACP报文携带有第一设备所使用的链路选择策略;在聚合组有链路出现故障时,第二设备按照所述链路选择策略从聚合组中选择链路。

Description

聚合组链路协商方法、 装置和系统
技术领域
本发明涉及通信技术领域, 尤其涉及一种聚合组链路协商方法、 装置和系 统。
背景技术
LACP ( Link Aggregation Control Protocol, 链路聚合控制协议)是 IEEE 802.3ad标准中实现链路聚合的控制协议。 通过该协议, 可以自动实现设备之间 端口的聚合, 多个链路形成聚合组, 这个过程不需要用户干预; 而且还可以检 测端口的链路层故障, 在端口的链路层故障后触发保护倒换。 根据聚合组中链路在同一时刻参与转发的数量, 可以将 LACP分为负荷分 担和备份两种工作模式。 负荷分担模式, 同一时刻聚合组中所有链路都参与转发。 备份模式, 同一时刻聚合组中部分链路参与转发, 聚合组中其他链路处于 阻塞状态, 当处于转发的链路出现故障时, 其他链路可以立即参与转发, 从而 起到冗余保护的作用。 由于备份模式可以有效提高聚合组的可靠性, 因此, 在实际组网中, 很多 运营商都釆用 LACP的这种工作模式。 对于 LACP的备份模式, 在运行过程中, 如果处于转发状态的链路出现了 故障, 会引发 LACP在聚合组中进行重新选路, 此时, 备份链路会被选中并参 与转发; 但是当故障链路恢复时, 该如何选择转发链路, 存在两种不同的链路 选择策略。 第一种链路选择策略, 设备按照链路的优先级选择正常的链路, 在故障链 路恢复后, 设备在正常的链路中选择优先级高的链路作为转发链路。 这种链路 选择策略实现起来比较简单, 缺点是主用链路的每次状态变化都会引发链路切 换。
如图 1所示, 设备 10上有两个端口 (端口号分别为 a0和 al ) , 设备 15上有两 个端口 (端口号分别为 b0和 bl ) , a0与 b0相连, al与 bl相连, a0与 b0之间的链路 与 al与 bl之间的链路形成聚合组, 相互备份。 正常情况下, a0与 b0之间的链路为 转发链路, al与 bl之间的链路为备用链路, 备用链路处于阻塞状态。
假设 a0与 b0之间的链路发生故障, 则转发链路会切换到 al与 bl之间的链路, al与 bl之间的链路成为主用链路。 当 a0与 b0之间的链路恢复为正常时, 如果 a0 与 b0之间的链路的优先级高于 al与 bl之间的链路, 按照第一种链路选择策略, 设备 10和设备 15会选择 a0与 b0之间的链路作为转发链路, 阻塞 al与 bl之间的链 路, 聚合组的状态恢复到初始状态。
第二种链路选择策略, 设备不按照优先级在正常链路中选择, 而是以当前 使用的链路作为转发链路, 设备不再重新选路, 将从故障状态中恢复的链路设 置成阻塞状态, 这样可以减少一次链路切换。
如图 2所示, 设备 10上有两个端口 (端口号分别为 a0和 al ) , 设备 15上有两 个端口 (端口号分别为 b0和 bl ) , a0与 b0相连, al与 bl相连, a0与 b0之间的链路 与 al与 bl之间的链路形成聚合组, 相互备份。 正常情况下, a0与 b0之间的链路为 转发链路, al与 bl之间的链路为备用链路, 备用链路处于阻塞状态。
假设 a0与 b0之间的链路发生故障, 则转发链路会切换到 al与 bl之间的链路, al与 bl之间的链路成为主用链路。 当 a0与 b0之间的链路恢复为正常时,按照第二 种链路选择策略, 即使 a0与 b0之间的链路的优先级高于 al与 bl之间的链路,聚合 组还是会以当前使用的链路作为转发链路, 即以 al与 b 1之间的链路作为转发链 路。 上述两种链路选择策略, 各有优缺点。 在主用链路要优于备用链路的场 景下, 运营商希望主用链路故障恢复后优先使用主用链路, 此时应该使用第一 种链路选择策略。 对于主用链路和备用链路可用性差不多的情况, 由于第二种 链路选择策略能够减少链路切换次数, 更有利于业务数据转发的稳定, 特别是 在主用链路不稳定、 或者反复出现故障或者闪断时, 使用第一种链路选择策略 会引起 LACP聚合组的振荡。 但是如果使用第二种链路选择策略, 则能够保证转 发链路的稳定, 可以增强网络的健壮性。 设备制造商可以根据实际情况在上述两种链路选择策略中选择一种应用到 所生产的设备上, 这样会导致以下问题: 如图 3所示, 假设设备 10釆用的是第一种链路选择策略, 设备 15釆用的 是第二种链路选择策略, 如果主用链路( a0与 b0之间的链路)故障后又恢复, 由于 a0与 b0之间的链路的优先级高于 al与 bl之间的链路, 设备 10按照第一 种链路选择策略会选择 a0端口, 而设备 15会按照第二种链路选择策略选择 bl 端口, 这样会导致两条链路都不能正常转发业务。
发明内容
本发明一个实施例提供一种网络中链路协商方法, 所述网络包括第一设备 和第二设备, 所述第一设备和所述第二设备之间设置有多条链路, 所述多条链 路形成聚合组, 所述方法包括:
所述第二设备接收所述第一设备的第一通告报文, 所述第一通告报文携带 有所述第一设备所使用的链路选择策略;
在所述聚合组有链路从故障中恢复时, 所述第二设备按照所述链路选择策 略从所述聚合组中选择链路。 其中 , 所述链路选择策略包括: 按照链路的优先级选择正常的链路以及以 当前使用的链路作为转发链路中的一种。
进一步的, 所述方法第二设备接收所述第一设备的第一通告报文之后还包 括:
如果所述第二设备不支持所述第一通告报文中的链路选择策略, 则所述第 二设备向所述第一设备发送不支持所述第一通告报文中的链路选择策略的响应 消息, 以使得所述第一设备使用默认的链路选择策略。
进一步的, 所提供的方法还包括:
所述第二设备从所述聚合组的一条处于阻塞状态的链路接收所述第一设备 的第二通告报文, 从所述第二通告报文中获取 sync标识位信息, 如果所述 sync 标识位信息为真且所述第二设备为所述第一设备的从属设备, 则从所述第二通 告报文中获取所述第一设备欲使用的端口的标识信息, 将所述第二设备上对应 的端口设置成转发端口, 向所述第一设备发送设置成功的响应消息。 本发明一个实施例提供一种网络设备, 所述网络设备通过多条链路与所述 第一设备相连, 所述多条链路在所述网络设备和所述第一设备之间形成聚合组 , 所述网络设备包括:
数据收发器, 通过所述多条链路连接所述第一设备, 用于接收所述第一设 备的第一通告报文, 所述第一通告报文携带有所述第一设备所使用的链路选择 策略;
处理器, 用于在所述聚合组有链路从故障中恢复时, 按照所述链路选择策 略从所述聚合组中选择链路。
进一步的, 所述处理器还用于判断当前设备是否支持所述通告报文中的链 路选择策略, 如果不支持, 则通过所述数据收发器向所述第一设备发送不支持 所述第一通告报文中的链路选择策略的响应消息, 以使得所述第一设备使用默 认的链路选择策略。
进一步的, 所述数据收发器, 还用于从所述聚合组的一条处于阻塞状态的 链路接收所述第一设备的第二通告报文;
所述处理器, 还用于从所述第二通告报文中获取 sync标识位信息, 如果所 述 sync标识位信息为真且所述网络设备为所述第一设备的从属设备, 则从所述 第二通告报文中获取所述第一设备欲使用的端口的标识信息, 将所述网络设备 上对应的端口设置成转发端口, 通过所述数据收发器向所述第一设备发送设置 成功的响应消息。 本发明一个实施例提供一种网络设备, 所述网络设备通过多条链路与第二 设备相连, 所述多条链路形成聚合组; 所述网络设备包括:
数据收发器, 通过所述多条链路连接所述第二设备, 用于向所述第二设备 发送第一通告报文, 所述第一通告报文携带有所述网络设备所使用的链路选择 策略, 以使得所述第二设备在聚合组中有链路从故障中恢复时, 按照所述链路 选择策略在聚合组中选择链路。
进一步的, 所述网络设备还包括处理器;
所述数据收发器, 还用于接收所述第二设备不支持所述第一通告报文中所 携带的链路选择策略的响应消息 , 则所述处理器用于将所述网络设备的链路选 择策略设置成默认的链路选择策略。 本发明一个实施例提供一种链路协商系统, 所述系统包括第一设备和第二 设备, 所述第一设备和所述第二设备之间设置有多条链路, 所述多条链路形成 聚合组;
所述第一设备, 用于向所述第二设备发送第一通告报文, 所述第一通告报 文携带有所述第一设备所使用的链路选择策略;
所述第二设备, 用于在所述聚合组有链路出现故障时, 按照所述链路选择 策略从所述聚合组中选择链路。
进一步的, 所述第一设备还用于接收所述第二设备不支持所述通告报文中 的链路选择策略的响应消息, 使用默认的链路选择策略。
进一步的, 所述第二设备还用于从所述聚合组的一条处于阻塞状态的链路 接收所述第一设备的第二通告报文; 从所述第二通告报文中获取 sync标识位信 息,如果所述 sync标识位信息为真且所述第二设备为所述第一设备的从属设备, 则从所述第二通告报文中获取所述第一设备欲使用的端口的标识信息, 将所述 第二设备上对应的端口设置成转发端口, 向所述第一设备发送设置成功的响应 消息。 本发明实施例提供的方法、 装置和系统, 可以在存在聚合组的设备之间协 商链路选择策略, 从而可以在链路出现故障恢复时, 使用一致的链路选择策略 选择正常的链路, 从而保证 1 : 1备份模式中的业务正常转发, 对于 n: m备份 模式可以保证业务传输容量。 由于釆用了双方协商的机制, 可以提高链路切换 的稳定性。
附图说明
为了更清楚地说明本发明实施例的技术方案, 下面将对实施例或现有技术 描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅 是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动 的前提下, 还可以根据这些附图获得其他的附图。
图 1为现有技术中釆用第一种链路选择策略的选路过程示意图;
图 2为现有技术中釆用第二种链路选择策略的选路过程示意图;
图 3为现有技术中设备之间釆用不同的链路选择策略的选路过程示意图; 图 4为本发明实施例所基于的链路协商系统的架构图;
图 5为本发明实施例一提供的方法流程图;
图 6为本发明实施例一提供的 LACP报文的帧结构图;
图 7为本发明实施例一进一步提供的方法的流程图;
图 8为本发明实施例二提供的一种网络设备的结构的示意图; 以及 图 9为本发明实施例二提供的另外一种网络设备的结构的示意图。
具体实施例
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清 楚、 完整的描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
实施例一
本发明实施例提供了一种网络中的链路协商方法, 所提供的网络包括第一 设备和第二设备, 如图 4所示, 第一设备(设备 40 )和第二设备(设备 50 )之 间设置有多条链路 (包括 a0和 b0之间的链路 an与 bn之间的链路), 这 多条链路可以形成聚合组, 如果第一设备和第二设备之间的链路为 1 : 1备份模 式, 则第一设备和第二设备之间可以有两条链路。 这两条链路进行负荷分担或 者相互进行备份。 如果第一设备和第二设备之间的链路为 n: m备份模式, 则第 一设备和第二设备之间有 3条或者 3条以上的链路, 这些链路进行负荷分担或 者形成冗余备份。
如果第一设备和第二设备所选择的链路选择策略不一致, 对于 1 : 1备份模 式, 会导致两条链路都无法转发业务。 对于 n: m备份模式, 虽然可能不会导致 业务中断, 但是聚合组的转发容量变小了, 也会影响业务。
基于上述问题, 本实施例提供一种链路协商方法, 如图 5所示, 包括步骤: 步骤 500, 第一设备向第二设备发送第一通告报文, 第一通告报文中携带有 第一设备所使用的链路选择策略。
第一设备和第二设备之间往往存在主从设备关系, 那么第一通告报文可以 是由主设备发送, 发起的时机可以是在聚合组设置成功时或者主设备上电后由 主设备主动发送通告艮文, 从设备被动接收, 从而达到从设备和主设备使用相 同的链路选择策略的目的; 当然也可以是由从设备发起, 主设备被动接收的方 式, 比如从设备的端口出现了设定的事件的时候主动发起等, 这样也可以达到 从设备和主设备使用相同的链路选择策略的目的。 作为举例, 本实施例中第一 设备是主设备, 第二设备是第一设备的从设备。
第一设备所使用的链路选择策略可以是按照链路的优先级选择正常的链路 (为方便描述, 以下简称为第一链路选择策略) 以及以当前使用的链路作为转 发链路(为方便描述, 以下简称为第二链路选择策略) 中的一种, 其中, 第一 链路选择策略是指, 故障链路恢复正常后, 设备按照链路的优先级从正常的链 路中选择一条优先级高的链路; 第二链路选择策略是指, 故障链路恢复后, 不 切换的该恢复的链路, 而是以当前正在转发业务的链路作为主用链路。
具体的, 第一通告报文可以是 LACP报文, LACP报文的帧结构可以如图 6所示, 包括:
地址信息: 目的地址 (Destination Address) , 源地址 (Source Address); 长度 /类型 (Length/Type); 子类型(Subtype);
版本号 (Version Number);
主设备的 TLV以及主设备信息长度( Actor— Information— Length );
主设备信息(包括: 主设备系统 (Actor_System)、主设备关键值 (Actor_Key)、 主设备端口优先级( Actor_Port_Priorty )、 主设备端口 ( Actor_Port ) 以及主设备 状态 (Actor State) );
保留字段(Reserved );
从设备的 TLV以及从设备信息长度( Partner— Information— Length );
从设备信息 (包括: 从设备系统 (Partner— System)、 从设备关键值 (Partner Key), 从设备端口优先级(Partner _Port_Priorty )、 从设备端口 ( Partner _Port ) 以及从设备状态 (Partner State) ); 以及
保留字段( Reserved )。 第一设备所使用的链路选择策略可以是携带在 LACP报文的数据单元中, 比如携带在图 6的帧结构的保留字段中等, 可以是一个 3个字节 (Oct)的字符串 等, 本实施例中并不对链路选择策略在通告报文中的形式做限定。
通告报文还可以是其他的承载有 LACP协议的报文, 第一设备使用的链路 选择策略可以携带在这个报文的净荷中等, 本发明实施例并不对通告报文的具 体形态进行限定。
第一设备可以使用当前的转发链路发送第一通告报文。 步骤 510, 第二设备接收第一通告报文, 在聚合组有链路出现故障时, 按照 所述链路选择策略从聚合组中选择链路。
第二设备收到第一设备的链路选择策略后, 将链路选择策略设置成聚合组 的链路选择策略, 在聚合组中有链路出现故障时, 按照所述链路选择策略从聚 合组中选择链路。
在实际使用过程中, 如果第一设备和第二设备都支持两种链路选择策略, 则第二设备收到通告报文后, 第二设备需要将第一设备的链路选择策略作为自 己最终的链路选择策略。
如果第一设备和第二设备之间有一个不支持使用两种链路选择策略, 这种 情况需要在人工预先在第一设备和第二设备上配置一种相同的默认链路选择策 略, 这样在第一设备和第二设备之间有一个不支持使用两种链路选择策略时, 双方退回到默认的链路选择策略。 比如第一设备和第二设备上配置的默认的链 路选择策略为第一链路选择策略, 第一设备上发生了设定的事件需要将当前的 链路选择策略更换成第二链路选择策略时, 向第二设备发送通告报文, 第二设 备会向第一设备发送不支持第一链路选择策略的响应消息, 第一设备在收到该 响应消息时会使用默认的链路选择策略, 即第一链路选择策略。
如果在聚合组已经稳定的情况下, 作为主设备的第一设备的链路选择策略 发生变化时, 需要触发重新选路, 比如向第二设备发送 LACP报文等, 此时第 二设备应该使用第一设备的链路选择策略。
如果在聚合组已经稳定的情况下, 作为从设备的第二设备的链路选择策略 发生变化, 第二设备需要自动切换到和第一设备一致的链路选择策略, 可以不 触发重新选路。 本实施例提供的方法, 可以在存在聚合组的设备之间协商链路选择策略, 从而可以在链路出现故障恢复时, 使用一致的链路选择策略选择正常的链路, 从而保证 1 : 1备份模式中的业务正常转发, 对于 n: m备份模式可以保证业务 传输容量。 由于釆用了双方协商的机制, 可以提高链路切换的稳定性。
在另一个实施例中, 所提供的方法还可以如图 7所示, 包括:
步骤 520,第二设备从聚合组的一条处于阻塞状态的链路接收第一设备的第 二通告报文, 从第二通告报文中获取 sync标识位信息。
第二通告报文可以是 LACP报文获取其他承载有 LACP协议的报文, 如果 是从处于阻塞状态的链路中接收到的第二通告报文, 则从第二通告报文中提取 sync标识位信息, sync标识位信息可以携带在 LACP报文的 Actor— State字段中, 对于其他承载有 LACP协议的报文, 可以是携带在净荷中。
Sync标识位信息用于标识是否需要以当前链路作为转发链路。
步骤 530, 判断 sync标志位信息是否为真, 如果为真则执行步骤 540, 否则 丟弃第二通告报文。
步骤 540,第二设备从第二通告报文中获取第一设备欲使用的端口的标识信 息, 将第二设备上对应的端口设置成转发端口。
如果第二通告报文为 LACP报文的情况, 第一设备欲使用的端口的标识信 息可以携带在 Actor— Port字段中, 对于其他承载有 LACP协议的报文, 可以是 携带在两端设定的位置。
第二设备需要获取本设备上与第一设备欲使用的端口的标识信息对应的端 口的标识信息。
具体的, 由于第二设备上保存有第一设备上的端口的标识信息与第二设备 上的端口的标识信息的对应关系, 第二设备可以从这一对应关系中获取本设备 上与第一设备欲使用的端口的标识信息对应的端口的标识信息。 本实施例中端 口的标识信息可以是端口号、 端口在设备上的框位 /槽位号中的一种或多种。
第二设备获取对应的端口的标识信息后, 对于 n: m备份模式, 第二设备将 该端口设置成转发状态; 对于 1 : 1备份模式, 第二设备将该端口设置成转发状 态, 还需要将另一端口设置成阻塞状态。
步骤 550 , 第二设备向第一设备发送设置成功的响应消息。
第一设备收到设置成功响应消息后, 将欲使用的端口设置成转发状态, 对 于 1 : 1备份模式, 第一设备还需要将另一端口设置成阻塞状态。
本实施例提供的方法, 通过发送强制使用阻塞链路的通告报文, 可以在协 商链路选择策略的基础上结合强制使用特定链路的方式, 可以确保聚合组链路 协商的可靠性, 通过使用 sync参数, 可以杜绝链路协商失败的情况。 实施例二
本实施例提供一种网络设备, 可以是接入设备、 路由设备、 或者交换机等, 其中接入设备可以是 DSLAM ( Digital Subscriber Line Access Multiplexer, 数字 用户线接入复用器)、 OLT ( Optical Line Terminal, 光线路终端)、 或者 MS AN ( Multiservice Access Node , 多业务接入节点)等。
如图 8所示, 所提供的网络设备 40通过多条链路与设备 50相连, 多条链 路形成聚合组。
网络设备 40包括: 数据收发器 80, 与所述多条链路相连, 通过所述多条链路连接设备 50。 数据收发器 80可以用于向设备 50发送第一通告报文, 第一通告报文携带 有网络设备 40使用的链路选择策略, 链路选择策略可以是上面实施例所描述的 第一链路选择策略和第二链路选择策略中的一种。
数据收发器 80 发送的第一通告报文可以是 LACP报文或者其他承载有 LACP协议的报文, 网络设备 40所使用的链路选择策略可以携带在 LACP报文 的数据单元中, 或者携带在其他承载有 LACP协议的报文的净荷中等, 具体可 以参考上面实施例的描述, 在此不再阐述。
网络设备 40还可以包括处理器 82, 用于构造第一通告报文, 在聚合组设置 成功或者上电时通过数据收发器 80发送第一通告报文。
处理器 82具体可以包括转发逻辑 821和 CPU ( Central Processing Unit, 中 央处理器) 823 , 转发逻辑 821用于构造第一通告报文, 包括获取第一通告报文 中的地址信息、 以及在第一通告报文中插入网络设备 40所使用的链路选择策略 等。
CPU823 可用于对事件进行监控以及控制转发逻辑 821 发送第一通告报文 等, CPU监控的事件可以包括聚合组设置成功、 上电或者其他设定的事件等。 转发逻辑 821 还用于构造第二通告报文, 构造的第二通告报文携带有网络 设备 40欲使用的端口的标识信息以及为真的 sync标识位信息。
CPU823还用于控制转发逻辑 821将第二通告报文通过欲使用的端口发送给 设备 50, 在数据收发器 80收到了设备 50的设置成功的响应消息后, 将欲使用 的端口设置成转发端口。 数据收发器 80还用于接收设备 50的不支持第一通告报文中所携带的链路 选择策略的响应消息。 则处理器 82还用于将网络设备 40的链路选择策略设置 成默认的链路选择策略, 具体的, 处理器 82中的 CPU823将网络设备 40的链 路选择策略设置成默认的链路选择策略。
网络设备 40还可以包括存储器 84、 业务接口 86以及电源等。
存储器 84, 用于存储网络设备 40和设备 50的地址信息, 如 IP地址、 MAC ( Media Access Control, 媒体访问控制) 地址以及 VLAN ( Virtual Local Area Network, 虚拟局域网) 中的一个或多个。
存储器 84还用于存储默认的链路选择策略等。
业务接口 86, 用于对业务进行处理, 如进行协议转换等, 业务接口 84可以 是三模自适应的接口, 三摸包括: GE ( Gigabit Ethernet, 千兆以太网)、 GPON ( gigabit-capable passive optical network,千兆比特无源光网络 )、 EPON ( Ethernet passive optical network , 以太网无源光网络)。
电源用于给网络设备 40提供电源, 可以通过电源接口连接交流电或者直流 电等。 本实施例还提供一种网络设备, 如图 9所示, 所提供的网络设备 50可以通 过多条链路连接设备 40 , 多条链路可以形成聚合组。
网络设备 50可以是接入设备、 路由设备或者交换机等, 可以包括数据收发 器 90和处理器 92, 还可以包括存储器 94、 业务接口 96以及电源等。
其中, 数据收发器 90 , 用于通过所述多条链路连接设备 40 , 用于接收设备 40的第一通告报文, 第一通告报文携带有设备 40所使用的链路选择策略。 第一 通告报文中携带的链路选择策略可以是上面实施例描述的第一链路选择策略或 者第二链路选择策略。第一通告报文可以是 LACP报文,或者其他承载有 LACP 协议的报文等, 作为举例, 设备 40所使用的链路选择策略可以携带在 LACP报 文的数据单元中、 或者携带在其他承载有 LACP协议的报文的净荷中等。
处理器 92, 用于在聚合组有链路出现故障时, 按照第一通告报文中的链路 选择策略从聚合组中选择链路。
处理器 92还用于在判定不支持第一通告报文中的链路选择策略时, 使用默 认的链路选择策略, 通过数据收发器 90向设备 40发送不支持第一通告报文中 的链路选择策略的响应消息。
存储器 94, 用于存储默认的链路选择策略, 以及存储第一通告报文中的链 路选择策略等。 存储器 94可以是闪存盘、 只读存储器 (Read-Only Memory , ROM )、 随机存取器( Random Access Memory , RAM )、 磁盘以及光盘中的一种 或多种。
业务接口 96, 用于对业务进行处理, 如进行协议转换等, 业务接口 96可以 是三模自适应的接口等。 电源, 用于给网络设备 50提供电源, 可以通过电源接口连接交流电或者直 流电等。
本实施例提供的数据收发器 90还用于接收设备 40的第二通告消息, 第二 通告消息通过聚合组中的一条处于阻塞状态的链路接收, 则所述处理器 92用于 根据第二通告消息中的主从设备信息识别网络设备 50和设备 40之间的主从关 系,在识别出网络设备 50为从设备时, 判断第二通告报文中的 sync标识位信息 是否为真,如果为是,则提取第二通告报文中设备 40欲使用的端口的标识信息, 将本设备上对应的端口打开, 通过该打开的端口向设备发送设置成功的响应消 息。
处理器 92具体可以是从存储器 94中获取设备 40欲使用的端口的标识信息 在网络设备 50上对应的端口的标识信息, 存储器 94中存储有设备 40上的端口 的标识信息和网络设备 50上的端口的标识信息的对应关系。
如果聚合组属于 1 : 1备份模式, 则处理器 92还用于关闭当前处于转发状 态的端口, 将转发链路切换到设备 40欲使用的端口的标识信息所对应的链路。
本实施例提供的网络设备, 可以在存在聚合组的设备之间协商链路选择策 略, 从而可以在链路出现故障恢复时, 使用一致的链路选择策略选择正常的链 路, 从而保证 1 : 1备份模式中的业务正常转发, 对于 n: m备份模式可以保证 业务传输容量, 同时通过发送强制使用阻塞链路的通告报文, 可以在协商链路 选择策略的基础上结合强制使用特定链路的方式, 可以确保聚合组链路协商的 可靠性, 通过使用 sync参数, 可以杜绝链路协商失败的情况。 本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤 是可以通过程序来指令相关的硬件来完成, 该程序可以存储于计算机可读存储 介质中,存储介质可以包括: 闪存盘、只读存储器(Read-Only Memory , ROM )、 随机存取器 ( Random Access Memory, RAM ), 磁盘或光盘等。
以上对本发明实施例所提供的数据处理方法、 设备和系统进行了详细介绍, 一般技术人员, 依据本发明的思想, 在具体实施方式及应用范围上均会有改变 之处, 综上所述, 本说明书内容不应理解为对本发明的限制。

Claims

权利要求书
1、 一种网络中的链路协商方法, 其特征在于, 所述网络包括第一设备和第 二设备, 所述第一设备和所述第二设备之间设置有多条链路, 所述多条链路形 成聚合组, 所述方法包括:
所述第二设备接收所述第一设备的第一通告报文, 所述第一通告报文携带 有所述第一设备所使用的链路选择策略;
在所述聚合组有链路从故障中恢复时, 所述第二设备按照所述链路选择策 略从所述聚合组中选择链路。
2、 根据权利要求 1所述的方法, 其特征在于, 所述链路选择策略包括: 按 照链路的优先级选择正常的链路以及以当前使用的链路作为转发链路中的一 种。
3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述方法第二设备接收所 述第一设备的第一通告报文之后还包括:
如果所述第二设备不支持所述第一通告报文中的链路选择策略, 则所述第 二设备向所述第一设备发送不支持所述第一通告报文中的链路选择策略的响应 消息, 以使得所述第一设备使用默认的链路选择策略。
4、根据权利要求 1-3任意一项所述的方法, 其特征在于, 所述第一通告报文 为链路聚合控制协议 LACP报文, 所述链路选择策略携带在所述 LACP报文的保 留字段中。
5、 根据权利要求 1-4任意一项所述的方法, 其特征在于, 所述方法还包括: 所述第二设备从所述聚合组的一条处于阻塞状态的链路接收所述第一设备 的第二通告报文, 从所述第二通告报文中获取 sync标识位信息, 如果所述 sync 标识位信息为真且所述第二设备为所述第一设备的从属设备, 则从所述第二通 告报文中获取所述第一设备欲使用的端口的标识信息, 将所述第二设备上对应 的端口设置成转发端口, 向所述第一设备发送设置成功的响应消息。
6、 根据权利要求 5所述的方法, 其特征在于, 所述第二设备上保存有所述 第一设备上的端口的标识信息与所述第二设备上的端口的标识信息的对应关 系, 则所述将所述第二设备上对应的端口设置成转发端口之前还包括: 利用所述对应关系获取所述第一设备欲使用的端口的标识信息在所述第二 设备上所对应的端口的标识信息。
7、 一种网络设备, 其特征在于, 所述网络设备通过多条链路与所述第一设 备相连, 所述多条链路在所述网络设备和所述第一设备之间形成聚合组, 所述 网络设备包括:
数据收发器, 通过所述多条链路连接所述第一设备, 用于接收所述第一设 备的第一通告报文, 所述第一通告报文携带有所述第一设备所使用的链路选择 策略;
处理器, 用于在所述聚合组有链路从故障中恢复时, 按照所述链路选择策 略从所述聚合组中选择链路。
8、 根据权利要求 7所述的网络设备, 其特征在于,
所述处理器还用于判断当前设备是否支持所述通告报文中的链路选择策 略, 如果不支持, 则通过所述数据收发器向所述第一设备发送不支持所述第一 通告报文中的链路选择策略的响应消息, 以使得所述第一设备使用默认的链路 选择策略。
9、 根据权利要求 7或 8所述的网络设备, 其特征在于,
所述数据收发器, 还用于从所述聚合组的一条处于阻塞状态的链路接收所 述第一设备的第二通告报文;
所述处理器,还用于从所述第二通告报文中获取 sync标识位信息,如果所述 sync标识位信息为真且所述网络设备为所述第一设备的从属设备,则从所述第二 通告报文中获取所述第一设备欲使用的端口的标识信息, 将所述网络设备上对 应的端口设置成转发端口, 通过所述数据收发器向所述第一设备发送设置成功 的响应消息。
10、 根据权利要求 9所述的网络设备, 其特征在于, 所述网络设备还包括存 储器, 所述存储器用于存储所述第一设备上的端口的标识信息与所述网络设备 上的端口的标识信息的对应关系, 则所述处理器还用于利用所述对应关系获取 所述第一设备欲使用的端口的标识信息在所述网络设备上所对应的端口的标识 信息。
11、根据权利要求 7-10任意一项所述的网络设备, 其特征在于, 所述网络设 备为接入设备、 路由设备或者交换机。
12、 一种网络设备, 其特征在于, 所述网络设备通过多条链路与第二设备 相连, 所述多条链路形成聚合组; 所述网络设备包括:
数据收发器, 通过所述多条链路连接所述第二设备, 用于向所述第二设备 发送第一通告报文, 所述第一通告报文携带有所述网络设备所使用的链路选择 策略, 以使得所述第二设备在聚合组中有链路从故障中恢复时, 按照所述链路 选择策略在聚合组中选择链路。
13、 根据权利要求 12所述的网络设备, 其特征在于, 所述网络设备还包括 处理器;
所述数据收发器, 还用于接收所述第二设备不支持所述第一通告报文中所 携带的链路选择策略的响应消息 , 则所述处理器用于将所述网络设备的链路选 择策略设置成默认的链路选择策略。
14、 根据权利要求 12所述的网络设备, 其特征在于, 所述网络设备还包括 处理器;
所述数据收发器还用于向所述第二设备发送第二通告报文, 所述第二通告 报文携带有所述网络设备欲使用的端口的标识信息以及为真的 sync标识位信息; 以及接收所述第二设备的设置成功的响应消息;
则所述处理器, 用于打开所述欲使用的端口。
15、 根据权利要求 12-14任意一项所述的网络设备, 其特征在于, 所述网络 设备为接入设备、 路由设备或者交换机。
16、 一种链路协商系统, 其特征在于, 所述系统包括第一设备和第二设备, 所述第一设备和所述第二设备之间设置有多条链路, 所述多条链路形成聚合组; 所述第一设备, 用于向所述第二设备发送第一通告报文, 所述第一通告报 文携带有所述第一设备所使用的链路选择策略;
所述第二设备, 用于在所述聚合组有链路出现故障时, 按照所述链路选择 策略从所述聚合组中选择链路。
17、 根据权利要求 16所述的系统, 其特征在于, 所述第一设备还用于接收 所述第二设备不支持所述通告报文中的链路选择策略的响应消息, 使用默认的 链路选择策略。
18、 根据权利要求 16或 17所述的系统, 其特征在于, 所述第二设备还用 于从所述聚合组的一条处于阻塞状态的链路接收所述第一设备的第二通告报 文; 从所述第二通告报文中获取 sync标识位信息, 如果所述 sync标识位信息为 真且所述第二设备为所述第一设备的从属设备, 则从所述第二通告报文中获取 所述第一设备欲使用的端口的标识信息, 将所述第二设备上对应的端口设置成 转发端口, 向所述第一设备发送设置成功的响应消息。
PCT/CN2012/087872 2012-12-28 2012-12-28 聚合组链路协商方法、装置和系统 WO2014101125A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201280018044.6A CN104040973B (zh) 2012-12-28 2012-12-28 聚合组链路协商方法、装置和系统
PCT/CN2012/087872 WO2014101125A1 (zh) 2012-12-28 2012-12-28 聚合组链路协商方法、装置和系统

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/087872 WO2014101125A1 (zh) 2012-12-28 2012-12-28 聚合组链路协商方法、装置和系统

Publications (1)

Publication Number Publication Date
WO2014101125A1 true WO2014101125A1 (zh) 2014-07-03

Family

ID=51019748

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/087872 WO2014101125A1 (zh) 2012-12-28 2012-12-28 聚合组链路协商方法、装置和系统

Country Status (2)

Country Link
CN (1) CN104040973B (zh)
WO (1) WO2014101125A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016177190A1 (zh) * 2015-07-27 2016-11-10 中兴通讯股份有限公司 自协商lacp协议参考系统和参考端口的方法及装置
CN111740917A (zh) * 2020-03-23 2020-10-02 北京京东尚科信息技术有限公司 一种报文转发方法和装置
CN112350853A (zh) * 2020-10-21 2021-02-09 杭州迪普科技股份有限公司 一种网络设备主备切换的方法、装置、存储介质及设备

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114175750A (zh) * 2019-05-24 2022-03-11 马维尔亚洲私人有限公司 使用若干通信链路的wlan中的节能和组寻址帧
CN110784339B (zh) * 2019-10-09 2022-08-26 杭州迪普科技股份有限公司 Lacp报文超时的故障检测方法、装置、电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1983889A (zh) * 2005-12-16 2007-06-20 华为技术有限公司 网络业务传输方法及系统
US20100054262A1 (en) * 2008-08-27 2010-03-04 Fujitsu Limited Method and apparatus for setting communication paths in a network
CN102388581A (zh) * 2011-06-29 2012-03-21 华为技术有限公司 参考链路协商的方法、装置和系统
CN102801630A (zh) * 2012-08-23 2012-11-28 杭州华三通信技术有限公司 一种虚连接实现的方法和设备

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1236632C (zh) * 2003-09-29 2006-01-11 中兴通讯股份有限公司 多链路点到点协议链路协商方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1983889A (zh) * 2005-12-16 2007-06-20 华为技术有限公司 网络业务传输方法及系统
US20100054262A1 (en) * 2008-08-27 2010-03-04 Fujitsu Limited Method and apparatus for setting communication paths in a network
CN102388581A (zh) * 2011-06-29 2012-03-21 华为技术有限公司 参考链路协商的方法、装置和系统
CN102801630A (zh) * 2012-08-23 2012-11-28 杭州华三通信技术有限公司 一种虚连接实现的方法和设备

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016177190A1 (zh) * 2015-07-27 2016-11-10 中兴通讯股份有限公司 自协商lacp协议参考系统和参考端口的方法及装置
CN111740917A (zh) * 2020-03-23 2020-10-02 北京京东尚科信息技术有限公司 一种报文转发方法和装置
CN112350853A (zh) * 2020-10-21 2021-02-09 杭州迪普科技股份有限公司 一种网络设备主备切换的方法、装置、存储介质及设备
CN112350853B (zh) * 2020-10-21 2022-09-30 杭州迪普科技股份有限公司 一种网络设备主备切换的方法、装置、存储介质及设备

Also Published As

Publication number Publication date
CN104040973B (zh) 2017-05-24
CN104040973A (zh) 2014-09-10

Similar Documents

Publication Publication Date Title
EP3691185B1 (en) Method for processing message, device, and system
EP2878105B1 (en) System and method using rsvp hello suppression for graceful restart capable neighbors
CN102546222B (zh) 备份系统及故障检测处理方法
WO2007115493A1 (fr) Procédé, dispositif et système pour réaliser la commutation dans le réseau à double anneau de réseau vpls
WO2012000234A1 (zh) 链路间快速切换的方法、装置和系统
WO2007062559A1 (fr) Procede et passerelle de restitution de service au moment de la permutation entre passerelles pilote et asservie
WO2011157151A2 (zh) 实现容灾备份的方法、设备及系统
WO2012167624A1 (zh) 一种故障处理方法、汇聚节点及光网络保护系统
JP6056089B2 (ja) 二台のコンピュータによるホットスタンバイの方法、機器およびシステム
WO2014059844A1 (zh) 分布式弹性网络互连中网关动态切换方法和装置
CN102364900B (zh) 一种irf系统中基于frr的数据传输方法和设备
WO2008046358A1 (fr) Procédé et dispositif destinés à réaliser une pénétration d'un statut de liaison de réseau point à multipoint
WO2012130034A1 (zh) 一种vpls快速重路由方法和设备
WO2008083590A1 (fr) Procédé et appareil de convergence rapide d'un service point à point
JP2013519268A (ja) データ転送方法、データ転送装置及びデータ転送システム
CN101364927A (zh) 实现虚拟专用网vpn故障恢复的方法、设备及系统
WO2012171378A1 (zh) 解决vpls接入l3故障切换导致断流的方法及路由器
WO2014101125A1 (zh) 聚合组链路协商方法、装置和系统
WO2015070383A1 (zh) 一种链路聚合的方法、装置和系统
EP2254289B1 (en) Method, device, and system for establishing label switching path in fast rerouting switching
Papán et al. Overview of IP fast reroute solutions
WO2012126412A2 (zh) 以太网环保护倒换方法、网络设备及系统
WO2011140890A1 (zh) 实现快速重路由的方法及装置
WO2011113395A2 (zh) 一种负载分担方法和装置
WO2008064612A1 (fr) Procédé, dispositif et système permettant d'effectuer un reroutage rapide dans un réseau mpls

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

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

Country of ref document: EP

Kind code of ref document: A1