WO2015100637A1 - Method and switching device for link alternation - Google Patents

Method and switching device for link alternation Download PDF

Info

Publication number
WO2015100637A1
WO2015100637A1 PCT/CN2013/091166 CN2013091166W WO2015100637A1 WO 2015100637 A1 WO2015100637 A1 WO 2015100637A1 CN 2013091166 W CN2013091166 W CN 2013091166W WO 2015100637 A1 WO2015100637 A1 WO 2015100637A1
Authority
WO
WIPO (PCT)
Prior art keywords
packet
switching device
port
address
mac address
Prior art date
Application number
PCT/CN2013/091166
Other languages
French (fr)
Chinese (zh)
Inventor
卢胜文
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201380002726.2A priority Critical patent/CN103891204B/en
Priority to PCT/CN2013/091166 priority patent/WO2015100637A1/en
Publication of WO2015100637A1 publication Critical patent/WO2015100637A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/40Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass for recovering from a failure of a protocol instance or entity, e.g. service redundancy protocols, protocol state redundancy or protocol service redirection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]

Definitions

  • the present invention relates to the field of information technologies, and in particular, to a link switching method and a switching device.
  • BACKGROUND In network communication, in order to ensure normal communication, two links are usually used to back up each other, and when one link is interrupted, it switches to another link.
  • the server is connected to the switch.
  • the server is connected to the switch through a dual-interface NIC. If a link connected to the switch is disconnected, the server can detect the link interruption, and subsequent packets sent to the interrupted link are redirected to the normal chain. Road, this can achieve uninterrupted network links.
  • the upstream device can only know the fault of the direct link, and it does not know that the port is not directly connected. For example, if the uplink port of the switch is faulty, the server does not know, and the packet is sent to the switch, causing the packet to be discarded on the switch. .
  • Moni tor l ink is a commonly used technology for implementing switching. It does not need to exchange any protocol with the connected network device, and does not need to cooperate with the peer device. It can easily realize fault switching and realize simple cost. The ideal data flow fault switching technology.
  • the network device is connected to the upper-level network device through the uplink port and connected through the downlink port server.
  • the moni tor l ink detects that the uplink port is interrupted, and then all the corresponding downlink ports are down, so that the device connected to the downlink port (for example, the server) can detect that the link of the corresponding connection is down. Therefore, the packet is not sent to the link to send data, but only the packet is sent to the normal link, so that the packet is sent to the failed switch and the packet is lost.
  • the prior art cannot solve the scenario in which the downlink port is faulty. The text will continue to come in from the uplink port, but it cannot be sent out from the downlink port.
  • the embodiment of the present invention provides a link switching method and a switching device to solve the problem of data data loss caused by a downlink port failure in the prior art.
  • the embodiment of the present invention provides a switching device, where the switching device includes: a packet receiving module, a port monitoring module, a fault packet processing module, and an intermediate port packet forwarding module; and the packet receiving module is configured to receive a first packet sent by the first port of the switching device to the switching device; the port detecting module, configured to detect a second port state of the switching device, where the second port of the switching device is detected
  • the fault message processing module is configured to notify the fault packet processing module, and the fault packet processing module is configured to generate a second packet with a reverse address according to the notification of the port detecting module, and report the reverse address
  • the message is sent to the intermediate port packet forwarding module; the source address of the second packet is the destination address of the first packet, and the destination address of the second packet is the source address of the first packet;
  • the intermediate port packet forwarding module is configured to
  • the fault packet processing module generates the second packet with the reverse address, where the fault packet processing module changes the source media access control MAC address of the first packet.
  • the fault packet processing module changes the source media access control MAC address of the first packet.
  • the destination MAC address change the destination MAC address of the first packet to the source MAC address to generate a second packet.
  • the fault packet processing module generates the second packet with the reverse address, where the fault packet processing module generates the second packet according to the Internet Protocol IP address of the first packet, where The source MAC address of the second packet is the destination MAC address of the first packet, and the destination MAC address of the second packet is the source MAC address of the first packet.
  • the generating, by the faulty packet processing module, the second packet that has the reverse address, the faulty packet processing module generates the second packet according to the preset fixed IP address, where the second packet is generated.
  • the source MAC address of the text is the destination MAC address of the first packet
  • the destination MAC address of the second packet is the source MAC address of the first packet.
  • the second packet has an identifier that is different from the first packet, so that the backup switching device can identify that the second packet is to be sent through the first port according to the identifier.
  • the switching device is a switching device that supports the moni tor ink technology, where the first port of the switching device is an uplink port of the switching device and other network devices, and the second port of the switching device It is the downlink port to which the switching device is connected to the server.
  • the switching device further includes a forwarding module, where the forwarding module is configured to send the first packet to the intermediate port packet forwarding module; correspondingly, the intermediate port packet forwarding module is further used. Receiving the first packet sent by the forwarding module, and sending the first packet to the backup switching device, so that the first packet is sent from a second port of the backup switching device. .
  • the embodiment of the present invention further provides a method for link switching, where the method includes: receiving a first packet sent to the switching device by using a first port of the switching device; and detecting a second port state of the switching device Generating a second packet with a reverse address when the second port of the switching device is detected to be faulty, where the source address of the second packet is the The destination address of the first packet, the destination address of the second packet is the source address of the first packet, and the second packet is sent to the backup switching device that is backed up with the switching device. The second packet is sent from the first interface of the backup switching device.
  • the generating the second packet with the reverse address includes: changing the source media access control MAC address of the first packet to the destination MAC address, and changing the destination MAC address of the first packet to Source MAC address to generate a second packet.
  • the generating the second packet with the reverse address includes:
  • a source MAC address of the second packet is a destination MAC address of the first packet, and a destination MAC address of the second packet It is the source MAC address of the first packet.
  • the generating the second packet with the reverse address includes: generating a second packet according to the preset fixed IP address, where the source MAC address of the second packet is the purpose of the first text The MAC address, the destination MAC address of the second message is the source MAC address of the first source.
  • the second packet has an identifier that is different from the first packet, so that the backup switching device can identify that the second packet is to be sent through the first port according to the identifier.
  • the switching device is a switching device that supports the moni tor ink technology, where the first port of the switching device is an uplink port of the switching device and other network devices, and the second port of the switching device It is the downlink port to which the switching device is connected to the server.
  • the method further includes: sending the first packet to the backup switching device, so that the first packet is sent from a second port of the backup switching device.
  • the method for the link switching and the switching device provided by the embodiment of the present invention, by generating a second packet with a reverse address, where the source address of the second packet is the destination address of the first packet, The destination address of the second packet is the source address of the first packet, and the reverse address packet is sent to the backup switching device that is backed up with the switching device, and the second packet is The first interface of the backup switching device sends, so that the device that sends the first packet obtains the address of the backup switching device in time, and sends data from the backup switching device, thereby avoiding the downlink port failure of the second port of the switching device.
  • the device that sends the first packet cannot know the data loss caused in time.
  • FIG. 1 is a schematic diagram of a basic structure of a moni tor 1 ink group in the prior art
  • FIG. 2 is a schematic structural diagram of a switching device 200 according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of another implementation manner of a switching device 200 according to an embodiment of the present invention
  • FIG. 4 is a schematic flowchart of a method for link switching according to an embodiment of the present invention.
  • the drawings illustrate the technical solutions in the embodiments of the present invention clearly and completely, and it is obvious that the described embodiments are a part of the embodiments of the present invention, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
  • FIG. 1 is a schematic diagram of a basic structure of a moni tor 1 ink group implemented in the prior art.
  • the server 100 is connected to the switching device A and the switching device B respectively, the network device 101 is connected to the switching device A, and the communication with the server 100 is realized by the switching device A; the switching device B is used as the switching device on the alternate path of the network device 101, and is exchanged.
  • the network device 101 can implement communication with the server 100 through the switching device B.
  • the function of the moni tor l ink is configured on the switching device A and the switching device B.
  • the uplink port A and the downlink port A belong to a moni tor l ink group, and the uplink port B and the downlink port B belong to a moni tor l ink. group.
  • the interface between the network device 101 and the switching device A is the uplink port A, and the data sent by the network device 101 to the server 100 is sent to the switching device A through the uplink port A, and the switching device A transmits the data to the server 100 through the downlink port A of the server 100. . If the downlink port A is faulty, the server can detect the port fault and will not send packets from the downlink port A.
  • the network device 101 connected to the uplink port A does not know that the downlink port A has failed, and continues to send data or packets from the uplink port A to the switching device.
  • the packet cannot be sent from the downlink port A. Therefore, only data or packets can be discarded, resulting in a large loss of data or packets.
  • the network device 101 sends the data to the uplink port of the switching device B according to the MAC address of the forwarding data or the packet (that is, the MAC address of the switching device B). Send data or messages.
  • FIG. 2 is a schematic structural diagram of a switching device 200 according to an embodiment of the present invention.
  • the switching device 200 includes: a packet receiving module 201, a port monitoring module 202, a fault packet processing module 203, and an intermediate port packet forwarding module.
  • the packet receiving module 201 is configured to receive a first packet that is sent to the switching device 200 by using the first port of the switching device 200.
  • the port detecting module 202 is configured to detect the switching device.
  • the faulty packet processing module 203 is notified;
  • the first port of the switching device 200 is a port of the switching device 200 connected to other network devices, for example It can be an uplink port connected to other network devices in the moni tor ink technology.
  • the second port of the switching device 200 is a port that the switching device 200 is connected to the server, and may be, for example, a downlink port connected to the server in the moni tor ink technology.
  • the port detection module 202 detects the state of the first port by checking the status word of the link periodically, and confirms whether the first port is faulty or the like according to the status word of the link.
  • the embodiment of the present invention does not limit the manner of port state detection.
  • the port detecting module 202 when detecting that the second port of the switching device 200 is faulty, the port detecting module 202 turns off the second port of the switching device 200, and the data received by the switching device 200 from the first port or The message is no longer forwarded through the second port.
  • the fault packet processing module 203 is configured to generate a second packet with a reverse address according to the notification of the port detection module 202, and send the reverse address packet to the intermediate port packet forwarding module 204.
  • the source address of the second packet is the destination address of the first packet, and the destination address of the second packet is the source address of the first packet;
  • the intermediate port packet forwarding module 204 is configured to send the second packet sent by the fault packet processing module 203 to a backup switching device that is backed up with the switching device 200, so that the The second packet is sent from the first interface of the backup switching device.
  • the intermediate port packet forwarding module 204 sends the second packet to the network device that sends the first packet by using the first interface of the backup switching device, so that the network that sends the first packet is sent.
  • the device can obtain the address of the new switching device, that is, the address of the backup switching device, and then send the subsequently sent packet to the backup switching device to implement instant link switching and ensure data security.
  • the switching device 200 generates a second packet with a reverse address by using the fault packet processing module 203, where the source address of the second packet is the destination address of the first packet, and the second packet
  • the destination address of the text is the source address of the first packet
  • the reverse address packet is sent to the backup switching device that is backed up with the switching device 200 by using the intermediate port packet forwarding module.
  • the second packet is sent from the first interface of the backup switching device, so that the device that sends the first packet acquires the address of the backup switching device in time, and sends data from the backup switching device, thereby avoiding the second port of the switching device.
  • the device that sends the first packet when the downlink port is faulty cannot know the data loss problem in time.
  • the backup switching device that is backed up with the switching device 200 is a switching device that is connected to the same server in common with the switching device 200, and the link between the switching device 200 and the server.
  • the link between the backup switching device and the server is a backup relationship; the switching device that supports the mutual backup of the Moni tor ink technology, for example, the switching device A and the switching device B in FIG. 1 are mutually backup and exchanged.
  • Device B is the backup switching device of switching device A.
  • the switching device 200 further includes a forwarding module 205. Referring to FIG. 3, FIG.
  • the forwarding module 205 is configured to send the first packet to the intermediate port packet forwarding module 204.
  • the intermediate port packet forwarding module 204 is further configured to receive the forwarding module 205. Transmitting the first packet, and sending the first packet to the backup switching device, so that the first packet is sent from a second port of the backup switching device.
  • the first packet is sent to the packet forwarding module 204 by the forwarding module 205, and the packet forwarding module 204 sends the first packet to the backup switching device, so that the first packet is sent from the backup.
  • the second port of the switching device can further improve the security of the data, so that the first packet is prevented from being lost due to the failure of the second port of the switching device 200 to be sent out.
  • the first port of the backup switching device is a port of the backup switching device connected to other network devices, and may be, for example, an uplink port connected to other network devices in the moni tor 1 ink technology.
  • the second port of the backup switching device is a port that is connected to the server by the switching device 200, and may be, for example, a downlink port connected to the server in the mon i tor 1 i nk technology as an optional implementation manner, where the fault occurs.
  • the message processing module 203 generates the second message having the reverse address, which may include: changing the source MAC address of the first text to the destination MAC address, and changing the destination MAC address of the first text to the source MAC address, to Generate the second ⁇ text.
  • the generating, by the faulty packet processing module 203, the second packet having the reverse address may further include: generating, by using an IP (Internet Protocol) address of the first packet
  • the second packet for example, the second packet may be an ARP (Addres Resin Protocol) packet, and the source MAC address of the ARP packet is the destination MAC address of the first packet, and the ARP The destination MAC address of the packet is the source MAC address of the first packet.
  • IP Internet Protocol
  • ARP Address Resin Protocol
  • the generating, by the faulty packet processing module 203, the second packet having the reverse address may further include: generating a second packet according to the preset fixed IP address, where the second packet is sent
  • the ARP packet may be an ARP packet, where the source MAC address of the ARP packet is the destination MAC address of the first packet, and the destination MAC address of the ARP packet is the source MAC address of the first packet.
  • the fault packet processing module 203 generates a second packet having a reverse address, and has an identifier different from the first packet, so that the backup switching device is configured according to the identifier. The second message can be identified to be sent through the first port.
  • the implementation of the switching device 200 can avoid the problem of data loss from the uplink port caused by the downlink port failure in the scenario of implementing the Moni tor ink switching technology, and can be initiated before the network device such as the server initiates data transmission. In time, the data sent from the uplink port is switched to the alternate switching device transmission, which avoids data loss and improves data security.
  • FIG. 4 is a schematic flowchart of a method for link switching according to an embodiment of the present invention. Figure, including:
  • Step 400 Receive a first packet sent to the switching device by using a first port of the switching device.
  • Step 402 Detect a second port status of the switching device, and when detecting that the second port of the switching device is faulty, generate a second packet with a reverse address, where the source address of the second packet is a destination address of the first packet, where the destination address of the second packet is a source address of the first packet;
  • Step 404 Send the second packet to a backup device with the switching device Backing up the switching device, so that the second packet is sent from the first interface of the backup switching device.
  • the second packet is sent to the network device that sends the first packet by using the first interface of the backup switching device, so that the network device that sends the first packet can obtain the address of the new switching device.
  • the address of the switching device is backed up, so that the subsequently sent packet is sent to the backup switching device to implement instant link switching and ensure data security.
  • the method of the second packet generates a second packet, the source address of the second packet is the destination address of the first packet, and the destination address of the second packet is the first packet.
  • the source address is sent to the backup switching device that is backed up with the switching device, and the second packet is sent from the first interface of the backup switching device, so that the sending The device of the first packet obtains the address of the backup switching device in time, and sends data from the backup switching device, so as to avoid the data loss caused by the device that sends the first packet due to the failure of the second port of the switching device.
  • the method for generating the second packet with the reverse address may include: changing the source media access control MAC address of the first packet to the destination MAC address, and changing the destination MAC address of the first packet.
  • the source MAC address is used to generate a second packet.
  • generating the second packet with the reverse address may also pass The following ways are implemented:
  • a source MAC address of the second packet is a destination MAC address of the first packet, and a destination MAC address of the second packet It is the source MAC address of the first packet.
  • generating the second packet with the reverse address may also be implemented by: generating a second packet according to the preset fixed IP address, where the source MAC address of the second packet is the The destination MAC address of the text, and the destination MAC address of the second message is the source MAC address of the first source.
  • the second packet has an identifier that is different from the first packet, so that the backup switching device can identify that the second packet is to be sent through the first port according to the identifier.
  • the switching device in the link switching method of the embodiment of the present invention may be a switching device supporting the moni tor ink technology, where the first port of the switching device is an uplink port of the connection between the switching device and other network devices, The second port of the switching device is a downlink port to which the switching device is connected to the server.
  • the method may further include: sending the first packet to the backup switching device, so that the first packet is sent from a second port of the backup switching device.
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, or an electrical, mechanical or other form of connection.
  • the components displayed as units may or may not be physical units, i.e., may be located in one place, or may be distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions.
  • a computer device which may be a personal computer, server, or network device, etc.
  • the foregoing storage medium includes: a USB flash drive, a mobile hard disk, and a read only memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • disk or optical disk etc., which can store program code.

Landscapes

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

Abstract

Provided in embodiments of the present invention are a method and switching device for link alternation, for solving the problem in the prior art of data loss due to downlink port failure. The method and switching device for link alternation of the embodiments of the present invention, by generating a second packet having a reverse address, where the source address of the second packet is the destination address of the first packet, and the destination address of the second packet is the source address of the first packet, and by transmitting the reverse address packet to a backup switching device that serves with the switching device as mutual backups, where the second packet is transmitted from a first interface of the backup switching device, allow a device transmitting the first packet to acquire in a timely manner an address of the backup switching device and to transmit data from the backup switching device, thus preventing the device transmitting the first packet from being unable to learn in a timely manner the problem of data loss as a result of a fault in a second interface of the switching device.

Description

链路倒换的方法和交换设备 技术领域 本发明涉及信息技术领域, 尤其涉及链路倒换的方法和交换设备。 背景技术 在网络通信中, 为了确保正常的通信, 通常会釆用 2条链路相互备份, 当其中一条链路中断时, 会切换到另一条链路。 以服务器连接交换机为例, 通常服务器会使用双接口网卡与交换机相连, 这样如果连接交换机的一条 链路断了, 服务器能够感知链路中断, 后续发往中断链路的报文改发往正 常链路, 这就可以实现网络链路不中断。  TECHNICAL FIELD The present invention relates to the field of information technologies, and in particular, to a link switching method and a switching device. BACKGROUND In network communication, in order to ensure normal communication, two links are usually used to back up each other, and when one link is interrupted, it switches to another link. For example, the server is connected to the switch. Usually, the server is connected to the switch through a dual-interface NIC. If a link connected to the switch is disconnected, the server can detect the link interruption, and subsequent packets sent to the interrupted link are redirected to the normal chain. Road, this can achieve uninterrupted network links.
上述简单的双链路方式, 并不能完全解决网络的可靠性问题。 上行设备 只能知道直连链路的故障, 感知不到不直接连接端口的情况, 例如交换机 的上行端口故障了, 服务器就不知道, 报文照样会发往交换机, 导致报文 在交换机丟弃。  The above simple dual link method does not completely solve the network reliability problem. The upstream device can only know the fault of the direct link, and it does not know that the port is not directly connected. For example, if the uplink port of the switch is faulty, the server does not know, and the packet is sent to the switch, causing the packet to be discarded on the switch. .
Moni tor l ink 是一种常用的实现倒换的技术, 它不需要与上连网络设 备进行任何协议交换, 也不需要对端设备进行配合, 就能简单实现故障倒 换, 实现成本简单, 是一种理想的数据流故障倒换技术。  Moni tor l ink is a commonly used technology for implementing switching. It does not need to exchange any protocol with the connected network device, and does not need to cooperate with the peer device. It can easily realize fault switching and realize simple cost. The ideal data flow fault switching technology.
在 Moni tor l ink中, 网络设备通过上行端口与上一级网络设备连接, 通 过下行端口服务器连接。 当上行的链路故障, moni tor l ink检查到上行端 口中断后,将对应的下行端口全部 down掉,这样与下行端口连接的设备 (例 如服务器)就能感知到对应连接的链路 down了, 于是报文不再发往该链路 发送数据, 而是只把报文发向正常的链路, 这样就可以避免报文发往故障 交换机造成报文丟失了。 但现有技术不能解决下行端口故障的场景, 如果下行端口口故障, 报 文将持续从上行端口进来, 但又无法从下行端口发出去, 导致报文大量丟 失, 只有服务器主动向外发起报文后, 发起数据的设备学习到新的 MAC ( Med ia Acces s Cont ro l , 媒体接入控制)地址, 才会将数据从正常交换 设备发发送。 如果服务器一直不对外发数据, 则从故障的交换设备发送的 数据都将会被丟弃, 导致数据的丟失。 In Moni tor l ink, the network device is connected to the upper-level network device through the uplink port and connected through the downlink port server. When the uplink link is faulty, the moni tor l ink detects that the uplink port is interrupted, and then all the corresponding downlink ports are down, so that the device connected to the downlink port (for example, the server) can detect that the link of the corresponding connection is down. Therefore, the packet is not sent to the link to send data, but only the packet is sent to the normal link, so that the packet is sent to the failed switch and the packet is lost. However, the prior art cannot solve the scenario in which the downlink port is faulty. The text will continue to come in from the uplink port, but it cannot be sent out from the downlink port. As a result, a large number of packets are lost. Only after the server actively initiates the packet, the device that initiates the data learns the new MAC (Medical ia Acces s Cont ro l , media access control) address, will send data from the normal switching device. If the server does not send data to the outside, the data sent from the failed switching device will be discarded, resulting in data loss.
发明内容 Summary of the invention
本发明实施例提供一种链路倒换的方法和交换设备, 以解决现有技术 中, 下行端口故障导致数据数据丟失的问题。 本发明实施例提供了一种交换设备, 所述交换设备包括: 报文接收模 块, 端口监控模块, 故障报文处理模块和中间口报文转发模块; 所述报文接收模块, 用于接收通过所述交换设备的第一端口发送给所 述交换设备的第一报文; 所述端口检测模块, 用于检测所述交换设备的第二端口状态, 在检测 到所述交换设备的第二端口故障时, 通知所述故障报文处理模块; 所述故障报文处理模块, 用于根据所述端口检测模块的通知, 生成具 有反向地址的第二报文, 并将所述反向地址报文发送给中间口报文转发模 块; 所述第二报文的源地址是所述第一报文的目的地址, 所述第二报文的 目的地址是所述第一报文的源地址; 所述中间口报文转发模块, 用于将所述故障报文处理模块发送的第二 报文, 发送给与所述交换设备互为备份的备份交换设备, 使得所述第二报 文从所述备份交换设备的第一接口发送。  The embodiment of the present invention provides a link switching method and a switching device to solve the problem of data data loss caused by a downlink port failure in the prior art. The embodiment of the present invention provides a switching device, where the switching device includes: a packet receiving module, a port monitoring module, a fault packet processing module, and an intermediate port packet forwarding module; and the packet receiving module is configured to receive a first packet sent by the first port of the switching device to the switching device; the port detecting module, configured to detect a second port state of the switching device, where the second port of the switching device is detected The fault message processing module is configured to notify the fault packet processing module, and the fault packet processing module is configured to generate a second packet with a reverse address according to the notification of the port detecting module, and report the reverse address The message is sent to the intermediate port packet forwarding module; the source address of the second packet is the destination address of the first packet, and the destination address of the second packet is the source address of the first packet; The intermediate port packet forwarding module is configured to send the second packet sent by the fault packet processing module to a backup switching device that is backed up with the switching device, so that The second interface sends the first packet switching device from the backup.
可选的, 所述故障报文处理模块生成具有反向地址的第二报文包括: 所述故障报文处理模块将所述第一报文的源媒体接入控制 MAC地址改 为目的 MAC地址, 将第一报文的目的 MAC地址改为源 MAC地址, 以生成第二报 文。 Optionally, the fault packet processing module generates the second packet with the reverse address, where the fault packet processing module changes the source media access control MAC address of the first packet. For the destination MAC address, change the destination MAC address of the first packet to the source MAC address to generate a second packet.
可选的, 所述故障报文处理模块生成具有反向地址的第二报文包括: 所述故障报文处理模块根据所述第一报文的互联网协议 IP地址生成第 二报文, 所述第二报文的源 MAC地址是所述第一报文的目的 MAC地址, 所述 第二报文的目的 MAC地址是所述第一报文的源 MAC地址。  Optionally, the fault packet processing module generates the second packet with the reverse address, where the fault packet processing module generates the second packet according to the Internet Protocol IP address of the first packet, where The source MAC address of the second packet is the destination MAC address of the first packet, and the destination MAC address of the second packet is the source MAC address of the first packet.
可选的, 所述故障报文处理模块生成具有反向地址的第二报文包括: 所述故障报文处理模块根据预先设定的固定 IP地址生成第二报文, 所 述第二^艮文的源 MAC地址是所述第一 ^艮文的目的 MAC地址, 所述第二 ^艮文的 目的 MAC地址是所述第一报文的源 MAC地址。 可选的, 所述第二报文具有区别于所述第一报文的标识, 使得所述备 份交换设备根据所述标识能够识别出所述第二报文要通过第一端口发送。  Optionally, the generating, by the faulty packet processing module, the second packet that has the reverse address, the faulty packet processing module generates the second packet according to the preset fixed IP address, where the second packet is generated. The source MAC address of the text is the destination MAC address of the first packet, and the destination MAC address of the second packet is the source MAC address of the first packet. Optionally, the second packet has an identifier that is different from the first packet, so that the backup switching device can identify that the second packet is to be sent through the first port according to the identifier.
可选的, 所述交换设备为支持 moni tor l ink技术的交换设备, 所述交 换设备的第一端口是所述交换设备与其它网络设备的连接的上行端口, 所 述交换设备的第二端口是所述交换设备与服务器连接的下行端口。 可选的, 所述交换设备还包括转发模块; 所述转发模块用于将所述第一报文发送给所述中间口报文转发模块; 相应的, 所述中间口报文转发模块进一步用于接收所述转发模块发送 的所述第一报文, 并将所述第一报文发送给所述备份交换设备, 使得所述 第一报文从所述备份交换设备的的第二端口发送。 本发明实施例还提供了一种链路倒换的方法, 所述方法包括: 接收通过交换设备的第一端口发送给所述交换设备的第一报文; 检测所述交换设备的第二端口状态, 在检测到所述交换设备的第二端 口故障时, 生成具有反向地址的第二报文, 所述第二报文的源地址是所述 第一报文的目的地址, 所述第二报文的目的地址是所述第一报文的源地址; 将所述第二报文发送给与所述交换设备互为备份的备份交换设备, 使 得所述第二报文从所述备份交换设备的第一接口发送。 Optionally, the switching device is a switching device that supports the moni tor ink technology, where the first port of the switching device is an uplink port of the switching device and other network devices, and the second port of the switching device It is the downlink port to which the switching device is connected to the server. Optionally, the switching device further includes a forwarding module, where the forwarding module is configured to send the first packet to the intermediate port packet forwarding module; correspondingly, the intermediate port packet forwarding module is further used. Receiving the first packet sent by the forwarding module, and sending the first packet to the backup switching device, so that the first packet is sent from a second port of the backup switching device. . The embodiment of the present invention further provides a method for link switching, where the method includes: receiving a first packet sent to the switching device by using a first port of the switching device; and detecting a second port state of the switching device Generating a second packet with a reverse address when the second port of the switching device is detected to be faulty, where the source address of the second packet is the The destination address of the first packet, the destination address of the second packet is the source address of the first packet, and the second packet is sent to the backup switching device that is backed up with the switching device. The second packet is sent from the first interface of the backup switching device.
可选的, 所述生成具有反向地址的第二报文包括: 将所述第一报文的源媒体接入控制 MAC地址改为目的 MAC地址, 将第一 报文的目的 MAC地址改为源 MAC地址, 以生成第二报文。  Optionally, the generating the second packet with the reverse address includes: changing the source media access control MAC address of the first packet to the destination MAC address, and changing the destination MAC address of the first packet to Source MAC address to generate a second packet.
可选的, 所述生成具有反向地址的第二报文包括:  Optionally, the generating the second packet with the reverse address includes:
根据所述第一报文的互联网协议 IP地址生成第二报文, 所述第二报文 的源 MAC地址是所述第一报文的目的 MAC地址, 所述第二报文的目的 MAC地址 是所述第一报文的源 MAC地址。  And generating a second packet according to the Internet Protocol IP address of the first packet, where a source MAC address of the second packet is a destination MAC address of the first packet, and a destination MAC address of the second packet It is the source MAC address of the first packet.
可选的, 所述生成具有反向地址的第二报文包括: 根据预先设定的固定 IP地址生成第二报文, 所述第二报文的源 MAC地址 是所述第一 文的目的 MAC地址, 所述第二 ^艮文的目的 MAC地址是所述第一 才艮文的源 MAC地址。 可选的, 所述第二报文具有区别于所述第一报文的标识, 使得所述备 份交换设备根据所述标识能够识别出所述第二报文要通过第一端口发送。  Optionally, the generating the second packet with the reverse address includes: generating a second packet according to the preset fixed IP address, where the source MAC address of the second packet is the purpose of the first text The MAC address, the destination MAC address of the second message is the source MAC address of the first source. Optionally, the second packet has an identifier that is different from the first packet, so that the backup switching device can identify that the second packet is to be sent through the first port according to the identifier.
可选的, 所述交换设备为支持 moni tor l ink技术的交换设备, 所述交 换设备的第一端口是所述交换设备与其它网络设备的连接的上行端口, 所 述交换设备的第二端口是所述交换设备与服务器连接的下行端口。 可选的, 所述方法还包括: 将所述第一报文发送给所述备份交换设备, 使得所述第一报文从所述 备份交换设备的的第二端口发送。  Optionally, the switching device is a switching device that supports the moni tor ink technology, where the first port of the switching device is an uplink port of the switching device and other network devices, and the second port of the switching device It is the downlink port to which the switching device is connected to the server. Optionally, the method further includes: sending the first packet to the backup switching device, so that the first packet is sent from a second port of the backup switching device.
本发明实施例提供的链路倒换的方法和交换设备, 通过生成具有反向 地址的第二报文, 所述第二报文的源地址是所述第一报文的目的地址, 所 述第二报文的目的地址是所述第一报文的源地址; 并将所述反向地址报文 发送给与所述交换设备互为备份的备份交换设备, 所述第二报文从所述备 份交换设备的第一接口发送, 使得发送所述第一报文的设备及时获取备份 交换设备的地址, 从备份交换设备发送数据, 避免了因交换设备的第二端 口等下行端口故障而发送所述第一报文的设备无法及时获知导致的数据丟 失问题。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对 实施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员 来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的 附图。 The method for the link switching and the switching device provided by the embodiment of the present invention, by generating a second packet with a reverse address, where the source address of the second packet is the destination address of the first packet, The destination address of the second packet is the source address of the first packet, and the reverse address packet is sent to the backup switching device that is backed up with the switching device, and the second packet is The first interface of the backup switching device sends, so that the device that sends the first packet obtains the address of the backup switching device in time, and sends data from the backup switching device, thereby avoiding the downlink port failure of the second port of the switching device. The device that sends the first packet cannot know the data loss caused in time. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings to be used in the embodiments or the description of the prior art will be briefly described below, and obviously, in the following description The drawings are only some of the embodiments of the present invention, and other drawings may be obtained from those skilled in the art without departing from the drawings.
图 1为现有技术中实现 moni tor 1 ink组的基本结构示意图; 图 2为本发明实施例一种交换设备 200的结构示意图;  1 is a schematic diagram of a basic structure of a moni tor 1 ink group in the prior art; FIG. 2 is a schematic structural diagram of a switching device 200 according to an embodiment of the present invention;
图 3为本发明实施例一种交换设备 200另一种实现方式结构示意图; 图 4为本发明实施例提供的一种链路倒换的方法的流程示意图 具体实施方式 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进 行清楚、 完整地描述, 显然, 所描述的实施例是本发明的一部分实施例, 而不是全部实施例。 基于本发明中的实施例, 本领域普通技术人员在没有 做出创造性劳动的前提下所获得的所有其他实施例, 都应属于本发明保护 的范围。  FIG. 3 is a schematic structural diagram of another implementation manner of a switching device 200 according to an embodiment of the present invention; FIG. 4 is a schematic flowchart of a method for link switching according to an embodiment of the present invention. The drawings illustrate the technical solutions in the embodiments of the present invention clearly and completely, and it is obvious that the described embodiments are a part of the embodiments of the present invention, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
参考图 1 , 图 1为现有技术中实现 moni tor 1 ink组的基本结构示意图。 服务器 100分别于交换设备 A和交换设备 B连接, 网络设备 101与交换设备 A连 接, 通过交换设备 A实现与服务器 100的通信; 交换设备 B作为网络设备 101 的备用路径上的交换设备, 在交换设备 A出现故障无法传递数据时, 网络设 备 101能够通过交换设备 B实现与服务器 100的通信。 其中, 在交换设备 A和交换设备 B上都配置了配置了 moni tor l ink功能, 上行端口 A和下行端口 A属于一个 moni tor l ink组, 上行端口 B和下行端口 B 属于一个 moni tor l ink组。 网络设备 101与交换设备 A的接口为上行端口 A, 网络设备 101发往服务器 100的数据通过上行端口 A发送到交换设备 A, 交换 设备 A通过与服务器 100的下行端口 A将数据发送给服务器 100。 如果下行端口 A出现故障, 服务器能够感知该端口故障, 后续不会再从 该下行端口 A发送报文。 但与上行端口 A连接的网络设备 101并不知道下行端 口 A已经故障, 继续将数据或报文从上行端口 A发送给交换设备 。 由于下行 端口 A已经故障, 报文又无法从下行端口 A发出去, 因此只能丟弃数据或报 文, 导致数据或报文的大量丟失。 只有服务器通过交换设备 B主动向网络设 备 101发送数据或报文, 网络设备 101根据接收到转发数据或报文的 MAC地址 (即交换设备 B的 MAC地址),才会向交换设备 B的上行端口发送数据或报文。 如果服务器 100—直不向网络设备 101发送数据或报文, 网络设备发送给服 务器 100的数据或报文将一直被丟弃。 为解决现有技术中因下行端口故障导致从上行端口发送的数据丟失的 问题, 本发明实施例提供了一种交换设备 200。 参考图 2 , 图 2为本发明实施 例一种交换设备 200的结构示意图,该交换设备 200包括:报文接收模块 201 , 端口监控模块 202 , 故障报文处理模块 203和中间口报文转发模块 204; 所述报文接收模块 201 , 用于接收通过所述交换设备 200的第一端口发 送给所述交换设备 200的第一报文; 所述端口检测模块 202 , 用于检测所述交换设备 200的第二端口状态, 在检测到所述交换设备 200的第二端口故障时, 通知所述故障报文处理模块 203; 所述交换设备 200的第一端口是所述交换设备 200与其它网络设备的连 接的端口, 例如可以是 moni tor l ink技术中与其它网络设备连接的上行端 口。 所述交换设备 200的第二端口是所述交换设备 200与服务器连接的端口, 例如可以是 moni tor l ink技术中与服务器连接的下行端口。 其中, 端口检测模块 202检测第一端口的状态可以通过定时检查链路的 状态字, 根据链路的状态字确认第一端口是否故障等, 本发明实施例不限 定端口状态检测的方式。 Referring to FIG. 1, FIG. 1 is a schematic diagram of a basic structure of a moni tor 1 ink group implemented in the prior art. The server 100 is connected to the switching device A and the switching device B respectively, the network device 101 is connected to the switching device A, and the communication with the server 100 is realized by the switching device A; the switching device B is used as the switching device on the alternate path of the network device 101, and is exchanged. When the device A fails to transmit data, the network device 101 can implement communication with the server 100 through the switching device B. The function of the moni tor l ink is configured on the switching device A and the switching device B. The uplink port A and the downlink port A belong to a moni tor l ink group, and the uplink port B and the downlink port B belong to a moni tor l ink. group. The interface between the network device 101 and the switching device A is the uplink port A, and the data sent by the network device 101 to the server 100 is sent to the switching device A through the uplink port A, and the switching device A transmits the data to the server 100 through the downlink port A of the server 100. . If the downlink port A is faulty, the server can detect the port fault and will not send packets from the downlink port A. However, the network device 101 connected to the uplink port A does not know that the downlink port A has failed, and continues to send data or packets from the uplink port A to the switching device. As the downlink port A is faulty, the packet cannot be sent from the downlink port A. Therefore, only data or packets can be discarded, resulting in a large loss of data or packets. Only the server actively sends data or packets to the network device 101 through the switching device B. The network device 101 sends the data to the uplink port of the switching device B according to the MAC address of the forwarding data or the packet (that is, the MAC address of the switching device B). Send data or messages. If the server 100 does not send data or messages to the network device 101, the data or messages sent by the network device to the server 100 will always be discarded. To solve the problem of data loss from the uplink port caused by the downlink port failure in the prior art, the embodiment of the present invention provides a switching device 200. Referring to FIG. 2, FIG. 2 is a schematic structural diagram of a switching device 200 according to an embodiment of the present invention. The switching device 200 includes: a packet receiving module 201, a port monitoring module 202, a fault packet processing module 203, and an intermediate port packet forwarding module. The packet receiving module 201 is configured to receive a first packet that is sent to the switching device 200 by using the first port of the switching device 200. The port detecting module 202 is configured to detect the switching device. 200 second port status, When the second port of the switching device 200 is detected to be faulty, the faulty packet processing module 203 is notified; the first port of the switching device 200 is a port of the switching device 200 connected to other network devices, for example It can be an uplink port connected to other network devices in the moni tor ink technology. The second port of the switching device 200 is a port that the switching device 200 is connected to the server, and may be, for example, a downlink port connected to the server in the moni tor ink technology. The port detection module 202 detects the state of the first port by checking the status word of the link periodically, and confirms whether the first port is faulty or the like according to the status word of the link. The embodiment of the present invention does not limit the manner of port state detection.
可选的, 所述端口检测模块 202在检测到所述交换设备 200的第二端口 故障时, 关闭所述交换设备 200的第二端口, 所述交换设备 200从第一端口 接收到的数据或报文不再通过所述第二端口转发。  Optionally, when detecting that the second port of the switching device 200 is faulty, the port detecting module 202 turns off the second port of the switching device 200, and the data received by the switching device 200 from the first port or The message is no longer forwarded through the second port.
所述故障报文处理模块 203 , 用于根据所述端口检测模块 202的通知, 生成具有反向地址的第二报文, 并将所述反向地址报文发送给中间口报文 转发模块 204; 所述第二报文的源地址是所述第一报文的目的地址, 所述第 二报文的目的地址是所述第一报文的源地址;  The fault packet processing module 203 is configured to generate a second packet with a reverse address according to the notification of the port detection module 202, and send the reverse address packet to the intermediate port packet forwarding module 204. The source address of the second packet is the destination address of the first packet, and the destination address of the second packet is the source address of the first packet;
所述中间口报文转发模块 204 , 用于将所述故障报文处理模块 203发送 的所述第二报文, 发送给与所述交换设备 200互为备份的备份交换设备, 使 得所述第二报文从所述备份交换设备的第一接口发送。 即所述中间口报文 转发模块 204将所述第二报文通过所述备份交换设备的第一接口发送给发 送所述第一报文的网络设备, 使得发送所述第一报文的网络设备能够获取 新的交换设备的地址, 即备份交换设备的地址, 从而将后续发送的报文发 给所述备份交换设备, 实现即时的链路倒换, 保障数据的安全。  The intermediate port packet forwarding module 204 is configured to send the second packet sent by the fault packet processing module 203 to a backup switching device that is backed up with the switching device 200, so that the The second packet is sent from the first interface of the backup switching device. The intermediate port packet forwarding module 204 sends the second packet to the network device that sends the first packet by using the first interface of the backup switching device, so that the network that sends the first packet is sent. The device can obtain the address of the new switching device, that is, the address of the backup switching device, and then send the subsequently sent packet to the backup switching device to implement instant link switching and ensure data security.
上述交换设备 200 , 通过故障报文处理模块 203生成具有反向地址的第 二报文, 所述第二报文的源地址是所述第一报文的目的地址, 所述第二报 文的目的地址是所述第一报文的源地址; 并将所述反向地址报文通过中间 口报文转发模块发送给与所述交换设备 200互为备份的备份交换设备, 所述 第二报文从所述备份交换设备的第一接口发送, 使得发送所述第一报文的 设备及时获取备份交换设备的地址, 从备份交换设备发送数据, 避免了因 交换设备的第二端口等下行端口故障而发送所述第一报文的设备无法及时 获知导致的数据丟失问题。 其中, 与所述交换设备 200互为备份的备份交换设备, 是与所述交换设 备 200共同连接于同一个服务器的交换设备, 所述交换设备 200与所述服务 器之间的链路, 和所述备份交换设备与所述服务器之间的链路互为备份关 系; 可以是支持 Moni tor l ink 技术的互为备份的交换设备, 例如图 1中交 换设备 A和交换设备 B互为备份, 交换设备 B是交换设备 A的备份交换设备。 在所述交换设备 200与所述服务器之间的链路故障时, 所述备份交换设备与 所述服务器之间的链路能够用来代替所述交换设备 200与所述服务器之间 的链路。 作为一种可选的实现方式, 所述交换设备 200还包括转发模块 205。 参 考图 3 , 图 3为本发明实施例一种交换设备 200另一种实现方式结构示意图。 其中, 所述转发模块 205用于将所述第一报文发送给所述中间口报文转发模 块 204 ; 相应的, 所述中间口报文转发模块 204 , 进一步用于接收所述转发 模块 205发送的所述第一报文, 并将所述第一报文发送给所述备份交换设 备, 使得所述第一报文从所述备份交换设备的的第二端口发送。 The switching device 200 generates a second packet with a reverse address by using the fault packet processing module 203, where the source address of the second packet is the destination address of the first packet, and the second packet The destination address of the text is the source address of the first packet, and the reverse address packet is sent to the backup switching device that is backed up with the switching device 200 by using the intermediate port packet forwarding module. The second packet is sent from the first interface of the backup switching device, so that the device that sends the first packet acquires the address of the backup switching device in time, and sends data from the backup switching device, thereby avoiding the second port of the switching device. The device that sends the first packet when the downlink port is faulty cannot know the data loss problem in time. The backup switching device that is backed up with the switching device 200 is a switching device that is connected to the same server in common with the switching device 200, and the link between the switching device 200 and the server. The link between the backup switching device and the server is a backup relationship; the switching device that supports the mutual backup of the Moni tor ink technology, for example, the switching device A and the switching device B in FIG. 1 are mutually backup and exchanged. Device B is the backup switching device of switching device A. When the link between the switching device 200 and the server fails, a link between the backup switching device and the server can be used to replace the link between the switching device 200 and the server. . As an optional implementation manner, the switching device 200 further includes a forwarding module 205. Referring to FIG. 3, FIG. 3 is a schematic structural diagram of another implementation manner of a switching device 200 according to an embodiment of the present invention. The forwarding module 205 is configured to send the first packet to the intermediate port packet forwarding module 204. Correspondingly, the intermediate port packet forwarding module 204 is further configured to receive the forwarding module 205. Transmitting the first packet, and sending the first packet to the backup switching device, so that the first packet is sent from a second port of the backup switching device.
通过转发模块 205将所述第一报文发送给报文转发模块 204 , 报文转发 模块 204将所述第一报文发送给所述备份交换设备, 使得所述第一报文从所 述备份交换设备的的第二端口发送, 能够进一步提高数据的安全性, 使得 第一报文避免由于所述交换设备 200的第二端口故障无法发送出去导致的 所述第一报文的丟失。 其中, 备份交换设备的第一端口是所述备份交换设备与其它网络设备 的连接的端口, 例如可以是 moni tor 1 ink技术中与其它网络设备连接的上 行端口。 所述备份交换设备的第二端口是所述交换设备 200与服务器连接的 端口, 例如可以是 mon i tor 1 i nk技术中与服务器连接的下行端口 作为一种可选的实现方式, 所述故障报文处理模块 203生成具有反向地 址的第二^艮文可以包括: 将所述第一 文的源 MAC地址改为目的 MAC地址, 将第一 文的目的 MAC地址改为源 MAC地址, 以生成第二 ^艮文。 作为一种可选的实现方式, 所述故障报文处理模块 203生成具有反向地 址的第二报文还可以包括: 根据所述第一报文的 IP ( Internet Protocol , 互联网协议) 地址生成第二报文, 例如第二报文可以是 ARP ( Addres s Resolut ion Protocol , 地址解析协议)报文, 所述 ARP报文的源 MAC地址是 所述第一报文的目的 MAC地址, 所述 ARP报文的目的 MAC地址是所述第一报文 的源 MAC地址。 作为一种可选的实现方式, 所述故障报文处理模块 203生成具有反向地 址的第二报文还可以包括: 根据预先设定的固定 IP地址生成第二报文, 该 第二报文也可以是 ARP报文, 所述 ARP报文的源 MAC地址是所述第一报文的目 的 MAC地址, 所述 ARP报文的目的 MAC地址是所述第一报文的源 MAC地址。 作为一种可选的实现方式, 所述故障报文处理模块 203生成具有反向地 址的第二报文, 具有区别于所述第一报文的标识, 使得所述备份交换设备 根据所述标识能够识别出所述第二报文要通过第一端口发送。 The first packet is sent to the packet forwarding module 204 by the forwarding module 205, and the packet forwarding module 204 sends the first packet to the backup switching device, so that the first packet is sent from the backup. The second port of the switching device can further improve the security of the data, so that the first packet is prevented from being lost due to the failure of the second port of the switching device 200 to be sent out. The first port of the backup switching device is a port of the backup switching device connected to other network devices, and may be, for example, an uplink port connected to other network devices in the moni tor 1 ink technology. The second port of the backup switching device is a port that is connected to the server by the switching device 200, and may be, for example, a downlink port connected to the server in the mon i tor 1 i nk technology as an optional implementation manner, where the fault occurs. The message processing module 203 generates the second message having the reverse address, which may include: changing the source MAC address of the first text to the destination MAC address, and changing the destination MAC address of the first text to the source MAC address, to Generate the second ^艮 text. As an optional implementation manner, the generating, by the faulty packet processing module 203, the second packet having the reverse address may further include: generating, by using an IP (Internet Protocol) address of the first packet The second packet, for example, the second packet may be an ARP (Addres Resin Protocol) packet, and the source MAC address of the ARP packet is the destination MAC address of the first packet, and the ARP The destination MAC address of the packet is the source MAC address of the first packet. As an optional implementation manner, the generating, by the faulty packet processing module 203, the second packet having the reverse address may further include: generating a second packet according to the preset fixed IP address, where the second packet is sent The ARP packet may be an ARP packet, where the source MAC address of the ARP packet is the destination MAC address of the first packet, and the destination MAC address of the ARP packet is the source MAC address of the first packet. As an optional implementation, the fault packet processing module 203 generates a second packet having a reverse address, and has an identifier different from the first packet, so that the backup switching device is configured according to the identifier. The second message can be identified to be sent through the first port.
通过上述交换设备 200的实现方式, 能够避免在实现 Moni tor l ink倒换 技术的场景下, 因下行口故障导致的从上行口发送的数据丟失的问题, 能 够在服务器等网络设备主动发起数据传输前及时将从上行口发送的数据切 换到备用的交换设备传输, 避免了数据的丟失, 提高了数据的安全性。  The implementation of the switching device 200 can avoid the problem of data loss from the uplink port caused by the downlink port failure in the scenario of implementing the Moni tor ink switching technology, and can be initiated before the network device such as the server initiates data transmission. In time, the data sent from the uplink port is switched to the alternate switching device transmission, which avoids data loss and improves data security.
参考图 4 , 图 4为本发明实施例提供的一种链路倒换的方法的流程示意 图, 包括: Referring to FIG. 4, FIG. 4 is a schematic flowchart of a method for link switching according to an embodiment of the present invention. Figure, including:
步骤 400: 接收通过交换设备的第一端口发送给所述交换设备的第一报 文;  Step 400: Receive a first packet sent to the switching device by using a first port of the switching device.
步骤 402: 检测所述交换设备的第二端口状态, 在检测到所述交换设备 的第二端口故障时, 生成具有反向地址的第二报文, 所述第二报文的源地 址是所述第一报文的目的地址, 所述第二报文的目的地址是所述第一报文 的源地址; 步骤 404: 将所述第二报文发送给与所述交换设备互为备份的备份交换 设备, 使得所述第二报文从所述备份交换设备的第一接口发送。 即将所述第二报文通过所述备份交换设备的第一接口发送给发送所述 第一报文的网络设备, 使得发送所述第一报文的网络设备能够获取新的交 换设备的地址, 即备份交换设备的地址, 从而将后续发送的报文发给所述 备份交换设备, 实现即时的链路倒换, 保障数据的安全。 上述方法通过生成具有反向地址的第二报文, 所述第二报文的源地址 是所述第一报文的目的地址, 所述第二报文的目的地址是所述第一报文的 源地址; 并将所述反向地址报文发送给与所述交换设备互为备份的备份交 换设备, 所述第二报文从所述备份交换设备的第一接口发送, 使得发送所 述第一报文的设备及时获取备份交换设备的地址, 从备份交换设备发送数 据, 避免了因交换设备的第二端口故障而发送所述第一报文的设备无法及 时获知导致的数据丟失问题。  Step 402: Detect a second port status of the switching device, and when detecting that the second port of the switching device is faulty, generate a second packet with a reverse address, where the source address of the second packet is a destination address of the first packet, where the destination address of the second packet is a source address of the first packet; Step 404: Send the second packet to a backup device with the switching device Backing up the switching device, so that the second packet is sent from the first interface of the backup switching device. The second packet is sent to the network device that sends the first packet by using the first interface of the backup switching device, so that the network device that sends the first packet can obtain the address of the new switching device. That is, the address of the switching device is backed up, so that the subsequently sent packet is sent to the backup switching device to implement instant link switching and ensure data security. The method of the second packet generates a second packet, the source address of the second packet is the destination address of the first packet, and the destination address of the second packet is the first packet. The source address is sent to the backup switching device that is backed up with the switching device, and the second packet is sent from the first interface of the backup switching device, so that the sending The device of the first packet obtains the address of the backup switching device in time, and sends data from the backup switching device, so as to avoid the data loss caused by the device that sends the first packet due to the failure of the second port of the switching device.
其中, 上述方法中, 生成具有反向地址的第二报文可以包括: 将所述第一报文的源媒体接入控制 MAC地址改为目的 MAC地址, 将第一 报文的目的 MAC地址改为源 MAC地址, 以生成第二报文。  The method for generating the second packet with the reverse address may include: changing the source media access control MAC address of the first packet to the destination MAC address, and changing the destination MAC address of the first packet. The source MAC address is used to generate a second packet.
作为一种可选的实现方式, 生成具有反向地址的第二报文还可以通过 下述方式实现: As an optional implementation, generating the second packet with the reverse address may also pass The following ways are implemented:
根据所述第一报文的互联网协议 IP地址生成第二报文, 所述第二报文 的源 MAC地址是所述第一报文的目的 MAC地址, 所述第二报文的目的 MAC地址 是所述第一报文的源 MAC地址。  And generating a second packet according to the Internet Protocol IP address of the first packet, where a source MAC address of the second packet is a destination MAC address of the first packet, and a destination MAC address of the second packet It is the source MAC address of the first packet.
可选的, 生成具有反向地址的第二报文还可以通过下述方式实现: 根据预先设定的固定 IP地址生成第二报文, 所述第二报文的源 MAC地址 是所述第一 文的目的 MAC地址, 所述第二 ^艮文的目的 MAC地址是所述第一 才艮文的源 MAC地址。 其中, 所述第二报文具有区别于所述第一报文的标识, 使得所述备份 交换设备根据所述标识能够识别出所述第二报文要通过第一端口发送。 本发明实施例链路倒换方法中的交换设备, 可以为支持 moni tor l ink 技术的交换设备, 所述交换设备的第一端口是所述交换设备与其它网络设 备的连接的上行端口, 所述交换设备的第二端口是所述交换设备与服务器 连接的下行端口。 上述方法还可以进一步包括: 将所述第一报文发送给所述备份交换设备, 使得所述第一报文从所述 备份交换设备的的第二端口发送。 上述方法实施例的实现方式, 可以参考图 2或图 3实施例的实现方式来 实现。 上述方法可以在上述图 2或图 3中的交换设备 200来实现, 不再赘述。 通过将所述第一报文发送给所述备份交换设备, 使得所述第一报文从 所述备份交换设备的的第二端口发送, 能够进一步提高数据的安全性, 使 得第一报文避免由于所述交换设备的第二端口故障无法发送出去导致的所 述第一报文的丟失。  Optionally, generating the second packet with the reverse address may also be implemented by: generating a second packet according to the preset fixed IP address, where the source MAC address of the second packet is the The destination MAC address of the text, and the destination MAC address of the second message is the source MAC address of the first source. The second packet has an identifier that is different from the first packet, so that the backup switching device can identify that the second packet is to be sent through the first port according to the identifier. The switching device in the link switching method of the embodiment of the present invention may be a switching device supporting the moni tor ink technology, where the first port of the switching device is an uplink port of the connection between the switching device and other network devices, The second port of the switching device is a downlink port to which the switching device is connected to the server. The method may further include: sending the first packet to the backup switching device, so that the first packet is sent from a second port of the backup switching device. The implementation manner of the foregoing method embodiments may be implemented by referring to the implementation manner of the embodiment of FIG. 2 or FIG. 3. The above method can be implemented in the above-mentioned switching device 200 in FIG. 2 or FIG. 3, and details are not described herein again. Sending the first packet to the backup switching device, so that the first packet is sent from the second port of the backup switching device, so that data security can be further improved, so that the first packet is avoided. The loss of the first packet caused by the failure of the second port of the switching device to be sent out.
本领域普通技术人员可以意识到, 结合本文中所公开的实施例描述的 各示例的单元及算法步骤, 能够以电子硬件、 计算机软件或者二者的结合 来实现, 为了清楚地说明硬件和软件的可互换性, 在上述说明中已经按照 功能一般性地描述了各示例的组成及步骤。 这些功能究竟以硬件还是软件 方式来执行, 取决于技术方案的特定应用和设计约束条件。 专业技术人员 可以对每个特定的应用来使用不同方法来实现所描述的功能, 但是这种实 现不应认为超出本发明的范围。 One of ordinary skill in the art will recognize that the embodiments described herein are described in connection with the embodiments disclosed herein. The example units and algorithm steps can be implemented in electronic hardware, computer software, or a combination of both. In order to clearly illustrate the interchangeability of hardware and software, the examples have been generally described in terms of function in the above description. Composition and steps. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到, 为了描述的方便和简洁, 上 述描述的系统、 装置和单元的具体工作过程, 可以参考前述方法实施例中 的对应过程, 在此不再赘述。  A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统、 装置 和方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅 是示意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实 现时可以有另外的划分方式, 例如多个单元或组件可以结合或者可以集成 到另一个系统, 或一些特征可以忽略, 或不执行。 另外, 所显示或讨论的 相互之间的耦合或直接耦合或通信连接可以是通过一些接口、 装置或单元 的间接耦合或通信连接, 也可以是电的, 机械的或其它的形式连接。 作为单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地 方, 或者也可以分布到多个网络单元上。 可以根据实际的需要选择其中的 部分或者全部单元来实现本发明实施例方案的目的。  In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, or an electrical, mechanical or other form of connection. The components displayed as units may or may not be physical units, i.e., may be located in one place, or may be distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元 中, 也可以是各个单元单独物理存在, 也可以是两个或两个以上单元集成 在一个单元中。 上述集成的单元既可以釆用硬件的形式实现, 也可以釆用 软件功能单元的形式实现。  In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销 售或使用时, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发明的技术方案本质上或者说对现有技术做出贡献的部分, 或者该技术 方案的全部或部分可以以软件产品的形式体现出来, 该计算机软件产品存 储在一个存储介质中, 包括若干指令用以使得一台计算机设备(可以是个 人计算机, 服务器, 或者网络设备等)执行本发明各个实施例所述方法的 全部或部分步骤。 而前述的存储介质包括: U盘、 移动硬盘、 只读存储器The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on this understanding, The technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions. To enable a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a USB flash drive, a mobile hard disk, and a read only memory.
( ROM, Read-Only Memory ) 、 随机存取存储器 ( RAM, Random Access Memory ) 、 磁碟或者光盘等各种可以存储程序代码的介质。 (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program code.
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局 限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可 轻易想到各种等效的修改或替换, 这些修改或替换都应涵盖在本发明的保 护范围之内。 因此, 本发明的保护范围应以权利要求的保护范围为准。  The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any equivalent person can be easily conceived within the technical scope of the present invention. Modifications or substitutions are intended to be included within the scope of the invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims

权利要求 Rights request
1 , 一种交换设备, 其特征在于, 所述交换设备包括: 报文接收模块, 端口监控模块, 故障报文处理模块和中间口报文转发模块; A switching device, the switching device includes: a message receiving module, a port monitoring module, a fault packet processing module, and an intermediate port packet forwarding module;
所述报文接收模块, 用于接收通过所述交换设备的第一端口发送给所 述交换设备的第一报文;  The packet receiving module is configured to receive a first packet sent by the first port of the switching device to the switching device;
所述端口检测模块, 用于检测所述交换设备的第二端口状态, 在检测 到所述交换设备的第二端口故障时, 通知所述故障报文处理模块;  The port detecting module is configured to detect a second port state of the switching device, and notify the fault packet processing module when detecting that the second port of the switching device is faulty;
所述故障报文处理模块, 用于根据所述端口检测模块的通知, 生成具 有反向地址的第二报文, 并将所述反向地址报文发送给中间口报文转发模 块; 所述第二报文的源地址是所述第一报文的目的地址, 所述第二报文的 目的地址是所述第一报文的源地址; 所述中间口报文转发模块, 用于将所述故障报文处理模块发送的所述 第二报文, 发送给与所述交换设备互为备份的备份交换设备, 使得所述第 二报文从所述备份交换设备的第一接口发送。  The fault packet processing module is configured to generate a second packet with a reverse address according to the notification of the port detection module, and send the reverse address packet to the intermediate port packet forwarding module. The source address of the second packet is the destination address of the first packet, the destination address of the second packet is the source address of the first packet, and the intermediate port packet forwarding module is configured to The second packet sent by the faulty packet processing module is sent to the backup switching device that is backed up with the switching device, so that the second packet is sent from the first interface of the backup switching device.
2 , 根据权利要求 1所述的交换设备, 其特征在于, 所述故障报文处理 模块生成具有反向地址的第二报文包括: The switching device according to claim 1, wherein the generating, by the faulty packet processing module, the second packet having the reverse address comprises:
所述故障报文处理模块将所述第一报文的源媒体接入控制 MAC地址改 为目的 MAC地址, 将第一报文的目的 MAC地址改为源 MAC地址, 以生成第二报 文。  The fault packet processing module changes the source media access control MAC address of the first packet to a destination MAC address, and changes the destination MAC address of the first packet to a source MAC address to generate a second packet.
3 , 根据权利要求 1所述的交换设备, 其特征在于, 所述故障报文处理 模块生成具有反向地址的第二报文包括: 所述故障报文处理模块根据所述第一报文的互联网协议 IP地址生成第 二报文, 所述第二报文的源 MAC地址是所述第一报文的目的 MAC地址, 所述 第二报文的目的 MAC地址是所述第一报文的源 MAC地址。 The switching device according to claim 1, wherein the generating, by the faulty packet processing module, the second packet having the reverse address comprises: The fault packet processing module generates a second packet according to the Internet Protocol IP address of the first packet, where the source MAC address of the second packet is the destination MAC address of the first packet, The destination MAC address of the second packet is the source MAC address of the first packet.
4 , 根据权利要求 1所述的交换设备, 其特征在于, 所述故障报文处理 模块生成具有反向地址的第二报文包括: The switching device according to claim 1, wherein the generating, by the faulty packet processing module, the second packet having the reverse address comprises:
所述故障报文处理模块根据预先设定的固定 IP地址生成第二报文, 所 述第二^艮文的源 MAC地址是所述第一 ^艮文的目的 MAC地址, 所述第二 ^艮文的 目的 MAC地址是所述第一报文的源 MAC地址。  The fault packet processing module generates a second packet according to a preset fixed IP address, where a source MAC address of the second packet is a destination MAC address of the first packet, and the second The destination MAC address of the text is the source MAC address of the first packet.
5 , 根据权利要求 1-4任一所述的交换设备, 其特征在于, 所述第二报 文具有区别于所述第一报文的标识, 使得所述备份交换设备根据所述标识 能够识别出所述第二报文要通过第一端口发送。 The switching device according to any one of claims 1 to 4, wherein the second packet has an identifier different from the first packet, so that the backup switching device can identify according to the identifier. The second message is sent through the first port.
6 , 根据权利要求 1-4任一所述的交换设备, 其特征在于, 所述交换设 备为支持 moni tor l ink技术的交换设备, 所述交换设备的第一端口是所述 交换设备与其它网络设备的连接的上行端口, 所述交换设备的第二端口是 所述交换设备与服务器连接的下行端口。 The switching device according to any one of claims 1-4, wherein the switching device is a switching device supporting a moni tor ink technology, and the first port of the switching device is the switching device and other A connected uplink port of the network device, where the second port of the switching device is a downlink port to which the switching device is connected to the server.
7 , 根据权利要求 1-4任一所述的交换设备, 其特征在于, 所述交换设 备还包括转发模块; 所述转发模块用于将所述第一报文发送给所述中间口报文转发模块; 相应的, 所述中间口报文转发模块进一步用于接收所述转发模块发送 的所述第一报文, 并将所述第一报文发送给所述备份交换设备, 使得所述 第一报文从所述备份交换设备的的第二端口发送。 The switching device according to any one of claims 1 to 4, wherein the switching device further includes a forwarding module, and the forwarding module is configured to send the first packet to the intermediate port packet. Correspondingly, the intermediate port packet forwarding module is further configured to receive the first packet sent by the forwarding module, and send the first packet to the backup switching device, so that the The first packet is sent from the second port of the backup switching device.
8 , 一种链路倒换的方法, 其特征在于, 所述方法包括: 接收通过交换设备的第一端口发送给所述交换设备的第一报文; 检测所述交换设备的第二端口状态, 在检测到所述交换设备的第二端 口故障时, 生成具有反向地址的第二报文, 所述第二报文的源地址是所述 第一报文的目的地址, 所述第二报文的目的地址是所述第一报文的源地址; 将所述第二报文发送给与所述交换设备互为备份的备份交换设备, 使 得所述第二报文从所述备份交换设备的第一接口发送。 A method for link switching, the method comprising: receiving a first packet sent to the switching device by using a first port of a switching device; and detecting a second port state of the switching device, When the second port of the switching device is faulty, the second packet with the reverse address is generated, the source address of the second packet is the destination address of the first packet, and the second packet is The destination address of the text is the source address of the first packet, and the second packet is sent to the backup switching device that is backed up with the switching device, so that the second packet is sent from the backup switching device. The first interface is sent.
9 , 根据权利要求 8所述的交换设备, 其特征在于, 所述生成具有反向 地址的第二报文包括: 将所述第一报文的源媒体接入控制 MAC地址改为目的 MAC地址, 将第一 报文的目的 MAC地址改为源 MAC地址, 以生成第二报文。 The switching device according to claim 8, wherein the generating the second packet with the reverse address comprises: changing the source media access control MAC address of the first packet to the destination MAC address The destination MAC address of the first packet is changed to the source MAC address to generate a second packet.
10, 根据权利要求 8所述的方法, 其特征在于, 所述生成具有反向地址 的第二报文包括: The method according to claim 8, wherein the generating the second message with the reverse address comprises:
根据所述第一报文的互联网协议 IP地址生成第二报文, 所述第二报文 的源 MAC地址是所述第一报文的目的 MAC地址, 所述第二报文的目的 MAC地址 是所述第一报文的源 MAC地址。  And generating a second packet according to the Internet Protocol IP address of the first packet, where a source MAC address of the second packet is a destination MAC address of the first packet, and a destination MAC address of the second packet It is the source MAC address of the first packet.
11 , 根据权利要求 8所述的方法, 其特征在于, 所述生成具有反向地址 的第二报文包括: 根据预先设定的固定 IP地址生成第二报文, 所述第二报文的源 MAC地址 是所述第一 文的目的 MAC地址, 所述第二 ^艮文的目的 MAC地址是所述第一 才艮文的源 MAC地址。 The method according to claim 8, wherein the generating the second packet with the reverse address comprises: generating a second packet according to the preset fixed IP address, where the second packet is Source MAC address The destination MAC address of the first text, and the destination MAC address of the second text is a source MAC address of the first source.
12 , 根据权利要求 8-11任一所述的方法, 其特征在于, 所述第二报文 具有区别于所述第一报文的标识, 使得所述备份交换设备根据所述标识能 够识别出所述第二报文要通过第一端口发送。 The method according to any one of claims 8 to 11, wherein the second packet has an identifier different from the first packet, so that the backup switching device can identify the identifier according to the identifier. The second packet is to be sent through the first port.
13 , 根据权利要求 8-11任一所述的方法, 其特征在于, 所述交换设备 为支持 moni tor l ink技术的交换设备, 所述交换设备的第一端口是所述交 换设备与其它网络设备的连接的上行端口, 所述交换设备的第二端口是所 述交换设备与服务器连接的下行端口。 The method according to any one of claims 8 to 11, wherein the switching device is a switching device supporting a moni tor ink technology, and the first port of the switching device is the switching device and other networks. A connected uplink port of the device, where the second port of the switching device is a downlink port to which the switching device is connected to the server.
14 , 根据权利要求 8-11任一所述的方法, 其特征在于, 所述方法还包 括: The method according to any one of claims 8-11, wherein the method further comprises:
将所述第一报文发送给所述备份交换设备, 使得所述第一报文从所述 备份交换设备的的第二端口发送。  Sending the first packet to the backup switching device, so that the first packet is sent from a second port of the backup switching device.
PCT/CN2013/091166 2013-12-31 2013-12-31 Method and switching device for link alternation WO2015100637A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201380002726.2A CN103891204B (en) 2013-12-31 2013-12-31 The method of link switchover and switching equipment
PCT/CN2013/091166 WO2015100637A1 (en) 2013-12-31 2013-12-31 Method and switching device for link alternation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/091166 WO2015100637A1 (en) 2013-12-31 2013-12-31 Method and switching device for link alternation

Publications (1)

Publication Number Publication Date
WO2015100637A1 true WO2015100637A1 (en) 2015-07-09

Family

ID=50957874

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/091166 WO2015100637A1 (en) 2013-12-31 2013-12-31 Method and switching device for link alternation

Country Status (2)

Country Link
CN (1) CN103891204B (en)
WO (1) WO2015100637A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115086152A (en) * 2022-07-25 2022-09-20 广东电网有限责任公司佛山供电局 Domain-based rapid protection network data mirroring system for power distribution network

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105827419B (en) * 2015-01-05 2020-03-10 华为技术有限公司 Method, equipment and controller for processing forwarding equipment fault
CN106302148B (en) * 2016-08-17 2020-01-10 深圳市金证科技股份有限公司 Backup data transmission method and system based on LBM

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050144328A1 (en) * 2003-12-11 2005-06-30 Mcbeath Tom Smartjack for fault-testing network segments on Ethernet and other internet protocol network architectures
CN101068139A (en) * 2007-06-28 2007-11-07 中兴通讯股份有限公司 Media gateway upper connection link main spare protecting method
CN101155109A (en) * 2006-09-30 2008-04-02 华为技术有限公司 Ethernet switching system and equipment
CN102025646A (en) * 2011-01-05 2011-04-20 杭州华三通信技术有限公司 Link switching method and device thereof
CN102480530A (en) * 2010-11-25 2012-05-30 华为技术有限公司 Message sending method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005260321A (en) * 2004-03-09 2005-09-22 Nec Corp Alternative control system of label path network
CN101277225B (en) * 2008-05-09 2012-07-04 杭州华三通信技术有限公司 Method for analyzing network quality as well as network quality analysis terminal-initiating equipment
CN101958831B (en) * 2010-06-10 2013-03-13 福建星网锐捷网络有限公司 Ethernet ring network failure recovery method, Ethernet ring network and switching equipment
CN102891769A (en) * 2012-10-16 2013-01-23 杭州华三通信技术有限公司 Link fault informing method and apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050144328A1 (en) * 2003-12-11 2005-06-30 Mcbeath Tom Smartjack for fault-testing network segments on Ethernet and other internet protocol network architectures
CN101155109A (en) * 2006-09-30 2008-04-02 华为技术有限公司 Ethernet switching system and equipment
CN101068139A (en) * 2007-06-28 2007-11-07 中兴通讯股份有限公司 Media gateway upper connection link main spare protecting method
CN102480530A (en) * 2010-11-25 2012-05-30 华为技术有限公司 Message sending method and device
CN102025646A (en) * 2011-01-05 2011-04-20 杭州华三通信技术有限公司 Link switching method and device thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115086152A (en) * 2022-07-25 2022-09-20 广东电网有限责任公司佛山供电局 Domain-based rapid protection network data mirroring system for power distribution network
CN115086152B (en) * 2022-07-25 2023-01-03 广东电网有限责任公司佛山供电局 Domain-based rapid protection network data mirroring system for power distribution network

Also Published As

Publication number Publication date
CN103891204B (en) 2015-11-25
CN103891204A (en) 2014-06-25

Similar Documents

Publication Publication Date Title
US10931742B2 (en) State replication of virtual network function instances
JP5419907B2 (en) Network system and communication recovery method
CN102904818B (en) A kind of ARP information entry updating method and device
US9219640B2 (en) Performing failover in a redundancy group
CN106330475B (en) Method and device for managing main and standby nodes in communication system and high-availability cluster
WO2009089784A1 (en) Method?system and equipment for accessing network device to packet exchange network
WO2011157151A2 (en) Method, device and system for realizing disaster-tolerant backup
WO2019057007A1 (en) Method and device for detecting communication connection
JP2010525693A (en) Distributed Ethernet system and method for detecting faults based on the system
US20110164494A1 (en) Method for operating a virtual router redundancy protocol router and communication system therefor
CN103036702B (en) A kind of N+1 backup method of cross-network segment and device
WO2012106915A1 (en) Failure notification method, detection apparatus, forwarding apparatus, system and data structure
EP2733907B1 (en) Method, local gateway, and system for local voice survivability
WO2013113228A1 (en) Method, routing device and system for redundant backup of network device
CN102647304A (en) Synchronizing method of address resolution protocols and device
WO2016146022A1 (en) Preventing multiple conflicting stacks
CN111030926B (en) Method and device for improving high availability of network
WO2015100637A1 (en) Method and switching device for link alternation
WO2012171164A1 (en) Network security protection method, device and system
CN109586986B (en) Method, device, equipment and storage medium for switching network equipment
CN108270593B (en) Dual-computer hot backup method and system
CN102868616B (en) Method for establishing virtual MAC (Media Access Control) address table item in network as well as router and system
CN102546304A (en) BFD detection method, equipment and system
JP5558436B2 (en) Network system and network failure avoidance method
CN104579953A (en) A method for releasing routing, and a virtual router redundancy protocol backup group and network

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

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

Country of ref document: EP

Kind code of ref document: A1