[go: up one dir, main page]

CN105591901A - Method and device for running VRRP under multiple subinterface - Google Patents

Method and device for running VRRP under multiple subinterface Download PDF

Info

Publication number
CN105591901A
CN105591901A CN201510460392.4A CN201510460392A CN105591901A CN 105591901 A CN105591901 A CN 105591901A CN 201510460392 A CN201510460392 A CN 201510460392A CN 105591901 A CN105591901 A CN 105591901A
Authority
CN
China
Prior art keywords
sub
interface
behalf
acting
state
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
CN201510460392.4A
Other languages
Chinese (zh)
Other versions
CN105591901B (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201510460392.4A priority Critical patent/CN105591901B/en
Publication of CN105591901A publication Critical patent/CN105591901A/en
Application granted granted Critical
Publication of CN105591901B publication Critical patent/CN105591901B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/58Association of routers
    • H04L45/586Association of routers of virtual routers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning 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 invention provides a method and a device for running a VRRP under multiple subinterfaces. The multiple subinterfaces are subinterfaces of a same three-layer physical interface, each subinterface corresponds to one VRRP group, and the multiple subinterfaces are configured with a same virtual route identifier VRID. The method comprises the steps of: determining state of one subinterface when the subinterface serves as a proxy subinterface; and sharing the state of a proxy interface when the subinterface is a non-proxy subinterface. By adopting the method and the device, pressure of the CPU when running the VRRP under the multiple subinterfaces can be reduced.

Description

Under a kind of many sub-interfaces, move method and the device of VRRP
Technical field
The present invention relates to network communications technology field, relate in particular under a kind of many sub-interfaces and move VRRP'sMethod and device.
Background technology
VRRP (VirtualRouterRedundancyProtocol, Virtual Router Redundancy Protocol) is shouldWith three layer protocols that can improve very widely LAN reliability. It is by can bear in LANThe set of router of gateway function is grouped together, and forms a backup group. Backup group is by a MasterRouter and Duo Tai Backup router composition, be externally equivalent to a virtual router. Virtual routeUtensil has IP (InternetProtocol, Internet protocol) address, is called Virtual-IP (virtual IP address)Address. Main frame in LAN only needs to know the IP address of this virtual router, and is set toThe IP address of gateway. Main frame in LAN leads to by this virtual router and external networkLetter.
Under many tenants cloud data center scene, tenant's VLAN (VirtualLocalAreaNetwork,VLAN)/VRF (VirtualRoutingForwarding, virtual routing forwarding) quantity and VRRPThe quantity of group is closely related, can think one to one corresponding relation. At thousands of VLAN/VRF easilyApplication demand under, under each three layers of physical interface, may need to create thousands of sub-interfaces, every height connectsMouth is tied to a VRF, the corresponding VRRP group of each VRF, and the quantity of VRRP group will reachThousands of. Taking 4k as example, now the processing pressure of control plane is 4kpps (by each second oneIndividual advertise message calculates). In addition, under multiple three layers of physical interface, all enable 4k VRRPUnder the scene of group, CPU (CenterProcessUnit, CPU) pressure will amplify step by step,How to reduce the pressure of CPU while moving VRRP under a large amount of sub-interfaces and become a problem demanding prompt solution.
Summary of the invention
The invention provides the method and the device that under a kind of many sub-interfaces, move VRRP, to solve prior artIn the excessive problem of CPU pressure while moving VRRP under a large amount of sub-interfaces.
According to the first aspect of the embodiment of the present invention, provide that under a kind of many sub-interfaces, to move virtual router superfluousThe method of remaining agreement VRRP, described multiple sub-interfaces belong to the sub-interface of same three layers of physical interface, andThe corresponding VRRP group of each sub-interface, described multiple sub-interfaces dispose identical virtual routerMark VRID, the method comprises:
When from when acting on behalf of sub-interface, determine the state of this sub-interface;
When as non-proxy sub-interface, share the state of acting on behalf of sub-interface.
According to the second aspect of the embodiment of the present invention, the device that moves VRRP under a kind of many sub-interfaces is provided,Described multiple sub-interface belongs to the sub-interface of same three layers of physical interface, and corresponding one of each sub-interfaceVRRP group, described multiple sub-interfaces dispose identical virtual router mark VRID, and this device is rightYing Yuyi sub-interface, this device comprises:
Determining unit, when acting on behalf of sub-interface, determines this sub-interface for sub-interface corresponding to described deviceState;
Shared cell, in the time that sub-interface corresponding to described device is non-proxy sub-interface, shares agencyThe state of sub-interface.
The application embodiment of the present invention, by configuring for the multiple sub-interfaces that belong under same three layers of physical interfaceIdentical VRID, and specify for using in all sub-interfaces of this VRID that a certain virtual IP address is correspondingInterface is for acting on behalf of sub-interface, only has the state of acting on behalf of sub-interface and need to determine self, non-proxy sub-interface,Share this and act on behalf of the state of sub-interface, and need to not carry out respective handling according to existing VRRP agreement, fallThe low pressure of CPU while moving VRRP under many sub-interfaces.
Brief description of the drawings
Fig. 1 is that the flow process that the method for VRRP is provided under a kind of many sub-interfaces of providing of the embodiment of the present invention is shownIntention;
Fig. 2 is the flow process that the method for VRRP is provided under the many sub-interfaces of another kind that provide of the embodiment of the present inventionSchematic diagram;
Fig. 3 A is VRRP group configuration schematic diagram under sub-interface more than in prior art;
Fig. 3 B is VRRP group configuration schematic diagram under the many sub-interfaces of one that provide of the embodiment of the present invention;
Fig. 4 is that the structure that the device of VRRP is provided under a kind of many sub-interfaces of providing of the embodiment of the present invention is shownIntention;
Fig. 5 is the structure that the device of VRRP is provided under the many sub-interfaces of another kind that provide of the embodiment of the present inventionSchematic diagram;
Fig. 6 be under many sub-interfaces of providing of the embodiment of the present invention, move VRRP device place equipment onePlant hardware structure diagram.
Detailed description of the invention
In order to make those skilled in the art person understand better the technical scheme in the embodiment of the present invention, and makeAbove-mentioned purpose, the feature and advantage of the embodiment of the present invention can become apparent more, below in conjunction with accompanying drawing pairIn the embodiment of the present invention, technical scheme is described in further detail.
Referring to Fig. 1, the method for VRRP is provided under a kind of many sub-interfaces that provide for the embodiment of the present invention,The plurality of sub-interface belongs to the sub-interface of same three layers of physical interface, and corresponding one of each sub-interfaceVRRP group, the plurality of sub-interface disposes identical VRID, and as shown in Figure 1, the method can be wrappedDraw together:
Step 101, when from when acting on behalf of sub-interface, determine the state of this sub-interface.
Step 102, when when as non-proxy sub-interface, share the state of acting on behalf of sub-interface.
In embodiments of the present invention, can be by connecing for the plurality of son belonging under same three layers of physical interfaceThe VRID (VirtualRouteIDentifier, virtual Route Distinguisher) that mouth configuration is identical, and specify useIn the sub-interface of this VRID, a certain sub-interface (can be by specifying the mode of virtual IP address for acting on behalf of sub-interfaceAuthorized agency's sub-interface), use other sub-interface of this VRID to share this and act on behalf of the state 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 the state of sub-interface all refers to VRRP group VRID, virtual IP address and state that sub-interface is corresponding, basisInventive embodiments is follow-up no longer to be repeated.
In the embodiment of the present invention, for acting on behalf of sub-interface, it need to carry out phase according to existing VRRP agreementShould process, as notice, elect, seize, a series of processing such as encapsulation, and connect for non-proxy sonMouthful, it need to not carry out respective handling according to existing VRRP agreement, but can directly share this agencyThe state of sub-interface.
In the embodiment of the present invention, share the state of acting on behalf of sub-interface, can comprise:
In the time acting on behalf of the state of sub-interface and be Initialize (initialization), the state of self is also switched toInitialize;
In the time acting on behalf of the state of sub-interface and be Master (master), the state of self is also switched to Master;
In the time acting on behalf of the state of sub-interface and be Backup (for subsequent use), the state of self is also switched toBackup。
Concrete, in embodiments of the present invention, the state of sub-interface can comprise Initialize, MasterAnd Backup, wherein, act on behalf of the state of sub-interface and elect by state machine according to existing VRRP agreementOut, other the sub-interface identical with acting on behalf of sub-interface VRID do not need the process of conducting an election,Directly share the state of acting on behalf of sub-interface.
In one embodiment, in order to prevent that a large amount of sub-interfaces are simultaneously with the state transition of acting on behalf of sub-interfaceAnd move, CPU is had a negative impact, share other sub-interface of the state of acting on behalf of sub-interface in monitoringTo acting on behalf of after sub-interface state variation, can wait for after a Preset Time in Preset Time threshold value, thenCarry out state transition.
For example, a random timer (Random_timer) can be set, its timing length be (0,tn); Wherein, tnFor Preset Time threshold value, can set according to concrete application scenarios, as 50ms, 100msDeng. After this random timer is set, when other sub-interface of sharing the state of acting on behalf of sub-interface need to enterWhen row state transition, can (0, t of random waitn) time in interval, then carry out state transition.
In the embodiment of the present invention, can enter accordingly for each sub-interface configuration under three layers of physical interface respectivelyJourney, acts on behalf of other sub-interface outside sub-interface and can realize by this process the shape of monitoring agent sub-interfaceState, and carry out state transition according to the migration of the state of acting on behalf of sub-interface.
In the embodiment of the present invention, consider in the time of physical interface UP the each sub-interface under this physical interfaceGenerally can be all in upstate, and in the time of physical interface Down, the each sub-interface under this physical interfaceTo be all unavailable, under Same Physical interface, the reliability of each sub-interface be consistent substantially, therefore,Can not need to set up for each sub-interface under Same Physical interface the detection side of a whole set of reliabilityMethod, but can act on behalf of sub-interface by setting one, be responsible for complete protocol interaction by acting on behalf of sub-interface,And other sub-interface under this physical interface is shared this and act on behalf of the state of sub-interface, equal without each sub-interfaceCarry out the processing of VRRP agreement, to reach the object that alleviates CPU burden. Referring to Fig. 2, be the present inventionThe method of moving VRRP under the many sub-interfaces of another kind that embodiment provides, the plurality of sub-interface belongs to sameThe sub-interface of three layers of physical interface, and the corresponding VRRP group of each sub-interface, the plurality of sub-interfaceDispose identical VRID, as shown in Figure 1, the method can comprise:
Step 201, Receiving Agent sub-interface configuration-direct.
In the embodiment of the present invention, can be by being the plurality of sub-interface belonging under same three layers of physical interfaceConfigure identical VRID, and specify a certain sub-interface in the sub-interface that uses this VRID to connect for acting on behalf of sonMouthful (can by specifying mode authorized agency's sub-interface of virtual IP address), uses other son of this VRIDInterface is shared this and is acted on behalf of the state of sub-interface.
Step 202, determine that according to acting on behalf of sub-interface configuration-direct whether self is for acting on behalf of sub-interface. If so,Go to step 203; Otherwise, go to step 204.
In the embodiment of the present invention, act on behalf of in sub-interface configuration-direct and can comprise the VRID that acts on behalf of sub-interface,And virtual IP address; After receiving and acting on behalf of sub-interface configuration-direct, each sub-interface can by relatively selfVRID, and virtual IP address and act on behalf of the VRID that sub-interface configuration-direct comprises, and virtual IP address,Determine that whether self is for acting on behalf of sub-interface.
When certain sub-interface is determined self VRID, and virtual IP address and act on behalf of in sub-interface configuration-direct and wrapThe VRID that acts on behalf of sub-interface drawing together, and virtual IP address is when respectively identical, determines from as acting on behalf of sub-interface;When certain sub-interface is determined self VRID, and virtual IP address and act on behalf of that sub-interface configuration-direct comprisesAct on behalf of VRID and the virtual IP address part difference (VRID difference or virtual IP address difference) or complete of sub-interfaceWhen portion is different, determine certainly as non-proxy sub-interface.
In the embodiment of the present invention, during for equipment (below taking routing device as example) Configuration Agent sub-interface,Can configure for the sub-interface under multiple three layers of physical interface of routing device simultaneously, also can be for roadBe configured by the sub-interface under single three layers of physical interface of equipment.
In the embodiment of the present invention, in the time being configured for multiple three layers of physical interface of routing device, shouldNon-proxy sub-interface under multiple three layers of physical interface, all need to not process according to VRRP agreement,But can directly share the state of acting on behalf of sub-interface under the plurality of three layers of physical interface.
In the embodiment of the present invention, in the time being configured for single three layers of physical interface of routing device, itsImplementation can include but not limited to following two kinds:
In one embodiment, act on behalf of in sub-interface configuration-direct and also comprise that physical interface identifies;
In this embodiment, in above-mentioned steps 202, determine self according to acting on behalf of sub-interface configuration-directWhether, for acting on behalf of sub-interface, can comprise:
Under self, the physical interface of physical interface identifies and acts on behalf of the thing that sub-interface configuration-direct comprisesReason interface identifier is identical, and the VRID of self, and virtual IP address and the described sub-interface configuration-direct of acting on behalf ofThe VRID that acts on behalf of sub-interface comprising, and virtual IP address is when respectively identical, determines from as agency'sInterface; Otherwise, determine certainly as non-proxy sub-interface.
In this embodiment, acting on behalf of in sub-interface configuration-direct of issuing to routing device can comprise thingReason interface identifier, routing device receives after this acts on behalf of sub-interface configuration-direct, and each sub-interface can rootDetermine that according to this configuration-direct whether self is for acting on behalf of sub-interface. In this case, only have same three layers of physicsOther sub-interface identical with acting on behalf of sub-interface VRID under interface just shared under these three layers of physical interfacesAct on behalf of the state of sub-interface.
In another embodiment, when the sub-interface configuration under three layers of physical interface that are routing deviceWhen VRID, can configure different VRID for the sub-interface under different three layers of physical interface. And then, whenIssue while acting on behalf of sub-interface configuration-direct to routing device, in this configuration-direct, can carry and act on behalf of sub-interfaceVRID, and virtual IP address, and do not need to carry physics interface identifier. Because different three layers of physics connectVRID difference under mouthful, therefore, also only has the non-proxy sub-interface of same three layers of physical interface can go altogetherEnjoy the state of acting on behalf of sub-interface under these three layers of physical interfaces.
It should be noted that in embodiments of the present invention, the configuration of acting on behalf of sub-interface is upper except passing throughState and issue outside the mode of acting on behalf of sub-interface configuration-direct realizes, can also realize by alternate manner exampleAs, can set in advance in the sub-interface that uses identical VRID, the sub-interface of virtual IP address minimum is agencySub-interface; Or, using in the sub-interface of identical VRID, the sub-interface of virtual IP address maximum is agency'sInterface etc., its specific implementation embodiment of the present invention repeats no more.
Step 203, determine the state of this sub-interface.
In the embodiment of the present invention, act on behalf of sub-interface and need to carry out respective handling according to existing VRRP agreement,As notice, elect, seize, a series of processing such as encapsulation, determine self state.
In the embodiment of the present invention, the state of sub-interface can comprise Initialize, Master and Backup.
Step 204, the shared state of acting on behalf of sub-interface.
In the embodiment of the present invention, non-proxy sub-interface need to not carry out corresponding position according to existing VRRP agreementReason, but can directly share this and act on behalf of the state of sub-interface.
In the embodiment of the present invention, share the state of acting on behalf of sub-interface, can comprise:
In the time acting on behalf of the state of sub-interface and be Initialize, the state of self is also switched to Initialize;
In the time acting on behalf of the state of sub-interface and be Master, the state of self is also switched to Master;
In the time acting on behalf of the state of sub-interface and be Backup, the state of self is also switched to Backup.
In one embodiment, in order to prevent that a large amount of sub-interfaces are simultaneously with the state transition of acting on behalf of sub-interfaceAnd move, CPU is had a negative impact, share other sub-interface of the state of acting on behalf of sub-interface in monitoringTo acting on behalf of after sub-interface state variation, can wait for after a Preset Time in Preset Time threshold value, thenCarry out state transition.
For example, a random timer (Random_timer) can be set, its timing length be (0,tn); Wherein, tnFor Preset Time threshold value, can set according to concrete application scenarios, as 50ms, 100msDeng. After this random timer is set, when other sub-interface of sharing the state of acting on behalf of sub-interface need to enterWhen row state transition, can (0, t of random waitn) time in interval, then carry out state transition.
In the embodiment of the present invention, can enter accordingly for each sub-interface configuration under three layers of physical interface respectivelyJourney, acts on behalf of other sub-interface outside sub-interface and can realize by this process the shape of monitoring agent sub-interfaceState, and carry out state transition according to the migration of the state of acting on behalf of sub-interface.
It should be noted that in embodiments of the present invention, same sub-interface can be corresponding multiple differentVRRP group, in this case, for arbitrary VRRP group of same sub-interface, all can be according to thisThe technical scheme that bright embodiment provides is carried out respective handling, can be respectively for each VRRP group, for belonging toMultiple sub-interfaces in three layers of physical interface configure identical VRID, and use each son of same VRIDIn interface, only there is the state of acting on behalf of sub-interface and need to determine self, use the non-proxy son of this VRID to connectThe state that mouthful can directly share this and act on behalf of sub-interface, its specific implementation does not repeat them here.
What deserves to be explained is, the routing device in the technical scheme that the embodiment of the present invention provides can be for followingThe routing device of VRRPv2 version or VRRPv3 version.
In order to make those skilled in the art understand better the technical scheme that the embodiment of the present invention provides, belowThe technical scheme embodiment of the present invention being provided in conjunction with concrete application scenarios is described.
Refer to Fig. 3 A, Fig. 3 A be in prior art under a kind of typical many sub-interfaces VRRP assembly put and showIntention. As shown in Figure 3A:
For Router1 (router one) and tri-layers of physical interface of Router2, each three layers of physical interfaceUnder created 4k sub-interface, i.e. 4k VLAN termination, each sub-interface is tied to a VRF,The corresponding VRRP group of each VRF; Wherein, the VRID of each VRRP group can be in 1~255Any number (VRID of each VRRP group can be identical, also can be different, in figure taking 255 as example),Virtual IP address is respectively 10.100.1.254~10.115.254.254. Generally, this 4k VRRP groupCan corresponding 4k VRRP state (Initialize, Master, Backup thrin). At MasterUnder state, at regular intervals (Adver_Timer, configurable, give tacit consent to 1 second) can send oneVRRP notification packet, the VRRP group membership that notice is under Backup state oneself also lives. Now,If the group of the VRRP under the multiple sub-interfaces under three layers of physical interface is all under Master state,And have multiple three layers of such physical interface, the pressure of CPU can be very large.
Please also refer to Fig. 3 B, VRRP under the many sub-interfaces of one that Fig. 3 B provides for the embodiment of the present inventionGroup configuration schematic diagram. As shown in Figure 3 B:
For Router1 (router one) and tri-layers of physical interface of Router2, each three layers of physical interfaceUnder created 4k sub-interface, i.e. 4k VLAN termination, each sub-interface is tied to a VRF,The corresponding VRRP group of each VRF; Wherein, the virtual IP address of each VRRP is respectively10.100.1.254~10.115.254.254. In the embodiment of the present invention, on different sub-interfaces, configuration is sameOne VRID (this VRID can be any number in 1~255, in figure taking 255 as example), and refer toSurely use the VRRP group of this VRID to share to use a certain virtual IP address (in figure taking 10.100.1.254 as example)The state of VRRP group. Use the VRRP group of this virtual IP address (10.100.1.254) to observe VRRP completelyThe state machine of agreement, notices normally, and election, seizes a series of actions such as encapsulation. For makingBy the VRRP group of other virtual IP address of this VRID, do not carry out above-mentioned action, directly share this appointment voidIntend the state of IP.
When the state of VRRP group that uses this virtual IP address is during for Initialize, there is the institute of this VRIDThere is the state of other VRRP group to be Initialize.
When the state of VRRP group that uses this virtual IP address is during for Master, there are all of this VRIDThe state of other VRRP group is Master. Wherein, except using the VRRP group of this appointment virtual IP addressMaster state elect out by state machine outside, there is the every other VRRP of this VRIDGroup, does not all carry out normal Master election process.
When the state of VRRP group that uses this virtual IP address is during for Backup, there are all of this VRIDOther VRRP group is all switched to Backup state.
Based on above-mentioned configuration, except the VRRP group on sub-interface interface1.1 need to be carried out normallyVRRP consults, and declares outside Master, and the VRRP group on all the other sub-interfaces is not all carried out VRRP negotiation,Directly share the result that the VRRP group on interface1.1 is consulted, saved a large amount of cpu resources,Reduce the load of CPU.
Can find out by above description, in the technical scheme providing in the embodiment of the present invention, by being genusMultiple sub-interfaces in same three layers of physical interface configure identical VRID, and for using this VRID'sAll sub-interface authorized agency sub-interfaces, only have the state of acting on behalf of sub-interface and need to determine self, non-proxySub-interface, shares this and acts on behalf of the state of sub-interface, and need to not carry out corresponding according to existing VRRP agreementProcess, reduced the pressure of CPU while moving VRRP under many sub-interfaces.
Refer to Fig. 4, the device of VRRP is provided under a kind of many sub-interfaces that provide for the embodiment of the present inventionStructural representation, wherein, described multiple sub-interfaces belong to the sub-interface of same three layers of physical interface, andThe corresponding VRRP group of each sub-interface, described multiple sub-interfaces dispose identical virtual routerMark VRID, this device is corresponding to a sub-interface, and as shown in Figure 4, this device can comprise:
Determining unit 410, when acting on behalf of sub-interface, determines this son for sub-interface corresponding to described deviceThe state of interface;
Shared cell 420, in the time that sub-interface corresponding to described device is non-proxy sub-interface, sharesAct on behalf of the state of sub-interface.
Refer to Fig. 5, the dress of VRRP is provided under the many sub-interfaces of another kind that provide for the embodiment of the present inventionThe structural representation of putting, this embodiment is on aforementioned basis embodiment illustrated in fig. 5, and described device also canTo comprise: receiving element 430; Wherein:
Receiving element 430, for Receiving Agent sub-interface configuration-direct;
Described determining unit 410, can also be used for according to described act on behalf of sub-interface configuration-direct determine described inWhether install corresponding sub-interface for acting on behalf of sub-interface.
In one embodiment, the described sub-interface configuration-direct of acting on behalf of comprises the VRID that acts on behalf of sub-interface,And virtual Internet protocol address IP;
Correspondingly, described determining unit 410, can be specifically for when sub-interface corresponding to described deviceVRID, and virtual IP address and described act on behalf of that sub-interface configuration-direct comprises act on behalf of sub-interfaceVRID, and virtual IP address is when respectively identical, determines from as acting on behalf of sub-interface; Otherwise, described in determiningInstalling corresponding sub-interface is non-proxy sub-interface.
In one embodiment, described agency in sub-interface configuration-direct can also comprise physical interface mark;
Correspondingly, described determining unit 410, can be specifically for working as sub-interface institute corresponding to described deviceThe physical interface mark that belongs to physical interface acts on behalf of with described the physical interface mark that sub-interface configuration-direct comprisesSensible with, and the VRID of sub-interface corresponding to described device, and virtual IP address and the described sub-interface of acting on behalf ofThe VRID of what configuration-direct comprised act on behalf of sub-interface, and virtual IP address is when identical respectively, described in determiningInstall corresponding sub-interface for acting on behalf of sub-interface; Otherwise, determine that the sub-interface that described device is corresponding is non-generationReason sub-interface.
In one embodiment, described shared cell 420, can be specifically for:
When the described state of acting on behalf of sub-interface is, while initializing Initialize, son corresponding described device to be connectThe state of mouth also switches to Initialize;
In the time that the described state of acting on behalf of sub-interface is main Master, by the shape of sub-interface corresponding described deviceState also switches to Master;
In the time that the described state of acting on behalf of sub-interface is Backup for subsequent use, by sub-interface corresponding described deviceState also switches to Backup.
In one embodiment, described shared cell 420, can be specifically for sub when monitoring described agencyAfter Interface status changes, wait for after a random time in Preset Time threshold value, described device is correspondingSub-interface state switch to described act on behalf of sub-interface change after state.
In said apparatus, the implementation procedure of the function and efficacy of unit specifically refers in said method correspondingThe implementation procedure of step, does not repeat them here.
Refer to Fig. 6, the device place of VRRP is provided under the many sub-interfaces that provide for the embodiment of the present inventionA kind of hardware structure diagram of equipment, comprises processor 610 and nonvolatile memory 620, processor 610Be connected by bus with nonvolatile memory 620. Wherein, processor 610 is non-volatile for carrying outThe machine readable instructions module that memory 620 is stored. Nonvolatile memory 620 stores processor 610Executable machine readable instructions module. When the instruction module quilt being stored in nonvolatile memory 620When processor 610 is carried out, can realize aforementioned determining unit 410, shared cell 420 and receiving element430 function.
For device embodiment, because it corresponds essentially to embodiment of the method, so relevant part ginsengSee the part explanation of embodiment of the method. Device embodiment described above is only schematically,The wherein said unit as separating component explanation can or can not be also physically to separate, and doesThe parts that show for unit can be or can not be also physical locations, can be positioned at a place,Or also can be distributed on multiple NEs. Can select according to the actual needs part wherein orThe whole modules of person realize the present invention program's object. Those of ordinary skill in the art are not paying creativenessIn the situation of work, be appreciated that and implement.
As seen from the above-described embodiment, by the multiple sub-interface configuration phases for belonging to same three layers of physical interfaceSame VRID, and for using all sub-interface authorized agency sub-interfaces of this VRID, only have agency'sInterface need to be determined the state of self, and non-proxy sub-interface is shared this and acted on behalf of the state of sub-interface, and notNeed to carry out respective handling according to existing VRRP agreement, reduce while moving VRRP under many sub-interfacesThe pressure of CPU.
Those skilled in the art are considering description and are putting into practice after invention disclosed herein, will easily expect thisOther embodiment of invention. The application is intended to contain any modification of the present invention, purposes or adaptabilityChange, these modification, purposes or adaptations are followed general principle of the present invention and are comprised thisBright undocumented common practise or conventional techniques means in the art. Description and embodiment only byBe considered as exemplary, true scope of the present invention and spirit pointed out by claim below.
Should be understood that, the present invention is not limited to described above and illustrated in the accompanying drawings accurateStructure, and can carry out various amendments and change not departing from its scope. Scope of the present invention is only by instituteAttached claim limits.

Claims (12)

1. a method of moving Virtual Router Redundancy Protocol VRRP more than under sub-interface, its feature existsIn, described multiple sub-interfaces belong to the sub-interface of same three layers of physical interface, and each sub-interface correspondenceA VRRP group, described multiple sub-interfaces dispose identical virtual router mark VRID, the partyMethod comprises:
When from when acting on behalf of sub-interface, determine the state of this sub-interface;
When as non-proxy sub-interface, share the state of acting on behalf of sub-interface.
2. method according to claim 1, is characterized in that, described method also comprises:
Receiving Agent sub-interface configuration-direct;
Determine that according to the described sub-interface configuration-direct of acting on behalf of whether self is for acting on behalf of sub-interface.
3. method according to claim 2, is characterized in that, the described sub-interface configuration-direct of acting on behalf ofComprise the VRID that acts on behalf of sub-interface, and virtual Internet protocol address IP;
Determine and self, whether for acting on behalf of sub-interface, comprising according to the described sub-interface configuration-direct of acting on behalf of:
As the VRID of self, and virtual IP address and describedly act on behalf of the agency that sub-interface configuration-direct comprisesThe VRID of sub-interface, and virtual IP address is when respectively identical, determines from as acting on behalf of sub-interface;
Otherwise, determine certainly as non-proxy sub-interface.
4. method according to claim 3, is characterized in that, the described sub-interface configuration-direct of acting on behalf ofIn also comprise physical interface mark;
Describedly determine and self, whether for acting on behalf of sub-interface, comprising according to the described sub-interface configuration-direct of acting on behalf of:
Under self, the physical interface of physical interface mark comprises with the described sub-interface configuration-direct of acting on behalf ofPhysical interface mark identical, and the VRID of self, and virtual IP address configures with the described sub-interface of acting on behalf ofThe VRID of what instruction comprised act on behalf of sub-interface, and virtual IP address is when identical respectively, determines from as generationReason sub-interface;
Otherwise, determine certainly as non-proxy sub-interface.
5. according to the method described in claim 1-4 any one, it is characterized in that, wherein, described sharingThe state of acting on behalf of sub-interface, comprising:
When the described state of acting on behalf of sub-interface is, while initializing Initialize, the state of self also to be switched toInitialize;
In the time that the described state of acting on behalf of sub-interface is main Master, the state of self is also switched to Master;
In the time that the described state of acting on behalf of sub-interface is Backup for subsequent use, oneself state is also switched toBackup。
6. according to the method described in claim 1-4 any one, it is characterized in that, wherein, described sharingThe state of acting on behalf of sub-interface, comprising:
When monitoring described agency after sub-interface state variation, wait for that in Preset Time threshold value is randomAfter time, oneself state is switched to the described state of acting on behalf of after sub-interface changes.
7. a device that moves VRRP more than under sub-interface, is characterized in that, described multiple sub-interfacesBelong to the sub-interface of same three layers of physical interface, and the corresponding VRRP group of each sub-interface, described inMultiple sub-interfaces dispose identical virtual router mark VRID, and this device is corresponding to a sub-interface,This device comprises:
Determining unit, when acting on behalf of sub-interface, determines this sub-interface for sub-interface corresponding to described deviceState;
Shared cell, in the time that sub-interface corresponding to described device is non-proxy sub-interface, shares agencyThe state of sub-interface.
8. device according to claim 7, is characterized in that, described device also comprises:
Receiving element, for Receiving Agent sub-interface configuration-direct;
Described determining unit, also for determining that according to the described sub-interface configuration-direct of acting on behalf of described device is correspondingSub-interface whether for acting on behalf of sub-interface.
9. device according to claim 8, is characterized in that, the described sub-interface configuration-direct of acting on behalf ofComprise the VRID that acts on behalf of sub-interface, and virtual Internet protocol address IP;
Described determining unit, specifically for the VRID when sub-interface corresponding to described device, and virtualIP and describedly act on behalf of the VRID that acts on behalf of sub-interface that sub-interface configuration-direct comprises, and virtual IP address dividesWhen not identical, determine certainly as acting on behalf of sub-interface; Otherwise, determine that the sub-interface that described device is corresponding is non-Act on behalf of sub-interface.
10. device according to claim 9, is characterized in that, describedly acts on behalf of sub-interface configuration and refers toIn order, also comprise physical interface mark;
Described determining unit, specifically for the physics of physical interface under sub-interface corresponding to described deviceInterface identifier is with described to act on behalf of the physical interface mark that sub-interface configuration-direct comprises identical, and described dressPut the VRID of corresponding sub-interface, and virtual IP address and describedly act on behalf of that sub-interface configuration-direct comprisesAct on behalf of the VRID of sub-interface, and virtual IP address is when respectively identical, determines the sub-interface that described device is correspondingFor acting on behalf of sub-interface; Otherwise, determine that the sub-interface that described device is corresponding is non-proxy sub-interface.
11. according to the device described in claim 7-10 any one, it is characterized in that, and described shared cell,Specifically for:
When the described state of acting on behalf of sub-interface is, while initializing Initialize, son corresponding described device to be connectThe state of mouth also switches to Initialize;
In the time that the described state of acting on behalf of sub-interface is main Master, by the shape of sub-interface corresponding described deviceState also switches to Master;
In the time that the described state of acting on behalf of sub-interface is Backup for subsequent use, by sub-interface corresponding described deviceState also switches to Backup.
12. according to the device described in claim 7-10 any one, it is characterized in that,
Described shared cell, specifically for when monitoring described agency after sub-interface state variation, waits for pre-If after a random time in time threshold, described in sub-interface state corresponding described device is switched toAct on behalf of the state after sub-interface changes.
CN201510460392.4A 2015-07-30 2015-07-30 The method and device of VRRP is run under a kind of more sub-interfaces Active CN105591901B (en)

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 true CN105591901A (en) 2016-05-18
CN105591901B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111786909A (en) * 2020-05-19 2020-10-16 深圳震有科技股份有限公司 Method for updating protocol state of VRRP interface, switch and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1466322A (en) * 2002-06-23 2004-01-07 ��Ϊ�������޹�˾ A Method of Realizing Router Interface Backup Using Virtual Router Redundancy Protocol
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1466322A (en) * 2002-06-23 2004-01-07 ��Ϊ�������޹�˾ A Method of Realizing Router Interface Backup Using Virtual Router Redundancy Protocol
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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111786909A (en) * 2020-05-19 2020-10-16 深圳震有科技股份有限公司 Method for updating protocol state of VRRP interface, switch and storage medium
CN111786909B (en) * 2020-05-19 2022-04-29 深圳震有科技股份有限公司 Method for updating protocol state of VRRP interface, switch and storage medium

Also Published As

Publication number Publication date
CN105591901B (en) 2019-02-19

Similar Documents

Publication Publication Date Title
EP3340064B1 (en) Network interface card, computer device and data packet processing method
US10063470B2 (en) Data center network system based on software-defined network and packet forwarding method, address resolution method, routing controller thereof
US9203781B2 (en) Extending virtual station interface discovery protocol (VDP) and VDP-like protocols for dual-homed deployments in data center environments
US9985820B2 (en) Differentiating among multiple management control instances using addresses
US10411948B2 (en) Cooperative active-standby failover between network systems
US20170031704A1 (en) Network port profile for virtual machines using network controller
US10530636B2 (en) Link management method, device and system in virtual machine environment
ES2731352T3 (en) Method and device for fault detection
US20180077048A1 (en) Controller, control method and program
US10992528B2 (en) Configuring network devices
CN106713005A (en) Static Designated Forwarder (DF) election based on DF election process
US20180262387A1 (en) Restoring control-plane connectivity with a network management entity
CN109309617A (en) Disaster recovery switching method, related equipment and computer storage medium
US11271776B2 (en) Logical overlay network monitoring
US20160205033A1 (en) Pool element status information synchronization method, pool register, and pool element
US11153169B2 (en) Distributed storage system with overlay network
CN114303349A (en) Bidirectional Forwarding Detection (BFD) offload in virtual network interface controllers
US11546242B2 (en) Logical overlay tunnel monitoring
CN109032754B (en) Method and apparatus for improving reliability of communication path
US20180167272A1 (en) Handling failure at logical routers
EP3399424A1 (en) Using unified api to program both servers and fabric for forwarding for fine-grained network optimizations
US12425293B2 (en) Self-healing network of infrastructure processing units
CN105591901A (en) Method and device for running VRRP under multiple subinterface
US20180109472A1 (en) Controller, control method and program
CN107547445B (en) Resource allocation 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
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