CN105591901B - The method and device of VRRP is run under a kind of more sub-interfaces - Google Patents
The method and device of VRRP is run under a kind of more sub-interfaces Download PDFInfo
- Publication number
- CN105591901B CN105591901B CN201510460392.4A CN201510460392A CN105591901B CN 105591901 B CN105591901 B CN 105591901B CN 201510460392 A CN201510460392 A CN 201510460392A CN 105591901 B CN105591901 B CN 105591901B
- Authority
- CN
- China
- Prior art keywords
- interface
- sub
- behalf
- state
- acting
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/58—Association of routers
- H04L45/586—Association of routers of virtual routers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/22—Alternate routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention provides the method and device that VRRP is run under a kind of more sub-interfaces, the multiple sub-interface belongs to the sub-interface of same three layers of physical interface, and the corresponding VRRP group of each sub-interface, the multiple sub-interface identifies VRID configured with identical virtual router, this method comprises: determining the state of this sub-interface when itself is acts on behalf of sub-interface;When itself is non-proxy sub-interface, the shared state for acting on behalf of sub-interface.The pressure of CPU when running VRRP under more sub-interfaces can be reduced using the embodiment of the present invention.
Description
Technical field
The present invention relates to methods and dress that VRRP is run under network communication technology field more particularly to a kind of more sub-interfaces
It sets.
Background technique
VRRP (Virtual Router Redundancy Protocol, Virtual Router Redundancy Protocol) is using very
Three layer protocols of local area network reliability widely can be improved.It is by the one group of routing that can undertake gateway function in local area network
Device is grouped together, and forms a backup group.Backup group is made of a Master router and Duo Tai Backup router, right
It is equivalent to a virtual router outside.Virtual router has IP (Internet Protocol, Internet protocol) address, claims
For Virtual-IP (virtual IP address) address.Host in local area network only needs to know the IP address of this virtual router, and will
Its IP address for being set as gateway.Host in local area network is communicated by this virtual router with external network.
Under multi-tenant cloud data center scene, VLAN (Virtual Local Area Network, the virtual office of tenant
Domain net)/VRF (Virtual Routing Forwarding, virtual flow-line forwarding) quantity and VRRP group quantity it is closely related,
It may be considered one to one corresponding relationship.Under the application demand of thousands of a VLAN/VRF easily, under each three layers of physical interface
Thousands of a sub-interfaces may be needed to create, each sub-interface is tied to a VRF, the corresponding VRRP group of each VRF, VRRP group
Quantity be up to it is thousands of.By taking 4k as an example, the processing pressure for controlling plane at this time is 4kpps (by each second one
Advertise message calculates).In addition, under multiple three layers of physical interfaces under the scene of enabled 4k VRRP group, CPU
(Center Process Unit, central processing unit) pressure will amplify step by step, how reduce and run VRRP under a large amount of sub-interfaces
When CPU pressure become a urgent problem to be solved.
Summary of the invention
The present invention provides the method and device that VRRP is run under a kind of more sub-interfaces, is connect with solving big quantum in the prior art
CPU pressure excessive problem when operation VRRP under mouthful.
According to a first aspect of the embodiments of the present invention, it provides and runs Virtual Router Redundancy Protocol under a kind of more sub-interfaces
The method of VRRP, the multiple sub-interface belongs to the sub-interface of same three layers of physical interface, and each sub-interface is one corresponding
VRRP group, the multiple sub-interface identify VRID configured with identical virtual router, this method comprises:
When itself is acts on behalf of sub-interface, the state of this sub-interface is determined;
When itself is non-proxy sub-interface, the shared state for acting on behalf of sub-interface.
According to a second aspect of the embodiments of the present invention, the device that VRRP is run under a kind of more sub-interfaces is provided, it is the multiple
Sub-interface belongs to the sub-interface of same three layers of physical interface, and the corresponding VRRP group of each sub-interface, the multiple son connect
Mouth identifies VRID configured with identical virtual router, which corresponds to a sub-interface, which includes:
Determination unit is when acting on behalf of sub-interface, to determine the state of the sub-interface for the corresponding sub-interface of described device;
Shared cell, for sharing and acting on behalf of sub-interface when the corresponding sub-interface of described device is non-proxy sub-interface
State.
It is identical by being configured for multiple sub-interfaces for belonging under same three layers of physical interface using the embodiment of the present invention
VRID, and the use of specify the corresponding sub-interface of a certain virtual IP address in all sub-interfaces of the VRID to be to act on behalf of sub-interface, only
Sub-interface is acted on behalf of it needs to be determined that itself state, non-proxy sub-interface share the state for acting on behalf of sub-interface, without according to
Existing VRRP agreement carries out respective handling, reduces the pressure of CPU when running VRRP under more sub-interfaces.
Detailed description of the invention
Fig. 1 is the flow diagram that the method for VRRP is run under a kind of more sub-interfaces provided in an embodiment of the present invention;
Fig. 2 is the flow diagram that the method for VRRP is run under the more sub-interfaces of another kind provided in an embodiment of the present invention;
Fig. 3 A is VRRP group configuration schematic diagram under sub-interface more than one in the prior art;
Fig. 3 B is VRRP group configuration schematic diagram under a kind of more sub-interfaces provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram that the device of VRRP is run under a kind of more sub-interfaces provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram that the device of VRRP is run under the more sub-interfaces of another kind provided in an embodiment of the present invention;
Fig. 6 is a kind of hardware configuration of equipment where running the device of VRRP under more sub-interfaces provided in an embodiment of the present invention
Figure.
Specific embodiment
Technical solution in embodiment in order to enable those skilled in the art to better understand the present invention, and make of the invention real
The above objects, features, and advantages for applying example can be more obvious and easy to understand, with reference to the accompanying drawing to technical side in the embodiment of the present invention
Case is described in further detail.
It is the method that VRRP is run under a kind of more sub-interfaces provided in an embodiment of the present invention, multiple sub-interface referring to Fig. 1
Belong to the sub-interface of same three layers of physical interface, and the corresponding VRRP group of each sub-interface, multiple sub-interface are configured with
Identical VRID, as shown in Figure 1, this method may include:
Step 101, when itself for act on behalf of sub-interface when, determine the state of this sub-interface.
Step 102, when itself is non-proxy sub-interface, the shared state for acting on behalf of sub-interface.
In embodiments of the present invention, multiple sub-interface configuration phase to belong under same three layers of physical interface can be passed through
Same VRID (Virtual Route IDentifier, virtual flow-line mark), and certain in the specified sub-interface using the VRID
One sub-interface is to act on behalf of sub-interface (can by way of specified virtual IP address authorized agency's sub-interface), uses the other of the VRID
Sub-interface shares the state for acting on behalf of sub-interface.
It should be noted that in embodiments of the present invention, the VRID of sub-interface, the virtual IP address of sub-interface and sub-interface
State refer both to the corresponding VRRP group VRID of sub-interface, virtual IP address and state, the embodiment of the present invention is subsequent no longer to be repeated.
In the embodiment of the present invention, for acting on behalf of sub-interface, need to carry out respective handling according to existing VRRP agreement, such as into
Row such as notices, elects, seizing, encapsulating at a series of processing, and for non-proxy sub-interface, it does not need according to existing VRRP agreement
Respective handling is carried out, but can directly share the state for acting on behalf of sub-interface.
In the embodiment of the present invention, the shared state for acting on behalf of sub-interface may include:
When the state for acting on behalf of sub-interface is Initialize (initialization), the state of itself is also switched to
Initialize;
When the state for acting on behalf of sub-interface is Master (master), the state of itself is also switched to Master;
When the state for acting on behalf of sub-interface is Backup (spare), the state of itself is also switched to Backup.
Specifically, in embodiments of the present invention, the state of sub-interface may include Initialize, Master and
Backup, wherein the state for acting on behalf of sub-interface is elected according to existing VRRP agreement by state machine, and other and agency
The identical sub-interface of sub-interface VRID does not need the process of conducting an election then, the directly shared state for acting on behalf of sub-interface.
In one embodiment, a large amount of sub-interfaces are migrated with the state transition for acting on behalf of sub-interface simultaneously in order to prevent,
It has a negative impact to CPU, other sub-interfaces of the shared state for acting on behalf of sub-interface are monitoring to act on behalf of sub-interface state change
Afterwards, after a preset time in preset time threshold can be waited, then state transition is carried out.
For example, a random timer (Random_timer) can be set, timing length is (0, tn);Wherein, tnFor
Preset time threshold can be set, such as 50ms according to concrete application scene, 100ms etc..It is arranged after the random timer, when
When other sub-interfaces of the shared state for acting on behalf of sub-interface need to carry out state transition, one (0, t can be waited at randomn) section
The interior time, then carry out state transition.
In the embodiment of the present invention, corresponding process, agency can be configured for each sub-interface under three layers of physical interface respectively
Other sub-interfaces except sub-interface can realize the state of monitoring agent sub-interface by the process, and according to acting on behalf of sub-interface
State migration and carry out state transition.
In the embodiment of the present invention, it is contemplated that as physical interface UP, each sub-interface under the physical interface generally can be located
In available mode, and as physical interface Down, each sub-interface under the physical interface will be unavailable, i.e., same physical interface
Under each sub-interface reliability it is substantially consistent, therefore, it may not be necessary to be connect for each height under same physical interface
Mouth all establishes the detection method of a whole set of reliability, but can act on behalf of sub-interface by setting one, is born by acting on behalf of sub-interface
Complete protocol interaction is blamed, and other sub-interfaces under the physical interface share the state for acting on behalf of sub-interface, are not necessarily to every height
Interface carries out the processing of VRRP agreement, to achieve the purpose that mitigate CPU burden.It referring to fig. 2, is provided in an embodiment of the present invention
The method that VRRP is run under another more sub-interfaces, multiple sub-interface belong to the sub-interface of same three layers of physical interface, and every
The corresponding VRRP group of one sub-interface, multiple sub-interface is configured with identical VRID, as shown in Figure 1, this method can wrap
It includes:
Step 201, Receiving Agent sub-interface configuration-direct.
It, can be identical by being configured for multiple sub-interface for belonging under same three layers of physical interface in the embodiment of the present invention
VRID, and in the specified sub-interface using the VRID a certain sub-interface be act on behalf of sub-interface (can be by specified virtual IP address
Mode authorized agency sub-interface), the state for acting on behalf of sub-interface is shared using other sub-interfaces of the VRID.
Step 202 determines whether itself is to act on behalf of sub-interface according to acting on behalf of sub-interface configuration-direct.If so, going to step
Rapid 203;Otherwise, step 204 is gone to.
In the embodiment of the present invention, acting on behalf of in sub-interface configuration-direct may include acting on behalf of the VRID of sub-interface, and virtual
IP;It receives after acting on behalf of sub-interface configuration-direct, each sub-interface can be by comparing itself VRID and virtual IP address and generation
The VRID and virtual IP address for including in reason sub-interface configuration-direct, determine whether itself is to act on behalf of sub-interface.
When certain sub-interface determine itself VRID and virtual IP address with act on behalf of include in sub-interface configuration-direct agency son
When VRID and the virtual IP address difference of interface are identical, itself is determined to act on behalf of sub-interface;When certain sub-interface determines itself
VRID and virtual IP address from act on behalf of the VRID for acting on behalf of sub-interface for including in sub-interface configuration-direct and virtual IP section is different
When (VRID is different or virtual IP address is different) or all different, determine itself for non-proxy sub-interface.
In the embodiment of the present invention, when being equipment (below by taking routing device as an example) Configuration Agent sub-interface, road can be directed to
It is configured, can also be connect for single three layers of physics of routing device simultaneously by the sub-interface under multiple three layers of physical interfaces of equipment
Sub-interface under mouthful is configured.
In the embodiment of the present invention, when multiple three layers of physical interfaces for routing device are configured, multiple three layers
Non-proxy sub-interface under physical interface does not need to be handled according to VRRP agreement, but can directly share multiple
The state for acting on behalf of sub-interface under three layers of physical interface.
In the embodiment of the present invention, when single three layers of physical interface for routing device is configured, implementation
It can include but is not limited to following two:
In one embodiment, acting on behalf of in sub-interface configuration-direct further includes physical interface mark;
In this embodiment, in above-mentioned steps 202, determine whether itself is agency according to sub-interface configuration-direct is acted on behalf of
Sub-interface may include:
When the physical interface of itself affiliated physical interface identifies and acts on behalf of the physical interface for including in sub-interface configuration-direct
Identify it is identical, and the VRID of itself and virtual IP address and it is described act on behalf of include in sub-interface configuration-direct act on behalf of sub-interface
When VRID and virtual IP address distinguish identical, itself is determined to act on behalf of sub-interface;Otherwise, it determines itself is non-proxy sub-interface.
In this embodiment, acting on behalf of to routing device issues may include physical interface mark in sub-interface configuration-direct
Know, routing device receives after this acts on behalf of sub-interface configuration-direct, and each sub-interface can determine itself according to the configuration-direct
It whether is to act on behalf of sub-interface.In this case, under only same three layers of physical interface it is identical with sub-interface VRID is acted on behalf of its
Its sub-interface just shares the state for acting on behalf of sub-interface under three layers of physical interface.
It in another embodiment, can when configuring VRID for the sub-interface under the three of routing device layer physical interface
Think that the sub-interface under different three layers of physical interfaces configures different VRID.In turn, sub-interface is acted on behalf of when issuing to routing device
The VRID and virtual IP address for acting on behalf of sub-interface can be carried when configuration-direct, in the configuration-direct, connect without carrying physics
Mouth mark.Since the VRID under different three layers of physical interface is different, the also non-proxy son of only same three layers of physical interface
Interface can go to share the state for acting on behalf of sub-interface under three layers of physical interface.
It should be noted that in embodiments of the present invention, acting on behalf of the configuration of sub-interface in addition to generation can be issued by above-mentioned
Except the mode of reason sub-interface configuration-direct is realized, it can also realize otherwise, for example, can preset using phase
With in the sub-interface of VRID, the smallest sub-interface of virtual IP address is to act on behalf of sub-interface;Alternatively, in sub-interface using identical VRID,
The maximum sub-interface of virtual IP address is to act on behalf of sub-interface etc., and the specific implementation embodiment of the present invention repeats no more.
Step 203, the state for determining this sub-interface.
In the embodiment of the present invention, acts on behalf of sub-interface and need to carry out respective handling according to existing VRRP agreement, such as noticed,
It a series of processing such as elects, seize, encapsulating, determining the state of itself.
In the embodiment of the present invention, the state of sub-interface may include Initialize, Master and Backup.
Step 204, the shared state for acting on behalf of sub-interface.
In the embodiment of the present invention, non-proxy sub-interface does not need to carry out respective handling according to existing VRRP agreement, but can
Directly to share the state for acting on behalf of sub-interface.
In the embodiment of the present invention, the shared state for acting on behalf of sub-interface may include:
When the state for acting on behalf of sub-interface is Initialize, the state of itself is also switched to Initialize;
When the state for acting on behalf of sub-interface is Master, the state of itself is also switched to Master;
When the state for acting on behalf of sub-interface is Backup, the state of itself is also switched to Backup.
In one embodiment, a large amount of sub-interfaces are migrated with the state transition for acting on behalf of sub-interface simultaneously in order to prevent,
It has a negative impact to CPU, other sub-interfaces of the shared state for acting on behalf of sub-interface are monitoring to act on behalf of sub-interface state change
Afterwards, after a preset time in preset time threshold can be waited, then state transition is carried out.
For example, a random timer (Random_timer) can be set, timing length is (0, tn);Wherein, tnFor
Preset time threshold can be set, such as 50ms according to concrete application scene, 100ms etc..It is arranged after the random timer, when
When other sub-interfaces of the shared state for acting on behalf of sub-interface need to carry out state transition, one (0, t can be waited at randomn) section
The interior time, then carry out state transition.
In the embodiment of the present invention, corresponding process, agency can be configured for each sub-interface under three layers of physical interface respectively
Other sub-interfaces except sub-interface can realize the state of monitoring agent sub-interface by the process, and according to acting on behalf of sub-interface
State migration and carry out state transition.
It should be noted that in embodiments of the present invention, same sub-interface can correspond to multiple and different VRRP groups, at this
In the case of, for any VRRP group of same sub-interface, phase can be carried out according to technical solution provided in an embodiment of the present invention
It should handle, it can it is directed to each VRRP group respectively, configures identical VRID to belong to multiple sub-interfaces of three layers of physical interface, and
Using in each sub-interface of same VRID, only acting on behalf of sub-interface it needs to be determined that itself state, uses the non-proxy of the VRID
Sub-interface can directly share the state for acting on behalf of sub-interface, and specific implementation repeats no more herein.
It is worth noting that the routing device in technical solution provided in an embodiment of the present invention can be to follow VRRPv2 editions
The routing device of this or VRRPv3 version.
In order to make those skilled in the art more fully understand technical solution provided in an embodiment of the present invention, below with reference to specific
Application scenarios technical solution provided in an embodiment of the present invention is described.
Fig. 3 A is referred to, Fig. 3 A is VRRP group configuration schematic diagram under a kind of more sub-interfaces of typical case in the prior art.Such as Fig. 3 A
It is shown:
For 2 three layers of physical interface of Router 1 (router 1) and Router, created under each three layers of physical interface
4k sub-interface, i.e. 4k VLAN termination, each sub-interface are tied to a VRF, the corresponding VRRP group of each VRF;Wherein,
The VRID of each VRRP group can for any number in 1~255 (VRID of each VRRP group may be the same or different, in figure with
For 255), virtual IP address is respectively 10.100.1.254~10.115.254.254.Under normal circumstances, this 4k VRRP group meeting pair
Answer 4k VRRP state (Initialize, Master, Backup thrin).Under Master state, at regular intervals
(Adver_Timer can configure, and default 1 second) can send a VRRP notification packet, and notice is under Backup state
VRRP group membership oneself also lives.At this point, if the VRRP group under multiple sub-interfaces under three layers of physical interface is at
Under Master state, and there are multiple such three layers of physical interfaces, then the pressure of CPU can be very big.
Please also refer to Fig. 3 B, Fig. 3 B is VRRP group configuration signal under a kind of more sub-interfaces provided in an embodiment of the present invention
Figure.It is as shown in Figure 3B:
For 2 three layers of physical interface of Router 1 (router 1) and Router, created under each three layers of physical interface
4k sub-interface, i.e. 4k VLAN termination, each sub-interface are tied to a VRF, the corresponding VRRP group of each VRF;Wherein,
The virtual IP address of each VRRP is respectively 10.100.1.254~10.115.254.254.In the embodiment of the present invention, connect in different sons
It on mouth, configures same VRID (VRID can be any number in 1~255, in figure for 255), and specified using should
The state of the shared VRRP group using a certain virtual IP address (in figure by taking 10.100.1.254 as an example) of the VRRP group of VRID.Use the void
The VRRP group of quasi- IP (10.100.1.254) abides by the state machine of VRRP agreement completely, is normally noticed, and elects, seizes,
The a series of actions such as encapsulation.It is directly shared to be somebody's turn to do without above-mentioned movement for using the VRRP group of other virtual IP addresses of the VRID
The state of specified virtual IP address.
When the state of the VRRP group using the virtual IP address is Initialize, all other VRRP group with the VRID
State be Initialize.
When the state of the VRRP group using the virtual IP address is Master, the shape of all other VRRP group with this VRID
State is Master.Wherein, except the Master state for the VRRP group for specifying virtual IP address using this is elected by state machine
Outer, the every other VRRP group with this VRID, without normal Master election process.
When the state of the VRRP group using the virtual IP address is Backup, all other VRRP group with this VRID is cut
Change to Backup state.
Based on above-mentioned configuration, except the VRRP group on sub-interface interface1.1 needs to carry out normal VRRP negotiation, a surname
Claim outside Master, the VRRP group on remaining sub-interface is negotiated without VRRP, the VRRP on directly shared interface1.1
It organizes negotiating as a result, saving a large amount of cpu resource, reduces the load of CPU.
Through above description as can be seen that in technical solution provided in an embodiment of the present invention, by belong to same three
Multiple sub-interfaces of layer physical interface configure identical VRID, and to be connect using all sub-interface authorized agency of the VRID
Mouthful, only act on behalf of sub-interface it needs to be determined that itself state, non-proxy sub-interface share the state for acting on behalf of sub-interface, without
It needs to carry out respective handling according to existing VRRP agreement, reduces the pressure of CPU when running VRRP under more sub-interfaces.
Fig. 4 is referred to, is the structural representation for running the device of VRRP under a kind of more sub-interfaces provided in an embodiment of the present invention
Figure, wherein the multiple sub-interface belongs to the sub-interface of same three layers of physical interface, and the corresponding VRRP of each sub-interface
Group, the multiple sub-interface identify VRID configured with identical virtual router, which corresponds to a sub-interface, such as Fig. 4 institute
Show, the apparatus may include:
Determination unit 410 is when acting on behalf of sub-interface, to determine the shape of the sub-interface for the corresponding sub-interface of described device
State;
Shared cell 420, for sharing and acting on behalf of sub-interface when the corresponding sub-interface of described device is non-proxy sub-interface
State.
Fig. 5 is referred to, is shown to run the structure of device of VRRP under the more sub-interfaces of another kind provided in an embodiment of the present invention
It is intended to, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 5, described device can also include: receiving unit 430;Wherein:
Receiving unit 430 is used for Receiving Agent sub-interface configuration-direct;
The determination unit 410 can be also used for determining that described device is corresponding according to the sub-interface configuration-direct of acting on behalf of
Sub-interface whether be to act on behalf of sub-interface.
In one embodiment, described to act on behalf of including the VRID for acting on behalf of sub-interface in sub-interface configuration-direct, and virtually mutually
Networking protocol address ip;
Correspondingly, the determination unit 410 can be specifically used for the VRID when the corresponding sub-interface of described device, and
Virtual IP address and it is described act on behalf of the VRID for acting on behalf of sub-interface for including in sub-interface configuration-direct and virtual IP address difference it is identical when,
Itself is determined to act on behalf of sub-interface;Otherwise, it determines the corresponding sub-interface of described device is non-proxy sub-interface.
In one embodiment, described act on behalf of in sub-interface configuration-direct can also include that physical interface identifies;
Correspondingly, the determination unit 410 can be specifically used for working as the affiliated physical interface of the corresponding sub-interface of described device
Physical interface mark it is identical as the physical interface mark that includes in sub-interface configuration-direct acted on behalf of, and described device correspondence
Sub-interface VRID and virtual IP address and it is described act on behalf of the VRID for acting on behalf of sub-interface for including in sub-interface configuration-direct, with
And virtual IP address difference it is identical when, determine the corresponding sub-interface of described device be act on behalf of sub-interface;Otherwise, it determines described device is corresponding
Sub-interface be non-proxy sub-interface.
In one embodiment, the shared cell 420, can be specifically used for:
When the state for acting on behalf of sub-interface is initialization Initialize, by the shape of the corresponding sub-interface of described device
State is also switched to Initialize;
When the state for acting on behalf of sub-interface is main Master, the state of the corresponding sub-interface of described device is also switched
For Master;
When the state for acting on behalf of sub-interface is spare Backup, the corresponding sub-interface state of described device is also switched
For Backup.
In one embodiment, the shared cell 420 can monitor that the sub-interface state of acting on behalf of becomes specifically for working as
After change, after waiting a random time in preset time threshold, the corresponding sub-interface state of described device is switched to described
State after acting on behalf of sub-interface variation.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus
Realization process, details are not described herein.
Fig. 6 is referred to, is one kind of equipment where running the device of VRRP under more sub-interfaces provided in an embodiment of the present invention
Hardware structure diagram, including processor 610 and nonvolatile memory 620, processor 610 and nonvolatile memory 620 pass through
Bus is connected.Wherein, processor 610 is used to execute the machine readable instructions module of the storage of nonvolatile memory 620.It is non-volatile
Property memory 620 be stored with the executable machine readable instructions module of processor 610.When being stored in nonvolatile memory 620
In instruction module by processor 610 execute when, it can be achieved that aforementioned determination unit 410, shared cell 420 and receiving unit
430 function.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with
It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual
The purpose for needing to select some or all of the modules therein to realize the present invention program.Those of ordinary skill in the art are not paying
Out in the case where creative work, it can understand and implement.
As seen from the above-described embodiment, it is configured by multiple sub-interfaces to belong to same three layers of physical interface identical
VRID, and using all sub-interface authorized agency sub-interfaces of the VRID, only to act on behalf of sub-interface it needs to be determined that itself shape
State, non-proxy sub-interface share the state for acting on behalf of sub-interface, without carrying out respective handling according to existing VRRP agreement,
Reduce the pressure of CPU when running VRRP under more sub-interfaces.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or
Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the present invention
Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.
Claims (12)
1. running the method for Virtual Router Redundancy Protocol VRRP under a kind of more sub-interfaces, which is characterized in that the multiple son connects
Mouth belongs to the sub-interface of same three layers of physical interface, and the corresponding VRRP group of each sub-interface, the multiple sub-interface are matched
It is equipped with identical virtual router mark VRID, this method comprises:
When itself is acts on behalf of sub-interface, the state of this sub-interface is determined;
When itself is non-proxy sub-interface, the shared state for acting on behalf of sub-interface, according to the migration for the state for acting on behalf of sub-interface
Carry out state transition.
2. the method according to claim 1, wherein the method also includes:
Receiving Agent sub-interface configuration-direct;
Determine whether itself is to act on behalf of sub-interface according to the sub-interface configuration-direct of acting on behalf of.
3. according to the method described in claim 2, it is characterized in that, described act on behalf of in sub-interface configuration-direct includes acting on behalf of son to connect
The VRID and virtual IP address IP of mouth;
Determine whether itself is to act on behalf of sub-interface according to the sub-interface configuration-direct of acting on behalf of, comprising:
When itself VRID and virtual IP address and it is described act on behalf of the VRID for acting on behalf of sub-interface for including in sub-interface configuration-direct,
And virtual IP address difference it is identical when, determine itself to act on behalf of sub-interface;
Otherwise, it determines itself is non-proxy sub-interface.
4. according to the method described in claim 3, it is characterized in that, described act on behalf of in sub-interface configuration-direct further includes that physics connects
Mouth mark;
It is described to determine whether itself is to act on behalf of sub-interface according to the sub-interface configuration-direct of acting on behalf of, comprising:
When the physical interface mark of itself affiliated physical interface acts on behalf of the physical interface for including in sub-interface configuration-direct with described
Identify it is identical, and the VRID of itself and virtual IP address and it is described act on behalf of include in sub-interface configuration-direct act on behalf of sub-interface
When VRID and virtual IP address distinguish identical, itself is determined to act on behalf of sub-interface;
Otherwise, it determines itself is non-proxy sub-interface.
5. method according to claim 1-4, which is characterized in that wherein, the shared shape for acting on behalf of sub-interface
State, comprising:
When the state for acting on behalf of sub-interface is initialization Initialize, the state of itself is also switched to
Initialize;
When the state for acting on behalf of sub-interface is main Master, the state of itself is also switched to Master;
When the state for acting on behalf of sub-interface is spare Backup, oneself state is also switched to Backup.
6. method according to claim 1-4, which is characterized in that wherein, the shared shape for acting on behalf of sub-interface
State, comprising:
When monitor it is described act on behalf of sub-interface state change after, wait preset time threshold in a random time after, incite somebody to action from
Body state is switched to the state acted on behalf of after sub-interface variation.
7. running the device of VRRP under a kind of more sub-interfaces, which is characterized in that the multiple sub-interface belongs to same three layers of physics
The sub-interface of interface, and the corresponding VRRP group of each sub-interface, the multiple sub-interface are configured with identical virtual flow-line
Device identifies VRID, which corresponds to a sub-interface, which includes:
Determination unit is when acting on behalf of sub-interface, to determine the state of the sub-interface for the corresponding sub-interface of described device;
Shared cell, for sharing the state for acting on behalf of sub-interface when the corresponding sub-interface of described device is non-proxy sub-interface,
State transition is carried out according to the migration for the state for acting on behalf of sub-interface.
8. device according to claim 7, which is characterized in that described device further include:
Receiving unit is used for Receiving Agent sub-interface configuration-direct;
The determination unit is also used to act on behalf of whether sub-interface configuration-direct determines the corresponding sub-interface of described device according to described
To act on behalf of sub-interface.
9. device according to claim 8, which is characterized in that described act on behalf of in sub-interface configuration-direct includes acting on behalf of son to connect
The VRID and virtual IP address IP of mouth;
The determination unit, specifically for the VRID and virtual IP address and agency when the corresponding sub-interface of described device
When the VRID for acting on behalf of sub-interface and the virtual IP address difference for including in interface configuration-direct are identical, determine itself and connect to act on behalf of son
Mouthful;Otherwise, it determines the corresponding sub-interface of described device is non-proxy sub-interface.
10. device according to claim 9, which is characterized in that described act on behalf of in sub-interface configuration-direct further includes physics
Interface identifier;
The determination unit, specifically for when the physical interface mark of the affiliated physical interface of the corresponding sub-interface of described device and institute
It is identical to state the physical interface mark acted on behalf of and include in sub-interface configuration-direct, and the VRID of the corresponding sub-interface of described device, with
And virtual IP address and it is described act on behalf of the VRID for acting on behalf of sub-interface for including in sub-interface configuration-direct and virtual IP address difference it is identical
When, determine that the corresponding sub-interface of described device is to act on behalf of sub-interface;Otherwise, it determines the corresponding sub-interface of described device is non-proxy
Sub-interface.
11. according to the described in any item devices of claim 7-10, which is characterized in that the shared cell is specifically used for:
When the state for acting on behalf of sub-interface is initialization Initialize, by the state of the corresponding sub-interface of described device
It is switched to Initialize;
When the state for acting on behalf of sub-interface is main Master, the state of the corresponding sub-interface of described device is also switched to
Master;
When the state for acting on behalf of sub-interface is spare Backup, the corresponding sub-interface state of described device is also switched to
Backup。
12. according to the described in any item devices of claim 7-10, which is characterized in that
The shared cell, specifically for when monitor it is described act on behalf of sub-interface state change after, wait preset time threshold in
A random time after, by the corresponding sub-interface state of described device be switched to it is described act on behalf of sub-interface variation after state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510460392.4A CN105591901B (en) | 2015-07-30 | 2015-07-30 | The method and device of VRRP is run under a kind of more sub-interfaces |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510460392.4A CN105591901B (en) | 2015-07-30 | 2015-07-30 | The method and device of VRRP is run under a kind of more sub-interfaces |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105591901A CN105591901A (en) | 2016-05-18 |
CN105591901B true CN105591901B (en) | 2019-02-19 |
Family
ID=55931141
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510460392.4A Active CN105591901B (en) | 2015-07-30 | 2015-07-30 | The method and device of VRRP is run under a kind of more sub-interfaces |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105591901B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111786909B (en) * | 2020-05-19 | 2022-04-29 | 深圳震有科技股份有限公司 | Method for updating protocol state of VRRP interface, switch and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1466322A (en) * | 2002-06-23 | 2004-01-07 | ��Ϊ��������˾ | Method for realfizing router interface backup utilizing virtual router redundancy procotol |
JP2006310976A (en) * | 2005-04-26 | 2006-11-09 | Nippon Telegr & Teleph Corp <Ntt> | Communication apparatus and computer program |
CN101631094A (en) * | 2009-08-14 | 2010-01-20 | 华为技术有限公司 | Method and device for service access of terminal user |
CN102843286A (en) * | 2011-06-24 | 2012-12-26 | 中兴通讯股份有限公司 | Implementation method, device and system of virtual routers |
-
2015
- 2015-07-30 CN CN201510460392.4A patent/CN105591901B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1466322A (en) * | 2002-06-23 | 2004-01-07 | ��Ϊ��������˾ | Method for realfizing router interface backup utilizing virtual router redundancy procotol |
JP2006310976A (en) * | 2005-04-26 | 2006-11-09 | Nippon Telegr & Teleph Corp <Ntt> | Communication apparatus and computer program |
CN101631094A (en) * | 2009-08-14 | 2010-01-20 | 华为技术有限公司 | Method and device for service access of terminal user |
CN102843286A (en) * | 2011-06-24 | 2012-12-26 | 中兴通讯股份有限公司 | Implementation method, device and system of virtual routers |
Also Published As
Publication number | Publication date |
---|---|
CN105591901A (en) | 2016-05-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10542577B2 (en) | Connectivity checks in virtualized computing environments | |
US9137119B2 (en) | Efficient handling of multi-destination traffic in an internet protocol fabric data center | |
US10454708B2 (en) | Network system, inter-site network cooperation control apparatus, network control method, and program | |
CN105765926B (en) | Configurable service broker's mapping method, device and storage medium | |
EP3154227B1 (en) | Packet transmission method, node, path management server and storage medium | |
JP6283361B2 (en) | Systems and methods for supporting degraded fat tree discovery and routing in a middleware machine environment | |
US20170031704A1 (en) | Network port profile for virtual machines using network controller | |
CN104579727B (en) | A kind of method and apparatus for the network connection for managing network node | |
ES2731352T3 (en) | Method and device for fault detection | |
CN104518963A (en) | Methods and apparatus for implementing connectivity between edge devices via a switch fabric | |
US10616141B2 (en) | Large scale fabric attached architecture | |
CN112398676A (en) | Vendor independent profile based modeling of service access endpoints in a multi-tenant environment | |
US20180077048A1 (en) | Controller, control method and program | |
EP3253012B1 (en) | Method and apparatus for obtaining port path | |
US20130297752A1 (en) | Provisioning network segments based on tenant identity | |
EP3213441B1 (en) | Redundancy for port extender chains | |
WO2016165142A1 (en) | Preserving method and device for virtual network | |
CN109309617A (en) | Disaster tolerance switching method, relevant device and computer storage medium | |
US11641305B2 (en) | Network diagnosis in software-defined networking (SDN) environments | |
CN105556907B (en) | Method and apparatus for improving cloud route service performance | |
US11023289B2 (en) | Cloud environment configuration based on task parallelization | |
US11546242B2 (en) | Logical overlay tunnel monitoring | |
WO2016117302A1 (en) | Information processing device, information processing method, and recording medium | |
CN105591901B (en) | The method and device of VRRP is run under a kind of more sub-interfaces | |
CN105591804B (en) | A kind of configuration change processing method and processing 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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant after: Xinhua three Technology Co., Ltd. Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant before: Huasan Communication Technology Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |