WO2016095322A1 - 一种基于vrrp的数据传输方法及装置 - Google Patents

一种基于vrrp的数据传输方法及装置 Download PDF

Info

Publication number
WO2016095322A1
WO2016095322A1 PCT/CN2015/071527 CN2015071527W WO2016095322A1 WO 2016095322 A1 WO2016095322 A1 WO 2016095322A1 CN 2015071527 W CN2015071527 W CN 2015071527W WO 2016095322 A1 WO2016095322 A1 WO 2016095322A1
Authority
WO
WIPO (PCT)
Prior art keywords
node device
tunnel
vrrp
active
packet
Prior art date
Application number
PCT/CN2015/071527
Other languages
English (en)
French (fr)
Inventor
熊文柱
何英军
曹涛
苏盘社
Original Assignee
北京东土科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京东土科技股份有限公司 filed Critical 北京东土科技股份有限公司
Publication of WO2016095322A1 publication Critical patent/WO2016095322A1/zh

Links

Images

Definitions

  • the present invention relates to the field of network communication technologies, and in particular, to a VRRP-based data transmission method and apparatus.
  • the Virtual Router Redundancy Protocol is a selective protocol that dynamically assigns the responsibility of a virtual router to one of the VRRP routers on the LAN.
  • the VRRP router that controls the virtual router's IP address is called the primary router and is responsible for forwarding packets to these virtual IP addresses.
  • All hosts in a local area network set a default route. When the destination address sent by the host in the network is not on the local network segment, the packets are sent to the external router through the default route, thus implementing communication between the host and the external network. When the default router fails, the internal host will not be able to communicate with the outside. If the router has VRRP set, then the virtual router will enable the backup router to achieve network-wide communication.
  • FIG 1 shows the network structure of VRRP transmission over private networks across public networks.
  • switches A and B It belongs to different private networks, and communicates with the MPLS L3VPN network through the edge node devices PE1, PE2, PE3, and PE4.
  • PE1, PE2, PE3, and PE4 When the private network where the switch A of the VRRP protocol is located, PE2 is selected as the primary node device for communication, and the switch B is located.
  • the private network selects PE3 as the primary node device for communication
  • the data transmission and reception paths are inconsistent when data is exchanged between switches A and B.
  • the private networks where switches A and B are located select PE1 and PE3 as the primary nodes.
  • the path between the data transmission and the receiving between the switch and the switch is the same.
  • PE1 and PE3 cannot detect the link fault on the public network. Therefore, PE1 and PE3 also Unable to switch to the standby node device, resulting in data loss.
  • the present invention has been made in order to provide a VRRP-based data transmission method and apparatus that overcomes the above problems or at least partially solves the above problems.
  • the embodiment of the invention provides a VRRP-based data transmission method, which is applicable to a scenario in which a node device in two private networks communicates through a public network, and the method includes:
  • Each edge node device in the two private networks establishes a corresponding tunnel that traverses the public network
  • Each edge node device in the two private networks elects the active node device based on the VRRP packet;
  • the elected active node device sends a packet to the peer edge node device to notify the peer node device of the peer end to upgrade to the active node device.
  • the primary node devices of the two private networks perform data transmission according to the established tunnel.
  • the method further includes:
  • the first active node device monitors whether the tunnel in which it is located is interrupted
  • the first active node device is reduced to the standby node device, and a packet is sent to the standby node device in the private network to notify the standby node device to upgrade to the active node device.
  • the method further includes:
  • the first active node device monitors whether the tunnel in which it is located is interrupted
  • the first active node device is reduced to the standby node device, and a packet is sent to the standby node device in the private network to notify the standby node device to upgrade to the active node device.
  • the node device is notified that the standby node device in another private network connected to the tunnel is upgraded to the master node device.
  • each edge node device in the two private networks is based on the VRRP packet, and the election of the active node device includes:
  • Each edge node device of the two private networks sends a VRRP packet, where the VRRP packet carries priority information;
  • Each edge node device elects the active node device according to the priority information carried in the VRRP packet and its own priority.
  • each edge node device in the two private networks is based on the VRRP packet, and the election of the active node device includes:
  • Each edge node device of the two private networks sends a VRRP packet, where the VRRP packet carries priority information and MAC address information;
  • the active node device is elected according to the MAC address information carried in the VRRP packet.
  • An embodiment of the present invention provides a data transmission apparatus based on VRRP, where the apparatus includes:
  • An election module is configured to elect a primary node device based on the VRRP packet
  • the upgrade module is used to upgrade the main node device
  • the sending module is configured to send a packet to the edge node device of the peer end through the tunnel, and notify the edge node device of the peer end to upgrade to the active node device, and perform data transmission according to the established tunnel and the edge node device at the opposite end.
  • the device further includes:
  • a monitoring module for monitoring whether the tunnel in which it is located is interrupted
  • a downgrade module for downgrading itself to a standby node device
  • the sending module is further configured to send a message to the standby node device in the private network where the device is located, and notify the standby node device to upgrade to the active node device.
  • the device further includes:
  • a monitoring module for monitoring whether the tunnel in which it is located is interrupted
  • a downgrade module for downgrading itself to a standby node device
  • the sending module is further configured to send a message to the standby node device in the private network where the user is located, to notify the standby node device to upgrade to the active node device, and the upgraded active node device notifies another private network connected to the tunnel.
  • the standby node device in the rise is the master node device.
  • the election module is specifically configured to send a VRRP packet, where the VRRP packet carries the priority information, and the VRRP packet carries the priority information and Its own priority, election of the primary node device.
  • the election module is specifically configured to send a VRRP packet, where the VRRP packet carries the priority information and the MAC address information; Determining the priority of each edge node device, determining whether the priority of each edge node device and its own priority are the same; when the priority information carried is the same, the election is performed according to the MAC address information carried in the VRRP packet.
  • Primary node device In order to implement the data transmission by the node device in the private network through the public network, the election module is specifically configured to send a VRRP packet, where the VRRP packet carries the priority information and the MAC address information; Determining the priority of each edge node device, determining whether the priority of each edge node device and its own priority are the same; when the priority information carried is the same, the election is performed according to the MAC address information carried in the VRRP packet.
  • Embodiments of the present invention provide a VRRP-based data transmission method and apparatus.
  • each edge node device in the two private networks establishes a corresponding traversal public network.
  • the tunnel is elected and the primary node device is elected.
  • the elected primary node device notifies the peer edge node device of the peer end to upgrade to the primary node device through the tunnel, and the primary nodes of the two private networks perform data transmission according to the established tunnel.
  • a tunnel is established between the edge node devices in the private network, and the primary node is elected in the two private networks.
  • the device and the elected active node device notify the peer edge device of the peer end to upgrade to the active node device through the tunnel, thereby realizing data transmission, reducing the packet loss rate, and ensuring the accuracy of data transmission.
  • Figure 1 is a network structure diagram of VRRP transmission over a private network across a public network
  • FIG. 3 is a VRRP-based data transmission process according to Embodiment 1 of the present invention:
  • FIG. 5 is a VRRP-based data transmission process according to Embodiment 3 of the present invention.
  • FIG. 6 is a schematic structural diagram of a data transmission apparatus based on VRRP according to an embodiment of the present invention.
  • the embodiment of the present invention provides a VRRP-based data transmission method and apparatus.
  • FIG. 2 is a VRRP-based data transmission process according to an embodiment of the present invention, where the process includes the following steps:
  • Each edge node device in the two private networks establish a corresponding tunnel that traverses the public network.
  • the edge node devices in the two private networks are associated with each other.
  • the tunnel that traverses the public network In order to achieve data transmission and ensure the stability of data transmission, generally establish two traversing public networks.
  • the tunnel of the network, the edge node device connecting the two tunnels that traverse the public network are the active node device and the standby node device respectively in the private network.
  • the edge node devices of the first private network are PE1 and PE2, and the edge node devices of the second private network are PE3 and PE4.
  • a tunnel traversing the public network can be established between PE1 and PE3, and a traversal is established between PE2 and PE4.
  • the tunnel of the public network may be a tunnel that traverses the public network between PE1 and PE4.
  • a tunnel that traverses the public network is established between PE2 and PE3.
  • Each edge node can only establish a tunnel that traverses the public network.
  • the tunnel that traverses the public network is a two-way tunnel.
  • Each edge node device in the two private networks elects the active node device based on the VRRP packet.
  • the edge node devices in the two private networks elect the active node device.
  • the above example is used to illustrate that the edge node devices of the first private network are PE1 and PE2, and the edge node devices of the second private network are PE3 and PE4.
  • the primary device is elected between PE1, PE2, PE3, and PE4. Node device.
  • S203 The elected active node device sends a packet to the peer edge node device to notify the edge node device of the peer end to upgrade to the active node device.
  • the other edge node device of the first private network determines itself as the standby node device.
  • the active node device notifies the edge node device at the opposite end of the tunnel to upgrade to the primary node device, and the corresponding another in the other private network.
  • the edge node device determines itself as a standby node device.
  • the edge node devices of the first private network are PE1 and PE2, and the edge node devices of the second private network are PE3 and PE4, and a tunnel traversing the public network is established between PE1 and PE3, and a public network is established between PE2 and PE4.
  • PE1 is elected as the primary node device in the four edge node devices
  • PE2 in the first private network identifies itself as the standby node device
  • PE1 notifies PE3 to upgrade to the primary node device through the tunnel
  • the second private network PE4 determines itself as a standby node device.
  • S204 The primary node device of the two private networks performs data transmission according to the established tunnel.
  • a tunnel traversing the public network is established in the two private networks, and the primary node device is elected, and data can be transmitted between the two private networks through the primary node device based on the tunnel.
  • the format of the data transmitted in the tunnel may be defined in the embodiment of the present invention.
  • the data format is as shown in Table 1:
  • MAC represents the Layer 2 MAC address of the public network
  • Label1 represents the MPLS of the public network.
  • Label2 indicates the MLPS label of the private network that sent the message
  • IP head1 indicates the IP header of the public network
  • IP head2 indicates the IP header of the private network that sent the message
  • the data part stores the data of the VRRP packet.
  • a tunnel is established between the edge node devices in the private network, and the active node device is elected in the two private networks, and the elected active node device notifies the edge node device of the opposite end through the tunnel. Upgrade to the main node device to achieve data transmission, reduce the packet loss rate, and ensure the accuracy of data transmission.
  • the edge node devices of the two private networks in order to realize that two private networks can transmit data through the public network, the edge node devices of the two private networks establish a tunnel through the public network. Specifically, when establishing a tunnel that traverses the public network, the IP address of the edge node device in the private network is established.
  • the edge node devices of the first private network are PE1 and PE2
  • the edge node devices of the second private network are PE3 and PE4
  • a tunnel traversing the public network is established between PE1 and PE3, and PE2 and PE4 are connected.
  • Establish a tunnel through the public network In the embodiment of the present invention, the tunnels traversing the public network are both bidirectional tunnels.
  • each edge node device in the two private networks is based on the VRRP packet, and the election of the active node device includes:
  • Each edge node device of the two private networks sends a VRRP packet, where the VRRP packet carries priority information;
  • Each edge node device elects the active node device according to the priority information carried in the VRRP packet and its own priority.
  • the edge node device in each private network sends a VRRP packet through the tunnel, where the VRRP packet carries its priority information, and each of the VRRP packets carries its priority information.
  • the edge node device elects the active node device according to its own priority and the priority of other edge device devices received.
  • the TLV field is extended on the basis of the original VRRP packet, and the TLV field carries the priority information of the edge node device.
  • Each edge node device elects the active node device according to the received priority information sent by other edge node devices and its own priority information.
  • each edge node device in the two private networks in the embodiment of the present invention is based on the VRRP packet, and the election of the active node device includes:
  • Each edge node device of the two private networks sends a VRRP packet, where the VRRP packet carries priority information and MAC address information;
  • the active node device is elected according to the MAC address information carried in the VRRP packet.
  • the VRRP packet may include not only priority information but also MAC address information, and each edge node device according to the priority of other edge node devices received during the election of the active node device. And the priority of the own device, determining whether the priority of each edge node device is equal. When the priorities of the edge node devices are not equal, the active node device is elected, and when the priorities of the edge node devices are equal, according to each The MAC address of the edge node device and its own MAC address elect the primary node device.
  • the VRRP packet can also carry the network identifier information of the private network where the edge node device is located.
  • FIG. 3 is a VRRP-based data transmission process according to Embodiment 1 of the present invention, where the process includes the following steps:
  • Each edge node device in the two private networks establish a corresponding tunnel that traverses the public network.
  • Each edge node device in the two private networks sends a VRRP packet based on the tunnel, where the VRRP packet carries the identifier information, the priority information, and the MAC address information of the private network where the edge node device is located.
  • step S303 Each edge node device determines, according to the priority of the other edge node devices that are received, and the priority of the edge device, whether the priority of each edge node device is equal. When the determination result is yes, step S305 is performed; otherwise, Go to step S304.
  • step S304 Elect the active node device according to the priority of the edge node device. Then, step S306 is performed.
  • S305 Elect the active node device according to the MAC address of the edge node device.
  • the elected active node device sends a packet to the peer edge node device to notify the edge node device of the peer end to upgrade to the active node device.
  • S307 The primary node device of the two private networks performs data transmission according to the established tunnel.
  • the primary node device uses the VRRP packet to notify the edge node device at the opposite end of the tunnel to upgrade to the active node device.
  • the LTV field is extended in the VRRP packet, and the format of the LTV field is as shown in Table 2:
  • the LTV field contains Type and Value.
  • Type When Type is 1, the mandatory function is identified. Value is 2 for forced-up to the primary node device, and Value is 1 for forced drop to the standby node device.
  • the data transmission method provided by the embodiment of the present invention can effectively reduce the packet loss rate, and since each node device at both ends of the tunnel that traverses the public network is a primary node device at the same time, or a standby node device at the same time, the private device can be effectively guaranteed.
  • the data of the network is transmitted through the public network, thereby reducing the packet loss rate and improving the accuracy of data transmission.
  • the method further includes:
  • the first active node device monitors whether the tunnel in which it is located is interrupted
  • the first active node device is reduced to the standby node device, and a packet is sent to the standby node device in the private network to notify the standby node device to upgrade to the active node device.
  • each of the active node devices monitors whether the tunnel in which the tunnel is located is interrupted.
  • the edge node devices of the first private network are PE1 and PE2
  • the edge node devices of the second private network are PE3 and PE4, and a tunnel traversing the public network is established between PE1 and PE3, and a public network is established between PE2 and PE4.
  • PE1 is elected as the primary node device in the four edge node devices, and PE2 in the first private network identifies itself as the standby node device, and PE1 notifies PE3 to upgrade to the primary node device through the tunnel, and the second private network PE4 determines itself as a standby node device.
  • the primary node devices PE1 and PE3 monitor whether the tunnel in which they are located is interrupted.
  • the method of monitoring the interrupt may be to determine whether a data packet is received within a set length of time, and when the data packet is not received within the set time length, the tunnel interruption is determined.
  • the specific monitoring and interrupting method is not limited, as long as the monitoring of the interrupt can be implemented.
  • the active node device notifies the standby node device to upgrade to the primary node device in the private network where the primary node device monitors the data loss and reduces the packet loss rate. With the node device, it is reduced to the standby node device itself. Since each of the active node devices is monitoring whether the tunnel is interrupted, it can be ensured that the two active node devices are simultaneously switched and reduced to the standby node device, and the corresponding two edge node devices connected to another tunnel can simultaneously Upgrade to the primary node device.
  • each primary node device detects that the tunnel is interrupted, and then drops itself to the standby node device, and notifies the standby node device in the same private network to upgrade to the primary node device.
  • FIG. 4 is a VRRP-based data transmission process according to Embodiment 2 of the present invention, where the process includes the following steps:
  • Each edge node device in the two private networks establish a corresponding tunnel that traverses the public network.
  • Each edge node device in the two private networks sends a VRRP packet based on the tunnel, where the VRRP The packet carries the identification information, priority information, and MAC address information of the private network where the edge node device is located.
  • step S403 Each edge node device determines, according to the priority of the other edge node devices that are received, and the priority of the edge device, whether the priority of each edge node device is equal. When the determination result is yes, step S405 is performed; otherwise, Go to step S404.
  • step S404 Elect the active node device according to the priority of the edge node device. Thereafter, step S406 is performed.
  • S405 Elect the active node device according to the MAC address of the edge node device.
  • the elected active node device sends a packet to the peer edge node device of the peer end to notify the peer edge device of the peer end to upgrade to the active node device.
  • S407 The primary node device of the two private networks performs data transmission according to the established tunnel.
  • step S408 Each active node device monitors whether the tunnel in which it is located is interrupted. When the determination result is yes, step S409 is performed; otherwise, step S408 is continued.
  • the primary node device is reduced to the standby node device, and sends a packet to the standby node device in the private network to notify the standby node device to upgrade to the primary node device.
  • the method further includes:
  • the first active node device monitors whether the tunnel in which it is located is interrupted
  • the first active node device is reduced to the standby node device, and a packet is sent to the standby node device in the private network to notify the standby node device to upgrade to the active node device.
  • the node device is notified that the standby node device in another private network connected to the tunnel is upgraded to the master node device.
  • two active node devices monitor whether the tunnel in which the tunnel is located is interrupted. Because the hardware configuration of each active node device is different, the time at which the tunnel interruption is monitored may be different, when a primary node device monitors When the tunnel is interrupted, the primary node device is reduced to the standby node device, and the standby node device of the private network is notified to upgrade to the primary node device, and the upgraded primary node device notifies the other private network through the tunnel in which it is located. The other standby node device connected to the tunnel is upgraded to the master node device.
  • FIG. 5 is a VRRP-based data transmission process according to Embodiment 3 of the present invention, where the process includes the following steps:
  • Each edge node device in the two private networks establish a corresponding tunnel that traverses the public network.
  • Each edge node device in the two private networks sends a VRRP packet based on the tunnel, where the VRRP packet carries the identifier information, the priority information, and the MAC address information of the private network where the edge node device is located.
  • Each edge node device determines whether the priority of each edge node device is equal according to the priority of the other edge node devices received, and the priority of the edge device. If the determination result is yes, proceed to step S505; otherwise, Go to step S504.
  • step S504 Elect the active node device according to the priority of the edge node device. Then, step S506 is performed.
  • S505 Elect the active node device according to the MAC address of the edge node device.
  • the elected active node device sends a packet to the peer edge node device to notify the edge node device of the peer end to upgrade to the active node device.
  • S507 The primary node device of the two private networks performs data transmission according to the established tunnel.
  • step S508 Each active node device monitors whether the tunnel in which it is located is interrupted. When the determination result is yes, step S509 is performed; otherwise, step S508 is continued.
  • the primary node device is reduced to the standby node device, and sends a packet to the standby node device in the private network to notify the standby node device to upgrade to the primary node device, and the upgraded active node device notifies the tunnel connection.
  • the standby node device in another private network is upgraded to the primary node device.
  • the above embodiments of the present invention can effectively improve the switching speed of the active standby node device, further reduce the packet loss rate, and improve the accuracy of data transmission.
  • FIG. 6 is a schematic structural diagram of a VRRP-based data transmission apparatus according to an embodiment of the present invention, where the apparatus includes:
  • the establishing module 61 is configured to establish a tunnel traversing the public network with the edge node device in another private network;
  • the election module 62 is configured to elect a primary node device based on the VRRP packet
  • the upgrade module 63 is configured to upgrade itself as a master node device
  • the sending module 64 is configured to send a packet to the edge node device of the peer end through the tunnel, notify the edge node device of the peer end to upgrade the node device for the primary node, and perform data transmission according to the established tunnel and the edge node device of the opposite end.
  • the device further includes:
  • the monitoring module 65 is configured to monitor whether the tunnel in which it is located is interrupted
  • a degradation module 66 for downgrading itself to a standby node device
  • the sending module 64 is further configured to send a packet to the standby node device in the private network where the user is located, to notify the standby node device to upgrade to the active node device.
  • the device further includes:
  • the monitoring module 65 is configured to monitor whether the tunnel in which it is located is interrupted
  • a degradation module 66 for downgrading itself to a standby node device
  • the sending module 64 is further configured to send a message to the standby node device in the private network where the user is located, to notify the standby node device to upgrade the active node device, and the upgraded active node device notifies another private connection with the tunnel.
  • the standby node device in the network is promoted to the primary node device.
  • the election module 62 is configured to send a VRRP packet, where the VRRP packet carries the priority information; The primary information and its own priority are used to elect the primary node device.
  • the election module 62 is configured to send a VRRP packet, where the VRRP packet carries priority information and MAC address information; The information determines the priority of each edge node device, and determines whether the priority of each edge node device and its own priority are the same. When the priorities are the same, the primary service is elected according to the MAC address information carried in the VRRP packet. Node device.
  • Embodiments of the present invention provide a VRRP-based data transmission method and apparatus.
  • each edge node device in the two private networks establishes a corresponding traversal public network.
  • the tunnel is elected and the primary node device is elected.
  • the elected primary node device notifies the peer edge node device of the peer end to upgrade to the primary node device through the tunnel, and the primary nodes of the two private networks perform data transmission according to the established tunnel.
  • the elected active node device notifies the edge node device of the peer end to upgrade to the active node device through the tunnel. In order to achieve data transmission, the packet loss rate is reduced, and the accuracy of data transmission is ensured.
  • modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment.
  • the modules or units or components in the embodiments may be combined into one module or unit or component, and further, they may be divided into multiple sub-modules or sub-units or sub-groups. Pieces.
  • any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined.
  • Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components of a VRRP-based data transmission device in accordance with embodiments of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

一种基于VRRP的数据传输方法及装置,当两个私有网络中的节点设备通过共有网络进行通信时,两个私有网络中的每个边缘节点设备建立对应的穿越公共网络的隧道,并选举主用节点设备,选举出的主用节点设备通过隧道通知对端的边缘节点设备升级为主用节点设备,两个私有网络的主用节点根据建立的隧道,进行数据传输。由于私有网络中的边缘节点设备之间建立了隧道,并在两个私有网络中选举出了主用节点设备,选举出的主用节点设备通过隧道通知对端的边缘节点设备升级为主用节点设备,从而实现数据的传输,降低了丢包率,保证了数据传输的准确性。

Description

一种基于VRRP的数据传输方法及装置
本申请要求在2014年12月16日提交中国专利局、申请号为201410784369.6、发明名称为“一种基于VRRP的数据传输方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及网络通信技术领域,尤其涉及一种基于VRRP的数据传输方法及装置。
背景技术
虚拟路由冗余协议(Virtual Router Redundancy Protocol,VRRP)是一种选择协议,它可以把一个虚拟路由器的责任动态分配到局域网上的VRRP路由器中的一台。控制虚拟路由器IP地址的VRRP路由器称为主路由器,它负责转发数据包到这些虚拟IP地址。一个局域网络内的所有主机都设置缺省路由,当网内主机发出的目的地址不在本网段时,报文将被通过缺省路由发往外部路由器,从而实现了主机与外部网络的通信。当缺省路由器故障之后,内部主机将无法与外部通信,如果路由器设置了VRRP时,那么这时,虚拟路由将启用备份路由器,从而实现全网通信。
VRRP通过自动配置备份主机,在主用节点设备出现故障时通过VRRP切换到备用节点设备,能将损失降到最低,提高了网络的稳定性。随着网络互通性的不断加强,私有网络与公共网络的互通也变的越来越频繁,图1为VRRP在私有网络跨公共网络传输的组网结构图,如图所示,交换机A和B分属不同的私有网络,通过边缘节点设备PE1、PE2、PE3和PE4跨MPLS L3VPN网络进行通信,当根据VRRP协议交换机A所在的私有网络选择PE2作为主用节点设备进行通信,而交换机B所在的私有网络选择PE3作为主用节点设备进行通信,则交换机A和B之间进行数据通信时,数据发送和接收的路径不一致,即使交换机A和B所在的私有网络分别选择PE1与PE3作为主用节点设备,交换机A和B之间数据发送和接收的路径一致,但当PE1与PE3之间的链路出现故障时,因为PE1与PE3无法检测到公共网络中的链路故障,所以PE1与PE3也无法切换到备用节点设备,从而造成了数据丢包。
发明内容
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的一种基于VRRP的数据传输方法及装置。
本发明实施例提供了一种基于VRRP的数据传输方法,该方法适用于两个私有网络中的节点设备通过公共网络进行通信的场景,该方法包括:
两个私有网络中的每个边缘节点设备建立对应的穿越公共网络的隧道;
两个私有网络中的每个边缘节点设备基于VRRP报文,选举主用节点设备;
选举出的主用节点设备通过隧道向对端的边缘节点设备发送报文,通知该对端的边缘节点设备升级为主用节点设备;
两个私有网络的主用节点设备根据建立的隧道,进行数据传输。
为了降低数据包的丢失率,有效提高数据传输的准确性,所述方法还包括:
第一主用节点设备监控其所在的隧道是否中断;
当监控到隧道中断时,第一主用节点设备降为备用节点设备,并向其所在私有网络中的备用节点设备发送报文,通知该备用节点设备升级为主用节点设备。
为了降低数据包的丢失率,有效提高数据传输的准确性,所述方法还包括:
第一主用节点设备监控其所在的隧道是否中断;
当监控到隧道中断时,第一主用节点设备降为备用节点设备,并向其所在私有网络中的备用节点设备发送报文,通知该备用节点设备升级为主用节点设备,升级后的主用节点设备通知与其隧道连接的另一私有网络中的备用节点设备升为主用节点设备。
为了实现私有网络中的节点设备通过公共网络进行数据传输,所述两个私有网络中的每个边缘节点设备基于VRRP报文,选举主用节点设备包括:
两个私有网络中的每个边缘节点设备发送VRRP报文,其中所述VRRP报文中携带优先级信息;
每个边缘节点设备根据VRRP报文中携带的优先级信息及自身的优先级,选举主用节点设备。
为了实现私有网络中的节点设备通过公共网络进行数据传输,所述两个私有网络中的每个边缘节点设备基于VRRP报文,选举主用节点设备包括:
两个私有网络中的每个边缘节点设备发送VRRP报文,其中所述VRRP报文中携带优先级信息及MAC地址信息;
根据每个优先级信息确定每个边缘节点设备的优先级,判断每个边缘节点设备的优先级及自身的优先级是否相同;
当优先级相同时,根据所述VRRP报文中携带的MAC地址信息,选举主用节点设备。
本发明实施例提供了一种基于VRRP的数据传输装置,所述装置包括:
建立模块,用于与另一私有网络中的边缘节点设备建立穿越公共网络的隧道;
选举模块,用于基于VRRP报文,选举主用节点设备;
升级模块,用于升级自身为主用节点设备;
发送模块,用于通过隧道向对端的边缘节点设备发送报文,通知对端的边缘节点设备升级为主用节点设备,根据建立的隧道与对端的边缘节点设备进行数据传输。
为了降低数据包的丢失率,有效提高数据传输的准确性,所述装置还包括:
监控模块,用于监控其所在的隧道是否中断;
降级模块,用于将自身降级为备用节点设备;
所述发送模块,还用于向其所在私有网络中的备用节点设备发送报文,通知该备用节点设备升级为主用节点设备。
为了降低数据包的丢失率,有效提高数据传输的准确性,所述装置还包括:
监控模块,用于监控其所在的隧道是否中断;
降级模块,用于将自身降级为备用节点设备;
所述发送模块,还用于向其所在私有网络中的备用节点设备发送报文,通知该备用节点设备升级为主用节点设备,升级后的主用节点设备通知与其隧道连接的另一私有网络中的备用节点设备升为主用节点设备。
为了实现私有网络中的节点设备通过公共网络进行数据传输,所述选举模块,具体用于发送VRRP报文,其中所述VRRP报文中携带优先级信息;根据VRRP报文中携带优先级信息及自身的优先级,选举主用节点设备。
为了实现私有网络中的节点设备通过公共网络进行数据传输,所述选举模块,具体用于发送VRRP报文,其中所述VRRP报文中携带优先级信息及MAC地址信息;根据每个优先级信息确定每个边缘节点设备的优先级,判断每个边缘节点设备的优先级及自身的优先级是否相同;当携带的优先级信息相同时,根据所述VRRP报文中携带的MAC地址信息,选举主用节点设备。
本发明实施例提供了一种基于VRRP的数据传输方法及装置,当两个私有网络中的节点设备通过共有网络进行通信时,两个私有网络中的每个边缘节点设备建立对应的穿越公共网络的隧道,并选举主用节点设备,选举出的主用节点设备通过隧道通知对端的边缘节点设备升级为主用节点设备,两个私有网络的主用节点根据建立的隧道,进行数据传输。由于私有网络中的边缘节点设备之间建立了隧道,并在两个私有网络中选举出了主用节点 设备,选举出的主用节点设备通过隧道通知对端的边缘节点设备升级为主用节点设备,从而实现数据的传输,降低了丢包率,保证了数据传输的准确性。
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。
附图说明
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:
图1为VRRP在私有网络跨公共网络传输的组网结构图;
图2为本发明实施例提供的一种基于VRRP的数据传输过程;
图3为本发明实施例一提供的一种基于VRRP的数据传输过程:
图4为本发明实施例二提供的一种基于VRRP的数据传输过程;
图5为本发明实施例三提供的一种基于VRRP的数据传输过程;
图6为本发明实施例提供了一种基于VRRP的数据传输装置的结构示意图。
具体实施方式
为了有效的降低丢包率,提高数据传输的准确性,本发明实施例提供了一种基于VRRP的数据传输方法及装置。
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。
下面结合说明附图,对本发明实施例进行说明。
图2为本发明实施例提供的一种基于VRRP的数据传输过程,该过程包括以下步骤:
S201:两个私有网络中的每个边缘节点设备建立对应的穿越公共网络的隧道。
当两个私有网络通过公共网络进行通信时,如图1所示,为了降低丢包率,提高数据传输的准确性,在本发明实施例中两个私有网络中的边缘节点设备之间建立对应的穿越公共网络的隧道。为了实现数据的传输,保证数据传输的稳定性,一般建立两条穿越公共网 络的隧道,连接该两条穿越公共网络的隧道的边缘节点设备在私有网络中分别为主用节点设备和备用节点设备。
例如第一私有网络的边缘节点设备为PE1和PE2,第二私有网络的边缘节点设备为PE3和PE4,则可以在PE1和PE3之间建立穿越公共网络的隧道,在PE2和PE4之间建立穿越公共网络的隧道,当然也可以是PE1和PE4之间建立穿越公共网络的隧道,在PE2和PE3之间建立穿越公共网络的隧道,每个边缘节点只能建立一条穿越公共网络的隧道。该穿越公共网络的隧道为双向隧道。
S202:两个私有网络中的每个边缘节点设备基于VRRP报文,选举主用节点设备。
私有网络的边缘节点设备间建立了穿越公共网络的隧道后,为了降低丢包率,提高数据传输的准确性,两个私有网络中的边缘节点设备中选举出主用节点设备。还以上述例子进行说明,第一私有网络的边缘节点设备为PE1和PE2,第二私有网络的边缘节点设备为PE3和PE4,建立隧道后,在PE1、PE2、PE3和PE4间选举出主用节点设备。
S203:选举出的主用节点设备通过隧道向对端的边缘节点设备发送报文,通知该对端的边缘节点设备升级为主用节点设备。
主用节点设备选举出后,如果该主用节点设备在第一私有网络,则该第一私有网络的另一边缘节点设备,将自身确定为备用节点设备。为了降低丢包率,提高数据传输的准确性,在本发明实施例中该主用节点设备通知隧道对端的边缘节点设备也升级为主用节点设备,相应的该另一私有网络中的另一边缘节点设备将自身确定为备用节点设备。
例如第一私有网络的边缘节点设备为PE1和PE2,第二私有网络的边缘节点设备为PE3和PE4,则PE1和PE3之间建立穿越公共网络的隧道,PE2和PE4之间建立穿越公共网络的隧道,在4个边缘节点设备中选举出PE1为主用节点设备,第一私有网络中的PE2将自身确定为备用节点设备,PE1通过隧道通知PE3升级为主用节点设备,第二私有网络中的PE4确定自身为备用节点设备。
S204:两个私有网络的主用节点设备根据建立的隧道,进行数据传输。
在两个私有网络中建立了穿越公共网络的隧道,并且选举出了主用节点设备,即可基于该隧道通过主用节点设备在两个私有网络之间进行数据传输了。
为了保证数据通过隧道传输,并且区分通过隧道传输的数据,以及通过公共网络传输的数据,在本发明实施例中可以定义在隧道中传输的数据的格式,该数据格式如表1所示:
MAC Label1 Label2 IP head1 IP head2 VRRP
表1
在该报文格式中,MAC代表公共网络的二层MAC地址,Label1代表公共网络的MPLS 标签,Label2表示发送该报文的私有网络的MLPS标签,IP head1表示公共网络的IP包头,IP head2表示发送该报文的私有网络的IP包头,数据部分保存VRRP报文的数据。
在本发明实施例中由于私有网络中的边缘节点设备之间建立了隧道,并在两个私有网络中选举出了主用节点设备,选举出的主用节点设备通过隧道通知对端的边缘节点设备升级为主用节点设备,从而实现数据的传输,降低了丢包率,保证了数据传输的准确性。
在本发明实施例中为了实现两个私有网络能够穿越公共网络进行数据的传输,两个私有网络的边缘节点设备会穿越公共网络建立隧道。具体的在建立穿越公共网络的隧道时,基于私有网络中边缘节点设备的IP地址建立。还以上述例子进行说明,第一私有网络的边缘节点设备为PE1和PE2,第二私有网络的边缘节点设备为PE3和PE4,则PE1和PE3之间建立穿越公共网络的隧道,PE2和PE4之间建立穿越公共网络的隧道。在本发明实施例中该穿越公共网络的隧道都为双向隧道。在建立穿越公共网络的隧道时,先建立单向隧道,例如建立PE1到PE3的单向隧道,则可以将PE1在其所在私有网络中的IP地址作为隧道的源端,将PE3在其所在私有网络中的IP地址作为隧道的目的端,并基于VRRP呈现一个虚拟的三层隧道接口,使该接口归属于PE1所在的私有网络,相应的PE3到PE1的单向隧道的建立过程与上述过程相似,从而实现双向隧道的建立。
两个私有网络中的边缘节点设备间建立了穿越公共网络的隧道后,在建立隧道后的边缘节点设备之中选举出主用节点设备。具体的为了实现私有网络中的节点设备通过公共网络进行数据传输,所述两个私有网络中的每个边缘节点设备基于VRRP报文,选举主用节点设备包括:
两个私有网络中的每个边缘节点设备发送VRRP报文,其中所述VRRP报文中携带优先级信息;
每个边缘节点设备根据VRRP报文中携带的优先级信息及自身的优先级,选举主用节点设备。
为了在两个私有网络中选举出主用节点设备,在本发明实施例中每个私有网络中的边缘节点设备通过隧道发送VRRP报文,其中该VRRP报文中携带其优先级信息,每个边缘节点设备根据自身的优先级,及接收到的其他边缘节点设备的优先级,选举出主用节点设备。
具体的,为了实现在两个私有网络的边缘节点设备间选举出主用节点设备,在原有VRRP报文的基础上扩展TLV字段,该TLV字段中携带该边缘节点设备的优先级信息。每个边缘节点设备根据接收到的其他边缘节点设备发送的优先级信息,及自身的优先级信息,选举出主用节点设备。
当边缘节点设备的优先级相同时,为了选举出主用节点设备,本发明实施例中所述两个私有网络中的每个边缘节点设备基于VRRP报文,选举主用节点设备包括:
两个私有网络中的每个边缘节点设备发送VRRP报文,其中所述VRRP报文中携带优先级信息及MAC地址信息;
根据每个优先级信息确定每个边缘节点设备的优先级,判断每个边缘节点设备的优先级及自身的优先级是否相同;
当优先级相同时,根据所述VRRP报文中携带的MAC地址信息,选举主用节点设备。
在本发明实施例中该VRRP报文中不仅可以包含优先级信息,还可以包含MAC地址信息,在进行主用节点设备选举时,每个边缘节点设备根据接收到的其他边缘节点设备的优先级,及自身的优先级,确定是否每个边缘节点设备的优先级相等,当边缘节点设备的优先级不相等时,选举出主用节点设备,当边缘节点设备的优先级都相等时,根据每个边缘节点设备的MAC地址,及自身的MAC地址,选举主用节点设备。
为了准确的选举出主用节点设备,VRRP报文中还可以携带边缘节点设备所在私有网络的网络标识信息。
图3为本发明实施例一提供的一种基于VRRP的数据传输过程,该过程包括以下步骤:
S301:两个私有网络中的每个边缘节点设备建立对应的穿越公共网络的隧道。
S302:两个私有网络中的每个边缘节点设备基于隧道发送VRRP报文,其中该VRRP报文中携带边缘节点设备所在私有网络的标识信息,优先级信息及MAC地址信息。
S303:每个边缘节点设备根据接收到的其他边缘节点设备的优先级,及自身的优先级,判断每个边缘节点设备的优先级是否相等,当判断结果为是时,进行步骤S305,否则,进行步骤S304。
S304:根据边缘节点设备的优先级,选举主用节点设备。之后进行步骤S306。
S305:根据边缘节点设备的MAC地址,选举主用节点设备。
S306:选举出的主用节点设备通过隧道向对端的边缘节点设备发送报文,通知该对端的边缘节点设备升级为主用节点设备。
S307:两个私有网络的主用节点设备根据建立的隧道,进行数据传输。
通过选举方式确定主用节点设备后,该主用节点设备通过VRRP报文通知隧道对端的边缘节点设备升级为主用节点设备。具体的,为了实现隧道对端边缘节点设备的升级,在本发明实施例中在VRRP报文中扩展LTV字段,该LTV字段的格式如表2所示:
Type Value
表2
该LTV字段中包含Type和Value,当Type为1时,标识强制功能,Value为2代表强制升为主用节点设备,Value为1代表强制降为备用节点设备。
采用本发明实施例提供的数据传输方法,可以有效降低丢包率,并且由于每条穿越公共网络的隧道两端的节点设备同时为主用节点设备,或同时为备用节点设备,因此可以有效保证私有网络的数据通过公共网络传输,从而降低丢包率,提高数据传输的准确性。
另外,为了进一步降低数据包的丢失率,有效提高数据传输的准确性,所述方法还包括:
第一主用节点设备监控其所在的隧道是否中断;
当监控到隧道中断时,第一主用节点设备降为备用节点设备,并向其所在私有网络中的备用节点设备发送报文,通知该备用节点设备升级为主用节点设备。
在本发明实施例中为了有效的降低丢包率,提高数据传输的准确性,连个私有网络的边缘节点设备穿越公共网络建立隧道后,每个主用节点设备都监控其所在的隧道是否中断。例如第一私有网络的边缘节点设备为PE1和PE2,第二私有网络的边缘节点设备为PE3和PE4,则PE1和PE3之间建立穿越公共网络的隧道,PE2和PE4之间建立穿越公共网络的隧道,在4个边缘节点设备中选举出PE1为主用节点设备,第一私有网络中的PE2将自身确定为备用节点设备,PE1通过隧道通知PE3升级为主用节点设备,第二私有网络中的PE4确定自身为备用节点设备。
主用节点设备PE1和PE3监控其所在的隧道是否中断,监控中断的方法可以是判断设定时间长度内是否接收到数据包,当在设定时间长度内未接收到数据包时,确定隧道中断,当然也可以采用其他的监控中断的方式,在本发明实施例中对具体的监控中断方法不进行限定,只要能够实现中断的监控即可。
当主用节点设备监控到其所在的隧道中断时,为了保证数据的传输,降低丢包率,在本发明实施例中该主用节点设备在其所在的私有网络中,通知备用节点设备升级为主用节点设备,自身降为备用节点设备。由于每个主用节点设备都在监控隧道是否中断,因此可以保证两个主用节点设备会同时发生倒换,同时降为备用节点设备,相应的另一隧道连接的两个边缘节点设备,可以同时升级为主用节点设备。
在本发明的上述实施例中,每个主用节点设备监控到隧道中断时,自身降为备用节点设备,并通知与其同在同一私有网络中的备用节点设备升级为主用节点设备。
图4为本发明实施例二提供的一种基于VRRP的数据传输过程,该过程包括以下步骤:
S401:两个私有网络中的每个边缘节点设备建立对应的穿越公共网络的隧道。
S402:两个私有网络中的每个边缘节点设备基于隧道发送VRRP报文,其中该VRRP 报文中携带边缘节点设备所在私有网络的标识信息,优先级信息及MAC地址信息。
S403:每个边缘节点设备根据接收到的其他边缘节点设备的优先级,及自身的优先级,判断每个边缘节点设备的优先级是否相等,当判断结果为是时,进行步骤S405,否则,进行步骤S404。
S404:根据边缘节点设备的优先级,选举主用节点设备。之后进行步骤S406。
S405:根据边缘节点设备的MAC地址,选举主用节点设备。
S406:选举出的主用节点设备通过隧道向对端的边缘节点设备发送报文,通知该对端的边缘节点设备升级为主用节点设备。
S407:两个私有网络的主用节点设备根据建立的隧道,进行数据传输。
S408:每个主用节点设备监控其所在的隧道是否中断,当判断结果为是时,进行步骤S409,否则,继续进行步骤S408。
S409:主用节点设备降为备用节点设备,并向其所在私有网络中的备用节点设备发送报文,通知该备用节点设备升级为主用节点设备。
为了降低数据包的丢失率,有效提高数据传输的准确性,所述方法还包括:
第一主用节点设备监控其所在的隧道是否中断;
当监控到隧道中断时,第一主用节点设备降为备用节点设备,并向其所在私有网络中的备用节点设备发送报文,通知该备用节点设备升级为主用节点设备,升级后的主用节点设备通知与其隧道连接的另一私有网络中的备用节点设备升为主用节点设备。
在本发明实施例中两个主用节点设备监控其所在的隧道是否中断,由于每个主用节点设备的硬件配置不同,监控到隧道中断的时刻可能不同,当某一主用节点设备监控到隧道中断时,该主用节点设备降为备用节点设备,并通知其所在私有网络的备用节点设备升级为主用节点设备,升级后的该主用节点设备通过其所在的隧道通知另一私有网络中与其通过隧道连接的另一备用节点设备升级为主用节点设备。
图5为本发明实施例三提供的一种基于VRRP的数据传输过程,该过程包括以下步骤:
S501:两个私有网络中的每个边缘节点设备建立对应的穿越公共网络的隧道。
S502:两个私有网络中的每个边缘节点设备基于隧道发送VRRP报文,其中该VRRP报文中携带边缘节点设备所在私有网络的标识信息,优先级信息及MAC地址信息。
S503:每个边缘节点设备根据接收到的其他边缘节点设备的优先级,及自身的优先级,判断每个边缘节点设备的优先级是否相等,当判断结果为是时,进行步骤S505,否则,进行步骤S504。
S504:根据边缘节点设备的优先级,选举主用节点设备。之后进行步骤S506。
S505:根据边缘节点设备的MAC地址,选举主用节点设备。
S506:选举出的主用节点设备通过隧道向对端的边缘节点设备发送报文,通知该对端的边缘节点设备升级为主用节点设备。
S507:两个私有网络的主用节点设备根据建立的隧道,进行数据传输。
S508:每个主用节点设备监控其所在的隧道是否中断,当判断结果为是时,进行步骤S509,否则,继续进行步骤S508。
S509:主用节点设备降为备用节点设备,并向其所在私有网络中的备用节点设备发送报文,通知该备用节点设备升级为主用节点设备,升级后的主用节点设备通知与其隧道连接的另一私有网络中的备用节点设备升为主用节点设备。
采用本发明的上述实施例可以有效的提高主用备用节点设备的切换速度,进一步降低丢包率,提高数据传输的准确性。
图6为本发明实施例提供了一种基于VRRP的数据传输装置的结构示意图,所述装置包括:
建立模块61,用于与另一私有网络中的边缘节点设备建立穿越公共网络的隧道;
选举模块62,用于基于VRRP报文,选举主用节点设备;
升级模块63,用于升级自身为主用节点设备;
发送模块64,用于通过隧道向对端的边缘节点设备发送报文,通知对端的边缘节点设备升级为主用节点设备,根据建立的隧道与对端的边缘节点设备进行数据传输。
为了降低数据包的丢失率,有效提高数据传输的准确性,所述装置还包括:
监控模块65,用于监控其所在的隧道是否中断;
降级模块66,用于将自身降级为备用节点设备;
所述发送模块64,还用于向其所在私有网络中的备用节点设备发送报文,通知该备用节点设备升级为主用节点设备。
为了降低数据包的丢失率,有效提高数据传输的准确性,所述装置还包括:
监控模块65,用于监控其所在的隧道是否中断;
降级模块66,用于将自身降级为备用节点设备;
所述发送模块64,还用于向其所在私有网络中的备用节点设备发送报文,通知该备用节点设备升级为主用节点设备,升级后的主用节点设备通知与其隧道连接的另一私有网络中的备用节点设备升为主用节点设备。
为了实现私有网络中的节点设备通过公共网络进行数据传输,所述选举模块62,具体用于发送VRRP报文,其中所述VRRP报文中携带优先级信息;根据VRRP报文中携带优 先级信息及自身的优先级,选举主用节点设备。
为了实现私有网络中的节点设备通过公共网络进行数据传输,所述选举模块62,具体用于发送VRRP报文,其中所述VRRP报文中携带优先级信息及MAC地址信息;根据每个优先级信息确定每个边缘节点设备的优先级,判断每个边缘节点设备的优先级及自身的优先级是否相同;当优先级相同时,根据所述VRRP报文中携带的MAC地址信息,选举主用节点设备。
本发明实施例提供了一种基于VRRP的数据传输方法及装置,当两个私有网络中的节点设备通过共有网络进行通信时,两个私有网络中的每个边缘节点设备建立对应的穿越公共网络的隧道,并选举主用节点设备,选举出的主用节点设备通过隧道通知对端的边缘节点设备升级为主用节点设备,两个私有网络的主用节点根据建立的隧道,进行数据传输。由于私有网络中的边缘节点设备之间建立了隧道,并在两个私有网络中选举出了主用节点设备,选举出的主用节点设备通过隧道通知对端的边缘节点设备升级为主用节点设备,从而实现数据的传输,降低了丢包率,保证了数据传输的准确性。
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组 件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的基于VRRP的数据传输装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。

Claims (10)

  1. 一种基于VRRP的数据传输方法,其特征在于,该方法适用于两个私有网络中的节点设备通过公共网络进行通信的场景,该方法包括:
    两个私有网络中的每个边缘节点设备建立对应的穿越公共网络的隧道;
    两个私有网络中的每个边缘节点设备基于VRRP报文,选举主用节点设备;
    选举出的主用节点设备通过隧道向对端的边缘节点设备发送报文,通知该对端的边缘节点设备升级为主用节点设备;
    两个私有网络的主用节点设备根据建立的隧道,进行数据传输。
  2. 如权利要求1所述的方法,其特征在于,所述方法还包括:
    第一主用节点设备监控其所在的隧道是否中断;
    当监控到隧道中断时,第一主用节点设备降为备用节点设备,并向其所在私有网络中的备用节点设备发送报文,通知该备用节点设备升级为主用节点设备。
  3. 如权利要求1所述的方法,其特征在于,所述方法还包括:
    第一主用节点设备监控其所在的隧道是否中断;
    当监控到隧道中断时,第一主用节点设备降为备用节点设备,并向其所在私有网络中的备用节点设备发送报文,通知该备用节点设备升级为主用节点设备,升级后的主用节点设备通知与其隧道连接的另一私有网络中的备用节点设备升为主用节点设备。
  4. 如权利要求1所述的方法,其特征在于,所述两个私有网络中的每个边缘节点设备基于VRRP报文,选举主用节点设备包括:
    两个私有网络中的每个边缘节点设备发送VRRP报文,其中所述VRRP报文中携带优先级信息;
    每个边缘节点设备根据VRRP报文中携带的优先级信息及自身的优先级,选举主用节点设备。
  5. 如权利要求4所述的方法,其特征在于,所述两个私有网络中的每个边缘节点设备基于VRRP报文,选举主用节点设备包括:
    两个私有网络中的每个边缘节点设备发送VRRP报文,其中所述VRRP报文中携带优先级信息及MAC地址信息;
    根据每个优先级信息确定每个边缘节点设备的优先级,判断每个边缘节点设备的优先级及自身的优先级是否相同;
    当优先级相同时,根据所述VRRP报文中携带的MAC地址信息,选举主用节点设备。
  6. 一种基于VRRP的数据传输装置,其特征在于,所述装置包括:
    建立模块,用于与另一私有网络中的边缘节点设备建立穿越公共网络的隧道;
    选举模块,用于基于VRRP报文,选举主用节点设备;
    升级模块,用于升级自身为主用节点设备;
    发送模块,用于通过隧道向对端的边缘节点设备发送报文,通知对端的边缘节点设备升级为主用节点设备,根据建立的隧道与对端的边缘节点设备进行数据传输。
  7. 如权利要求6所述的装置,其特征在于,所述装置还包括:
    监控模块,用于监控其所在的隧道是否中断;
    降级模块,用于将自身降级为备用节点设备;
    所述发送模块,还用于向其所在私有网络中的备用节点设备发送报文,通知该备用节点设备升级为主用节点设备。
  8. 如权利要求6所述的装置,其特征在于,所述装置还包括:
    监控模块,用于监控其所在的隧道是否中断;
    降级模块,用于将自身降级为备用节点设备;
    所述发送模块,还用于向其所在私有网络中的备用节点设备发送报文,通知该备用节点设备升级为主用节点设备,升级后的主用节点设备通知与其隧道连接的另一私有网络中的备用节点设备升为主用节点设备。
  9. 如权利要求6所述的装置,其特征在于,所述选举模块,具体用于发送VRRP报文,其中所述VRRP报文中携带优先级信息;根据VRRP报文中携带优先级信息及自身的优先级,选举主用节点设备。
  10. 如权利要求9所述的装置,其特征在于,所述选举模块,具体用于发送VRRP报文,其中所述VRRP报文中携带优先级信息及MAC地址信息;根据每个优先级信息确定每个边缘节点设备的优先级,判断每个边缘节点设备的优先级及自身的优先级是否相同;当优先级相同时,根据所述VRRP报文中携带的MAC地址信息,选举主用节点设备。
PCT/CN2015/071527 2014-12-16 2015-01-26 一种基于vrrp的数据传输方法及装置 WO2016095322A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410784369.6 2014-12-16
CN201410784369.6A CN104410570B (zh) 2014-12-16 2014-12-16 一种基于vrrp的数据传输方法及装置

Publications (1)

Publication Number Publication Date
WO2016095322A1 true WO2016095322A1 (zh) 2016-06-23

Family

ID=52648168

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/071527 WO2016095322A1 (zh) 2014-12-16 2015-01-26 一种基于vrrp的数据传输方法及装置

Country Status (2)

Country Link
CN (1) CN104410570B (zh)
WO (1) WO2016095322A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107770062A (zh) * 2016-08-16 2018-03-06 北京金山云网络技术有限公司 一种数据包发送方法、装置及网络架构

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106452992B (zh) * 2016-09-19 2020-02-11 新华三技术有限公司 一种远端多归属组网的实现方法及装置
CN106788921B (zh) * 2016-11-24 2020-08-07 上海华为技术有限公司 多cpe冗余链路系统及方法
CN109218178B (zh) * 2017-07-05 2021-06-22 华为技术有限公司 一种报文处理方法及网络设备
CN111371592B (zh) * 2020-02-21 2023-09-19 无锡华云数据技术服务有限公司 一种节点切换方法、装置、设备及存储介质
CN111565141B (zh) * 2020-04-13 2022-06-07 中国联合网络通信集团有限公司 数据传输方法、第一pe和第二pe
CN114007193B (zh) * 2021-12-31 2022-05-13 亿次网联(杭州)科技有限公司 一种分布式网络节点的通信方法和系统

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262409A (zh) * 2008-04-23 2008-09-10 华为技术有限公司 虚拟私有网络vpn接入方法和装置
WO2009082978A1 (fr) * 2007-12-28 2009-07-09 Huawei Technologies Co., Ltd. Procédé de protection de réseau d'accès, système et nœud de bord d'accès
CN102355479A (zh) * 2011-07-19 2012-02-15 杭州华三通信技术有限公司 一种多nat网关流量转发的方法和设备

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100531136C (zh) * 2006-06-08 2009-08-19 华为技术有限公司 在虚拟专用网的链路故障时传送报文的方法及系统
CN101321077B (zh) * 2008-07-18 2011-02-02 华为技术有限公司 可靠组播的方法、运营商边缘上层设备及系统
CN102546413A (zh) * 2010-11-05 2012-07-04 华为技术有限公司 一种l3vpn中实时恢复vpn报文转发的方法和设备
CN102187628B (zh) * 2011-04-29 2013-06-05 华为技术有限公司 一种路由更新方法及路由器
CN104202184A (zh) * 2014-08-22 2014-12-10 中国联合网络通信集团有限公司 一种快速回切业务的方法和装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009082978A1 (fr) * 2007-12-28 2009-07-09 Huawei Technologies Co., Ltd. Procédé de protection de réseau d'accès, système et nœud de bord d'accès
CN101262409A (zh) * 2008-04-23 2008-09-10 华为技术有限公司 虚拟私有网络vpn接入方法和装置
CN102355479A (zh) * 2011-07-19 2012-02-15 杭州华三通信技术有限公司 一种多nat网关流量转发的方法和设备

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107770062A (zh) * 2016-08-16 2018-03-06 北京金山云网络技术有限公司 一种数据包发送方法、装置及网络架构

Also Published As

Publication number Publication date
CN104410570B (zh) 2017-09-08
CN104410570A (zh) 2015-03-11

Similar Documents

Publication Publication Date Title
WO2016095322A1 (zh) 一种基于vrrp的数据传输方法及装置
US9755958B2 (en) Fast convergence in VRRP with multipoint bidirectional forwarding detection
WO2019105066A1 (zh) 处理路由的方法和装置、以及数据传输的方法和装置
WO2018054156A1 (zh) 一种vxlan报文的转发方法、设备及系统
JP6319604B2 (ja) Sdnコントローラ、データセンターシステムおよびルーティング接続方法
US20200245206A1 (en) Bit indexed explicit replication based multicast for locator identifier separation protocol
US20160197853A1 (en) Distributed bidirectional forwarding detection protocol (d-bfd) for cluster of interconnected switches
WO2016023436A1 (zh) 一种虚拟路由器冗余协议故障检测的方法及路由设备
EP2996287A1 (en) Method for notifying information of pe device and pe device
US9668160B2 (en) Topology discovery based on SCTP/X2 snooping
US9660898B2 (en) Enhanced protocol independent multicast source registration over a reliable transport
WO2020135395A1 (zh) 一种跨内部网关协议的前缀标识通告方法和装置
WO2012028029A1 (zh) 一种切换方法及系统
US20160316011A1 (en) Sdn network element affinity based data partition and flexible migration schemes
EP3058777B1 (en) Topology discovery based on explicit signaling
WO2016116050A1 (zh) 环保护链路故障保护方法、设备及系统
EP3586482B1 (en) Mechanism to detect data plane loops in an openflow network
WO2015144018A1 (zh) 信息发送方法、装置及通信系统
WO2012171378A1 (zh) 解决vpls接入l3故障切换导致断流的方法及路由器
US20160112316A1 (en) Decision factory and its application in frr
EP2775663B1 (en) Method and device for recovering customer service
CN105490937A (zh) 以太虚拟网络网关切换方法和服务商边缘节点设备
WO2015172745A1 (en) Bidirectional forwarding detection
WO2016123904A1 (zh) 路由收敛方法、装置及虚拟专用网vpn系统
WO2021109997A1 (zh) 分段路由隧道的防断纤方法、装置,入口节点及存储介质

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

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

Country of ref document: EP

Kind code of ref document: A1