CN104410570A - VRRP (virtual router redundancy protocol) based data transmission method and device - Google Patents

VRRP (virtual router redundancy protocol) based data transmission method and device Download PDF

Info

Publication number
CN104410570A
CN104410570A CN201410784369.6A CN201410784369A CN104410570A CN 104410570 A CN104410570 A CN 104410570A CN 201410784369 A CN201410784369 A CN 201410784369A CN 104410570 A CN104410570 A CN 104410570A
Authority
CN
China
Prior art keywords
node device
tunnel
primary node
primary
vrrp
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201410784369.6A
Other languages
Chinese (zh)
Other versions
CN104410570B (en
Inventor
熊文柱
何英军
曹涛
苏盘社
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kyland Technology Co Ltd
Original Assignee
Kyland Technology Co Ltd
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 Kyland Technology Co Ltd filed Critical Kyland Technology Co Ltd
Priority to CN201410784369.6A priority Critical patent/CN104410570B/en
Priority to PCT/CN2015/071527 priority patent/WO2016095322A1/en
Publication of CN104410570A publication Critical patent/CN104410570A/en
Application granted granted Critical
Publication of CN104410570B publication Critical patent/CN104410570B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a VRRP (virtual router redundancy protocol) based data transmission method and device. According to the method, when node equipment in two private networks are communicated through a common network, each edge node equipment in the two private networks establish a corresponding tunnel penetrating the common network, primary node equipment is elected, the elected primary node equipment notifies the edge node equipment at the opposite end through the tunnel to be updated to primary node equipment, and primary nodes of the two private networks transmit data through the established tunnels. The tunnels are established between two sets of edge node equipment in the private networks, the primary node equipment is elected in the two private networks, and the elected primary node equipment notifies the edge node equipment at the opposite end through the tunnel to be updated to the primary node equipment, so that data transmission is realized, the packet loss probability is reduced, and the data transmission accuracy is guaranteed.

Description

A kind of data transmission method based on VRRP and device
Technical field
The present invention relates to network communication technology field, particularly relate to a kind of data transmission method based on VRRP and device.
Background technology
Virtual Router Redundacy Protocol (Virtual Router Redundancy Protocol, VRRP) is a kind of selection protocol, and it can be dynamically assigning to the responsibility of a virtual router one in the VRRP router on local area network (LAN).The VRRP router controlling virtual router ip address is called active router, and it is responsible for forwarding data bag to these virtual ip address.All hosts in a LAN all arranges default route, and when the destination address that main frame in netting sends is not at this network segment, message will be mail to outside router by by default route, thus achieve the communication of main frame and external network.After default router fault, internal host cannot with PERCOM peripheral communication, if when router is provided with VRRP, so at this moment, virtual flow-line will enable backup router, thus realize TOCOM total communication.
VRRP, by automatic configuration backup main frame, is switched to secondary node equipment when primary node device breaks down by VRRP, loss can be dropped to minimum, improve the stability of network.Along with the continuous reinforcement of network interworking, it is more and more frequent that the intercommunication of private network and public network also becomes, Fig. 1 is that VRRP is at the networking structure figure of private network across public network transmissions, as shown in the figure, switch A and B adhere to different private networks separately, by edge node devices PE1, PE2, PE3 with PE4 communicates across MPLS L3VPN network, when selecting PE2 to communicate as primary node device according to the private network at VRRP protocol switch A place, and the private network at switch b place selects PE3 to communicate as primary node device, when then carrying out data communication between switch A and B, the path of data input and data output is inconsistent, even if the private network at switch A and B place selects PE1 and PE3 as primary node device respectively, between switch A and B, the path of data input and data output is consistent, but during link failure between PE1 and PE3, because PE1 and PE3 cannot detect the link failure in public network, so PE1 and PE3 also cannot be switched to secondary node equipment, thus cause data packetloss.
Summary of the invention
In view of the above problems, the present invention is proposed to provide a kind of overcoming the problems referred to above or a kind of data transmission method based on VRRP solved the problem at least in part and device.
Embodiments provide a kind of data transmission method based on VRRP, the method node device be applicable in two private networks carries out the scene communicated by public network, the method comprises:
Each edge node devices in two private networks sets up the corresponding tunnel passing through public network;
Each edge node devices in two private networks, based on VRRP message, elects primary node device;
The primary node device elected, by the edge node devices transmission message of tunnel to opposite end, notifies that the edge node devices of this opposite end upgrades to primary node device;
The primary node device of two private networks, according to the tunnel set up, carries out transfer of data.
In order to reduce the Loss Rate of packet, effectively improve the accuracy of transfer of data, described method also comprises:
Whether the tunnel that the first primary node device monitors its place interrupts;
When monitoring tunnel and interrupting, the first primary node device reduces to secondary node equipment, and sends message to the secondary node equipment in its place private network, notifies that this secondary node device upgrade is primary node device.
In order to reduce the Loss Rate of packet, effectively improve the accuracy of transfer of data, described method also comprises:
Whether the tunnel that the first primary node device monitors its place interrupts;
When monitoring tunnel and interrupting, first primary node device reduces to secondary node equipment, and send message to the secondary node equipment in its place private network, notify that this secondary node device upgrade is primary node device, the primary node device after upgrading notifies that the secondary node equipment in another private network be connected with its tunnel is upgraded to primary node device.
In order to the node device realized in private network carries out transfer of data by public network, each edge node devices in described two private networks, based on VRRP message, elects primary node device to comprise:
Each edge node devices in two private networks sends VRRP message, carries precedence information in wherein said VRRP message;
Each edge node devices, according to the precedence information carried in VRRP message and the priority of self, elects primary node device.
In order to the node device realized in private network carries out transfer of data by public network, each edge node devices in described two private networks, based on VRRP message, elects primary node device to comprise:
Each edge node devices in two private networks sends VRRP message, carries precedence information and mac address information in wherein said VRRP message;
Determine the priority of each edge node devices according to each precedence information, judge the priority of each edge node devices and the priority of self whether identical;
When priority is identical, according to the mac address information carried in described VRRP message, elect primary node device.
Embodiments provide a kind of data transmission device based on VRRP, described device comprises:
Set up module, for setting up with the edge node devices in another private network the tunnel passing through public network;
Election module, for based on VRRP message, elects primary node device;
Upgraded module, for upgrading certainly as primary node device;
Sending module, for by the edge node devices transmission message of tunnel to opposite end, notifies that the edge node devices of opposite end upgrades to primary node device, carries out transfer of data according to the tunnel of foundation and the edge node devices of opposite end.
In order to reduce the Loss Rate of packet, effectively improve the accuracy of transfer of data, described device also comprises:
Whether monitoring module, interrupt for the tunnel monitoring its place;
Degradation module, for being downgraded to secondary node equipment by self;
Described sending module, also for sending message to the secondary node equipment in its place private network, notifies that this secondary node device upgrade is primary node device.
In order to reduce the Loss Rate of packet, effectively improve the accuracy of transfer of data, described device also comprises:
Whether monitoring module, interrupt for the tunnel monitoring its place;
Degradation module, for being downgraded to secondary node equipment by self;
Described sending module, also for sending message to the secondary node equipment in its place private network, notify that this secondary node device upgrade is primary node device, the primary node device after upgrading notifies that the secondary node equipment in another private network be connected with its tunnel is upgraded to primary node device.
In order to the node device realized in private network carries out transfer of data by public network, described election module, specifically for sending VRRP message, carries precedence information in wherein said VRRP message; According to carrying precedence information and the priority of self in VRRP message, elect primary node device.
In order to the node device realized in private network carries out transfer of data by public network, described election module, specifically for sending VRRP message, carries precedence information and mac address information in wherein said VRRP message; Determine the priority of each edge node devices according to each precedence information, judge the priority of each edge node devices and the priority of self whether identical; When the precedence information carried is identical, according to the mac address information carried in described VRRP message, elect primary node device.
Embodiments provide a kind of data transmission method based on VRRP and device, when the node device in two private networks is communicated by total network, each edge node devices in two private networks sets up the corresponding tunnel passing through public network, and elect primary node device, the primary node device elected upgrades to primary node device by the edge node devices of Tunnel Notify opposite end, the primary node of two private networks, according to the tunnel set up, carries out transfer of data.Owing to establishing tunnel between the edge node devices in private network, and in two private networks, elected primary node device, the primary node device elected upgrades to primary node device by the edge node devices of Tunnel Notify opposite end, thus realize the transmission of data, reduce packet loss, ensure that the accuracy of transfer of data.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of specification, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 is that VRRP is at the networking structure figure of private network across public network transmissions;
A kind of data transmission procedure based on VRRP that Fig. 2 provides for the embodiment of the present invention;
A kind of data transmission procedure based on VRRP that Fig. 3 provides for the embodiment of the present invention one:
A kind of data transmission procedure based on VRRP that Fig. 4 provides for the embodiment of the present invention two;
A kind of data transmission procedure based on VRRP that Fig. 5 provides for the embodiment of the present invention three;
Fig. 6 is the structural representation embodiments providing a kind of data transmission device based on VRRP.
Embodiment
In order to effectively reduce packet loss, improving the accuracy of transfer of data, embodiments providing a kind of data transmission method based on VRRP and device.
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Below in conjunction with explanation accompanying drawing, the embodiment of the present invention is described.
A kind of data transmission procedure based on VRRP that Fig. 2 provides for the embodiment of the present invention, this process comprises the following steps:
Each edge node devices in S201: two private networks sets up the corresponding tunnel passing through public network.
When two private networks are communicated by public network, as shown in Figure 1, in order to reduce packet loss, improving the accuracy of transfer of data, between the edge node devices in embodiments of the present invention in two private networks, setting up the corresponding tunnel passing through public network.In order to realize the transmission of data, ensureing the stability of transfer of data, generally setting up the tunnel that two are passed through public network, connect these two edge node devices passing through the tunnel of public network in private network, be respectively primary node device and secondary node equipment.
The edge node devices of such as the first private network is PE1 and PE2, the edge node devices of the second private network is PE3 and PE4, then can set up the tunnel passing through public network between PE1 and PE3, the tunnel passing through public network is set up between PE2 and PE4, can certainly be between PE1 and PE4, set up the tunnel passing through public network, between PE2 and PE3, set up the tunnel passing through public network, each fringe node can only set up the tunnel that is passed through public network.This tunnel passing through public network is bidirectional tunnel.
Each edge node devices in S202: two private networks, based on VRRP message, elects primary node device.
After establishing the tunnel passing through public network between the edge node devices of private network, in order to reduce packet loss, improving the accuracy of transfer of data, in the edge node devices in two private networks, electing primary node device.Also be described with above-mentioned example, the edge node devices of the first private network is PE1 and PE2, and the edge node devices of the second private network is PE3 and PE4, after setting up tunnel, elects primary node device between PE1, PE2, PE3 and PE4.
S203: the primary node device elected, by the edge node devices transmission message of tunnel to opposite end, notifies that the edge node devices of this opposite end upgrades to primary node device.
After primary node device elects, if this primary node device is at the first private network, then another edge node devices of this first private network, is defined as secondary node equipment by self.In order to reduce packet loss, improve the accuracy of transfer of data, the edge node devices of this primary node device notice opposite end, tunnel also upgrades to primary node device in embodiments of the present invention, and self is defined as secondary node equipment by another edge node devices accordingly in this another private network.
The edge node devices of such as the first private network is PE1 and PE2, the edge node devices of the second private network is PE3 and PE4, then set up the tunnel passing through public network between PE1 and PE3, the tunnel passing through public network is set up between PE2 and PE4, in 4 edge node devices, elect PE1 is primary node device, self is defined as secondary node equipment by the PE2 in the first private network, PE1 upgrades to primary node device by Tunnel Notify PE3, and the PE4 in the second private network determines certainly as secondary node equipment.
The primary node device of S204: two private networks, according to the tunnel set up, carries out transfer of data.
In two private networks, establish the tunnel passing through public network, and elected primary node device, transfer of data can be carried out by primary node device based on this tunnel between two private networks.
In order to ensure that data pass through tunnel transmission, and distinguish by the data of tunnel transmission, and by the data of public network transmissions, can be defined in the form of the data transmitted in tunnel in embodiments of the present invention, this data format is as shown in table 1:
MAC Label1 Label2 IP head1 IP head2 VRRP
Table 1
In this message format, MAC represents the two layer MAC address of public network, Label1 represents the MPLS label of public network, Label2 represents the MLPS label of the private network sending this message, IPhead1 represents the IP packet header of public network, IP head2 represents the IP packet header of the private network sending this message, and data division preserves the data of VRRP message.
In embodiments of the present invention owing to establishing tunnel between the edge node devices in private network, and in two private networks, elected primary node device, the primary node device elected upgrades to primary node device by the edge node devices of Tunnel Notify opposite end, thus realize the transmission of data, reduce packet loss, ensure that the accuracy of transfer of data.
Can pass through to realize two private networks the transmission that public network carries out data in embodiments of the present invention, the edge node devices of two private networks can pass through public network and set up tunnel.Concrete set up pass through the tunnel of public network time, the IP address based on edge node devices in private network is set up.Also be described with above-mentioned example, the edge node devices of the first private network is PE1 and PE2, the edge node devices of the second private network is PE3 and PE4, then set up the tunnel passing through public network between PE1 and PE3, sets up the tunnel passing through public network between PE2 and PE4.This tunnel passing through public network is all bidirectional tunnel in embodiments of the present invention.When the tunnel of public network is passed through in foundation, first set up unidirectional tunnel, such as set up the unidirectional tunnel of PE1 to PE3, then can using the source of the IP address of PE1 in its place private network as tunnel, using the destination of the IP address of PE3 in its place private network as tunnel, and present a virtual three layer tunnel interface based on VRRP, this interface is made to belong to the private network at PE1 place, the process of establishing of the unidirectional tunnel of corresponding PE3 to PE1 is similar to the above process, thus realizes the foundation of bidirectional tunnel.
After establishing the tunnel passing through public network between the edge node devices in two private networks, among the edge node devices after setting up tunnel, elect primary node device.Concrete carry out transfer of data by public network in order to the node device realized in private network, each edge node devices in described two private networks, based on VRRP message, elects primary node device to comprise:
Each edge node devices in two private networks sends VRRP message, carries precedence information in wherein said VRRP message;
Each edge node devices, according to the precedence information carried in VRRP message and the priority of self, elects primary node device.
In order to elect primary node device in two private networks, edge node devices in embodiments of the present invention in each private network sends VRRP message by tunnel, wherein carry its precedence information in this VRRP message, each edge node devices is according to the priority of self, and the priority of other edge node devices received, elect primary node device.
Concrete, in order to realize electing primary node device between the edge node devices of two private networks, TLV field is expanded on the basis of original VRRP message, in this TLV field, carrying the precedence information of this edge node devices.The precedence information that each edge node devices sends according to other edge node devices received, and the precedence information of self, elect primary node device.
When the priority of edge node devices is identical, in order to elect primary node device, each edge node devices in two private networks described in the embodiment of the present invention, based on VRRP message, elects primary node device to comprise:
Each edge node devices in two private networks sends VRRP message, carries precedence information and mac address information in wherein said VRRP message;
Determine the priority of each edge node devices according to each precedence information, judge the priority of each edge node devices and the priority of self whether identical;
When priority is identical, according to the mac address information carried in described VRRP message, elect primary node device.
Not only precedence information can be comprised in embodiments of the present invention in this VRRP message, mac address information can also be comprised, when carrying out the election of primary node device, each edge node devices is according to the priority of other edge node devices received, and the priority of self, determine whether that the priority of each edge node devices is equal, when the priority of edge node devices is unequal, elect primary node device, when the priority of edge node devices is all equal, according to the MAC Address of each edge node devices, and the MAC Address of self, elect primary node device.
In order to elect primary node device accurately, the network identification information of edge node devices place private network in VRRP message, can also be carried.
A kind of data transmission procedure based on VRRP that Fig. 3 provides for the embodiment of the present invention one, this process comprises the following steps:
Each edge node devices in S301: two private networks sets up the corresponding tunnel passing through public network.
Each edge node devices in S302: two private networks sends VRRP message based on tunnel, wherein carries identification information, precedence information and the mac address information of edge node devices place private network in this VRRP message.
S303: each edge node devices is according to the priority of other edge node devices received, and the priority of self, judges that whether the priority of each edge node devices is equal, when judged result is for being, carry out step S305, otherwise, carry out step S304.
S304: according to the priority of edge node devices, elects primary node device.Carry out step S306 afterwards.
S305: according to the MAC Address of edge node devices, elects primary node device.
S306: the primary node device elected, by the edge node devices transmission message of tunnel to opposite end, notifies that the edge node devices of this opposite end upgrades to primary node device.
The primary node device of S307: two private networks, according to the tunnel set up, carries out transfer of data.
After determining primary node device by way to elect, this primary node device upgrades to primary node device by the edge node devices of opposite end, VRRP message notifying tunnel.Concrete, in order to realize the upgrading of tunnel end edges node device, expand LTV field in embodiments of the present invention in VRRP message, the form of this LTV field is as shown in table 2:
Type Value
Table 2
Comprise Type and Value in this LTV field, when Type is 1, mark enforcement functionalities, Value is that 2 representatives are forced to be upgraded to primary node device, and Value is that 1 representative is forced to reduce to secondary node equipment.
Adopt the data transmission method that the embodiment of the present invention provides, effectively can reduce packet loss, and the node device passing through the two ends, tunnel of public network due to every bar is primary node device simultaneously, or be secondary node equipment simultaneously, therefore effectively can ensure that the data of private network pass through public network transmissions, thus reduction packet loss, improve the accuracy of transfer of data.
In addition, in order to reduce the Loss Rate of packet further, effectively improve the accuracy of transfer of data, described method also comprises:
Whether the tunnel that the first primary node device monitors its place interrupts;
When monitoring tunnel and interrupting, the first primary node device reduces to secondary node equipment, and sends message to the secondary node equipment in its place private network, notifies that this secondary node device upgrade is primary node device.
In embodiments of the present invention in order to effectively reduce packet loss, improve the accuracy of transfer of data, the edge node devices connecting a private network passes through after public network sets up tunnel, and whether the tunnel that each primary node device monitors its place interrupts.The edge node devices of such as the first private network is PE1 and PE2, the edge node devices of the second private network is PE3 and PE4, then set up the tunnel passing through public network between PE1 and PE3, the tunnel passing through public network is set up between PE2 and PE4, in 4 edge node devices, elect PE1 is primary node device, self is defined as secondary node equipment by the PE2 in the first private network, PE1 upgrades to primary node device by Tunnel Notify PE3, and the PE4 in the second private network determines certainly as secondary node equipment.
Whether the tunnel that primary node device PE1 and PE3 monitors its place interrupts, the method that monitoring is interrupted can be judge whether receive packet in setting-up time length, when not receiving packet in setting-up time length, determine that tunnel interrupts, the mode that other monitoring is interrupted can certainly be adopted, in embodiments of the present invention concrete monitoring interrupt method is not limited, as long as the monitoring interrupted can be realized.
When the tunnel that primary node device monitors its place interrupts, in order to ensure the transmission of data, reduce packet loss, this primary node device is in the private network at its place in embodiments of the present invention, the device upgrade of notice secondary node is primary node device, self reduces to secondary node equipment.Because whether each primary node device interrupts in monitoring tunnel, therefore can ensure that two primary node devices can be switched simultaneously, reduce to secondary node equipment, two edge node devices of another tunnel connection accordingly, can upgrade to primary node device simultaneously simultaneously.
In the above embodiment of the present invention, when each primary node device monitors tunnel interruption, self reduce to secondary node equipment, and notify that the secondary node device upgrade coexisted in same private network is primary node device with it.
A kind of data transmission procedure based on VRRP that Fig. 4 provides for the embodiment of the present invention two, this process comprises the following steps:
Each edge node devices in S401: two private networks sets up the corresponding tunnel passing through public network.
Each edge node devices in S402: two private networks sends VRRP message based on tunnel, wherein carries identification information, precedence information and the mac address information of edge node devices place private network in this VRRP message.
S403: each edge node devices is according to the priority of other edge node devices received, and the priority of self, judges that whether the priority of each edge node devices is equal, when judged result is for being, carry out step S405, otherwise, carry out step S404.
S404: according to the priority of edge node devices, elects primary node device.Carry out step S406 afterwards.
S405: according to the MAC Address of edge node devices, elects primary node device.
S406: the primary node device elected, by the edge node devices transmission message of tunnel to opposite end, notifies that the edge node devices of this opposite end upgrades to primary node device.
The primary node device of S407: two private networks, according to the tunnel set up, carries out transfer of data.
S408: whether the tunnel that each primary node device monitors its place interrupts, when judged result is for being, carries out step S409, otherwise, proceed step S408.
S409: primary node device reduces to secondary node equipment, and send message to the secondary node equipment in its place private network, notify that this secondary node device upgrade is primary node device.
In order to reduce the Loss Rate of packet, effectively improve the accuracy of transfer of data, described method also comprises:
Whether the tunnel that the first primary node device monitors its place interrupts;
When monitoring tunnel and interrupting, first primary node device reduces to secondary node equipment, and send message to the secondary node equipment in its place private network, notify that this secondary node device upgrade is primary node device, the primary node device after upgrading notifies that the secondary node equipment in another private network be connected with its tunnel is upgraded to primary node device.
Whether the tunnel that two primary node devices monitor its place in embodiments of the present invention interrupts, because the hardware configuration of each primary node device is different, monitoring the moment of interrupting in tunnel may be different, when a certain primary node device monitors tunnel interruption, this primary node device reduces to secondary node equipment, and notify that the secondary node device upgrade of its place private network is primary node device, this primary node device after upgrading is primary node device by another secondary node device upgrade be connected by tunnel with it in another private network of Tunnel Notify at its place.
A kind of data transmission procedure based on VRRP that Fig. 5 provides for the embodiment of the present invention three, this process comprises the following steps:
Each edge node devices in S501: two private networks sets up the corresponding tunnel passing through public network.
Each edge node devices in S502: two private networks sends VRRP message based on tunnel, wherein carries identification information, precedence information and the mac address information of edge node devices place private network in this VRRP message.
S503: each edge node devices is according to the priority of other edge node devices received, and the priority of self, judges that whether the priority of each edge node devices is equal, when judged result is for being, carry out step S505, otherwise, carry out step S504.
S504: according to the priority of edge node devices, elects primary node device.Carry out step S506 afterwards.
S505: according to the MAC Address of edge node devices, elects primary node device.
S506: the primary node device elected, by the edge node devices transmission message of tunnel to opposite end, notifies that the edge node devices of this opposite end upgrades to primary node device.
The primary node device of S507: two private networks, according to the tunnel set up, carries out transfer of data.
S508: whether the tunnel that each primary node device monitors its place interrupts, when judged result is for being, carries out step S509, otherwise, proceed step S508.
S509: primary node device reduces to secondary node equipment, and send message to the secondary node equipment in its place private network, notify that this secondary node device upgrade is primary node device, the primary node device after upgrading notifies that the secondary node equipment in another private network be connected with its tunnel is upgraded to primary node device.
Adopt the above embodiment of the present invention effectively can improve the switch speed of active-standby node device, reduce packet loss further, improve the accuracy of transfer of data.
Fig. 6 is the structural representation embodiments providing a kind of data transmission device based on VRRP, and described device comprises:
Set up module 61, for setting up with the edge node devices in another private network the tunnel passing through public network;
Election module 62, for based on VRRP message, elects primary node device;
Upgraded module 63, for upgrading certainly as primary node device;
Sending module 64, for by the edge node devices transmission message of tunnel to opposite end, notifies that the edge node devices of opposite end upgrades to primary node device, carries out transfer of data according to the tunnel of foundation and the edge node devices of opposite end.
In order to reduce the Loss Rate of packet, effectively improve the accuracy of transfer of data, described device also comprises:
Whether monitoring module 65, interrupt for the tunnel monitoring its place;
Degradation module 66, for being downgraded to secondary node equipment by self;
Described sending module 64, also for sending message to the secondary node equipment in its place private network, notifies that this secondary node device upgrade is primary node device.
In order to reduce the Loss Rate of packet, effectively improve the accuracy of transfer of data, described device also comprises:
Whether monitoring module 65, interrupt for the tunnel monitoring its place;
Degradation module 66, for being downgraded to secondary node equipment by self;
Described sending module 64, also for sending message to the secondary node equipment in its place private network, notify that this secondary node device upgrade is primary node device, the primary node device after upgrading notifies that the secondary node equipment in another private network be connected with its tunnel is upgraded to primary node device.
In order to the node device realized in private network carries out transfer of data by public network, described election module 62, specifically for sending VRRP message, carries precedence information in wherein said VRRP message; According to carrying precedence information and the priority of self in VRRP message, elect primary node device.
In order to the node device realized in private network carries out transfer of data by public network, described election module 62, specifically for sending VRRP message, carries precedence information and mac address information in wherein said VRRP message; Determine the priority of each edge node devices according to each precedence information, judge the priority of each edge node devices and the priority of self whether identical; When priority is identical, according to the mac address information carried in described VRRP message, elect primary node device.
Embodiments provide a kind of data transmission method based on VRRP and device, when the node device in two private networks is communicated by total network, each edge node devices in two private networks sets up the corresponding tunnel passing through public network, and elect primary node device, the primary node device elected upgrades to primary node device by the edge node devices of Tunnel Notify opposite end, the primary node of two private networks, according to the tunnel set up, carries out transfer of data.Owing to establishing tunnel between the edge node devices in private network, and in two private networks, elected primary node device, the primary node device elected upgrades to primary node device by the edge node devices of Tunnel Notify opposite end, thus realize the transmission of data, reduce packet loss, ensure that the accuracy of transfer of data.
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In specification provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary compound mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions based on the some or all parts in the data transmission device of VRRP that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computer of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. based on a data transmission method of VRRP, it is characterized in that, the method node device be applicable in two private networks carries out the scene communicated by public network, the method comprises:
Each edge node devices in two private networks sets up the corresponding tunnel passing through public network;
Each edge node devices in two private networks, based on VRRP message, elects primary node device;
The primary node device elected, by the edge node devices transmission message of tunnel to opposite end, notifies that the edge node devices of this opposite end upgrades to primary node device;
The primary node device of two private networks, according to the tunnel set up, carries out transfer of data.
2. the method for claim 1, is characterized in that, described method also comprises:
Whether the tunnel that the first primary node device monitors its place interrupts;
When monitoring tunnel and interrupting, the first primary node device reduces to secondary node equipment, and sends message to the secondary node equipment in its place private network, notifies that this secondary node device upgrade is primary node device.
3. the method for claim 1, is characterized in that, described method also comprises:
Whether the tunnel that the first primary node device monitors its place interrupts;
When monitoring tunnel and interrupting, first primary node device reduces to secondary node equipment, and send message to the secondary node equipment in its place private network, notify that this secondary node device upgrade is primary node device, the primary node device after upgrading notifies that the secondary node equipment in another private network be connected with its tunnel is upgraded to primary node device.
4. the method for claim 1, is characterized in that, each edge node devices in described two private networks, based on VRRP message, elects primary node device to comprise:
Each edge node devices in two private networks sends VRRP message, carries precedence information in wherein said VRRP message;
Each edge node devices, according to the precedence information carried in VRRP message and the priority of self, elects primary node device.
5. method as claimed in claim 4, it is characterized in that, each edge node devices in described two private networks, based on VRRP message, elects primary node device to comprise:
Each edge node devices in two private networks sends VRRP message, carries precedence information and mac address information in wherein said VRRP message;
Determine the priority of each edge node devices according to each precedence information, judge the priority of each edge node devices and the priority of self whether identical;
When priority is identical, according to the mac address information carried in described VRRP message, elect primary node device.
6. based on a data transmission device of VRRP, it is characterized in that, described device comprises:
Set up module, for setting up with the edge node devices in another private network the tunnel passing through public network;
Election module, for based on VRRP message, elects primary node device;
Upgraded module, for upgrading certainly as primary node device;
Sending module, for by the edge node devices transmission message of tunnel to opposite end, notifies that the edge node devices of opposite end upgrades to primary node device, carries out transfer of data according to the tunnel of foundation and the edge node devices of opposite end.
7. device as claimed in claim 6, it is characterized in that, described device also comprises:
Whether monitoring module, interrupt for the tunnel monitoring its place;
Degradation module, for being downgraded to secondary node equipment by self;
Described sending module, also for sending message to the secondary node equipment in its place private network, notifies that this secondary node device upgrade is primary node device.
8. device as claimed in claim 6, it is characterized in that, described device also comprises:
Whether monitoring module, interrupt for the tunnel monitoring its place;
Degradation module, for being downgraded to secondary node equipment by self;
Described sending module, also for sending message to the secondary node equipment in its place private network, notify that this secondary node device upgrade is primary node device, the primary node device after upgrading notifies that the secondary node equipment in another private network be connected with its tunnel is upgraded to primary node device.
9. device as claimed in claim 6, is characterized in that, described election module, specifically for sending VRRP message, carries precedence information in wherein said VRRP message; According to carrying precedence information and the priority of self in VRRP message, elect primary node device.
10. device as claimed in claim 9, is characterized in that, described election module, specifically for sending VRRP message, carries precedence information and mac address information in wherein said VRRP message; Determine the priority of each edge node devices according to each precedence information, judge the priority of each edge node devices and the priority of self whether identical; When priority is identical, according to the mac address information carried in described VRRP message, elect primary node device.
CN201410784369.6A 2014-12-16 2014-12-16 A kind of data transmission method and device based on VRRP Active CN104410570B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410784369.6A CN104410570B (en) 2014-12-16 2014-12-16 A kind of data transmission method and device based on VRRP
PCT/CN2015/071527 WO2016095322A1 (en) 2014-12-16 2015-01-26 Vrrp-based data transmission method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410784369.6A CN104410570B (en) 2014-12-16 2014-12-16 A kind of data transmission method and device based on VRRP

Publications (2)

Publication Number Publication Date
CN104410570A true CN104410570A (en) 2015-03-11
CN104410570B CN104410570B (en) 2017-09-08

Family

ID=52648168

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410784369.6A Active CN104410570B (en) 2014-12-16 2014-12-16 A kind of data transmission method and device based on VRRP

Country Status (2)

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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106452992A (en) * 2016-09-19 2017-02-22 杭州华三通信技术有限公司 Remote multi-homing networking method and apparatus
CN106788921A (en) * 2016-11-24 2017-05-31 上海华为技术有限公司 Many CPE redundant links system and methods
CN109218178A (en) * 2017-07-05 2019-01-15 华为技术有限公司 A kind of message processing method and the network equipment
CN111371592A (en) * 2020-02-21 2020-07-03 无锡华云数据技术服务有限公司 Node switching method, device, equipment and storage medium
CN114007193A (en) * 2021-12-31 2022-02-01 亿次网联(杭州)科技有限公司 Communication method and system for distributed network nodes

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107770062A (en) * 2016-08-16 2018-03-06 北京金山云网络技术有限公司 A kind of data packet sending method, device and the network architecture
CN111565141B (en) * 2020-04-13 2022-06-07 中国联合网络通信集团有限公司 Data transmission method, first PE and second PE

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1984076A (en) * 2006-06-08 2007-06-20 华为技术有限公司 Method and system for transmitting message in virtual special network link fault
CN101321077A (en) * 2008-07-18 2008-12-10 华为技术有限公司 Reliable multicast method, provider edge upper layer device and system
CN102187628A (en) * 2011-04-29 2011-09-14 华为技术有限公司 Route update method and router
CN102546413A (en) * 2010-11-05 2012-07-04 华为技术有限公司 Method and equipment for recovering VPN (Virtual Private Network) message forward in real time in L3VPN
CN104202184A (en) * 2014-08-22 2014-12-10 中国联合网络通信集团有限公司 Quick service switchover method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101471898B (en) * 2007-12-28 2011-12-28 华为技术有限公司 Protection method, system and virtual access edge node for access network
CN101262409B (en) * 2008-04-23 2011-01-19 成都市华为赛门铁克科技有限公司 Virtual private network vpn access method and device
CN102355479B (en) * 2011-07-19 2014-05-07 杭州华三通信技术有限公司 Method and equipment for forwarding traffic of multi-NAT (network address translation) gateway

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1984076A (en) * 2006-06-08 2007-06-20 华为技术有限公司 Method and system for transmitting message in virtual special network link fault
CN101321077A (en) * 2008-07-18 2008-12-10 华为技术有限公司 Reliable multicast method, provider edge upper layer device and system
CN102546413A (en) * 2010-11-05 2012-07-04 华为技术有限公司 Method and equipment for recovering VPN (Virtual Private Network) message forward in real time in L3VPN
CN102187628A (en) * 2011-04-29 2011-09-14 华为技术有限公司 Route update method and router
CN104202184A (en) * 2014-08-22 2014-12-10 中国联合网络通信集团有限公司 Quick service switchover method and device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106452992A (en) * 2016-09-19 2017-02-22 杭州华三通信技术有限公司 Remote multi-homing networking method and apparatus
CN106452992B (en) * 2016-09-19 2020-02-11 新华三技术有限公司 Method and device for realizing remote multi-homing networking
CN106788921A (en) * 2016-11-24 2017-05-31 上海华为技术有限公司 Many CPE redundant links system and methods
CN106788921B (en) * 2016-11-24 2020-08-07 上海华为技术有限公司 Multi-CPE redundant link system and method
CN109218178A (en) * 2017-07-05 2019-01-15 华为技术有限公司 A kind of message processing method and the network equipment
CN109218178B (en) * 2017-07-05 2021-06-22 华为技术有限公司 Message processing method and network equipment
CN111371592A (en) * 2020-02-21 2020-07-03 无锡华云数据技术服务有限公司 Node switching method, device, equipment and storage medium
CN111371592B (en) * 2020-02-21 2023-09-19 无锡华云数据技术服务有限公司 Node switching method, device, equipment and storage medium
CN114007193A (en) * 2021-12-31 2022-02-01 亿次网联(杭州)科技有限公司 Communication method and system for distributed network nodes
CN114007193B (en) * 2021-12-31 2022-05-13 亿次网联(杭州)科技有限公司 Communication method and system for distributed network nodes

Also Published As

Publication number Publication date
CN104410570B (en) 2017-09-08
WO2016095322A1 (en) 2016-06-23

Similar Documents

Publication Publication Date Title
CN104410570A (en) VRRP (virtual router redundancy protocol) based data transmission method and device
US9847933B2 (en) End-to-end multipathing through network having switching devices compatible with different protocols
EP3097659B1 (en) G.8032 ethernet multiple fault recovery mechanisms
US8619785B2 (en) Pre-computing alternate forwarding state in a routed ethernet mesh network
EP2087712B1 (en) Method and apparatus for computing alternate multicast/broadcast paths in a routed network
US10439880B2 (en) Loop-free convergence in communication networks
CN106899430B (en) Traffic forwarding processing method and device
CN103843293A (en) Communication system, sending device, communication device, failure notification method and non-temporary computer-readable medium storing program
CN114531395B (en) Method, device and system for advertising processing capability of network device
CN102857316B (en) A kind of method and system realizing source looped network protection
CN103297338A (en) Virtual private network (VPN) router advertisement method and device
TW202008756A (en) Auto-backup method for a network and a network system thereof
EP2693706A1 (en) Method and device for implementing multi-protection overlapped protection groups
CN111130850B (en) Fault multilayer link recovery method and controller
EP2953299B1 (en) Protection switching method, system and node
CN103973558B (en) A kind of route advertising method and device
CN115883452A (en) Communication method and communication device
US8750134B2 (en) Communication network management system and method and management computer
US9372821B2 (en) Limited functionality link state protocol node
CN114430387B (en) Node configuration method, controller and node
CN108174417A (en) A kind of main/standby switching method, device, associated electronic device and readable storage medium storing program for executing
WO2021135472A1 (en) Method and apparatus for processing routing information
CN111327535B (en) Message forwarding method and device and forwarding equipment
CN105763409A (en) Flow forwarding method and device
CN115134283A (en) Ring network protection method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant