WO2016138747A1 - Information synchronization method and apparatus - Google Patents

Information synchronization method and apparatus Download PDF

Info

Publication number
WO2016138747A1
WO2016138747A1 PCT/CN2015/087952 CN2015087952W WO2016138747A1 WO 2016138747 A1 WO2016138747 A1 WO 2016138747A1 CN 2015087952 W CN2015087952 W CN 2015087952W WO 2016138747 A1 WO2016138747 A1 WO 2016138747A1
Authority
WO
WIPO (PCT)
Prior art keywords
arp
information
notification message
packet
primary
Prior art date
Application number
PCT/CN2015/087952
Other languages
French (fr)
Chinese (zh)
Inventor
路凤敏
马飞
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016138747A1 publication Critical patent/WO2016138747A1/en

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

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and apparatus for synchronizing information in a bridge environment.
  • a Layer 2 virtual private network L2VPN service a Layer 3 virtual private network L3VPN service.
  • the L3VPN service In order to implement the L3VPN service, it is not required to support from the access aggregation layer. Only the L2VPN service can be supported at the access aggregation layer, and the L3VPN service can be supported at the core network layer. During the specific communication process, the core node needs to terminate the L2VPN service internally, and then bridges the L3VPN service to implement forwarding between the L2VPN service and the L3VPN service.
  • the main bridging device and the standby bridging device are generally included.
  • the main bridging device fails, the pseudowire fast rerouting PW FRR in the bridging environment and the virtual private network fast rerouting VPN FRR are switched, and the corresponding bridging is performed.
  • the function is transferred to the standby bridge device.
  • the ARP device needs to drive a large amount of traffic to obtain and parse ARP packets.
  • the bridging function requires a large number of ARP packets to be processed.
  • the present invention provides a method for information synchronization, which is used for a primary bridging device, including: parsing an address resolution protocol ARP packet to generate first ARP parsing information; The information is configured to construct a notification message corresponding to the first ARP parsing information, and send the notification message to the backup bridging device, so that the backup bridging device parses the received notification message, and generates a second synchronization
  • the ARP parsing information is the same as the first ARP parsing information.
  • the notification message is a gratuitous ARP packet
  • the configuration is related to the first ARP.
  • the notification message corresponding to the parsing information includes: constructing a gratuitous ARP packet corresponding to the first ARP parsing information.
  • the sending the notification message to the backup bridging device includes: sending the notification message to the backup bridging device by using a channel pseudowire PW between the active and standby bridging devices.
  • the ARP packet includes an ARP packet whose destination physical MAC address is all Fs and an ARP packet whose destination MAC address is the gateway MAC address.
  • the present invention further provides an apparatus for synchronizing information, which is located in a primary bridging device, and includes: a first parsing module configured to parse an address resolution protocol ARP packet to generate first ARP parsing information; and a constructing module configured to The first ARP parsing information is configured to construct a notification message corresponding to the first ARP parsing information, and the sending module is configured to send the notification message to the backup bridging device, so that the backup bridging device receives the notification
  • the packet is parsed, and the second ARP parsing information is generated synchronously, and the second ARP parsing information is the same as the first ARP parsing information.
  • the notification message is a gratuitous ARP packet
  • the constructing module is configured to construct a gratuitous ARP packet corresponding to the first ARP parsing information.
  • the sending module is configured to send the notification message to the backup bridge device through the channel pseudowire PW between the primary and secondary bridge devices.
  • the ARP packet includes an ARP packet whose destination physical MAC address is all Fs and an ARP packet whose destination MAC address is the gateway MAC address.
  • the invention further provides a method for synchronizing information, which is used for preparing a bridge device, comprising: receiving a notification message sent by a primary bridge device, wherein the notification message is obtained by the primary bridge device according to the ARP packet parsed by the host bridge device The first ARP parsing information is obtained, and the received ARP parsing information is parsed, and the second ARP parsing information is the same as the first ARP parsing information.
  • the notification message is a gratuitous ARP packet
  • the notification message sent by the receiving host bridge device includes: receiving the gratuitous ARP packet sent by the primary bridging device.
  • the receiving the notification message sent by the primary bridging device includes: receiving, by the channel pseudowire PW between the primary and secondary bridge devices, the notification packet sent by the primary bridging device.
  • the ARP packet includes an ARP packet whose destination physical MAC address is all Fs and an ARP packet whose destination MAC address is the gateway MAC address.
  • the present invention further provides an apparatus for synchronizing information, which is located in a backup bridging device, and includes: a receiving module, configured to receive a notification message sent by the main bridging device, wherein the notification message is that the main bridging device parses the ARP according to the The first ARP parsing information obtained by the message is constructed; the second parsing module is set to receive the received The notification message is parsed, and the second ARP parsing information is generated synchronously, and the second ARP parsing information is the same as the first ARP parsing information.
  • the notification packet is a gratuitous ARP packet
  • the receiving module is configured to receive the gratuitous ARP packet sent by the primary bridging device.
  • the receiving module is configured to receive a notification message sent by the primary bridging device by using a channel pseudowire PW between the active and standby bridging devices.
  • the ARP packet includes an ARP packet whose destination physical MAC address is all Fs and an ARP packet whose destination MAC address is the gateway MAC address.
  • the present invention has the beneficial effects that the information synchronization method and apparatus of the present invention can be used in real time through the channel PW established between the primary and backup bridge devices.
  • the ARP resolution information generated on the primary bridge device is synchronized to the backup bridge device to implement the dual-system hot backup function.
  • the backup bridge device needs to process a large number of ARP packets to complete the bridge function. The situation reduces the impact on the overall business and improves the protection switching performance.
  • FIG. 1 is a flow chart showing a method of information synchronization in an embodiment of the present invention.
  • FIG. 2 is a flowchart of processing the ARP packet with the destination MAC address being all Fs according to the present invention.
  • FIG. 3 is a flowchart of processing an ARP packet whose destination MAC address is a gateway MAC address according to the present invention.
  • FIG. 4 is a block diagram showing the structure of an apparatus for synchronizing information according to an embodiment of the present invention.
  • FIG. 5 is a flow chart showing a method of information synchronization according to another embodiment of the present invention.
  • FIG. 6 is a block diagram showing the structure of an apparatus for synchronizing information according to another embodiment of the present invention.
  • a flowchart of a method for information synchronization according to an embodiment of the present invention includes the following steps:
  • Step S101 Parsing an address resolution protocol ARP packet to generate first ARP parsing information; the first ARP parsing information exists in the form of an ARP entry in the primary bridging device;
  • Step S102 Construct a notification message corresponding to the first ARP parsing information according to the first ARP parsing information
  • Step S103 Send the notification message to the backup bridge device, and enable the backup bridge device to parse the received notification message, and generate second ARP parsing information, the second ARP parsing information and the first The ARP resolution information is the same; the second ARP resolution information exists in the form of an ARP entry in the backup bridge device.
  • the ARP resolution information generated on the primary bridging device is synchronized to the backup bridging device to implement the hot standby function, so as to prevent the bridging device from completing the bridging when the primary bridging device fails.
  • the function requires a large number of ARP packet processing to reduce the impact on the overall service and improve protection switching performance.
  • the notification message is a gratuitous ARP packet
  • the notification message corresponding to the first ARP parsing information is:
  • the method for synchronizing information in the embodiment of the present invention can synchronize the ARP parsing information by establishing a channel pseudowire PW between the primary and secondary bridge devices.
  • the sending the notification message to the backup bridge device includes:
  • the notification message is sent to the backup bridge device through the channel pseudowire PW between the active and standby bridge devices.
  • the channel PW is different from the service PW in the bridge network, the channel PW is established between the primary and backup bridge devices, and the service PW is generally bridged. Established between the device and the base station. Moreover, during the communication process, it is necessary to ensure that the channel PW is in an active state at all times.
  • the bridging device that implements the bridging function usually performs the conversion and forwarding of the L2VPN packet and the L3VPN packet by setting the bridging logical interface.
  • the corresponding interfaces can be respectively called the Layer 2 logical interface and the Layer 3 logical interface.
  • the channel PW is bound to a three-layer logical interface corresponding to the active and standby bridge devices, and one channel PW can be shared between different three-layer logical interfaces.
  • multiple channel PWs can be configured between the active and standby bridge devices to quickly synchronize ARP resolution information.
  • the multiple channels PW are isolated from each other to avoid A broadcast situation has occurred.
  • ARP packets In a bridged environment, there are two types of ARP packets that need to be resolved for the primary or secondary bridge device (the primary and secondary bridge devices are opposite): ARP packets with the destination physical MAC address being all Fs. The text and destination MAC address are ARP packets of the gateway MAC address.
  • Step 201 The bridge device receives an ARP packet whose destination MAC address is all Fs.
  • Step 202 The bridge device CPU determines whether the destination IP address of the ARP packet is its own IP address.
  • Step 203 If yes, the bridge device is a primary bridge device, and the master bridge device parses the ARP packet to generate the first ARP parsing information.
  • Step 204 The master bridge device constructs a gratuitous ARP packet corresponding to the first ARP parsing information according to the first ARP parsing information.
  • Step 205 The primary bridging device sends the gratuitous ARP packet to the backup bridging device through the channel pseudowire PW between the active and standby bridging devices, so that the backup bridging device parses the received gratuitous ARP packet. And generating, by the second ARP parsing information, the second ARP parsing information is the same as the first ARP parsing information;
  • Step 206 If it is not its own IP address, the bridge device CPU continues to determine whether the destination IP address and its own IP address are in the same network segment;
  • Step 207 If the network segment is not in the same network segment, discard the ARP packet; if yes, determine whether the ARP packet is sent through the channel PW.
  • Step 208 If yes, the bridging device is a backup bridging device, and the standby bridging device parses the received ARP packet, and generates ARP parsing information synchronously; otherwise, discards the ARP packet.
  • the ARP packet is that the primary bridge device sends an ARP request packet to the base station, so that the destination MAC address received is the gateway.
  • the ARP reply packet of the MAC address so the specific processing is as follows:
  • Step 301 The primary bridging device receives the ARP packet whose destination MAC address is the gateway MAC address.
  • Step 302 The primary bridge device CPU determines whether the destination IP address of the ARP packet is its own IP address.
  • Step 303 If yes, the primary bridging device parses the ARP packet to generate the first ARP parsing information; otherwise, discards the ARP packet;
  • Step 304 The master bridge device constructs a gratuitous ARP packet corresponding to the first ARP parsing information according to the first ARP parsing information.
  • Step 305 The primary bridging device sends the gratuitous ARP packet to the backup bridging device through the channel pseudowire PW between the active and standby bridging devices, so that the backup bridging device parses the received gratuitous ARP packet.
  • the second ARP parsing information is generated synchronously, and the second ARP parsing information is the same as the first ARP parsing information, and the process of synchronizing the ARP parsing information of the active and standby bridging devices is completed.
  • an embodiment of the present invention further provides an apparatus for synchronizing information, which is located in a main bridging device, and is configured to perform the method for synchronizing the information.
  • the device for synchronizing information includes:
  • the first parsing module 41 is configured to parse the address resolution protocol ARP packet to generate first ARP parsing information
  • the constructing module 42 is configured to construct a notification message corresponding to the first ARP parsing information according to the first ARP parsing information;
  • the sending module 43 is configured to send the notification message to the backup bridge device, so that the backup bridge device parses the received notification message, and generates second ARP parsing information, the second ARP parsing information. Same as the first ARP parsing information.
  • the notification message is a gratuitous ARP packet
  • the constructing module is configured to construct a gratuitous ARP packet corresponding to the first ARP parsing information.
  • the information synchronization device of the embodiment of the present invention can synchronize the ARP resolution information by establishing a channel pseudowire PW between the primary and secondary bridge devices.
  • the sending module is configured to send the notification message to the backup bridge device by using a channel pseudowire PW between the primary and secondary bridge devices.
  • the channel PW is bound to a three-layer logical interface corresponding to the primary and secondary bridge devices, and a channel PW can be shared between different three-layer logical interfaces.
  • a traversal search process for the channel PW and the binding of the three-layer logical interface Therefore, one channel PW cannot be bound to too many three-layer logical interfaces.
  • multiple channel PWs can be configured between the active and standby bridge devices to quickly synchronize ARP resolution information.
  • the multiple channels PW are isolated from each other.
  • the ARP packets with the destination physical MAC address being all Fs and the destination MAC address are ARP packet of the gateway MAC address.
  • the invention also provides a method for information synchronization, which can be applied to a backup bridge device.
  • a flowchart of a method for synchronizing information according to another embodiment of the present invention includes the following steps:
  • Step 501 Receive a notification packet sent by the primary bridging device, where the notification packet is constructed by the primary bridge device according to the first ARP parsing information obtained by the primary bridging device.
  • Step 502 Parse the received notification message, and generate second ARP parsing information synchronously, where the second ARP parsing information is the same as the first ARP parsing information.
  • the notification message is a gratuitous ARP packet
  • the notification message is a gratuitous ARP packet
  • the notification message sent by the receiving host bridge device includes:
  • the method for synchronizing information in the embodiment of the present invention can synchronize the ARP parsing information by establishing a channel pseudowire PW between the primary and secondary bridge devices.
  • the receiving the notification message sent by the primary bridging device includes:
  • the notification message sent by the primary bridge device is received by the channel pseudowire PW between the active and standby bridge devices.
  • ARP ARP with the destination physical MAC address being all F
  • the packet and destination MAC address are ARP packets of the gateway MAC address.
  • the embodiment of the present invention further provides an apparatus for synchronizing information, which is located in a backup bridging device, and is used for performing the method for synchronizing information shown in FIG. 5.
  • the device for synchronizing information includes:
  • the receiving module 61 is configured to receive the notification message sent by the primary bridging device, where the notification packet is configured by the primary bridging device according to the first ARP parsing information obtained by the primary bridging device.
  • the second parsing module 62 is configured to parse the received notification packet, and generate second ARP parsing information synchronously, where the second ARP parsing information is the same as the first ARP parsing information.
  • the notification packet is a gratuitous ARP packet
  • the receiving module is configured to receive the gratuitous ARP packet sent by the primary bridging device.
  • the information synchronization device of the embodiment of the present invention can synchronize the ARP resolution information by establishing a channel pseudowire PW between the primary and secondary bridge devices.
  • the receiving module is configured to receive, by using a channel pseudowire PW between the primary and secondary bridge devices, a notification message sent by the primary bridging device.
  • ARP packets In the process of synchronizing information using the information synchronization device shown in FIG. 6, there are two types of address resolution protocol ARP packets to be parsed: ARP packets with a destination physical MAC address of all Fs and a destination MAC address. ARP packet whose MAC address is the gateway.
  • the channel PW established between the primary and secondary bridge devices can synchronize the ARP resolution information generated on the primary bridge device to the backup bridge device in real time to implement dual hotspots.
  • the backup function prevents the backup bridge device from performing a large number of ARP packet processing when the bridge function is completed. This reduces the impact on the overall service and improves the protection switching performance.

Abstract

The present invention provides an information synchronization method and apparatus, the information synchronization method is used for a main bridge device and includes: resolving an address resolution protocol (ARP) message and generating first ARP resolution information; according to the first ARP resolution information, constructing a notification message corresponding to the first ARP resolution information; transmitting the notification message to a standby bridge device to enable the standby bridge device to resolve the received notification message and generate second ARP resolution information synchronously, and the second ARP resolution information is the same as the first ARP resolution information. By the present invention, the ARP resolution information generated on the main bridge device can be synchronized to the standby bridge device real-timely, and the function of double machine hot standby can be realized.

Description

一种信息同步的方法及装置Method and device for synchronizing information 技术领域Technical field
本发明涉及通信领域,特别是涉及一种用于桥接环境中的信息同步的方法及装置。The present invention relates to the field of communications, and in particular, to a method and apparatus for synchronizing information in a bridge environment.
背景技术Background technique
目前,基于多协议标记交换MPLS技术的虚拟专用网络VPN业务有两种,分别为二层虚拟专用网L2VPN业务和三层虚拟专用网L3VPN业务。At present, there are two types of virtual private network VPN services based on multi-protocol label switching MPLS technology, namely, a Layer 2 virtual private network L2VPN service and a Layer 3 virtual private network L3VPN service.
对于分组传送网PTN来说,为实现L3VPN业务并不需要从接入汇聚层就支持,可以在接入汇聚层只支持L2VPN业务,在核心网络层支持L3VPN业务即可。具体通信过程中,核心节点需要内部终结L2VPN业务,然后桥接到L3VPN业务,实现L2VPN业务和L3VPN业务之间的转发。For the packet transport network PTN, in order to implement the L3VPN service, it is not required to support from the access aggregation layer. Only the L2VPN service can be supported at the access aggregation layer, and the L3VPN service can be supported at the core network layer. During the specific communication process, the core node needs to terminate the L2VPN service internally, and then bridges the L3VPN service to implement forwarding between the L2VPN service and the L3VPN service.
在传统桥接组网中,一般包括主桥接设备和备桥接设备,当主桥接设备发生故障时,桥接环境中的伪线快速重路由PW FRR和虚拟专用网络快速重路由VPN FRR都会发生切换,相应桥接功能转移到备桥接设备。由于备桥接设备上没有或有较少的有关基站的地址解析协议ARP信息,所以,为完成桥接功能,备桥接设备需要驱使大量的流量进行ARP报文的获取及解析。In a traditional bridging network, the main bridging device and the standby bridging device are generally included. When the main bridging device fails, the pseudowire fast rerouting PW FRR in the bridging environment and the virtual private network fast rerouting VPN FRR are switched, and the corresponding bridging is performed. The function is transferred to the standby bridge device. The ARP device needs to drive a large amount of traffic to obtain and parse ARP packets.
当接入的基站的数量较大(可能达到上千台)时,大量的ARP报文的获取及解析会导致流量开销增大,且受限于流量,ARP报文的解析效率也低,从而引起部分业务中断的时间达到10s以上,导致一些基站掉站,影响业务。When the number of accessing base stations is large (and may reach thousands), the acquisition and resolution of a large number of ARP packets will increase the traffic overhead, and the traffic is limited. The time that caused some service interruptions reached more than 10s, causing some base stations to drop stations and affect the service.
发明内容Summary of the invention
本发明的目的在于提供一种信息同步的方法及装置,通过将在所述主桥接设备上生成的ARP解析信息同步到所述备桥接设备,避免当主桥接设备发生故障时,备桥接设备为完成桥接功能需要进行大量的ARP报文的处理的情况。It is an object of the present invention to provide a method and apparatus for synchronizing information, by synchronizing ARP parsing information generated on the main bridging device to the standby bridging device, so as to avoid completion of the bridging device when the main bridging device fails. The bridging function requires a large number of ARP packets to be processed.
为了达到本发明的上述目的,本发明提供一种信息同步的方法,用于主桥接设备,包括:对地址解析协议ARP报文进行解析,生成第一ARP解析信息;依据所述第一ARP解析信息,构造与所述第一ARP解析信息对应的通知报文;发送所述通知报文到备桥接设备,使所述备桥接设备对接收到的所述通知报文进行解析,同步生成第二ARP解析信息,所述第二ARP解析信息与第一ARP解析信息相同。In order to achieve the above object of the present invention, the present invention provides a method for information synchronization, which is used for a primary bridging device, including: parsing an address resolution protocol ARP packet to generate first ARP parsing information; The information is configured to construct a notification message corresponding to the first ARP parsing information, and send the notification message to the backup bridging device, so that the backup bridging device parses the received notification message, and generates a second synchronization The ARP parsing information is the same as the first ARP parsing information.
在本发明实施例中,所述通知报文为免费ARP报文,所述构造与所述第一ARP 解析信息对应的通知报文包括:构造与所述第一ARP解析信息对应的免费ARP报文。In the embodiment of the present invention, the notification message is a gratuitous ARP packet, and the configuration is related to the first ARP. The notification message corresponding to the parsing information includes: constructing a gratuitous ARP packet corresponding to the first ARP parsing information.
在本发明实施例中,所述发送所述通知报文到备桥接设备包括:通过主备桥接设备之间的通道伪线PW发送所述通知报文到备桥接设备。In the embodiment of the present invention, the sending the notification message to the backup bridging device includes: sending the notification message to the backup bridging device by using a channel pseudowire PW between the active and standby bridging devices.
在本发明实施例中,所述ARP报文包括目的物理MAC地址为全F的ARP报文和目的MAC地址为网关MAC地址的ARP报文。In the embodiment of the present invention, the ARP packet includes an ARP packet whose destination physical MAC address is all Fs and an ARP packet whose destination MAC address is the gateway MAC address.
本发明还提供一种信息同步的装置,位于主桥接设备,包括:第一解析模块,设置为对地址解析协议ARP报文进行解析,生成第一ARP解析信息;构造模块,设置为依据所述第一ARP解析信息,构造与所述第一ARP解析信息对应的通知报文;发送模块,设置为发送所述通知报文到备桥接设备,使所述备桥接设备对接收到的所述通知报文进行解析,同步生成第二ARP解析信息,所述第二ARP解析信息与第一ARP解析信息相同。The present invention further provides an apparatus for synchronizing information, which is located in a primary bridging device, and includes: a first parsing module configured to parse an address resolution protocol ARP packet to generate first ARP parsing information; and a constructing module configured to The first ARP parsing information is configured to construct a notification message corresponding to the first ARP parsing information, and the sending module is configured to send the notification message to the backup bridging device, so that the backup bridging device receives the notification The packet is parsed, and the second ARP parsing information is generated synchronously, and the second ARP parsing information is the same as the first ARP parsing information.
在本发明实施例中,所述通知报文为免费ARP报文,所述构造模块,设置为构造与所述第一ARP解析信息对应的免费ARP报文。In the embodiment of the present invention, the notification message is a gratuitous ARP packet, and the constructing module is configured to construct a gratuitous ARP packet corresponding to the first ARP parsing information.
在本发明实施例中,所述发送模块,设置为通过主备桥接设备之间的通道伪线PW发送所述通知报文到备桥接设备。In the embodiment of the present invention, the sending module is configured to send the notification message to the backup bridge device through the channel pseudowire PW between the primary and secondary bridge devices.
在本发明实施例中,所述ARP报文包括目的物理MAC地址为全F的ARP报文和目的MAC地址为网关MAC地址的ARP报文。In the embodiment of the present invention, the ARP packet includes an ARP packet whose destination physical MAC address is all Fs and an ARP packet whose destination MAC address is the gateway MAC address.
本发明再提供一种信息同步的方法,用于备桥接设备,包括:接收主桥接设备发送的通知报文,其中,所述通知报文是所述主桥接设备依据其解析ARP报文得到的第一ARP解析信息构造得到;对接收到的所述通知报文进行解析,同步生成第二ARP解析信息,所述第二ARP解析信息与第一ARP解析信息相同。The invention further provides a method for synchronizing information, which is used for preparing a bridge device, comprising: receiving a notification message sent by a primary bridge device, wherein the notification message is obtained by the primary bridge device according to the ARP packet parsed by the host bridge device The first ARP parsing information is obtained, and the received ARP parsing information is parsed, and the second ARP parsing information is the same as the first ARP parsing information.
在本发明实施例中,所述通知报文为免费ARP报文,所述接收主桥接设备发送的通知报文包括:接收主桥接设备发送的免费ARP报文。In the embodiment of the present invention, the notification message is a gratuitous ARP packet, and the notification message sent by the receiving host bridge device includes: receiving the gratuitous ARP packet sent by the primary bridging device.
在本发明实施例中,所述接收主桥接设备发送的通知报文包括:通过主备桥接设备之间的通道伪线PW接收主桥接设备发送的通知报文。In the embodiment of the present invention, the receiving the notification message sent by the primary bridging device includes: receiving, by the channel pseudowire PW between the primary and secondary bridge devices, the notification packet sent by the primary bridging device.
在本发明实施例中,所述ARP报文包括目的物理MAC地址为全F的ARP报文和目的MAC地址为网关MAC地址的ARP报文。In the embodiment of the present invention, the ARP packet includes an ARP packet whose destination physical MAC address is all Fs and an ARP packet whose destination MAC address is the gateway MAC address.
本发明又提供一种信息同步的装置,位于备桥接设备,包括:接收模块,设置为接收主桥接设备发送的通知报文,其中,所述通知报文是所述主桥接设备依据其解析ARP报文得到的第一ARP解析信息构造得到;第二解析模块,设置为对接收到的所 述通知报文进行解析,同步生成第二ARP解析信息,所述第二ARP解析信息与第一ARP解析信息相同。The present invention further provides an apparatus for synchronizing information, which is located in a backup bridging device, and includes: a receiving module, configured to receive a notification message sent by the main bridging device, wherein the notification message is that the main bridging device parses the ARP according to the The first ARP parsing information obtained by the message is constructed; the second parsing module is set to receive the received The notification message is parsed, and the second ARP parsing information is generated synchronously, and the second ARP parsing information is the same as the first ARP parsing information.
在本发明实施例中,所述通知报文为免费ARP报文,所述接收模块,设置为接收主桥接设备发送的免费ARP报文。In the embodiment of the present invention, the notification packet is a gratuitous ARP packet, and the receiving module is configured to receive the gratuitous ARP packet sent by the primary bridging device.
在本发明实施例中,所述接收模块,设置为通过主备桥接设备之间的通道伪线PW接收主桥接设备发送的通知报文。In the embodiment of the present invention, the receiving module is configured to receive a notification message sent by the primary bridging device by using a channel pseudowire PW between the active and standby bridging devices.
在本发明实施例中,所述ARP报文包括目的物理MAC地址为全F的ARP报文和目的MAC地址为网关MAC地址的ARP报文。In the embodiment of the present invention, the ARP packet includes an ARP packet whose destination physical MAC address is all Fs and an ARP packet whose destination MAC address is the gateway MAC address.
通过本发明的上述技术方案,本发明的有益效果在于:与现有技术相比,本发明的信息同步的方法及装置,通过在主备桥接设备之间建立的通道PW,能够实时将在所述主桥接设备上生成的ARP解析信息同步到所述备桥接设备,实现双机热备的功能,避免当主桥接设备发生故障时,备桥接设备为完成桥接功能需要进行大量的ARP报文的处理的情况,降低对总体业务的影响,提高保护切换性能。With the above technical solution of the present invention, the present invention has the beneficial effects that the information synchronization method and apparatus of the present invention can be used in real time through the channel PW established between the primary and backup bridge devices. The ARP resolution information generated on the primary bridge device is synchronized to the backup bridge device to implement the dual-system hot backup function. When the primary bridge device fails, the backup bridge device needs to process a large number of ARP packets to complete the bridge function. The situation reduces the impact on the overall business and improves the protection switching performance.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1表示本发明实施例的信息同步的方法的流程图。1 is a flow chart showing a method of information synchronization in an embodiment of the present invention.
图2表示本发明对目的MAC地址为全F的ARP报文的处理流程图。FIG. 2 is a flowchart of processing the ARP packet with the destination MAC address being all Fs according to the present invention.
图3表示本发明对目的MAC地址为网关MAC地址的ARP报文的处理流程图。FIG. 3 is a flowchart of processing an ARP packet whose destination MAC address is a gateway MAC address according to the present invention.
图4表示本发明实施例的信息同步的装置的结构示意图。FIG. 4 is a block diagram showing the structure of an apparatus for synchronizing information according to an embodiment of the present invention.
图5表示本发明另一实施例的信息同步的方法的流程图。FIG. 5 is a flow chart showing a method of information synchronization according to another embodiment of the present invention.
图6表示本发明另一实施例的信息同步的装置的结构示意图。FIG. 6 is a block diagram showing the structure of an apparatus for synchronizing information according to another embodiment of the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合附图对具体实施例进行详细描述。The specific embodiments are described in detail below with reference to the accompanying drawings.
本发明实施例提供一种信息同步的方法,可以应用于主桥接设备。参阅图1所示, 为本发明实施例的信息同步的方法的流程图,包括以下步骤:The embodiment of the invention provides a method for information synchronization, which can be applied to a primary bridge device. See Figure 1, A flowchart of a method for information synchronization according to an embodiment of the present invention includes the following steps:
步骤S101:对地址解析协议ARP报文进行解析,生成第一ARP解析信息;所述第一ARP解析信息以ARP条目的形式存在于所述主桥接设备;Step S101: Parsing an address resolution protocol ARP packet to generate first ARP parsing information; the first ARP parsing information exists in the form of an ARP entry in the primary bridging device;
步骤S102:依据所述第一ARP解析信息,构造与所述第一ARP解析信息对应的通知报文;Step S102: Construct a notification message corresponding to the first ARP parsing information according to the first ARP parsing information;
步骤S103:发送所述通知报文到备桥接设备,使所述备桥接设备对接收到的所述通知报文进行解析,同步生成第二ARP解析信息,所述第二ARP解析信息与第一ARP解析信息相同;所述第二ARP解析信息以ARP条目的形式存在于所述备桥接设备。Step S103: Send the notification message to the backup bridge device, and enable the backup bridge device to parse the received notification message, and generate second ARP parsing information, the second ARP parsing information and the first The ARP resolution information is the same; the second ARP resolution information exists in the form of an ARP entry in the backup bridge device.
本发明实施例中,通过将在所述主桥接设备上生成的ARP解析信息同步到所述备桥接设备,实现双机热备的功能,避免当主桥接设备发生故障时,备桥接设备为完成桥接功能需要进行大量的ARP报文的处理的情况,降低对总体业务的影响,提高保护切换性能。In the embodiment of the present invention, the ARP resolution information generated on the primary bridging device is synchronized to the backup bridging device to implement the hot standby function, so as to prevent the bridging device from completing the bridging when the primary bridging device fails. The function requires a large number of ARP packet processing to reduce the impact on the overall service and improve protection switching performance.
在本发明实施例中,本发明实施例中,所述通知报文为免费ARP报文,所述构造与所述第一ARP解析信息对应的通知报文包括:In the embodiment of the present invention, in the embodiment of the present invention, the notification message is a gratuitous ARP packet, and the notification message corresponding to the first ARP parsing information is:
构造与所述第一ARP解析信息对应的免费ARP报文。Constructing a gratuitous ARP packet corresponding to the first ARP parsing information.
另外,本发明实施例的信息同步的方法,可通过在主备桥接设备之间建立通道伪线PW来实现ARP解析信息的同步。具体的,所述发送所述通知报文到备桥接设备包括:In addition, the method for synchronizing information in the embodiment of the present invention can synchronize the ARP parsing information by establishing a channel pseudowire PW between the primary and secondary bridge devices. Specifically, the sending the notification message to the backup bridge device includes:
通过主备桥接设备之间的通道伪线PW发送所述通知报文到备桥接设备。The notification message is sent to the backup bridge device through the channel pseudowire PW between the active and standby bridge devices.
值得注意的是,在本发明实施例中,所述通道PW与桥接组网中的业务PW是不同的,所述通道PW是在主备桥接设备之间建立的,而业务PW一般是在桥接设备与基站之间建立。并且,在通信过程中,要保证所述通道PW时刻处于有效状态。It should be noted that, in the embodiment of the present invention, the channel PW is different from the service PW in the bridge network, the channel PW is established between the primary and backup bridge devices, and the service PW is generally bridged. Established between the device and the base station. Moreover, during the communication process, it is necessary to ensure that the channel PW is in an active state at all times.
实际应用中,在实现桥接功能的桥接设备中,通常是通过设置桥接逻辑接口来完成L2VPN报文与L3VPN报文的转换与转发,对应的接口可分别称为二层逻辑接口和三层逻辑接口。所述通道PW是与主备桥接设备对应的三层逻辑接口进行绑定,不同的三层逻辑接口之间可共用一个通道PW。但是,因在信息同步过程中,会有通道PW和绑定三层逻辑接口的遍历查找过程,故一个通道PW不能绑定过多的三层逻辑接口。In a practical application, the bridging device that implements the bridging function usually performs the conversion and forwarding of the L2VPN packet and the L3VPN packet by setting the bridging logical interface. The corresponding interfaces can be respectively called the Layer 2 logical interface and the Layer 3 logical interface. . The channel PW is bound to a three-layer logical interface corresponding to the active and standby bridge devices, and one channel PW can be shared between different three-layer logical interfaces. However, in the process of information synchronization, there is a traversal search process for the channel PW and the binding of the three-layer logical interface. Therefore, one channel PW cannot be bound to too many three-layer logical interfaces.
并且,当主备桥接设备对应的三层逻辑接口较多时,在主备桥接设备之间可配置多个通道PW,来快速实现ARP解析信息的同步。但为了保证同步信息的准确性,当主备桥接设备之间配置多个通道PW时,所述多个通道PW之间是相互隔离的,避免 出现广播的情况。In addition, when there are many three-layer logical interfaces corresponding to the active and standby bridge devices, multiple channel PWs can be configured between the active and standby bridge devices to quickly synchronize ARP resolution information. However, in order to ensure the accuracy of the synchronization information, when multiple channel PWs are configured between the primary and secondary bridge devices, the multiple channels PW are isolated from each other to avoid A broadcast situation has occurred.
在桥接环境中,对于主或备桥接设备(主备桥接设备是相对的)来说,需要进行解析的地址解析协议ARP报文有两种,分别为:目的物理MAC地址为全F的ARP报文和目的MAC地址为网关MAC地址的ARP报文。In a bridged environment, there are two types of ARP packets that need to be resolved for the primary or secondary bridge device (the primary and secondary bridge devices are opposite): ARP packets with the destination physical MAC address being all Fs. The text and destination MAC address are ARP packets of the gateway MAC address.
下面对这两种报文的处理过程进行详细介绍。The following describes the processing of these two types of messages in detail.
参阅图2所示,为对目的MAC地址为全F的ARP报文的处理过程,步骤如下:As shown in Figure 2, the process of processing ARP packets with the destination MAC address being all Fs is as follows:
步骤201:桥接设备接收到目的MAC地址为全F的ARP报文;Step 201: The bridge device receives an ARP packet whose destination MAC address is all Fs.
步骤202:桥接设备CPU判断所述ARP报文的目的IP地址是否为自身的IP地址;Step 202: The bridge device CPU determines whether the destination IP address of the ARP packet is its own IP address.
步骤203:如果是,所述桥接设备为主桥接设备,所述主桥接设备对ARP报文进行解析,生成第一ARP解析信息;Step 203: If yes, the bridge device is a primary bridge device, and the master bridge device parses the ARP packet to generate the first ARP parsing information.
步骤204:所述主桥接设备依据所述第一ARP解析信息,构造与所述第一ARP解析信息对应的免费ARP报文;Step 204: The master bridge device constructs a gratuitous ARP packet corresponding to the first ARP parsing information according to the first ARP parsing information.
步骤205:所述主桥接设备通过主备桥接设备之间的通道伪线PW发送所述免费ARP报文到备桥接设备,使所述备桥接设备对接收到的所述免费ARP报文进行解析,同步生成第二ARP解析信息,所述第二ARP解析信息与第一ARP解析信息相同;Step 205: The primary bridging device sends the gratuitous ARP packet to the backup bridging device through the channel pseudowire PW between the active and standby bridging devices, so that the backup bridging device parses the received gratuitous ARP packet. And generating, by the second ARP parsing information, the second ARP parsing information is the same as the first ARP parsing information;
步骤206:如果不是自身的IP地址,桥接设备CPU继续判断所述目的IP地址和自身IP地址是否为同网段的;Step 206: If it is not its own IP address, the bridge device CPU continues to determine whether the destination IP address and its own IP address are in the same network segment;
步骤207:如果不是同网段的,则丢弃所述ARP报文;如果是,再判断所述ARP报文是否为通过通道PW发送过来的;Step 207: If the network segment is not in the same network segment, discard the ARP packet; if yes, determine whether the ARP packet is sent through the channel PW.
步骤208:如果是,所述桥接设备为备桥接设备,所述备桥接设备对接收到的所述ARP报文进行解析,同步生成ARP解析信息;否则,丢弃所述ARP报文。Step 208: If yes, the bridging device is a backup bridging device, and the standby bridging device parses the received ARP packet, and generates ARP parsing information synchronously; otherwise, discards the ARP packet.
再参阅图3所示,为对目的MAC地址为网关MAC地址的ARP报文的处理过程,所述ARP报文是主桥接设备对基站发送ARP请求报文,从而收到的目的MAC地址为网关MAC地址的ARP应答报文,故具体处理过程如下:Referring to FIG. 3, in the process of processing an ARP packet whose destination MAC address is a gateway MAC address, the ARP packet is that the primary bridge device sends an ARP request packet to the base station, so that the destination MAC address received is the gateway. The ARP reply packet of the MAC address, so the specific processing is as follows:
步骤301:主桥接设备接收到目的MAC地址为网关MAC地址的ARP报文;Step 301: The primary bridging device receives the ARP packet whose destination MAC address is the gateway MAC address.
步骤302:主桥接设备CPU判断所述ARP报文的目的IP地址是否为自身的IP地址;Step 302: The primary bridge device CPU determines whether the destination IP address of the ARP packet is its own IP address.
步骤303:如果是,所述主桥接设备对所述ARP报文进行解析,生成第一ARP解析信息;否则,丢弃所述ARP报文; Step 303: If yes, the primary bridging device parses the ARP packet to generate the first ARP parsing information; otherwise, discards the ARP packet;
步骤304:所述主桥接设备依据所述第一ARP解析信息,构造与所述第一ARP解析信息对应的免费ARP报文;Step 304: The master bridge device constructs a gratuitous ARP packet corresponding to the first ARP parsing information according to the first ARP parsing information.
步骤305:所述主桥接设备通过主备桥接设备之间的通道伪线PW发送所述免费ARP报文到备桥接设备,使所述备桥接设备对接收到的所述免费ARP报文进行解析,同步生成第二ARP解析信息,所述第二ARP解析信息与第一ARP解析信息相同,完成主备桥接设备ARP解析信息同步的过程。Step 305: The primary bridging device sends the gratuitous ARP packet to the backup bridging device through the channel pseudowire PW between the active and standby bridging devices, so that the backup bridging device parses the received gratuitous ARP packet. The second ARP parsing information is generated synchronously, and the second ARP parsing information is the same as the first ARP parsing information, and the process of synchronizing the ARP parsing information of the active and standby bridging devices is completed.
对应于图1所示的信息同步的方法,本发明实施例还提供一种信息同步的装置,位于主桥接设备,用于执行所述信息同步的方法。参见图4所示,所述信息同步的装置包括:Corresponding to the method for synchronizing information shown in FIG. 1 , an embodiment of the present invention further provides an apparatus for synchronizing information, which is located in a main bridging device, and is configured to perform the method for synchronizing the information. Referring to FIG. 4, the device for synchronizing information includes:
第一解析模块41,设置为对地址解析协议ARP报文进行解析,生成第一ARP解析信息;The first parsing module 41 is configured to parse the address resolution protocol ARP packet to generate first ARP parsing information;
构造模块42,设置为依据所述第一ARP解析信息,构造与所述第一ARP解析信息对应的通知报文;The constructing module 42 is configured to construct a notification message corresponding to the first ARP parsing information according to the first ARP parsing information;
发送模块43,设置为发送所述通知报文到备桥接设备,使所述备桥接设备对接收到的所述通知报文进行解析,同步生成第二ARP解析信息,所述第二ARP解析信息与第一ARP解析信息相同。The sending module 43 is configured to send the notification message to the backup bridge device, so that the backup bridge device parses the received notification message, and generates second ARP parsing information, the second ARP parsing information. Same as the first ARP parsing information.
使用图2所示的信息同步的装置进行信息同步的过程中,通过将在所述主桥接设备上生成的ARP解析信息同步到所述备桥接设备,实现双机热备的效果,降低对总体业务的影响。In the process of synchronizing information by using the information synchronization device shown in FIG. 2, by synchronizing the ARP resolution information generated on the primary bridge device to the backup bridge device, the effect of hot standby is achieved, and the overall The impact of the business.
在本发明实施例中,本发明实施例中,所述通知报文为免费ARP报文,所述构造模块,设置为构造与所述第一ARP解析信息对应的免费ARP报文。In the embodiment of the present invention, in the embodiment of the present invention, the notification message is a gratuitous ARP packet, and the constructing module is configured to construct a gratuitous ARP packet corresponding to the first ARP parsing information.
本发明实施例的信息同步的装置,可通过在主备桥接设备之间建立通道伪线PW来实现ARP解析信息的同步。具体的,所述发送模块设置为通过主备桥接设备之间的通道伪线PW发送所述通知报文到备桥接设备。The information synchronization device of the embodiment of the present invention can synchronize the ARP resolution information by establishing a channel pseudowire PW between the primary and secondary bridge devices. Specifically, the sending module is configured to send the notification message to the backup bridge device by using a channel pseudowire PW between the primary and secondary bridge devices.
实际应用中,所述通道PW是与主备桥接设备对应的三层逻辑接口进行绑定,不同的三层逻辑接口之间可共用一个通道PW。但是,因在信息同步过程中,会有通道PW和绑定三层逻辑接口的遍历查找过程,故一个通道PW不能绑定过多的三层逻辑接口。In a practical application, the channel PW is bound to a three-layer logical interface corresponding to the primary and secondary bridge devices, and a channel PW can be shared between different three-layer logical interfaces. However, in the process of information synchronization, there is a traversal search process for the channel PW and the binding of the three-layer logical interface. Therefore, one channel PW cannot be bound to too many three-layer logical interfaces.
并且,当主备桥接设备对应的三层逻辑接口较多时,在主备桥接设备之间可配置多个通道PW,来快速实现ARP解析信息的同步。但为了保证同步信息的准确性,当主备桥接设备之间配置多个通道PW时,所述多个通道PW之间是相互隔离的。 In addition, when there are many three-layer logical interfaces corresponding to the active and standby bridge devices, multiple channel PWs can be configured between the active and standby bridge devices to quickly synchronize ARP resolution information. However, in order to ensure the accuracy of the synchronization information, when multiple channel PWs are configured between the primary and secondary bridge devices, the multiple channels PW are isolated from each other.
同样的,在桥接环境中,对于主或备桥接设备来说,需要进行解析的地址解析协议ARP报文有两种,分别为:目的物理MAC地址为全F的ARP报文和目的MAC地址为网关MAC地址的ARP报文。Similarly, in a bridged environment, there are two types of ARP packets that need to be resolved for the primary or secondary bridge device. The ARP packets with the destination physical MAC address being all Fs and the destination MAC address are ARP packet of the gateway MAC address.
本发明还提供一种信息同步的方法,可以应用于备桥接设备。参阅图5所示,为本发明另一实施例的信息同步的方法的流程图,包括以下步骤:The invention also provides a method for information synchronization, which can be applied to a backup bridge device. Referring to FIG. 5, a flowchart of a method for synchronizing information according to another embodiment of the present invention includes the following steps:
步骤501:接收主桥接设备发送的通知报文,其中,所述通知报文是所述主桥接设备依据其解析ARP报文得到的第一ARP解析信息构造得到;Step 501: Receive a notification packet sent by the primary bridging device, where the notification packet is constructed by the primary bridge device according to the first ARP parsing information obtained by the primary bridging device.
步骤502:对接收到的所述通知报文进行解析,同步生成第二ARP解析信息,所述第二ARP解析信息与第一ARP解析信息相同。Step 502: Parse the received notification message, and generate second ARP parsing information synchronously, where the second ARP parsing information is the same as the first ARP parsing information.
在图5所示的信息同步的方法中,通过将在主桥接设备上生成的ARP解析信息同步到备桥接设备,实现双机热备的效果,避免当主桥接设备发生故障时,备桥接设备为完成桥接功能需要进行大量的ARP报文的处理的情况,降低对总体业务的影响,提高保护切换性能。In the information synchronization method shown in FIG. 5, by synchronizing the ARP resolution information generated on the primary bridge device to the backup bridge device, the effect of hot standby is achieved, and when the primary bridge device fails, the backup bridge device is When the bridging function is completed, a large number of ARP packets are processed, which reduces the impact on the overall service and improves the protection switching performance.
在本发明实施例中,本发明实施例中,所述通知报文为免费ARP报文,所述通知报文为免费ARP报文,所述接收主桥接设备发送的通知报文包括:In the embodiment of the present invention, in the embodiment of the present invention, the notification message is a gratuitous ARP packet, and the notification message is a gratuitous ARP packet, and the notification message sent by the receiving host bridge device includes:
接收主桥接设备发送的免费ARP报文。Receives gratuitous ARP packets sent by the master bridge device.
另外,本发明实施例的信息同步的方法,可通过在主备桥接设备之间建立通道伪线PW来实现ARP解析信息的同步。具体的,所述接收主桥接设备发送的通知报文包括:In addition, the method for synchronizing information in the embodiment of the present invention can synchronize the ARP parsing information by establishing a channel pseudowire PW between the primary and secondary bridge devices. Specifically, the receiving the notification message sent by the primary bridging device includes:
通过主备桥接设备之间的通道伪线PW接收主桥接设备发送的通知报文。The notification message sent by the primary bridge device is received by the channel pseudowire PW between the active and standby bridge devices.
而在桥接环境中,对于主或备桥接设备(主备桥接设备是相对的)来说,需要进行解析的地址解析协议ARP报文有两种,分别为:目的物理MAC地址为全F的ARP报文和目的MAC地址为网关MAC地址的ARP报文。In the bridge environment, there are two types of ARP packets that need to be resolved for the primary or secondary bridge device (the primary and secondary bridge devices are opposite): ARP with the destination physical MAC address being all F The packet and destination MAC address are ARP packets of the gateway MAC address.
对应于图5所示的信息同步的方法,本发明实施例还提供一种信息同步的装置,位于备桥接设备,用于执行图5所示的信息同步的方法。参见图6所示,所述信息同步的装置包括:Corresponding to the method for synchronizing the information shown in FIG. 5, the embodiment of the present invention further provides an apparatus for synchronizing information, which is located in a backup bridging device, and is used for performing the method for synchronizing information shown in FIG. 5. Referring to FIG. 6, the device for synchronizing information includes:
接收模块61,设置为接收主桥接设备发送的通知报文,其中,所述通知报文是所述主桥接设备依据其解析ARP报文得到的第一ARP解析信息构造得到;The receiving module 61 is configured to receive the notification message sent by the primary bridging device, where the notification packet is configured by the primary bridging device according to the first ARP parsing information obtained by the primary bridging device.
第二解析模块62,设置为对接收到的所述通知报文进行解析,同步生成第二ARP解析信息,所述第二ARP解析信息与第一ARP解析信息相同。 The second parsing module 62 is configured to parse the received notification packet, and generate second ARP parsing information synchronously, where the second ARP parsing information is the same as the first ARP parsing information.
在本发明实施例中,所述通知报文为免费ARP报文,所述接收模块,设置为接收主桥接设备发送的免费ARP报文。In the embodiment of the present invention, the notification packet is a gratuitous ARP packet, and the receiving module is configured to receive the gratuitous ARP packet sent by the primary bridging device.
本发明实施例的信息同步的装置,可通过在主备桥接设备之间建立通道伪线PW来实现ARP解析信息的同步。具体的,所述接收模块,设置为通过主备桥接设备之间的通道伪线PW接收主桥接设备发送的通知报文。The information synchronization device of the embodiment of the present invention can synchronize the ARP resolution information by establishing a channel pseudowire PW between the primary and secondary bridge devices. Specifically, the receiving module is configured to receive, by using a channel pseudowire PW between the primary and secondary bridge devices, a notification message sent by the primary bridging device.
在利用图6所示的信息同步的装置进行信息同步的过程中,需要进行解析的地址解析协议ARP报文有两种,分别为:目的物理MAC地址为全F的ARP报文和目的MAC地址为网关MAC地址的ARP报文。In the process of synchronizing information using the information synchronization device shown in FIG. 6, there are two types of address resolution protocol ARP packets to be parsed: ARP packets with a destination physical MAC address of all Fs and a destination MAC address. ARP packet whose MAC address is the gateway.
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above description is only a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. It should be considered as the scope of protection of the present invention.
工业实用性Industrial applicability
基于本发明实施例提供的上述技术方案,在主备桥接设备之间建立的通道PW,能够实时将在所述主桥接设备上生成的ARP解析信息同步到所述备桥接设备,实现双机热备的功能,避免当主桥接设备发生故障时,备桥接设备为完成桥接功能需要进行大量的ARP报文的处理的情况,降低对总体业务的影响,提高保护切换性能。 Based on the foregoing technical solution provided by the embodiment of the present invention, the channel PW established between the primary and secondary bridge devices can synchronize the ARP resolution information generated on the primary bridge device to the backup bridge device in real time to implement dual hotspots. The backup function prevents the backup bridge device from performing a large number of ARP packet processing when the bridge function is completed. This reduces the impact on the overall service and improves the protection switching performance.

Claims (16)

  1. 一种信息同步的方法,用于主桥接设备,包括:A method of information synchronization for a host bridge device, including:
    对地址解析协议ARP报文进行解析,生成第一ARP解析信息;Parsing the ARP packet of the address resolution protocol to generate the first ARP parsing information;
    依据所述第一ARP解析信息,构造与所述第一ARP解析信息对应的通知报文;Constructing, according to the first ARP parsing information, a notification message corresponding to the first ARP parsing information;
    发送所述通知报文到备桥接设备,使所述备桥接设备对接收到的所述通知报文进行解析,同步生成第二ARP解析信息,所述第二ARP解析信息与第一ARP解析信息相同。Sending the notification message to the backup bridge device, causing the backup bridge device to parse the received notification message, and synchronously generate second ARP parsing information, the second ARP parsing information and the first ARP parsing information. the same.
  2. 根据权利要求1所述的信息同步的方法,其中,所述通知报文为免费ARP报文,所述构造与所述第一ARP解析信息对应的通知报文包括:The method for synchronizing information according to claim 1, wherein the notification message is a gratuitous ARP packet, and the notification message corresponding to the first ARP parsing information is:
    构造与所述第一ARP解析信息对应的免费ARP报文。Constructing a gratuitous ARP packet corresponding to the first ARP parsing information.
  3. 根据权利要求1所述的信息同步的方法,其中,所述发送所述通知报文到备桥接设备包括:The method of information synchronization according to claim 1, wherein the sending the notification message to the backup bridge device comprises:
    通过主备桥接设备之间的通道伪线PW发送所述通知报文到备桥接设备。The notification message is sent to the backup bridge device through the channel pseudowire PW between the active and standby bridge devices.
  4. 根据权利要求1所述的信息同步的方法,其中,所述ARP报文包括目的物理MAC地址为全F的ARP报文和目的MAC地址为网关MAC地址的ARP报文。The method for synchronizing information according to claim 1, wherein the ARP packet includes an ARP packet whose destination physical MAC address is all Fs and an ARP packet whose destination MAC address is a gateway MAC address.
  5. 一种信息同步的装置,位于主桥接设备,包括:A device for synchronizing information, located in a host bridge device, comprising:
    第一解析模块,设置为对地址解析协议ARP报文进行解析,生成第一ARP解析信息;The first parsing module is configured to parse the address resolution protocol ARP packet to generate the first ARP parsing information;
    构造模块,设置为依据所述第一ARP解析信息,构造与所述第一ARP解析信息对应的通知报文;The constructing module is configured to construct a notification message corresponding to the first ARP parsing information according to the first ARP parsing information;
    发送模块,设置为发送所述通知报文到备桥接设备,使所述备桥接设备对接收到的所述通知报文进行解析,同步生成第二ARP解析信息,所述第二ARP解析信息与第一ARP解析信息相同。The sending module is configured to send the notification message to the backup bridging device, so that the backup bridging device parses the received notification packet, and synchronously generates second ARP parsing information, where the second ARP parsing information is The first ARP parsing information is the same.
  6. 根据权利要求5所述的信息同步的装置,其中,所述通知报文为免费ARP报文,所述构造模块,设置为构造与所述第一ARP解析信息对应的免费ARP报文。The device for synchronizing information according to claim 5, wherein the notification message is a gratuitous ARP packet, and the constructing module is configured to construct a gratuitous ARP packet corresponding to the first ARP parsing information.
  7. 根据权利要求5所述的信息同步的装置,其中,所述发送模块,设置为通过主备桥接设备之间的通道伪线PW发送所述通知报文到备桥接设备。The device for information synchronization according to claim 5, wherein the sending module is configured to send the notification message to the backup bridge device through a channel pseudowire PW between the primary and secondary bridge devices.
  8. 根据权利要求5所述的信息同步的装置,其中,所述ARP报文包括目的物理MAC 地址为全F的ARP报文和目的MAC地址为网关MAC地址的ARP报文。The apparatus for information synchronization according to claim 5, wherein the ARP packet includes a destination physical MAC The ARP packet whose address is all Fs and the ARP packet whose destination MAC address is the gateway MAC address.
  9. 一种信息同步的方法,用于备桥接设备,包括:A method for synchronizing information for preparing a bridge device, including:
    接收主桥接设备发送的通知报文,其中,所述通知报文是所述主桥接设备依据其解析ARP报文得到的第一ARP解析信息构造得到;Receiving, by the primary bridging device, the notification packet sent by the primary bridging device, where the notification packet is configured by the primary bridging device according to the first ARP parsing information obtained by the primary bridging device;
    对接收到的所述通知报文进行解析,同步生成第二ARP解析信息,所述第二ARP解析信息与第一ARP解析信息相同。The received ARP parsing information is parsed, and the second ARP parsing information is generated in synchronization with the first ARP parsing information.
  10. 根据权利要求9所述的信息同步的方法,其中,所述通知报文为免费ARP报文,所述接收主桥接设备发送的通知报文包括:The method of information synchronization according to claim 9, wherein the notification message is a gratuitous ARP message, and the notification message sent by the receiving host bridge device comprises:
    接收主桥接设备发送的免费ARP报文。Receives gratuitous ARP packets sent by the master bridge device.
  11. 根据权利要求9所述的信息同步的方法,其中,所述接收主桥接设备发送的通知报文包括:The method of information synchronization according to claim 9, wherein the receiving the notification message sent by the primary bridge device comprises:
    通过主备桥接设备之间的通道伪线PW接收主桥接设备发送的通知报文。The notification message sent by the primary bridge device is received by the channel pseudowire PW between the active and standby bridge devices.
  12. 根据权利要求9所述的信息同步的方法,其中,所述ARP报文包括目的物理MAC地址为全F的ARP报文和目的MAC地址为网关MAC地址的ARP报文。The method of information synchronization according to claim 9, wherein the ARP packet includes an ARP packet whose destination physical MAC address is all Fs and an ARP packet whose destination MAC address is a gateway MAC address.
  13. 一种信息同步的装置,位于备桥接设备,包括:A device for synchronizing information, located in a backup bridge device, comprising:
    接收模块,设置为接收主桥接设备发送的通知报文,其中,所述通知报文是所述主桥接设备依据其解析ARP报文得到的第一ARP解析信息构造得到;The receiving module is configured to receive the notification message sent by the primary bridging device, where the notification packet is configured by the primary bridging device according to the first ARP parsing information obtained by the primary bridging device.
    第二解析模块,设置为对接收到的所述通知报文进行解析,同步生成第二ARP解析信息,所述第二ARP解析信息与第一ARP解析信息相同。The second parsing module is configured to parse the received notification packet, and generate second ARP parsing information synchronously, where the second ARP parsing information is the same as the first ARP parsing information.
  14. 根据权利要求13所述的信息同步的装置,其中,所述通知报文为免费ARP报文,所述接收模块,设置为接收主桥接设备发送的免费ARP报文。The device for synchronizing information according to claim 13, wherein the notification message is a gratuitous ARP message, and the receiving module is configured to receive a gratuitous ARP message sent by the main bridge device.
  15. 根据权利要求13所述的信息同步的装置,其中,所述接收模块,设置为通过主备桥接设备之间的通道伪线PW接收主桥接设备发送的通知报文。The device for information synchronization according to claim 13, wherein the receiving module is configured to receive a notification message sent by the primary bridge device through a channel pseudowire PW between the primary and secondary bridge devices.
  16. 根据权利要求13所述的信息同步的装置,其中,所述ARP报文包括目的物理MAC地址为全F的ARP报文和目的MAC地址为网关MAC地址的ARP报文。 The device for synchronizing information according to claim 13, wherein the ARP packet includes an ARP packet whose destination physical MAC address is all Fs and an ARP packet whose destination MAC address is a gateway MAC address.
PCT/CN2015/087952 2015-03-04 2015-08-24 Information synchronization method and apparatus WO2016138747A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510097814.6A CN105991392A (en) 2015-03-04 2015-03-04 Information synchronization method and device
CN201510097814.6 2015-03-04

Publications (1)

Publication Number Publication Date
WO2016138747A1 true WO2016138747A1 (en) 2016-09-09

Family

ID=56849182

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/087952 WO2016138747A1 (en) 2015-03-04 2015-08-24 Information synchronization method and apparatus

Country Status (2)

Country Link
CN (1) CN105991392A (en)
WO (1) WO2016138747A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110572317A (en) * 2019-07-16 2019-12-13 烽火通信科技股份有限公司 Method and system for realizing dynamic ARP hot backup in telecommunication network

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111555970A (en) * 2020-04-16 2020-08-18 深圳震有科技股份有限公司 Network switching method, system and storage medium based on dual-computer redundancy system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413046A (en) * 2011-11-24 2012-04-11 杭州华三通信技术有限公司 Method for forwarding flow by means of virtual router redundancy protocol backup set and equipment
CN102647304A (en) * 2012-05-09 2012-08-22 中兴通讯股份有限公司南京分公司 Synchronizing method of address resolution protocols and device
CN102904818A (en) * 2012-09-27 2013-01-30 北京星网锐捷网络技术有限公司 Method and device for updating ARP (Address Resolution Protocol) information table
CN103001868A (en) * 2012-12-31 2013-03-27 杭州华三通信技术有限公司 Method and device used for synchronous ARP (Address Resolution Protocol) list item of virtual router redundancy protocol backup set
US20140321265A1 (en) * 2013-04-29 2014-10-30 Telefonaktiebolaget L M Ericsson (Publ) Fast traffic recovery in vrrp based routers

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413046A (en) * 2011-11-24 2012-04-11 杭州华三通信技术有限公司 Method for forwarding flow by means of virtual router redundancy protocol backup set and equipment
CN102647304A (en) * 2012-05-09 2012-08-22 中兴通讯股份有限公司南京分公司 Synchronizing method of address resolution protocols and device
CN102904818A (en) * 2012-09-27 2013-01-30 北京星网锐捷网络技术有限公司 Method and device for updating ARP (Address Resolution Protocol) information table
CN103001868A (en) * 2012-12-31 2013-03-27 杭州华三通信技术有限公司 Method and device used for synchronous ARP (Address Resolution Protocol) list item of virtual router redundancy protocol backup set
US20140321265A1 (en) * 2013-04-29 2014-10-30 Telefonaktiebolaget L M Ericsson (Publ) Fast traffic recovery in vrrp based routers

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110572317A (en) * 2019-07-16 2019-12-13 烽火通信科技股份有限公司 Method and system for realizing dynamic ARP hot backup in telecommunication network
CN110572317B (en) * 2019-07-16 2022-04-08 烽火通信科技股份有限公司 Method and system for realizing dynamic ARP hot backup in telecommunication network

Also Published As

Publication number Publication date
CN105991392A (en) 2016-10-05

Similar Documents

Publication Publication Date Title
US9628295B2 (en) Method, device, and routing system for data transmission of network virtualization
US20210250294A1 (en) Route Processing Method, Device, and System
EP3255840B1 (en) Label distribution method and device
US9578548B2 (en) System and method for configuring multiple IP connections
WO2016015497A1 (en) Method, device and system for forwarding packet
WO2017193758A1 (en) Method, device and system for data transmission
KR102342286B1 (en) DCN message processing method, network device, and network system
EP2983331B1 (en) Method and device for storing and sending mac address entry
EP2525536B1 (en) Method and device for pseudo wire establishment
WO2013182059A1 (en) Method and device for establishing multi-protocol label switching traffic engineering tunnel
JP5455138B2 (en) Method and clock device for processing high precision time protocol messages
WO2018214809A1 (en) Message transmission method and device, and storage medium
EP2680507B1 (en) Packet forwarding method and system, and relay agent device
JP2015122640A (en) Relay system and switch device
US20170272358A1 (en) Method, Device, and System for Deferring Switchback
JP2015122665A (en) Relay system and switch device
WO2013139270A1 (en) Method, device, and system for implementing layer3 virtual private network
WO2014082414A1 (en) Service forwarding method and device
US20120099598A1 (en) Method, device and system for establishing a pseudo wire
WO2012142753A1 (en) Method and device for monitoring ip bearer network performance
WO2016138747A1 (en) Information synchronization method and apparatus
WO2009117923A1 (en) A method, an apparatus and a communication device for transmitting data
WO2013159549A1 (en) Method, device and system for establishing and using floating network segment
CN114070770A (en) Method, device and system for receiving and transmitting message
US20220294734A1 (en) Method for Configuring Media Access Control Address Aging Time and Apparatus

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

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

Country of ref document: EP

Kind code of ref document: A1