WO2020259121A1 - 一种实现流量切换的方法、装置及系统 - Google Patents

一种实现流量切换的方法、装置及系统 Download PDF

Info

Publication number
WO2020259121A1
WO2020259121A1 PCT/CN2020/090593 CN2020090593W WO2020259121A1 WO 2020259121 A1 WO2020259121 A1 WO 2020259121A1 CN 2020090593 W CN2020090593 W CN 2020090593W WO 2020259121 A1 WO2020259121 A1 WO 2020259121A1
Authority
WO
WIPO (PCT)
Prior art keywords
lag
virtual channel
port
member port
lag member
Prior art date
Application number
PCT/CN2020/090593
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 中兴通讯股份有限公司
Publication of WO2020259121A1 publication Critical patent/WO2020259121A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/245Link aggregation, e.g. trunking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Definitions

  • the embodiment of the present invention relates to but not limited to MC-LAG (Multi-Chassis Link Aggregation Group, multi-chassis link aggregation group) technology, and more specifically relates to a method, device and system for realizing traffic switching.
  • MC-LAG Multi-Chassis Link Aggregation Group, multi-chassis link aggregation group
  • VXLAN Virtual Extensible Local Area Network
  • MC-LAG Dual network cards forward traffic at the same time, and there are problems such as traffic forwarding redundancy and MAC (Media Access Control, media access control) drift, which leads to the MC-LAG technology.
  • MC-LAG technology is a cross-device link aggregation technology that allows two access devices to negotiate link aggregation with the accessed device in the same state. From the perspective of the accessed device, it is like a The access device has established a link aggregation relationship, so that the problems of traffic forwarding redundancy and MAC drift are eliminated.
  • MC-LAG also avoids loop problems through the port isolation mechanism.
  • MC-LAG uses two or more devices for link aggregation.
  • the devices synchronize their respective MAC, ARP (Address Resolution Protocol, address resolution protocol) tables and other information through peer-link (peer-to-peer link) links.
  • ARP Address Resolution Protocol, address resolution protocol
  • MC-LAG member port failure or single device failure can realize the backup function, which improves the stability of data communication.
  • the MC-LAG member port on Switch B fails, the MAC address will be learned on the peer-link port, and traffic will be forwarded to Switch A through the peer-link port.
  • the traditional MC-LAG technology has the problem of slow link switching during the failure process, especially when there are a large number of MAC addresses that need to be synchronized, the convergence speed is slow, packet loss is prone to occur, and it is difficult to meet the needs of some customers in the market.
  • the embodiment of the present invention provides a method for realizing traffic switching, which is applied to a MC-LAG device of a multi-chassis link aggregation group, including: detecting the status of an MC-LAG member port on the MC-LAG device; When the MC-LAG member port fails, remove the MC-LAG member port from the pre-created virtual channel, and add the peer-link port on the MC-LAG device to the virtual channel; The peer-link port in the virtual channel is used as the traffic forwarding exit.
  • the embodiment of the present invention also provides a device for realizing traffic switching, which is applied to the MC-LAG equipment of a multi-chassis link aggregation group, and includes: a fault detection module for detecting the MC-LAG member ports on the MC-LAG equipment
  • the virtual channel module is used to remove the MC-LAG member port from the pre-created virtual channel when the MC-LAG member port fails, and remove the peer-link port on the MC-LAG device Join the virtual channel; traffic forwarding module, used to use the peer-link port in the virtual channel as the traffic forwarding exit.
  • the embodiment of the present invention also provides a system for realizing traffic switching, including: a local MC-LAG device and a peer MC-LAG device connected through a peer-link; the local MC-LAG device, Used to detect the status of the first MC-LAG member port on the local MC-LAG device.
  • the opposite MC-LAG device is used to detect the status of the second MC-LAG member port on the opposite MC-LAG device, and create a second MC-LAG member port when the second MC-LAG member port is normal Virtual channel, adding the second MC-LAG member port on the opposite MC-LAG device to the second virtual channel, and learning the MAC entry of the second MC-LAG member port;
  • the second MC-LAG member port in the second virtual channel serves as the traffic forwarding exit.
  • the embodiment of the present invention also provides a device for realizing traffic switching, which is applied to the MC-LAG equipment of a multi-chassis link aggregation group, and includes: a memory, a processor, and a memory and a processor that are stored in the memory and can run on the processor When the computer program is executed by the processor, the method for realizing traffic switching is realized.
  • the embodiment of the present invention also provides a computer-readable storage medium having an information processing program stored on the computer-readable storage medium, and when the information processing program is executed by a processor, the steps of the foregoing method for realizing traffic monitoring are implemented.
  • Figure 1 is a schematic diagram of the flow recovery mechanism when an existing MC-LAG member port fails
  • FIG. 2 is a schematic flowchart of a method for implementing traffic switching according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of an MC-LAG architecture provided by an embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of a method for implementing traffic switching according to another embodiment of the present invention.
  • FIG. 5 is a schematic diagram of the existing aggregated link having multiple member ports on a single SW and some of them fail;
  • Fig. 6 is a schematic diagram of failure of MC-LAG member ports on two existing SWs
  • FIG. 7 is a schematic structural diagram of a device for implementing traffic switching provided by an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a device for implementing traffic switching according to another embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a system for implementing traffic switching provided by an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of an existing server with dual-homing and single-homing access to the MC-LAG system at the same time;
  • FIG. 11 is a schematic structural diagram of a device for implementing traffic switching provided by an embodiment of the present invention.
  • FIG 2 is a schematic flow chart of a method for implementing traffic switching provided by an embodiment of the present invention. The method is applied to a MC-LAG device of a multi-chassis link aggregation group. As shown in Figure 2, it includes:
  • Step 201 Detect the status of the MC-LAG member port on the MC-LAG device
  • Step 202 When the MC-LAG member port fails, remove the MC-LAG member port from the pre-created virtual channel, and add the peer-link port on the MC-LAG device to the virtual channel ;
  • Step 203 Use the peer-link port in the virtual channel as the traffic forwarding exit.
  • the method before the MC-LAG member port fails, the method also includes:
  • the MC-LAG member port in the virtual channel is used as the traffic forwarding exit.
  • the method also includes:
  • the MC-LAG member port in the virtual channel is used as the traffic forwarding exit.
  • the method before adding the MC-LAG member port to the virtual channel, the method further includes:
  • the method further includes:
  • the method further includes:
  • FIG. 3 is a schematic diagram of an MC-LAG architecture provided by an embodiment of the present invention, as shown in FIG. 3,
  • a cross-frame link aggregation connection is established between CE (Customer Edge) 1 and CE2 through MC-LAG.
  • CE1 is connected to SW (switch) 1 and SW2 through the aggregation interface smartgroup1
  • CE2 is connected to SW1 and SW2 through smartgroup2.
  • SW2 connection hereinafter referred to as sg1 and sg2
  • SW1 and SW2 are connected through a peer-link link
  • CE1 and CE2 play known unicasts to each other, changing the source MAC and destination MAC, the actual application scenario may vary greatly, and the flow is automatic Hash, load sharing is between the two member ports of sg.
  • port 1 (port1) on SW1 learns MAC1
  • port 3 (port3) learns MAC3
  • port 2 (port2) learns MAC2 on SW2,
  • port 4 (port4) learns To MAC4.
  • the message sent from CE1 with the destination MAC of MAC3 may go to SW1 or SW2.
  • the MAC table on SW1 is synchronized on SW2, and the MAC3 learns on its own MC-LAG member port, port 4, so packets arriving at SW2 can also be forwarded to CE2 normally.
  • the message whose destination MAC is MAC4 will be forwarded from port 4 on SW2 or port 3 on SW1, and the message on the CE2 side is the same.
  • the MC-LAG member port port 3 fails and the link is down.
  • CE1 does not perceive the failure of the CE2 side link and still sends a message to CE2.
  • the forwarding of this message will be affected.
  • the MC-LAG system has one Sets a link failure handling mechanism to ensure that traffic can be forwarded normally. The convergence process is as follows:
  • Step 1 SW1 clears the MAC learned by the failed port, that is, the MAC3 and MAC4 learned by port 3 are deleted.
  • the MC-LAG system triggers a MAC table entry synchronization process, and SW2 synchronizes the MAC table entries of CE2 to SW1.
  • the outgoing interface is the peer-link port;
  • Step 2 After SW1 receives the traffic accessing CE2, it looks up the MAC table entry, and passes the traffic to SW2 through the peer-link port. After the traffic reaches SW2, it looks up the MAC table entry and forwards it from port 4 to complete the convergence process;
  • Step 3 When the member port failure recovers, the MC-LAG system will trigger another MAC table entry synchronization process to restore the outbound directions of MAC3 and MAC4 on SW1 to normal ports.
  • the MAC synchronization process in step 1 and step 3 is triggered by the MC-LAG platform (command) in MC-LAG.
  • the convergence time of the tangent and switchback of 1K entries is about 50ms, but with the increase of MAC addresses, the convergence time shows an increasing trend.
  • the convergence time of 32K entries reaches 200ms, and the convergence time of 256K entries reaches the second level.
  • the failure recovery process is slow, and there is obvious packet loss, which does not meet the requirements of some customers.
  • the embodiment of the present invention provides a method for implementing traffic switching, which is applied to the MC-LAG system shown in FIG. 3. As shown in Figure 4, the method includes:
  • Step 401 When the link is normal, create a virtual channel on SW1;
  • the virtual channel can learn the MAC address, and the device uses the virtual channel as the effective outbound port of the MAC table entry. After the traffic reaches the virtual channel, it is no longer addressed and can be directly forwarded from the actual port mapped in the virtual channel.
  • Step 402 Add the MC-LAG member port on SW1 to the virtual channel, and learn the MAC table entries of the MC-LAG member port;
  • the MC-LAG member port on SW1, namely port3 is added to the virtual channel.
  • the port added to the virtual channel is not the outbound port of the MAC.
  • the MAC learned by itself will age in real time and synchronize to Virtual channel. In this way, the MAC that is synchronized to the MC-LAG port on the peer-link port will naturally be learned from the virtual channel;
  • Step 403 Detect the status of the MC-LAG member port on SW1;
  • step 404 When the MC-LAG member port on SW1 is normal, go to step 404; when it fails, go to step 405; when it recovers, go to step 406:
  • Step 404 Use the MC-LAG member port in the virtual channel as the traffic forwarding outlet;
  • Step 405 Remove the MC-LAG member port from the virtual channel, add the peer-link port to the virtual channel, and use the peer-link port in the virtual channel as the traffic forwarding exit;
  • the MC-LAG member port on SW1, namely port3, fails, the MC-LAG member port is removed from the virtual channel and the peer-link port is added to the virtual channel. Because the MAC address is learned on the virtual channel and There is a peer-link port in the virtual channel as the actual forwarding port, so the traffic can be forwarded normally;
  • Step 406 Remove the peer-link port from the virtual channel, add the MC-LAG member port to the virtual channel; use the MC-LAG member port in the virtual channel as the traffic forwarding exit
  • the MC-LAG member port on SW1, namely port3 fails to recover, the MC-LAG member port is added to the virtual channel, and the peer-link port is removed, and the MC-LAG member port in the virtual channel is used as the actual forwarding port , The traffic can be forwarded normally.
  • a virtual channel can also be created on SW2, and the process is similar to the above process and will not be repeated.
  • the two devices of MC-LAG have their own virtual channels, and the traffic is forwarded through the virtual channels.
  • the normal forwarding of traffic is realized by switching the mapped ports in the virtual channel.
  • the technical solution provided in this embodiment proposes a concept of "virtual channel", which does not completely rely on the MAC synchronization function.
  • sg2 or peer-link ports are added to the virtual channel Adding a port to the underlying implementation of the virtual channel is obviously faster than synchronizing a large number of MAC entries. Therefore, the technical solution provided by the embodiment of the present invention can greatly improve the convergence speed of traffic recovery in the MC-LAG member port failure scenario.
  • the MC-LAG member port failure described in this embodiment refers to the failure of the entire smart group as the MC-LAG member port on a single machine frame, that is, a single SW.
  • the smart group aggregate chain Road
  • the traffic of this type of failure will be automatically forwarded from other member ports of the smart group in this frame; as shown in Figure 6
  • the MC-LAG member ports on the two machine frames, namely the two SWs fail, the system cannot forward traffic at all, and this does not belong to the failure described in the embodiment of the present invention.
  • Fig. 7 is a schematic structural diagram of a device for implementing traffic switching provided by an embodiment of the present invention.
  • the device is applied to a MC-LAG device of a multi-chassis link aggregation group. As shown in Fig. 7, it includes:
  • a fault detection module for detecting the status of the MC-LAG member port on the MC-LAG device
  • the virtual channel module is used to remove the MC-LAG member port from the pre-created virtual channel when the MC-LAG member port fails, and add the peer-link port on the MC-LAG device to the Narration channel
  • the traffic forwarding module is used to use the peer-link port in the virtual channel as the traffic forwarding exit.
  • the virtual channel module is also used to add the MC-LAG member port to the virtual channel;
  • the traffic forwarding module is also used to use the MC-LAG member port in the virtual channel as a traffic forwarding exit.
  • the virtual channel module is also used to remove the peer-link port from the virtual channel and add the MC-LAG member port to the virtual channel ;
  • the traffic forwarding module is also used to use the MC-LAG member port in the virtual channel as a traffic forwarding exit.
  • the virtual channel module is also used to create a virtual channel and learn the MAC table entries of the MC-LAG member port.
  • the virtual channel module is also used to clear the MAC table entries of the MC-LAG member port.
  • the virtual channel module is also used to restore the MAC table entries of the MC-LAG member port.
  • Fig. 8 is a schematic structural diagram of a device for implementing traffic switching provided by another embodiment of the present invention.
  • the device is applied to a MC-LAG device of a multi-chassis link aggregation group. As shown in Fig. 8, it includes:
  • MC-LAG platform fault detection module, virtual channel module, traffic forwarding module.
  • the MC-LAG platform notifies the virtual channel module to create a virtual channel through the platform command line.
  • the MC-LAG platform can notify the start of the timer of the fault detection module to periodically detect the status of the MC-LAG member port of the MC-LAG device; if there is a fault, it will prompt the creation failure, that is, it is not allowed to be in the faulty frame That is, a virtual channel is created on the MC-LAG device. If there is no fault, the fault detection module sends a message carrying the information of the MC-LAG port and peer-link port to the virtual channel module. The virtual channel module creates a virtual channel in the underlying chip. After the creation is complete Add the MC-LAG port to the virtual channel.
  • the virtual channel refers to a logical interface.
  • the creation of a virtual channel can be implemented based on the existing switch link aggregation protocol (LACP, IEEE 802.1ax) and other technologies.
  • the virtual channel is different from the smartgroup port that uses the same technology.
  • the virtual channel is not for increasing bandwidth, load balancing and link backup. It mainly relies on the port mapping and layer 2 traffic forwarding functions of the logical interface implemented by the technology. For the attributes of member ports The requirements are not as strict as smartgroup.
  • the LACP port mapping interface provided by the chip manufacturer can be used to implement the MC-LAG port or peer-link port to or from the virtual channel.
  • the virtual channel module synchronizes the MAC of the MC-LAG port to the virtual channel, and calls the MAC module interface to set the aging time of the MC-LAG port.
  • the MAC table entries originally learned from the MC-LAG member ports are learned in On the virtual channel, the traffic forwarding module will transfer the traffic to the virtual channel when it forwards the traffic.
  • the traffic in the virtual channel is no longer addressed but directly forwards the traffic from the up port mapped in it.
  • the fault detection module regularly detects the status of the MC-LAG port, and when a fault occurs, it sends a message to the MC-LAG platform and the virtual channel module.
  • the MC-LAG platform receives the message and performs the normal MAC synchronization fault handling mechanism, instructs the faulty frame to clear the MAC table entries of the MC-LAG port of this frame, and informs the opposite frame to synchronize the MAC table entries of the MC-LAG port to the fault.
  • the peer-link port of the chassis In addition, in order to prevent loops caused by multicast, broadcast and unknown unicast, the MC-LAG system has a port isolation mechanism.
  • the traffic received by the peer-link port will not be transmitted from the MC-LAG dual
  • the member port is sent out again, so the MC-LAG platform also needs to notify the opposite terminal frame to release the port isolation mechanism.
  • the virtual channel module After the virtual channel module receives the message, it matches whether the faulty port is a port in the channel. If it is, remove the port in the channel and add the peer-link port that came in before to the virtual channel. Because MAC learning is on the virtual channel, Therefore, traffic forwarding can realize fast switching paths, shorten the convergence time, and improve the performance of the MC-LAG system.
  • the fault detection module sends a message to the MC-LAG platform and the virtual channel module when it detects that the MC-LAG port fails to recover.
  • the MC-LAG platform After receiving the message, the MC-LAG platform performs a normal recovery mechanism, restores the MAC table entries of the failed port and the port isolation mechanism of the opposite chassis.
  • the virtual channel module moves the peer-link port out of the virtual channel after receiving the message, and removes the previous The MC-LAG port is moved back, and the traffic is normally forwarded from the respective MC-LAG member port.
  • this mechanism of switching the mapped ports in the virtual channel can improve the speed of traffic forwarding convergence during failure recovery.
  • the virtual channel is a virtual logical port.
  • the traffic forwarding module needs to be the same as the ordinary physical port, aggregation port, and VLAN port. It can be used as the outgoing destination of MAC addressing. The traffic entering the virtual channel is no longer addressed. It can be forwarded directly from the actual physical port mapped on the virtual channel. According to this, the use of chips from different manufacturers can produce different underlying implementations. The specific implementation also needs to pay attention to the coupling of the fault detection module and the traffic forwarding module.
  • the fault detection module obtains the information of the MC-LAG port and peer-link port of this box from the MC-LAG platform, and monitors the MC- by sending detection messages regularly.
  • the state of the LAG port needs to send a notification message to the virtual channel module when a fault is found or when the fault is restored.
  • the virtual channel module obtains the fault identification and port identification in the message to move the port in and out.
  • the virtual channel module synchronizes the MAC table entries on the MC-LAG port in the channel to itself through the traffic forwarding module. There is no need to update the MAC table entries in a large amount during the failure and recovery process, only the switching operation of the mapping relationship between the port and the virtual channel is required. .
  • the technical solution provided by the embodiment of the present invention needs to realize the coupling of the virtual channel module, the flow forwarding module, and the fault detection module. Through the series connection of the flow forwarding module and the fault detection module, the flow fast cut function of the MC-LAG system fault process is indirectly realized.
  • FIG. 9 is a schematic structural diagram of a system for implementing traffic switching provided by an embodiment of the present invention. As shown in FIG. 9, it includes:
  • the local MC-LAG device is used to detect the status of the first MC-LAG member port on the local MC-LAG device.
  • the first MC-LAG member port is normal, the first virtual channel is created, and the The first MC-LAG member port on the local MC-LAG device is added to the first virtual channel, and the MAC entry of the first MC-LAG member port is learned; and the first virtual channel
  • the first MC-LAG member port is used as the traffic forwarding exit;
  • the opposite MC-LAG device is used to detect the status of the second MC-LAG member port on the opposite MC-LAG device.
  • a second virtual channel is created, The second MC-LAG member port on the opposite MC-LAG device is added to the second virtual channel, and the MAC table entries of the second MC-LAG member port are learned; and the second virtual channel
  • the second MC-LAG member port is used as the traffic forwarding exit.
  • the local MC-LAG device is also used to remove the first MC-LAG member port from the first virtual channel when the first MC-LAG member port fails, and to remove the The peer-link port on the local MC-LAG device is added to the first virtual channel; the peer-link port in the first virtual channel is used as the traffic forwarding exit;
  • the opposite MC-LAG device is further configured to remove the second MC-LAG member port from the second virtual channel when the second MC-LAG member port fails, and remove the The peer-link port on the MC-LAG device at the opposite end is added to the second virtual channel; and the peer-link port in the second virtual channel is used as the traffic forwarding exit.
  • the local MC-LAG device is also used to connect the peer-link port on the local MC-LAG device from the first virtual channel when the first MC-LAG member port fails to recover. Move out, add the first MC-LAG member port to the first virtual channel; use the first MC-LAG member port in the first virtual channel as a traffic forwarding outlet.
  • the opposite MC-LAG device is also used to connect the peer-link port on the opposite MC-LAG device from the second virtual channel when the second MC-LAG member port fails to recover. Move out, add the second MC-LAG member port to the second virtual channel; use the second MC-LAG member port in the second virtual channel as a traffic forwarding outlet.
  • the technical solutions provided in the above embodiments are only applied to MC-LAG member port failure scenarios, and will not affect the failure handling mechanism of the MC-LAG system itself in the device failure, peer-link port failure, and network-side uplink failure scenarios. These faults are switched to a single device for forwarding, and the fault detection module will not detect MC-LAG port faults, and there is no conflict with the virtual channel processing mechanism.
  • the embodiment of the present invention is not suitable for scenarios where the peer-link port needs to forward traffic under normal circumstances, such as the scenario where there are dual-homing and single-homing to the server of the MC-LAG system at the same time, as shown in FIG.
  • Switch A When CE1 accesses CE2, Switch A will learn the MAC table entries of CE2, so it can be forwarded to CE2 normally.
  • CE2 When CE2 accesses CE1, CE2 will first perform hashing. If the traffic is hashed to the side of Switch A, since Switch A will learn the MAC entries of CE1, it can be forwarded to CE1 normally. If the traffic is hashed to the side of Switch B, since Switch A will synchronize the table entries to Switch B, Switch B will learn the MAC table entries of CE1 from the peer-link port (that is, the MAC table entries of CE1 on Switch B are output. The interface is the peer-link port), so Switch B will send the traffic to Switch A through the peer-link port. Similarly, Switch A forwards the traffic to CE1.
  • the peer-link port learns the MAC. If a virtual channel is used, when the MC-LAG port on Switch B fails, the peer-link port is added to the virtual channel and cannot normally forward the traffic sent by CE2 to CE1. The traffic sent from the network can only be forwarded through the virtual channel. Even if the MAC on the peer-link port is learned on the virtual channel when joining, the purpose of fast convergence cannot be met when the peer-link port learns more MACs, so it is not recommended Apply the virtual channel mechanism to such scenarios.
  • Figure 11 is a schematic structural diagram of a device for implementing traffic switching provided by an embodiment of the present invention.
  • the embodiment of the present invention also provides a device for implementing traffic switching, which is applied to MC-LAG equipment of a multi-chassis link aggregation group, including : A memory 1101, a processor 1102, and a computer program that is stored on the memory 1101 and can run on the processor 1102, and when the computer program is executed by the processor 1102, the realization flow of any one of the above is realized The method of switching.
  • the embodiment of the present invention also provides a computer-readable storage medium having an information processing program stored on the computer-readable storage medium, and when the information processing program is executed by a processor, the method for implementing any one of the foregoing traffic switching is implemented A step of.
  • the technical solution provided by the embodiment of the present invention can realize the rapid recovery of the flow of the MC-LAG system when the MC-LAG member port fails, thereby improving the performance of the MC-LAG system.
  • Such software may be distributed on a computer-readable medium, and the computer-readable medium may include a computer storage medium (or a non-transitory medium) and a communication medium (or a transitory medium).
  • the term computer storage medium includes volatile and non-volatile memory implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Sexual, removable and non-removable media.
  • Computer storage media include but are not limited to RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassette, tape, magnetic disk storage or other magnetic storage device, or Any other medium used to store desired information and that can be accessed by a computer.
  • communication media usually contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as carrier waves or other transmission mechanisms, and may include any information delivery media .

Landscapes

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

Abstract

一种实现流量切换的方法、装置及系统,其中该方法应用于多机箱链路聚合组MC-LAG设备,包括:检测所述MC-LAG设备上的MC-LAG成员口的状态(201);当所述MC-LAG成员口故障时,将所述MC-LAG成员口从虚通道中移出,将所述MC-LAG设备上的peer-link口加入到所述虚通道(202);将所述虚通道中的peer-link口作为流量转发出口(203)。

Description

一种实现流量切换的方法、装置及系统
相关申请的交叉引用
本申请基于申请号为201910553387.6、申请日为2019年06月25日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本发明实施例涉及但不限于MC-LAG(Multi-Chassis Link Aggregation Group,多机箱链路聚合组)技术,更具体地涉及一种实现流量切换的方法、装置及系统。
背景技术
随着计算机及网络技术的高速发展和各种网络应用的不断涌现,基础数据通信网络的稳定性越来越重要,对于数据中心数据交换设备来说,稳定性尤为重要。
在VXLAN(Virtual Extensible Local Area Network,可扩展虚拟局域网)网络中,为了提高可靠性,用户经常采用双归接入的方式将安装有双网卡的服务器接入到VXLAN网络,使得当服务器的一个网卡发生故障时不会导致业务中断。由于上述方案中,仅主网卡能够进行数据报文收发,备网卡不能进行数据报文收发,导致了网卡和链路带宽资源的浪费。企业管理员希望两个网卡可以同时转发流量,实现双活,从而充分利用网卡和网络带宽资源。双网卡同时转发流量,存在流量转发冗余和MAC(Media Access Control,介质访问控制)漂移等问题,由此产生了MC-LAG技术。顾名思义,MC-LAG技术是一种跨设备的链路聚合技术,让两台接入设备以同一状态和被接入设备进行链路聚合协商,在被接入设备看来,就如同和一台接入设备建立了链路聚合关系,这样,流量转发冗余和MAC漂移的问题得以消除,除此之外,MC-LAG还通过端口隔离机制避免环路问题。
MC-LAG采用了两台或多台设备进行链路聚合,设备间通过peer-link(对等链路)链路同步各自的MAC、ARP(Address Resolution Protocol,地址解析协议)表等信息,单条MC-LAG成员口故障或者单台设备故障,均可实现备份功能,提高了数据通信的稳定性。如图1所示,交换机Switch B上的MC-LAG成员口故障时,MAC地址会学习到peer-link口上,流量通过peer-link口转发到Switch A方向上。然而,传统的MC-LAG技术存在故障过程中链路切换慢的问题,尤其是当有大量MAC地址需要同步的情况下,收敛速度慢,容易产生丢包,难以满足市场上一些客户的需求。
发明内容
有鉴于此,本发明实施例提供了一种实现流量切换的方法,应用于多机箱链路聚合组MC-LAG设备,包括:检测所述MC-LAG设备上的MC-LAG成员口的状态;当所述MC-LAG成员口故障时,将所述MC-LAG成员口从预先创建的虚通道中移出,将所述MC-LAG设备上的peer-link口加入到所述虚通道;将所述虚通道中的peer-link口作为流量转发出口。
本发明实施例还提供了一种实现流量切换的装置,应用于多机箱链路聚合组MC-LAG设备,包括:故障检测模块,用于检测所述MC-LAG设备上的MC-LAG成员口的状态;虚通道模块,用于当所述MC-LAG成员口故障时,将所述MC-LAG成员口从预先创建的虚通道中移出,将所述MC-LAG设备上的peer-link口加入到所述虚通道;流量转发模块,用于将所述虚通道中的peer-link口作为流量转发出口。
本发明实施例还提供了一种实现流量切换的系统,包括:通过对等链路peer-link连接的本端MC-LAG设备和对端MC-LAG设备;所述本端MC-LAG设备,用于检测所述本端MC-LAG设备上的第一MC-LAG成员口的状态,在第一MC-LAG成员口正常时,创建第一虚通道,将所述本端MC-LAG设备上的第一MC-LAG成员口加入到所述第一虚通道,并学习所述第一MC-LAG成员口的MAC表项;将所述第一虚通道中的第一MC-LAG成员口作为流量转发出口;所述对端MC-LAG设备,用于检测所述对端MC-LAG设备上的第二MC-LAG成员口的状态,在第二MC-LAG成员口正常时,创建第二虚通道,将所述对端MC-LAG设备上的第二MC-LAG成员口加入到所述第二虚通道,并学习所述第二MC-LAG成员口的MAC表项;将所述第二虚通道中的第二MC-LAG成员口作为流量转发出口。
本发明实施例还提供了一种实现流量切换的装置,应用于多机箱链路聚合组MC-LAG设备,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述实现流量切换的方法。
本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有信息处理程序,所述信息处理程序被处理器执行时实现上述实现流量监管方法的步骤。
本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。
附图说明
附图用来提供对本发明技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本发明的技术方案,并不构成对本发明技术方案的限制。
图1为现有MC-LAG成员口故障时的流量恢复机制示意图;
图2为本发明一实施例提供的一种实现流量切换的方法的流程示意图;
图3为本发明一实施例提供的一种MC-LAG的架构示意图;
图4为本发明另一实施例提供的一种实现流量切换的方法的流程示意图;
图5为现有聚合链路在单SW上有多个成员口且其中部分发生故障的示意图;
图6为现有两个SW上的MC-LAG成员口均发生故障的示意图;
图7为本发明一实施例提供的一种实现流量切换的装置的结构示意图;
图8为本发明另一实施例提供的一种实现流量切换的装置的结构示意图;
图9为本发明一实施例提供的一种实现流量切换的系统的结构示意图;
图10为现有同时有双归和单归接入MC-LAG系统的服务器的情形示意图;
图11为本发明一实施例提供的一种实现流量切换的装置的结构示意图。
具体实施方式
为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。
在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
图2为本发明一实施例提供的一种实现流量切换的方法的流程示意图,该方法应用于多机箱链路聚合组MC-LAG设备,如图2所示,包括:
步骤201,检测所述MC-LAG设备上的MC-LAG成员口的状态;
步骤202,当所述MC-LAG成员口故障时,将所述MC-LAG成员口从预先创建的虚通道中移出,将所述MC-LAG设备上的peer-link口加入到所述虚通道;
步骤203,将所述虚通道中的peer-link口作为流量转发出口。
其中,在MC-LAG成员口故障之前,该方法还包括:
将所述MC-LAG成员口加入到所述虚通道;
将所述虚通道中的MC-LAG成员口作为流量转发出口。
其中,该方法还包括:
当所述MC-LAG成员口故障恢复时,将所述peer-link口从虚通道中移出,将所述MC-LAG成员口加入到所述虚通道;
将所述虚通道中的MC-LAG成员口作为流量转发出口。
其中,在将MC-LAG成员口加入到所述虚通道之前,该方法还包括:
创建虚通道,并学习所述MC-LAG成员口的MAC表项。
其中,当所述MC-LAG成员口故障时,该方法还包括:
清除所述MC-LAG成员口的MAC表项。
其中,当所述MC-LAG成员口故障恢复时,该方法还包括:
恢复所述MC-LAG成员口的MAC表项。
图3为本发明一实施例提供的一种MC-LAG的架构示意图,如图3所示,
CE(Customer Edge,用户边缘设备)1和CE2之间通过MC-LAG建立跨框的链路聚合连接,CE1通过聚合接口smartgroup1与SW(switch,交换机)1和SW2连接,CE2通过smartgroup2与SW1和SW2连接(以下简称为sg1和sg2),SW1和SW2通过peer-link链路连接,CE1和CE2互相打已知单播,变化源MAC和目的MAC,实际应用场景可能变化量很大,流量自动哈希,负载分担在sg的两个成员口。
仅以4个MAC为例说明,流量打通后,SW1上端口1(port1)学习到MAC1,端口3(port3)学习到MAC3,SW2上端口2(port2)学习到MAC2,端口4(port4)学习到MAC4。从CE1侧发送过来的目的MAC为MAC3的报文可能会走SW1或者SW2,到达SW1后查找到MAC3出口为端口3,于是通过端口3转发出去,SW2上同步了SW1上的MAC表,且将MAC3学习在自己的MC-LAG成员口即端口4上,所以到达SW2的报文也可以被正常转发到CE2。同样地,目的MAC为MAC4的报文也会从SW2上端口4或者SW1上端口3转发出去,CE2侧的报文同理。假设MC-LAG成员口端口3发生故障,链路down掉,显然CE1感知不到CE2侧链路发生故障,仍然发送报文给CE2,此报文的转发就会受到影响,MC-LAG系统有一套链路故障处理机制,保证流量可以正常转发,收敛过程如下:
步骤1,SW1清除故障端口学习到的MAC,即端口3学习到的MAC3和MAC4均被删除,此时MC-LAG系统触发一次MAC表项同步过程,SW2将CE2的MAC表项同步给SW1,出接口为peer-link口;
步骤2,SW1收到访问CE2的流量后,查找MAC表项,通过peer-link口将流量交给SW2,流量到达SW2后查找MAC表项从端口4转发出去,完成收敛过程;
步骤3,当成员口故障恢复时,MC-LAG系统又会触发一次MAC表项同步过程,将SW1上的MAC3和MAC4出向恢复到正常端口。
上述传统MC-LAG系统成员口故障时的流量恢复机制,步骤1和步骤3中的MAC同步过程依赖MC-LAG中MC-LAG平台(命令)触发,MAC地址较少时,同步速度可以满 足正常需求,测试发现1K条目的正切和回切的收敛时间在50ms左右,但是随着MAC地址增多,收敛时间呈现增加的趋势,32K条目时收敛时间达到200ms,256K条目收敛时间达到秒级,故障和故障恢复收敛过程慢,均出现明显的丢包,不满足一些客户的要求。
针对上述问题,本发明实施例提供了一种实现流量切换的方法,应用于图3所示的MC-LAG系统。如图4所示,该方法包括:
步骤401,链路正常的情况下,在SW1上创建虚通道;
其中,虚通道可以学习MAC地址,设备将虚通道作为MAC表项有效的出向端口,流量到达虚通道后不再寻址,可以直接从虚通道中的映射的实际端口中转发出去。
步骤402,将SW1上的MC-LAG成员口加入到虚通道中,并学习MC-LAG成员口的MAC表项;
具体而言,链路正常的情况下,SW1上的MC-LAG成员口即port3被加入到虚通道中,加入虚通道的端口不是MAC的出向口,自身学习的MAC会实时地老化并且同步到虚通道,这样,peer-link口上同步到MC-LAG口的MAC自然也会被学习到虚通道;
步骤403,检测SW1上MC-LAG成员口的状态;
当SW1上MC-LAG成员口正常时,执行步骤404;故障时执行步骤405;故障恢复时,执行步骤406:
步骤404,将虚通道中的MC-LAG成员口作为流量转发出口;
步骤405,将MC-LAG成员口从虚通道中移出来,而将peer-link口加入到虚通道,将所述虚通道中的peer-link口作为流量转发出口;
具体而言,当SW1上的MC-LAG成员口即port3故障时,将MC-LAG成员口从虚通道中移出来,而将peer-link口加入到虚通道,由于MAC地址学习在虚通道且虚通道中有peer-link口作为实际转发端口,所以流量可以正常转发;
步骤406,将所述peer-link口从虚通道中移出,将所述MC-LAG成员口加入到所述虚通道;将所述虚通道中的MC-LAG成员口作为流量转发出口
具体而言,当SW1上的MC-LAG成员口即port3故障恢复时,将MC-LAG成员口加入虚通道,将peer-link口移出来,虚通道中有MC-LAG成员口作为实际转发端口,流量可以正常转发。
其中,同样地,也可以在在SW2上创建虚通道,过程与上面的流程类似不再赘述。
如此,MC-LAG的两台设备有各自的虚通道,流量通过虚通道进行转发,故障和故障恢复过程,通过切换虚通道中映射的端口,实现流量的正常转发。
本实施例提供的技术方案,提出一种“虚通道”的概念,不完全依赖MAC同步功能, 在双归接入的两台设备SW1和SW2上,分别将sg2或者peer-link口加入虚通道,将一个端口加入到虚通道的底层实现上显然比同步大量MAC表项要快,所以,采用本发明实施例提供的技术方案可以大大提高MC-LAG成员口故障场景中流量恢复的收敛速度。
另外需要说明地是,本实施例描述的MC-LAG成员口故障是指单个机框即单个SW上的作为MC-LAG成员口的整个smart group故障,如图5所示,smart group(聚合链路)在单机框有多个成员口且其中部分发生故障的情况,不属于本发明实施例描述的故障,该类故障流量会自动从本框smart group的其他成员口转发;如图6所示,两个机框即两个SW上的MC-LAG成员口均发生故障时,系统完全无法转发流量,也不属于本发明实施例描述的故障。
图7为本发明一实施例提供的一种实现流量切换的装置的结构示意图,该装置应用于多机箱链路聚合组MC-LAG设备,如图7所示,包括:
故障检测模块,用于检测所述MC-LAG设备上的MC-LAG成员口的状态;
虚通道模块,用于当所述MC-LAG成员口故障时,将所述MC-LAG成员口从预先创建的虚通道中移出,将所述MC-LAG设备上的peer-link口加入到所述虚通道;
流量转发模块,用于将所述虚通道中的peer-link口作为流量转发出口。
其中,在MC-LAG成员口故障之前,所述虚通道模块,还用于将所述MC-LAG成员口加入到所述虚通道;
所述流量转发模块,还用于将所述虚通道中的MC-LAG成员口作为流量转发出口。
其中,当所述MC-LAG成员口故障恢复时,所述虚通道模块,还用于将所述peer-link口从虚通道中移出,将所述MC-LAG成员口加入到所述虚通道;
所述流量转发模块,还用于将所述虚通道中的MC-LAG成员口作为流量转发出口。
其中,在将MC-LAG成员口加入到所述虚通道之前,所述虚通道模块,还用于创建虚通道,并学习所述MC-LAG成员口的MAC表项。
其中,当所述MC-LAG成员口故障时,所述虚通道模块,还用于清除所述MC-LAG成员口的MAC表项。
其中,当所述MC-LAG成员口故障恢复时,所述虚通道模块,还用于恢复所述MC-LAG成员口的MAC表项。
图8为本发明另一实施例提供的一种实现流量切换的装置的结构示意图,该装置应用于多机箱链路聚合组MC-LAG设备,如图8所示,包括:
MC-LAG平台、故障检测模块、虚通道模块、流量转发模块。
其中,MC-LAG平台,通过平台命令行通知虚通道模块创建虚通道。
具体而言,所述MC-LAG平台可以通知开启故障检测模块的定时器,对MC-LAG设备的MC-LAG成员口状态进行定时检测;有故障则提示创建失败,即不允许在故障机框即MC-LAG设备上创建虚通道,若无故障,故障检测模块发送携带MC-LAG口和peer-link口信息的消息到虚通道模块,虚通道模块在底层芯片里创建虚通道,创建完成后将MC-LAG口加入到虚通道。
其中,虚通道是指一种逻辑接口。创建虚通道可以基于现有交换机链路聚合协议(LACP,IEEE 802.1ax)等技术实现。虚通道不同于采用相同技术的smartgroup端口,虚通道不是为了实现增大带宽、负载均衡和链路备份,主要依赖该技术实现的逻辑接口的端口映射和二层流量转发功能,对于成员端口的属性要求也没有smartgroup严格。具体而言,可以采用芯片厂商提供的LACP端口映射接口实现将MC-LAG口或peer-link口加入或移出虚通道。
其中,虚通道模块,将MC-LAG口的MAC同步到虚通道上,并且调用MAC模块接口设置MC-LAG口老化时间,同步完成后,原先学习在MC-LAG成员口的MAC表项学习在虚通道上,流量转发模块在转发流量时就会将流量从转到虚通道,虚通道中的流量不再进行寻址而是直接将流量从映射在其中的up的端口转发出去。
其中,故障检测模块,定时检测MC-LAG口的状态,发生故障时,发送消息到MC-LAG平台和虚通道模块。MC-LAG平台收到消息进行正常的MAC同步故障处理机制,通知故障机框将本框MC-LAG口的MAC表项清除,通知对端机框将MC-LAG口的MAC表项同步到故障机框的peer-link口,此外,为了防止组播、广播和未知单播产生的环路,MC-LAG系统有一个端口隔离机制,peer-link口收到的流量不会从MC-LAG双归成员口再发送出去,所以MC-LAG平台还需要通知对端机框放开端口隔离机制。虚通道模块收到消息后匹配故障端口是不是通道内的端口,如果是则将通道内端口移出,并将之前传进来的peer-link口加入到虚通道内,由于MAC学习在虚通道上,所以流量转发可以实现快速切换路径,缩短收敛时间,提高MC-LAG系统的性能。
其中,故障检测模块,检测到MC-LAG口故障恢复时,发送消息到MC-LAG平台和虚通道模块。MC-LAG平台收到消息后进行正常的恢复机制,恢复故障端口的MAC表项和对端机框的端口隔离机制,虚通道模块收到消息后将peer-link口移出虚通道,并且将之前的MC-LAG口移回,流量正常从各自的MC-LAG成员口转发出去。同样地,这种切换虚通道中映射端口的机制可以提高故障恢复时的流量转发收敛速度。
其中,虚通道作为一种虚拟的逻辑端口,在流量转发模块需要和普通物理端口、聚合口和VLAN口等接口一样,可以作为MAC寻址的出向,进入虚通道的流量不再进行寻址, 可以直接从映射在虚通道的实际的物理端口转发出去,据此,采用不同厂家的芯片可以产生不同的底层实现方式。具体实施时还需要注意故障检测模块和流量转发模块的耦合,故障检测模块从MC-LAG平台获取本框的MC-LAG口和peer-link口信息,通过定时发送检测报文等方式监测MC-LAG口的状态,发现故障或者故障恢复时都需要向虚通道模块发送通知消息,虚通道模块获取消息中的故障标识和端口标识对端口做移入和移出操作。虚通道模块通过流量转发模块同步通道内MC-LAG口上的MAC表项到自身,在故障发生和故障恢复过程均不需要再大量更新MAC表项,只需要进行端口与虚通道映射关系的切换操作。
本发明实施例提供的技术方案,需要实现虚通道模块和流量转发模块及故障检测模块的耦合,通过流量转发模块和故障检测模块的串联,间接实现MC-LAG系统故障过程的流量快切功能。
图9为本发明一实施例提供的一种实现流量切换的系统的结构示意图,如图9所示,包括:
通过对等链路peer-link连接的本端MC-LAG设备和对端MC-LAG设备;
所述本端MC-LAG设备,用于检测所述本端MC-LAG设备上的第一MC-LAG成员口的状态,在第一MC-LAG成员口正常时,创建第一虚通道,将所述本端MC-LAG设备上的第一MC-LAG成员口加入到所述第一虚通道,并学习所述第一MC-LAG成员口的MAC表项;将所述第一虚通道中的第一MC-LAG成员口作为流量转发出口;
所述对端MC-LAG设备,用于检测所述对端MC-LAG设备上的第二MC-LAG成员口的状态,在第二MC-LAG成员口正常时,创建第二虚通道,将所述对端MC-LAG设备上的第二MC-LAG成员口加入到所述第二虚通道,并学习所述第二MC-LAG成员口的MAC表项;将所述第二虚通道中的第二MC-LAG成员口作为流量转发出口。
其中,所述本端MC-LAG设备,还用于当所述第一MC-LAG成员口故障时,将所述第一MC-LAG成员口从所述第一虚通道中移出,将所述本端MC-LAG设备上的peer-link口加入到所述第一虚通道;将所述第一虚通道中的peer-link口作为流量转发出口;
或者,所述对端MC-LAG设备,还用于当所述第二MC-LAG成员口故障时,将所述第二MC-LAG成员口从所述第二虚通道中移出,将所述对端MC-LAG设备上的peer-link口加入到所述第二虚通道;将所述第二虚通道中的peer-link口作为流量转发出口。
其中,所述本端MC-LAG设备,还用于当所述第一MC-LAG成员口故障恢复时,将所述本端MC-LAG设备上的peer-link口从所述第一虚通道中移出,将所述第一MC-LAG成员口加入到所述第一虚通道;将所述第一虚通道中的所述第一MC-LAG成员口作为流量 转发出口。
其中,所述对端MC-LAG设备,还用于当所述第二MC-LAG成员口故障恢复时,将所述对端MC-LAG设备上的peer-link口从所述第二虚通道中移出,将所述第二MC-LAG成员口加入到所述第二虚通道;将所述第二虚通道中的所述第二MC-LAG成员口作为流量转发出口。
上述实施例提供的技术方案,只应用于MC-LAG成员口故障场景,并不会影响设备故障、peer-link口故障和网络侧上行链路故障场景中MC-LAG系统自身的故障处理机制,这些故障都是切换成单台设备转发,故障检测模块不会检测到MC-LAG口故障,与虚通道处理机制没有冲突的地方。但是,本发明实施例不适用于正常情况下peer-link口需要转发流量的场景,比如说同时有双归和单归接入MC-LAG系统的服务器的情形,如图10所示,是单归加双归的应用场景,CE1单归接入,CE2双归接入。CE1访问CE2时,由于Switch A上会学习到CE2的MAC表项,可以正常转发给CE2。CE2访问CE1时,CE2首先会进行哈希,如果流量被哈希到Swtich A一侧,由于Switch A上会学习到CE1的MAC表项,可以正常转发给CE1。如果流量被哈希到Switch B一侧,由于Switch A会将表项同步给Switch B,Switch B会从peer-link口学习到CE1的MAC表项(也就是Switch B上CE1的MAC表项出接口为peer-link口),于是Switch B会将流量通过peer-link口发给Switch A,同理,Switch A将流量转发给CE1。在这种场景下,peer-link口学习到MAC,如果应用虚通道,当Switch B上的MC-LAG口故障时,peer-link口被加入虚通道,无法正常转发CE2发送给CE1的流量,只能通过虚通道转发网络发送过来的流量,即使加入时将peer-link口上的MAC学习到虚通道上,当peer-link口上学习的MAC较多时也无法满足快速收敛的目的,所以,不建议将虚通道机制应用于此类场景。
图11为本发明一实施例提供的一种实现流量切换的装置的结构示意图,本发明实施例还提供了一种实现流量切换的装置,应用于多机箱链路聚合组MC-LAG设备,包括:存储器1101、处理器1102及存储在所述存储器1101上并可在所述处理器1102上运行的计算机程序,所述计算机程序被所述处理器1102执行时实现上述任一项所述实现流量切换的方法。
本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有信息处理程序,所述信息处理程序被处理器执行时实现上述任一项所述实现流量切换方法的步骤。
本发明实施例提供的技术方案,能够实现MC-LAG系统在MC-LAG成员口故障时流量快速恢复,提高了MC-LAG系统的性能。
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些组件或所有组件可以被实施为由处理器,如数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。

Claims (11)

  1. 一种实现流量切换的方法,应用于多机箱链路聚合组MC-LAG设备,包括:
    检测所述MC-LAG设备上的MC-LAG成员口的状态;
    当所述MC-LAG成员口故障时,将所述MC-LAG成员口从预先创建的虚通道中移出,将所述MC-LAG设备上的peer-link口加入到所述虚通道;
    将所述虚通道中的peer-link口作为流量转发出口。
  2. 根据权利要求1所述的方法,在MC-LAG成员口故障之前,还包括:
    将所述MC-LAG成员口加入到所述虚通道;
    将所述虚通道中的MC-LAG成员口作为流量转发出口。
  3. 根据权利要求1所述的方法,还包括:
    当所述MC-LAG成员口故障恢复时,将所述peer-link口从虚通道中移出,将所述MC-LAG成员口加入到所述虚通道;
    将所述虚通道中的MC-LAG成员口作为流量转发出口。
  4. 根据权利要求2所述的方法,在将MC-LAG成员口加入到所述虚通道之前,还包括:
    创建虚通道,并学习所述MC-LAG成员口的MAC表项。
  5. 根据权利要求1所述的方法,当所述MC-LAG成员口故障时,还包括:
    清除所述MC-LAG成员口的MAC表项。
  6. 根据权利要求3所述的方法,当所述MC-LAG成员口故障恢复时,还包括:
    恢复所述MC-LAG成员口的MAC表项。
  7. 一种实现流量切换的装置,应用于多机箱链路聚合组MC-LAG设备,包括:
    故障检测模块,用于检测所述MC-LAG设备上的MC-LAG成员口的状态;
    虚通道模块,用于当所述MC-LAG成员口故障时,将所述MC-LAG成员口从预先创建的虚通道中移出,将所述MC-LAG设备上的peer-link口加入到所述虚通道;
    流量转发模块,用于将所述虚通道中的peer-link口作为流量转发出口。
  8. 一种实现流量切换的系统,包括:通过对等链路peer-link连接的本端MC-LAG设备和对端MC-LAG设备;
    所述本端MC-LAG设备,用于检测所述本端MC-LAG设备上的第一MC-LAG成员口的状态,在第一MC-LAG成员口正常时,创建第一虚通道,将所述本端MC-LAG设备上的第一MC-LAG成员口加入到所述第一虚通道,并学习所述第一MC-LAG成员口的MAC表项;将所述第一虚通道中的第一MC-LAG成员口作为流量转发出口;
    所述对端MC-LAG设备,用于检测所述对端MC-LAG设备上的第二MC-LAG成员口的状态,在第二MC-LAG成员口正常时,创建第二虚通道,将所述对端MC-LAG设备上的第二MC-LAG成员口加入到所述第二虚通道,并学习所述第二MC-LAG成员口的MAC表项;将所述第二虚通道中的第二MC-LAG成员口作为流量转发出口。
  9. 根据权利要求8所述的系统,其中,
    所述本端MC-LAG设备,还用于当所述第一MC-LAG成员口故障时,将所述第一MC-LAG成员口从所述第一虚通道中移出,将所述本端MC-LAG设备上的peer-link口加入到所述第一虚通道;将所述第一虚通道中的peer-link口作为流量转发出口;
    或者,所述对端MC-LAG设备,还用于当所述第二MC-LAG成员口故障时,将所述第二MC-LAG成员口从所述第二虚通道中移出,将所述对端MC-LAG设备上的peer-link口加入到所述第二虚通道;将所述第二虚通道中的peer-link口作为流量转发出口。
  10. 一种实现流量切换的装置,应用于多机箱链路聚合组MC-LAG设备,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至6中任一项所述实现流量切换的方法。
  11. 一种计算机可读存储介质,所述计算机可读存储介质上存储有信息处理程序,所述信息处理程序被处理器执行时实现如权利要求1至6中任一项所述实现流量切换的方法。
PCT/CN2020/090593 2019-06-25 2020-05-15 一种实现流量切换的方法、装置及系统 WO2020259121A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910553387.6 2019-06-25
CN201910553387.6A CN112134796B (zh) 2019-06-25 2019-06-25 一种实现流量切换的方法、装置及系统

Publications (1)

Publication Number Publication Date
WO2020259121A1 true WO2020259121A1 (zh) 2020-12-30

Family

ID=73850041

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/090593 WO2020259121A1 (zh) 2019-06-25 2020-05-15 一种实现流量切换的方法、装置及系统

Country Status (2)

Country Link
CN (1) CN112134796B (zh)
WO (1) WO2020259121A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114189471A (zh) * 2021-11-29 2022-03-15 苏州浪潮智能科技有限公司 跨设备链路聚合组主备配置方法、系统、终端及存储介质
CN114374659A (zh) * 2022-01-18 2022-04-19 苏州盛科科技有限公司 一种堆叠系统中实现本地优先转发的方法、装置及存储介质
CN114500007A (zh) * 2022-01-07 2022-05-13 成都市联洲国际技术有限公司 M-LAG系统中的MACsec的实现方法、装置、存储介质及终端设备

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116016385A (zh) * 2021-10-21 2023-04-25 华为技术有限公司 一种状态同步方法、装置及设备
CN115225468B (zh) * 2022-07-26 2024-06-14 苏州盛科通信股份有限公司 流量快速切换方法、系统及计算机可读存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101877677A (zh) * 2010-06-25 2010-11-03 中兴通讯股份有限公司 一种多协议标签交换业务隧道切换的方法及系统
US20140369186A1 (en) * 2013-06-17 2014-12-18 Telefonaktiebolaget L M Ericsspm (publ) Methods and systems with enhanced robustness for multi-chassis link aggregation group
US20170163473A1 (en) * 2015-12-04 2017-06-08 Arista Networks, Inc. Link aggregation split-brain detection and recovery
US20170257309A1 (en) * 2016-03-02 2017-09-07 Arista Networks, Inc. Network management system control service for vxlan on an mlag domain
CN109698788A (zh) * 2017-10-20 2019-04-30 华为技术有限公司 流量转发方法和流量转发装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102739533A (zh) * 2012-06-25 2012-10-17 中兴通讯股份有限公司 一种实现l3 vpn快速切换的方法和pe
US20160373294A1 (en) * 2015-06-18 2016-12-22 Fortinet, Inc. Flow management in a link aggregation group system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101877677A (zh) * 2010-06-25 2010-11-03 中兴通讯股份有限公司 一种多协议标签交换业务隧道切换的方法及系统
US20140369186A1 (en) * 2013-06-17 2014-12-18 Telefonaktiebolaget L M Ericsspm (publ) Methods and systems with enhanced robustness for multi-chassis link aggregation group
US20170163473A1 (en) * 2015-12-04 2017-06-08 Arista Networks, Inc. Link aggregation split-brain detection and recovery
US20170257309A1 (en) * 2016-03-02 2017-09-07 Arista Networks, Inc. Network management system control service for vxlan on an mlag domain
CN109698788A (zh) * 2017-10-20 2019-04-30 华为技术有限公司 流量转发方法和流量转发装置

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114189471A (zh) * 2021-11-29 2022-03-15 苏州浪潮智能科技有限公司 跨设备链路聚合组主备配置方法、系统、终端及存储介质
CN114189471B (zh) * 2021-11-29 2023-08-08 苏州浪潮智能科技有限公司 跨设备链路聚合组主备配置方法、系统、终端及存储介质
CN114500007A (zh) * 2022-01-07 2022-05-13 成都市联洲国际技术有限公司 M-LAG系统中的MACsec的实现方法、装置、存储介质及终端设备
CN114500007B (zh) * 2022-01-07 2023-12-22 成都市联洲国际技术有限公司 M-LAG系统中的MACsec的实现方法、装置、介质及设备
CN114374659A (zh) * 2022-01-18 2022-04-19 苏州盛科科技有限公司 一种堆叠系统中实现本地优先转发的方法、装置及存储介质

Also Published As

Publication number Publication date
CN112134796A (zh) 2020-12-25
CN112134796B (zh) 2022-12-16

Similar Documents

Publication Publication Date Title
WO2020259121A1 (zh) 一种实现流量切换的方法、装置及系统
WO2021088808A1 (zh) 双归设备接入流量的转发方法、设备及存储介质
CN111865779B (zh) 一种路由同步方法及跨设备链路聚合组
US10567340B2 (en) Data center system
EP3691185B1 (en) Method for processing message, device, and system
US9391877B2 (en) System and method for reducing information loss in an aggregated information handling system
US8107382B2 (en) Loop detection in a communications network
US9584397B2 (en) Routing in spine-leaf networking systems
US20220174006A1 (en) Method for EVPN and VPLS Active-Active Integration, Device, and System
EP2675121B1 (en) Vpls fast rerouting method and device
CN111935013B (zh) 流量转发控制方法及装置、流量转发方法及芯片、交换机
CN111740899A (zh) 一种arp请求报文转发方法、跨设备链路聚合组及网络设备
WO2017000832A1 (zh) Mac地址的同步方法、装置及系统
WO2022062662A1 (zh) 数据传输方法、系统、网络设备和存储介质
WO2021185169A1 (zh) 一种切换方法、装置、设备和存储介质
WO2023273864A1 (zh) Olt设备的mac地址同步方法和装置
WO2017008641A1 (zh) 冗余端口的切换方法及装置
CN113839862A (zh) Mclag邻居之间同步arp信息的方法、系统、终端及存储介质
WO2008095360A1 (fr) Méthode et système de commutation rapide en cas de défaillance d'une liaison d'un réseau privé virtuel
CN105763442A (zh) 主备倒换lacp聚合链路不中断的pon系统及方法
CN112511419B (zh) 一种分布式转发系统
US11444842B2 (en) Network switch and network switch system thereof
WO2020156355A1 (zh) 负载分担方法、装置、系统、单板及存储介质
CN111800525A (zh) 一种网关冗余方法及系统
JP2016092549A (ja) 中継システムおよびスイッチ装置

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

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

Country of ref document: EP

Kind code of ref document: A1

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

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

122 Ep: pct application non-entry in european phase

Ref document number: 20832983

Country of ref document: EP

Kind code of ref document: A1