CN104506429B - A kind of method, router and the system of management router backup group - Google Patents

A kind of method, router and the system of management router backup group Download PDF

Info

Publication number
CN104506429B
CN104506429B CN201410855053.1A CN201410855053A CN104506429B CN 104506429 B CN104506429 B CN 104506429B CN 201410855053 A CN201410855053 A CN 201410855053A CN 104506429 B CN104506429 B CN 104506429B
Authority
CN
China
Prior art keywords
router
backup group
notification packet
information
conflict
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
Application number
CN201410855053.1A
Other languages
Chinese (zh)
Other versions
CN104506429A (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.)
Raisecom Technology Co Ltd
Original Assignee
Raisecom Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Raisecom Technology Co Ltd filed Critical Raisecom Technology Co Ltd
Priority to CN201410855053.1A priority Critical patent/CN104506429B/en
Publication of CN104506429A publication Critical patent/CN104506429A/en
Application granted granted Critical
Publication of CN104506429B publication Critical patent/CN104506429B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of method, router and the system of management router backup group.This method includes:After the virtual flow-line function of each router is triggered, generates a backup group information and be saved in the backup group information and this router as the status information of active router in the backup group that the backup group information indicates in the backup group record being locally stored;Each router periodically sends other routers of the notification packet to composition backup group, and the backup group record of this router storage is carried in the notification packet;After each router receives the notification packet that other routers are sent, the backup group that the storage of this router is updated according to the notification packet records.For solving the problems, such as that mistake easily occurs in artificial configuration backup group.

Description

A kind of method, router and the system of management router backup group
Technical field
The present invention relates to communication technical field, more particularly to a kind of method of management router backup group, router and it is System.
Background technology
Under static default route environment, cause network interruption to avoid single link from breaking down, it will usually using empty Intend route redundancy protocol (Virtual Router Redundancy Protocol, VRRP), VRRP can be by LAN Set of router is organized into a virtual router (i.e. backup group).Multiple routers can form single backup group, can also group Into more backup groups.For example, have router 1, router 2 and router 3, it is active router that can form router 1, router 2 It is single backup group from router with router 3;Three backup groups can also be formed, are respectively:It is route based on router 1 Device, router 2 and router 3 are from the backup group 1 of router composition, are active router, router 1 and route with router 2 Device 3 is from the backup group 2 of router composition, is active router with router 3, and router 1 and router 2 are to be formed from router Backup group 3.Whether single backup group or more backup groups, the information of backup group are all to need artificially to configure, it is necessary to configure Information including backup group group number and virtual internet protocol (Internet Protocol, IP) address etc..To one , it is necessary to artificially be configured to each router in backup group when backup group carries out configuration information, artificial configuration easily goes out Existing mistake.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of method, router and the system of management router backup group, is used for Easily there is mistake in the information for solving the problems, such as artificial configuration backup group.
The purpose of the embodiment of the present invention is achieved through the following technical solutions:
A kind of method of management router backup group, including:
After the virtual flow-line function of each router is triggered, a backup group information is generated and by the backup group information And status information of this router as active router in the backup group that the backup group information indicates is saved in and is locally stored Backup group record in;
Each router periodically sends other routers of the notification packet to composition backup group, is carried in the notification packet The backup group record of this router storage;
After each router receives the notification packet that other routers are sent, this is updated according to the notification packet The backup group record of router storage.
It is preferred that the backup group that the storage of this router is updated according to the notification packet records, including:
Judge each bar backup group information carried in the notification packet received whether has been stored in this router;If in the presence of At least one backup group information and this router not stored are made in the backup group that at least one backup group information indicates To be added to from the status information of router in the backup group record of this router storage, and storage state information is this router As from router;
If full backup group information has all stored, further determine whether conflict backup group be present, if conflict backup be present Group, then master slave mode information of this router in the conflict backup group is determined by the judgment mechanism that conflicts;The conflict is standby The router that part group refers to receive the notification packet is with sending the router of the notification packet in same backup group Status information is the backup group of active router.
It is preferred that master slave mode information of this router in the conflict backup group is determined by the judgment mechanism that conflicts, Including:
Judge whether the conflict backup group is created by the router for sending the notification packet;
If so, this router stored is revised as in the conflict backup group as the status information of active router This router is in the conflict backup group as the status information from router;
Otherwise, judge whether the conflict backup group is created by this router;
If so, do not change status information of this router stored in the conflict backup group;
Otherwise, the priority of router of this router with sending the notification packet is compared;
If the priority for sending the router of the notification packet is higher than this router, this router stored is existed Status information in the conflict backup group as active router be revised as this router it is described conflict backup group in be used as from The status information of router;Otherwise, the status information of this router for having stored in the conflict backup group is not changed.
It is preferred that after the virtual flow-line function of this router is triggered, the backup group information of generation comprises at least:Backup group Identification information and virtual internet protocol IP address.
It is preferred that judge whether the conflict backup group is created by the router for sending the notification packet, including:
Judge connecing for router of the virtual ip address in the information of the conflict backup group with sending the notification packet Whether mouth IP address is identical, wherein, the virtual ip address of backup group is the router for the virtual ip address for generating the backup group Interface IP address;
If identical, the conflict backup group is created by sending the router of the notification packet;
If it is not the same, the conflict backup group is created by sending the router of the notification packet;
Judge whether the conflict backup group is created by this router, including:
Judge whether the virtual ip address in the information of the conflict backup group is identical with the interface IP address of this router;
If identical, the conflict backup group is created by this router;
If it is not the same, the conflict backup group is created by this router.
It is preferred that compare the priority of router of this router with sending the notification packet, including:
Recorded according to the backup group carried in the notification packet, it is determined that sending the router of the notification packet as master In all backup groups of router, in addition to the conflict backup group, the backup group of the highest priority of identification information;
The backup group stored according to this router records, and determines all backup groups of this router as active router In, in addition to the conflict backup group, the backup group of the highest priority of identification information;
Compare the priority of the identification information of two backup groups of determination;
If the priority of the identification information of the backup group determined is recorded according to the backup group carried in the notification packet Height, the then priority for sending the router of the notification packet are high;
If the priority that the backup group stored according to this router records the identification information of the backup group determined is high, The priority of this router is high.
It is preferred that the identification information of backup group is the interface IP address for the router for creating the backup group, the interface IP Address is bigger, and the priority of the identification information of backup group is higher.
It is preferred that also include:
After the virtual flow-line function of each router is closed, the notification packet is sent, the notification packet is also at least Carry this router virtual flow-line function close configured information, and using this router stored in backup group as lead The status information of router is revised as the status information that this router leaves unused in backup group.
It is preferred that if the virtual road for the router for sending the notification packet is carried in the notification packet that router receives The configured information closed by device function, using this router stored in the first gravity treatment backup group as the state from router Information is revised as the status information as active router, and the first gravity treatment backup group is made to send the router of the notification packet For the backup group of active router.
It is preferred that also include:
Each router does not receive at least one router in the other routers for forming backup group in the given time The notification packet sent, this router is revised as making in the second gravity treatment backup group as from the status information of router For the status information of active router, the second gravity treatment backup group is backup of at least one router as active router Group.
A kind of router, including:
First backup group configuration module, after the virtual flow-line function for this router is triggered, generate a backup group Information and using the backup group information and this router in the backup group that the backup group information indicates as active router Status information is saved in the backup group record being locally stored;
Notification packet transceiver module is described logical for periodically sending other routers of the notification packet to composition backup group The backup group record that the storage of this router is carried in message is accused, and receives the notification packet of other routers transmission;
Second backup group configuration module, after the notification packet sent for receiving other routers, according to described Notification packet updates the backup group record of this router storage.
It is preferred that the second backup group configuration module is specifically used for:
Judge each bar backup group information carried in the notification packet received whether has been stored in this router;If in the presence of At least one backup group information not stored, then it is at least one backup group information and this router is at least one standby at this It is added in the backup group of part group information instruction as from the status information of router in the backup group record of this router storage; If full backup group information has all stored, further determine whether conflict backup group be present, if conflict backup group be present, pass through Conflict judgment mechanism determines master slave mode information of this router in the conflict backup group;The conflict backup group refers to connect The router for receiving the notification packet is equal with sending status information of the router of the notification packet in same backup group For the backup group of active router.
It is preferred that master slave mode information of this router in the conflict backup group is determined by the judgment mechanism that conflicts When, the second backup group configuration module is used for:
Judge whether the conflict backup group is created by the router for sending the notification packet;
If so, this router stored is revised as in the conflict backup group as the status information of active router This router is in the conflict backup group as the status information from router;
Otherwise, judge whether the conflict backup group is created by this router;
If so, do not change status information of this router stored in the conflict backup group;
Otherwise, the priority of router of this router with sending the notification packet is compared;
If the priority for sending the router of the notification packet is higher than this router, this router stored is existed Status information in the conflict backup group as active router be revised as this router it is described conflict backup group in be used as from The status information of router;Otherwise, status information of this router stored in the conflict backup group is not changed.
It is preferred that after the virtual flow-line function of this router is triggered, the backup group information of generation comprises at least:Backup group Identification information and virtual internet protocol IP address.
It is preferred that when judging whether the conflict backup group is created by the router for sending the notification packet, described the Two backup group configuration modules are specifically used for:
Judge connecing for router of the virtual ip address in the information of the conflict backup group with sending the notification packet Whether mouth IP address is identical, wherein, the virtual ip address of backup group is the router for the virtual ip address for generating the backup group Interface IP address;
If identical, the conflict backup group is created by sending the router of the notification packet;
If it is not the same, the conflict backup group is created by sending the router of the notification packet;
Judge whether the conflict backup group is created by this router, the second backup group configuration module is specifically used for:
Judge whether the virtual ip address in the information of the conflict backup group is identical with the interface IP address of this router;
If identical, the conflict backup group is created by this router;
If it is not the same, the conflict backup group is created by this router.
It is preferred that when comparing the priority of router of this router with sending the notification packet, second backup Group configuration module is specifically used for:
Recorded according to the backup group carried in the notification packet, it is determined that sending the router of the notification packet as master In all backup groups of router, in addition to the conflict backup group, the backup group of the highest priority of identification information;
The backup group stored according to this router records, and determines all backup groups of this router as active router In, in addition to the conflict backup group, the backup group of the highest priority of identification information;
Compare the priority of the identification information of two backup groups of determination;
If the priority of the identification information of the backup group determined is recorded according to the backup group carried in the notification packet Height, the then priority for sending the router of the notification packet are high;
If the priority that the backup group stored according to this router records the identification information of the backup group determined is high, The priority of this router is high.
It is preferred that the identification information of backup group is the interface IP address for the router for creating the backup group, the interface IP Address is bigger, and the priority of the identification information of backup group is higher.
It is preferred that also include:
3rd backup group configuration module, after being closed for virtual flow-line function, send the notification packet, the notice Message also at least carries the configured information that the virtual flow-line function of this router is closed, and this router stored is being backed up Status information in group as active router is revised as the status information that this router leaves unused in backup group.
It is preferred that the 3rd backup group configuration module is additionally operable to:
If the virtual router work(for the router for sending the notification packet is carried in the notification packet that router receives The configured information that can be closed, this router stored is repaiied in the first gravity treatment backup group as from the status information of router The status information as active router is changed to, the first gravity treatment backup group is the router for sending the notification packet as main road By the backup group of device.
It is preferred that the second backup group configuration module is additionally operable to:
Do not receive in the given time at least one router in other routers of composition backup group send it is described Notification packet, this router is revised as active router in the second gravity treatment backup group as from the status information of router Status information, the second gravity treatment backup group is backup group of at least one router as active router.
A kind of system of management router backup group, including several routers, the router are described above any Kind router.
The embodiment of the present invention has the beneficial effect that:
After the virtual flow-line function of each router is triggered, backup group is created, that is, generates a backup group information, and will The backup group information and status information of this router as active router in the backup group are saved in the backup of this router In group record, then backup group record is carried in notification packet, believed backup group by way of sending notification packet Status information in the backup group of breath and each router interacts between the routers, receives the router of notification packet According to carried in notification packet backup group record update this router store backup group record, so as to realize backup group from Dynamic configuration.Because router is by the backup group information storage in the notification packet received, i.e., the notification packet that basis receives In backup group information carry out backup group configuration, it is not necessary to artificially configured, from without configuration error.
Further, the identification information using the interface IP address of the founder of backup group as backup group, according to backup group Identification information compare the priority of router, without the priority of extra configuration router so that configuration is terse.
Brief description of the drawings
Fig. 1 is a kind of flow chart of the method for management router backup group provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of judgment mechanism that conflicts provided in an embodiment of the present invention;
Fig. 3 is the flow chart of the relatively method of router priority provided in an embodiment of the present invention;
Fig. 4 is the method for the management router backup group provided in an embodiment of the present invention by taking router networking environment as an example Flow chart;
Fig. 5 is another management router backup group provided in an embodiment of the present invention by taking router networking environment as an example The flow chart of method;
Fig. 6 is a kind of schematic diagram of router provided in an embodiment of the present invention;
Fig. 7 is the schematic diagram of another router provided in an embodiment of the present invention.
Embodiment
With reference to the accompanying drawings and examples to a kind of method of management router backup group provided by the invention, router and System is described in more detail.
The embodiments of the invention provide a kind of method of management router backup group, as shown in figure 1, specific method and step It is as follows:
Step 110:After the virtual flow-line function of each router is triggered, generates a backup group information and back up this Group information and this router are saved in the backup group record that is locally stored in the backup group as the status information of active router In.
Wherein, the mode that the virtual flow-line function of router is triggered has a variety of, can be triggered by hardware switch, can be with Triggered by user input instruction, can also be triggered automatically by program etc..
In the step, the process of a backup group information is generated, that is, creates a backup group, this router is exactly the backup The founder of group.
Step 120:Each router periodically sends other routers of the notification packet to composition backup group, in notification packet Carry the backup group record of this router storage.
Wherein, if there is N number of router in network, N number of router backups each other, respectively using different routers as main road by Device forms N number of backup group, and this N number of router is the router for forming backup group.
Step 130:After each router receives the notification packet that other routers are sent, this is updated according to notification packet The backup group record of router storage.
In the embodiment of the present invention, after the virtual flow-line function of each router is triggered, backup group is created, that is, generates one Backup group information, and the backup group information and status information of this router as active router in the backup group are saved in In the backup group record of this router, then backup group record is carried in notification packet, by sending notification packet Mode interacts the status information in the backup group of backup group information and each router between the routers, receives logical The router for accusing message updates the backup group record of this router storage according to the backup group record carried in notification packet, so as to Realize automatically configuring for backup group.Due to router by the notification packet received backup group information store, i.e., basis connect Backup group information in the notification packet received carries out the configuration of backup group, it is not necessary to artificially configured, from without Configuration error.
In above-mentioned steps 130, the backup group that the storage of this router is updated according to notification packet records, and its implementation can be with It is:Judge each bar backup group information carried in the notification packet received whether has been stored in this router;If in the presence of not having At least one backup group information of storage, then by least one backup group information and this router at least one backup group It is added in the backup group of information instruction as from the status information of router in the backup group record of this router storage;It is if complete Portion's backup group information has all stored, and further determines whether conflict backup group be present, if conflict backup group be present, passes through conflict Judgment mechanism determines master slave mode information of this router in the backup group that conflicts;Conflict backup group refers to receive notification packet Router with status information of the router in same backup group for sending notification packet be active router backup group.
Wherein, judge each bar backup group information carried in the notification packet received whether has been stored in this router, Its implementation can be:The identification information of each bar backup group carried in the notification packet for judging to receive respectively and this route Whether the identification information of the every backup group stored in device is identical;It is standby that this is not stored if differing, in this router Part group information;This backup group information has been stored if identical, in this router.
Wherein, further determine whether conflict backup group be present, its implementation can be:For each backup group, divide Do not judge status information of this router in the backup group with sending state of the router of notification packet in the backup group Information, if be the status information as active router;If it is, conflict backup group be present, if it is not, then being not present Conflict backup group.
It is preferred that embodiment described above, master of this router in the backup group that conflicts is determined by the judgment mechanism that conflicts From status information, as shown in Fig. 2 it is comprised the following steps that:
Step 210:Judge whether conflict backup group is created by the router of transmission notification packet, if performing step 220, Otherwise, step 230 is performed.
Step 220:This router stored is revised as in the backup group that conflicts as the status information of active router This router is in the backup group that conflicts as the status information from router.
Step 230:Judge whether conflict backup group is created by this router, if so, performing step 240, otherwise, perform step Rapid 250.
Step 240:Do not change status information of this router stored in the backup group that conflicts.
Step 250:Compare the priority of router of this router with sending notification packet, if sending notification packet The priority of router is higher than this router, performs step 220, otherwise, performs step 230.
It is preferred that in embodiment described above, after the virtual flow-line function of this router is triggered, the backup group letter of generation Breath comprises at least:The identification information and virtual ip address of backup group.
Wherein, the virtual ip address of backup group can be the interface IP address for the router for generating the backup group, can be with It is the IP address generated in other ways, for example, can be according to the rule of correspondence of agreement, by IP corresponding to interface IP address Address is as virtual ip address.The identification information of backup group can be the interface IP address for the router for generating the backup group, also Can be according to numerical value of pre-defined rule generation, etc..
It is preferred that in above-mentioned steps 210, judge whether conflict backup group is created by the router of transmission notification packet, its Specific implementation has a variety of.If the virtual ip address of backup group is the interface IP address for the router for generating the backup group, The implementation of above-mentioned steps 210 can be:Judge the virtual ip address in the information of conflict backup group with sending notification packet Router interface IP address it is whether identical;If identical, conflict backup group is the router establishment by transmission notification packet; If it is not the same, conflict backup group is not the router establishment by transmission notification packet.If the virtual ip address of backup group is According to the rule of correspondence of agreement, using IP address corresponding to interface IP address as virtual ip address, the realization side of above-mentioned steps 210 Formula can be:Will send notification packet router interface IP address according to the rule of correspondence of above-mentioned agreement with obtaining an IP Location, judge whether the IP address is identical with the virtual ip address for the backup group that conflicts, if identical, conflict backup group is logical by sending The router for accusing message creates;If it is not the same, conflict backup group is not the router establishment by transmission notification packet;Or The virtual ip address for the backup group that conflicts is parsed into corresponding interface IP address according to the rule of correspondence of above-mentioned agreement, judges that this connects Whether mouth IP address is identical with the interface IP address of the router of transmission notification packet, if identical, conflict backup group is by sending out The router of notification packet is sent to create;If it is not the same, conflict backup group is not the router establishment by transmission notification packet.
It is preferred that the implementation of above-mentioned steps 210 can also be:Configured information is carried in notification packet, the instruction Information instruction send notification packet router whether be backup group founder, obtain notification packet in carry instruction letter Breath, it is possible to judge whether entry/exit conflicts backup group is created by the router of transmission notification packet.
It is preferred that in above-mentioned steps 230, judge whether conflict backup group is created by this router, its specific implementation Have a variety of.If the virtual ip address of backup group is the interface IP address for the router for generating the backup group, above-mentioned steps 230 Implementation can be:Judge to conflict backup group information in virtual ip address and this router interface IP address whether phase Together;If identical, conflict backup group is created by this router;If it is not the same, conflict backup group is created by this router Build.If the virtual ip address of backup group is the rule of correspondence according to agreement, using IP address corresponding to interface IP address as void Intend IP address, its implementation of above-mentioned steps 230 can be:Pair by the interface IP address of this router according to above-mentioned agreement Answer rule to obtain an IP address, judge whether the IP address is identical with the virtual ip address for the backup group that conflicts, if identical, punching Prominent backup group is created by this router;If it is not the same, conflict backup group is created by this router.Or it will conflict The virtual ip address of backup group parses corresponding interface IP address according to the rule of correspondence of above-mentioned agreement, with judging interface IP Whether location is identical with the interface IP address of this router, if identical, conflict backup group is created by this router;If not phase Together, the backup group that conflicts is created by this router.
It is preferred that the implementation of above-mentioned steps 230 can also be:When router creates backup group, identify This router is the founder of the backup group, the identification information judgment conflict backup group for the founder that this router passes through backup group Whether created by this router.
In above-mentioned steps 250, compare the priority of router of this router with sending notification packet, its implementation has It is a variety of, it is preferred that as shown in figure 3, its implementation can be:
Step 310:Recorded according to the backup group carried in notification packet, it is determined that sending the router of notification packet as master In all backup groups of router, in addition to the backup group that conflicts, the backup group of the highest priority of identification information.
In the embodiment of the present invention, router can be used as active router in a backup group, can also be in multiple backups Active router is used as in group.
Specifically, according to all backup group informations carried in notification packet and the router for sending notification packet each Status information in backup group, search all backup groups of the router for sending notification packet as active router.Then basis Identification information in the backup group information found, it is determined that in addition to the backup group that conflicts, the backup of the highest priority of identification information Group.
Step 320:The backup group stored according to this router records, and determines this router as all of active router In backup group, in addition to the backup group that conflicts, the backup group of the highest priority of identification information.
Specifically, in all backup group informations stored according to this router with this router in each router Status information, search all backup groups of this router as active router.Then according in the backup group information found Identification information, it is determined that in addition to the backup group that conflicts, the backup group of the highest priority of identification information.
Step 330:Compare the priority of the identification information of two backup groups of determination.If carried according in notification packet The priority of the identification information of backup group that determines of backup group record it is high, then the router for sending notification packet is preferential Level is high;If the priority that the backup group stored according to this router records the identification information of the backup group determined is high, this The priority of router is high.
It is preferred that in above-described embodiment, if the identification information of backup group is the interface for the router for creating the backup group IP address, the interface IP address is bigger, and the priority of the identification information of backup group is higher.IP address is with the shape of string of binary characters Formula stores.Compare the size of IP address, really compare the numerical values recited of the string of binary characters of IP address.For example, there are two Interface IP address is respectively 192.168.0.1 and 192.168.0.2, then when being stored in the form of string of binary characters, is respectively 11000000101000000000000000000001 and 11000000101000000000000000000010.It can be seen that IP The numerical value of string of binary characters corresponding to the 192.168.0.2 of location is more than string of binary characters corresponding to IP address 192.168.0.1 Numerical value, so interface IP address 192.168.0.2 is more than interface IP address 192.168.0.1.If the mark letter of backup group Breath is the numerical value generated according to pre-defined rule, and the numerical value is bigger, and the priority of router is higher.
In above-described embodiment, the precedence information of router is determined according to the priority of the identification information of backup group, should , it is noted that the precedence information of router be not limited to the above determination mode or:Router is creating backup group Afterwards, the priority for each configuration of routers in network in the backup group, precedence information are the letter of the priority configured Breath;Priority can also be set to determine rule, the precedence information is that the priority determines rule, etc..
In the embodiment of the present invention, the identification information using the interface IP address of the founder of backup group as backup group, according to The identification information of backup group compares the priority of router, without the priority of extra configuration router so that configuration It is terse.
It is preferred that in embodiment described above, after the virtual flow-line function of each router is closed, notice report is sent Text, the notification packet also at least carry the configured information that the virtual flow-line function of this router is closed, and this road that will have been stored This router status information idle in backup group is revised as by status information of the device as active router in backup group.
It is preferred that if the virtual road for the router for sending the notification packet is carried in the notification packet that router receives The configured information closed by device function, its processing mode have a variety of, Ke Yishi:This router stored is standby in the first gravity treatment As the status information being revised as from the status information of router as active router in part group, the first gravity treatment backup group is hair The router of the notification packet is given as the backup group of active router;It can also be:Pass through other routes with forming backup group Device determines active router of the first gravity treatment backup group, etc. through consultation.
Wherein, the pent mode of virtual flow-line function of router has a variety of, can be closed by hardware switch, can be with Closed by user input instruction, can also be closed automatically by program etc..
It is preferred that in embodiment described above, each router does not receive its of composition backup group in the given time The notification packet that at least one router is sent in its router, using this router in the second gravity treatment backup group as from route The status information of device is revised as the status information as active router, and the second gravity treatment backup group is made at least one router For the backup group of active router.
In above-mentioned all embodiments, notification packet can be that periodically transmission or aperiodicity are sent.Such as Fruit is that aperiodicity is sent, the multicast message that notification packet can be sent with set rate, the notification packet that router is sent Form have it is a variety of, it is preferred that the form of notification packet is as shown in table 1.
Table 1
As shown in table 1, the field in notification packet before Options fields is the field on IP heads, wherein, each field Implication referring to 791 (the Request For Comments 791, RFC791) that request for comments.Version (Version) represents notice The version number of message.The type of type (TYPE) presentation protocol, the field value are 1, represent notification packet.Mark (Identity, ID) digital (Number) represents the quantity of the backup group carried in notification packet.Router (Router) mark (ID) represents standby The identification information of part group.State (State) represents state of the router of transmission notification packet in backup group, and the field value is 0, it is active router (Owner) in backup group to represent this router, and the field value is 1, represents this router in backup group It is from router (Slave), the field value is 2, and it is idle (Idle) state, i.e. this route in backup group to represent this router Device is turned off virtual flow-line function.Owner indicates that (Owner Flag) represents whether the interface IP address of this router is place The virtual ip address of backup group, the field value are 0, and the interface IP address for representing this router is not the virtual IP address of place backup group Address, the field value are 1, and the interface IP address for representing this router is not the virtual ip address of place backup group.Close mark (OFF Flag) represents whether this router opens virtual flow-line function, and the field value is 0, represents that this router has turned on virtually Routing function, the field value are 1, represent that this router is turned off virtual flow-line function.Retaining that (Resever) field represents can be with Subsequent expansion.IP address of router (Router IP Address) represents the virtual ip address of backup group.N represents notification packet In n-th of backup group.
It should be pointed out that the OFF Flag fields of above-mentioned notification packet can also be located at IP heads.
It should also be noted that if the identification information of backup group and the virtual ip address of backup group are to generate the backup group Router interface IP address, the identification information (Router ID) and virtual ip address (Router IP of backup group Address it) can be represented with a field, i.e., both represent backup group with Router ID/Router IP Address fields Identification information, also illustrate that the virtual ip address of backup group.
Below with by 4 personal computers (Person Computer, PC), exemplified by 3 router networkings, to the present invention The method for the management router backup group that embodiment provides is described in detail.
In the embodiment of the present invention, 3 backup groups are created by 3 routers, are respectively:It is active router with router 1, road It is the backup group 1 formed from router by device 2 and router 3, is active router with router 2, router 1 and router 3 are It is active router with router 3 from the backup group 2 of router composition, router 1 and router 2 are from the standby of router composition Part group 3.Each router safeguards a maintenance of information table, i.e., above-mentioned backup group record, for store each bar backup group information with Status information of this router in each backup group.Wherein, the interface IP address that router 1 is opened is 192.168.0.1, road The interface IP address opened by device 2 is 192.168.0.2, and the interface IP address that router 3 is opened is 192.168.0.3.With road Exemplified by device 1, as shown in figure 4, the process of the information of configuration backup group is as follows:
Step 410:Trigger the virtual flow-line function of router 1.Specifically, router 1 receives the void of triggering router 1 Intend the order of routing function.
Step 420:After the virtual flow-line function of router 1 is triggered, router 1 is according to the IP address of the IP interfaces of unlatching 192.168.0.1, list item corresponding to a new backup group is created in maintenance of information table;By in list item corresponding to the backup group The values of Router id fields be arranged to 192.168.0.1, owner IP (Owner IP) field, i.e. Router IP Address fields, value are arranged to 192.168.0.1, and the state field in backup group 1 (Group1) of router 1 is arranged to Owner.Now, information as shown in table 2 is at least stored in maintenance of information table.
Table 2
Wherein, the interface IP address of router is unique, therefore, the identification information of the backup group 1 generated in the step It is and unique.
Step 430:Router 1 sends notification packet, at least carries Group1 information in notification packet and router 1 exists Status information in Group1 as active router, and start the transmission timer (Forward_timer) of router 1.
Router opens Forward_timer when being used as active router in some or certain several backup groups.
In the step, router 1 sends circular message according to the form of the notification packet of above-mentioned table 1, due to router 1 When virtual flow-line function sends notification packet for the first time after being triggered, there was only Group1 information and route in its maintenance of information table Status information of the device 1 in Group1 as active router, therefore Group1 information and road in table 2 are only carried in notification packet By status information of the device 1 in Group1 as active router.
It should be pointed out that the virtual flow-line function of router 2 and router 3 also performs above-mentioned steps after being triggered.Phase Answer, router 2 also creates list item corresponding to a new backup group in maintenance of information table, i.e. backup group 2 (Group2) is right The list item answered.Router 3 also creates list item, i.e. backup group 3 corresponding to a new backup group in maintenance of information table (Group3) list item corresponding to.
Step 440:Router 1 receives the notification packet of the transmission of router 2, judges not storing route in this router The Group2 carried in the notification packet that device 2 is sent information, list item corresponding to Group2, this road are created in maintenance of information table In the list item as corresponding to the Group2 created in device including at least Group2 Router id fields value 192.168.0.2, The value 192.168.0.2 of the Owner IP fields and value Slave of state field.
Wherein, an only backup group information in the notification packet that router 2 is sent.
Step 450:Router 1 receives the notification packet of the transmission of router 3, judges not storing route in this router The Group3 carried in the notification packet that device 3 is sent information, list item corresponding to Group3, this road are created in maintenance of information table In the list item as corresponding to the Group3 created in device including at least Group3 Router id fields value 192.168.0.3, The value 192.168.0.3 of the Owner IP fields and value Slave of state field.
Wherein, an only backup group information in the notification packet that router 3 is sent.
It should be pointed out that the sequential of above-mentioned steps 440 and step 450 is the notification packet and road sent by router 2 What the sequential that the notification packet sent by device 3 reaches determined.Now, the maintenance of information table that router 1 stores, including at least such as table Information shown in 3.
Table 3
Router 2 and router 3 complete the configuration of backup group also referring to above-mentioned embodiment.
It is preferred that in all of above embodiment, when router is used as from router in some or certain several backup groups, Also open active router close timer (Owner_down_timer), the Owner_down_timer then after, still without receipts The notification packet sent to the active router of some backup group, this router will be considered that the active router in the backup group is not deposited This router will be revised as active router by this router in the backup group as from the status information of router Status information.If normally receiving notification packet, refresh Owner_down_timer.
It is preferred that the Forward_timer of each router in networking timing time is identical, Owner_down_ Timer timing time is also identical, and Owner_down_timer timing time is more than Forward_timer timing time, For example, Forward_timer takes 1s, Owner_down_timer to take 3s, be advantageous to avoid the notice of the active router of backup group Message is not sent also, is had timed, out from the Owner_down_timer of router so that from router in the backup group Status information is switched, i.e., is revised as from router using this router as from the status information of router in the backup group Status information as active router.
If for example, after the Owner_down_timer time-out of router 1, the notice of the transmission of router 3 is not received yet Message, router 1 will be considered that router 3 has been not present, and the state field of Group3 in the maintenance of information table stored is repaiied Owner is changed to, now, the maintenance of information table that router 1 stores comprises at least information as shown in table 4.Assuming that router 2 After Owner_down_timer time-out, the notification packet of the transmission of router 3 is not received yet, then it is assumed that router 3 is not deposited The state field of Group3 in the maintenance of information table stored is revised as Owner in, router 2, router 2 is sent logical Accuse the information that Group3 state field is at least carried in message as Owner.
Table 4
After the notification packet that the receiving router 2 of router 1 is sent, as shown in figure 5, its processing mode can be:
Step 510:Group1, Group2 and the Group3's carried in the notification packet that router 1 sends router 2 The value ratio of Router id fields in the maintenance of information table that the value of Router id fields has stored with this router respectively Compared with Group1, Group2, the Group3's carried in the notification packet for judging to have stored the transmission of router 2 in this router Information.
Step 520:Router 1 judges that the state field of router 1 and router 2 in Group3 is Owner, That is Group3 is conflict backup group.
Step 530:Router 1 judges that Group3 is not created by router 2.Specifically, router 1 is judged The IP address 192.168.0.3 of the Group3 Owner IP fields and interface IP address 192.168.0.2 of router 2 not phases Together.
Step 540:Router 1 judges that Group3 is created by this router.Specifically, router 1 is judged The IP address 192.168.0.3 of the Group3 Owner IP fields and interface IP address 192.168.0.1 of this router not phases Together.
Step 550:Router 1 records according to the backup group carried in notification packet, determines the state field of router 2 Be arranged in Owner all backup groups, i.e., in Group2 and Group3, in addition to Group3, Router ID maximum backup Group, i.e. Group2.
Step 560:The backup group that router 1 has stored according to this router records, and determines the state field of this router Be arranged in Owner all backup groups, i.e., in Group1 and Group3, in addition to Group3, Router ID maximum backup Group, i.e. Group1.
Step 570:Router 1 compares the priority for determining Router IDs of the Group2 more than Group1, i.e. Group2's Router id fields 192.168.0.2 is more than Group1 Router id fields 192.168.0.1.
Step 580:State field in the Group3 stored information is revised as Slave by router 1.Cancel Forward_timer, open Owner_down_timer.
It is preferred that when if the router in network breaks down, can implement according to above-described embodiment scheme.
In foregoing invention embodiment, if after the virtual flow-line function of router 1 is closed, router 1 cancels Owner_ Down_timer, router 1 send notification packet, the information that OFF Flag fields put 1 are at least carried in notification packet.
It should be pointed out that in embodiment described above, backup group information and this are stored in the backup group record of router Status information of the router in backup group is to store in table form, can also be stored in the form of inforamtion tree, etc..
It is preferred that in all of above embodiment, after router receives notification packet, notification packet can also be examined first Whether legal, the method specifically examined is with reference to implementation of the prior art.If it is illegal to circulate a notice of message, directly abandon; If notification packet is legal, then the scheme of the embodiment as described above of the notification packet to receiving is handled.
Based on same inventive concept, the embodiment of the present invention also provides a kind of router, as shown in fig. 6, standby including first Part group configuration module 601, the backup group configuration module 603 of notification packet transceiver module 602 and second.
First backup group configuration module 601, after the virtual flow-line function for this router is triggered, generate a backup Group information and be saved in backup group information and this router as the status information of active router in backup group is locally stored Backup group record in;
Notification packet transceiver module 602, for periodically sending other routers of the notification packet to composition backup group, notice The backup group record of this router storage is carried in message, and receives the notification packet of other routers transmission;
Second backup group configuration module 603, after the notification packet sent for receiving other routers, according to described logical Accuse the backup group record that message updates the storage of this router.
It is preferred that the second backup group configuration module 603 is specifically used for:
Judge each bar backup group information carried in the notification packet received whether has been stored in this router;If in the presence of At least one backup group information not stored, then it is at least one backup group information and this router is at least one standby at this It is added in the backup group of part group information instruction as from the status information of router in the backup group record of this router storage; If full backup group information has all stored, further determine whether conflict backup group be present, if conflict backup group be present, pass through Conflict judgment mechanism determines master slave mode information of this router in the conflict backup group;Conflict backup group refers to receive The router of notification packet is active router with sending status information of the router of notification packet in same backup group Backup group.
It is preferred that when determining master slave mode information of this router in the backup group that conflicts by the judgment mechanism that conflicts, should Second backup group configuration module 603 is used for:
Judge whether the conflict backup group is created by the router for sending the notification packet;
If so, this router stored is revised as in the conflict backup group as the status information of active router This router is in the conflict backup group as the status information from router;
Otherwise, judge whether the conflict backup group is created by this router;
If so, do not change status information of this router stored in the conflict backup group;
Otherwise, the priority of router of this router with sending the notification packet is compared;
If the priority for sending the router of the notification packet is higher than this router, this router stored is existed Status information in the conflict backup group as active router be revised as this router it is described conflict backup group in be used as from The status information of router;Otherwise, status information of this router stored in the conflict backup group is not changed.
It is preferred that after the virtual flow-line function of this router is triggered, the backup group information of generation comprises at least:Backup group Identification information and virtual ip address.
It is preferred that when judging whether conflict backup group is created by the router of transmission notification packet, the configuration of the second backup group Module 603 is specifically used for:
Judge the interface IP address of router of the virtual ip address in the information of conflict backup group with sending notification packet It is whether identical, wherein, the virtual ip address of backup group is the interface IP address of the router of the virtual ip address of generation backup group;
If identical, conflict backup group is the router establishment by transmission notification packet;
If it is not the same, conflict backup group is not the router establishment by transmission notification packet;
When judging whether conflict backup group is created by this router, the second backup group configuration module 603 is specifically used for:
Judge whether the virtual ip address in the information of conflict backup group is identical with the interface IP address of this router;
If identical, conflict backup group is created by this router;
If it is not the same, conflict backup group is created by this router.
It is preferred that when comparing the priority of router of this router with sending notification packet, the second backup group configuration mould Block 603 is specifically used for:
Recorded according to the backup group carried in notification packet, it is determined that sending the router of notification packet as active router In all backup groups, in addition to the backup group that conflicts, the backup group of the highest priority of identification information;
The backup group stored according to this router records, and determines all backup groups of this router as active router In, in addition to the backup group that conflicts, the backup group of the highest priority of identification information;
Compare the priority of the identification information of two backup groups of determination;
If the priority that the identification information of the backup group determined is recorded according to the backup group carried in notification packet is high, The priority for sending the router of notification packet is high;
If the priority that the identification information of the backup group determined is recorded according to the backup group stored is high, this router Priority it is high.
It is preferred that the identification information of backup group is the interface IP address for the router for creating the backup group, interface IP Location is bigger, and the priority of the identification information of backup group is higher.
It is preferred that as shown in fig. 7, also include the 3rd backup group configuration module 604 in the router, it is used for:Router After virtual flow-line function is closed, notification packet is sent, the virtual flow-line function that notification packet also at least carries this router is closed The configured information closed, and status information of this router stored as active router in backup group is revised as this route The status information that device leaves unused in backup group.
It is preferred that the 3rd backup group configuration module 604, is additionally operable to:
If the virtual router work(for the router for sending the notification packet is carried in the notification packet that router receives The configured information that can be closed, this router stored is repaiied in the first gravity treatment backup group as from the status information of router Be changed to the status information as active router, the first gravity treatment backup group for send the notification packet router as main road by The backup group of device.
It is preferred that the second backup group configuration module 603 is additionally operable to:
Do not receive the notice that at least one router is sent in other routers of composition backup group in the given time Message, using this router in the second gravity treatment backup group as the shape being revised as from the status information of router as active router State information, the second gravity treatment backup group are the backup group of at least one router as active router.
Based on same inventive concept, the embodiment of the present invention also provides a kind of system of management router backup group, and this is System includes several routers, and the router is any router described above.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (21)

  1. A kind of 1. method of management router backup group, it is characterised in that including:
    After the virtual flow-line function of each router is triggered, a backup group information is generated and by the backup group information and originally Router in the backup group that the backup group information indicates as active router status information be saved in be locally stored it is standby In part group record;Backup group record, for storing each bar backup group information of this router with this router each standby Status information in part group;
    Each router periodically sends other routers of the notification packet to composition backup group, and this road is carried in the notification packet Recorded by the backup group of device storage;
    After each router receives the notification packet that other routers are sent, the backup group in the notification packet is stored Information, the backup group that the storage of this router is updated according to the notification packet record.
  2. 2. according to the method for claim 1, it is characterised in that the standby of this router storage is updated according to the notification packet Part group record, including:
    Judge each bar backup group information carried in the notification packet received whether has been stored in this router;If in the presence of not having At least one backup group information of storage, then by least one backup group information and this router at least one backup group It is added in the backup group of information instruction as from the status information of router in the backup group record of this router storage;
    If full backup group information has all stored, further determine whether conflict backup group be present, if conflict backup group be present, Master slave mode information of this router in the conflict backup group is determined by the judgment mechanism that conflicts;It is described conflict backup group be Refer to the router for receiving the notification packet with sending state of the router of the notification packet in same backup group to believe Breath is the backup group of active router.
  3. 3. according to the method for claim 2, it is characterised in that determine this router in the punching by the judgment mechanism that conflicts Master slave mode information in prominent backup group, including:
    Judge whether the conflict backup group is created by the router for sending the notification packet;
    If so, this router stored is revised as this road in the conflict backup group as the status information of active router By device it is described conflict backup group in as the status information from router;
    Otherwise, judge whether the conflict backup group is created by this router;
    If so, do not change status information of this router stored in the conflict backup group;
    Otherwise, the priority of router of this router with sending the notification packet is compared;
    If the priority for sending the router of the notification packet is higher than this router, by this router stored described Status information in conflict backup group as active router is revised as this router and is used as in the conflict backup group from route The status information of device;Otherwise, the status information of this router for having stored in the conflict backup group is not changed.
  4. 4. according to the method for claim 3, it is characterised in that after the virtual flow-line function of this router is triggered, generation Backup group information comprise at least:The identification information and virtual internet protocol IP address of backup group.
  5. 5. according to the method for claim 4, it is characterised in that judge the conflict backup group whether by sending the notice The router of message creates, including:
    Judge the interface IP of router of the virtual ip address in the information of the conflict backup group with sending the notification packet Whether address is identical, wherein, the virtual ip address of backup group is the interface of the router for the virtual ip address for generating the backup group IP address;
    If identical, the conflict backup group is created by sending the router of the notification packet;
    If it is not the same, the conflict backup group is created by sending the router of the notification packet;
    Judge whether the conflict backup group is created by this router, including:
    Judge whether the virtual ip address in the information of the conflict backup group is identical with the interface IP address of this router;
    If identical, the conflict backup group is created by this router;
    If it is not the same, the conflict backup group is created by this router.
  6. 6. according to the method for claim 4, it is characterised in that compare this router with sending the route of the notification packet The priority of device, including:
    Recorded according to the backup group that is carried in the notification packet, it is determined that send the router of the notification packet as main road by In all backup groups of device, in addition to the conflict backup group, the backup group of the highest priority of identification information;
    The backup group stored according to this router records, and determines that this router as in all backup groups of active router, removes Outside the conflict backup group, the backup group of the highest priority of identification information;
    Compare the priority of the identification information of two backup groups of determination;
    If the priority that the identification information of the backup group determined is recorded according to the backup group carried in the notification packet is high, The priority for sending the router of the notification packet is high;
    If the priority that the backup group stored according to this router records the identification information of the backup group determined is high, Ze Zhe roads It is high by the priority of device.
  7. 7. according to the method for claim 6, it is characterised in that the identification information of backup group is the route for creating the backup group The interface IP address of device, the interface IP address is bigger, and the priority of the identification information of backup group is higher.
  8. 8. according to the method described in any one of claims 1 to 3, it is characterised in that also include:
    After the virtual flow-line function of each router is closed, the notification packet is sent, the notification packet also at least carries The configured information that the virtual flow-line function of this router is closed, and using this router stored in backup group as main road by The status information of device is revised as the status information that this router leaves unused in backup group.
  9. 9. according to the method for claim 8, it is characterised in that also include:
    If the virtual router functionality that the router for sending the notification packet is carried in the notification packet that router receives closes The configured information closed, this router stored is revised as in the first gravity treatment backup group as from the status information of router As the status information of active router, the first gravity treatment backup group is the router for sending the notification packet as active router Backup group.
  10. 10. according to the method described in any one of claims 1 to 3, it is characterised in that also include:
    Each router does not receive at least one router in the other routers for forming backup group and sent in the given time The notification packet, this router is revised as master in the second gravity treatment backup group as from the status information of router The status information of router, the second gravity treatment backup group are backup group of at least one router as active router.
  11. A kind of 11. router, it is characterised in that including:
    First backup group configuration module, after the virtual flow-line function for this router is triggered, generate a backup group information And using the backup group information and this router in the backup group that the backup group information indicates as the state of active router Information is saved in the backup group record being locally stored;The backup group record, for storing each bar backup group of this router Information and status information of this router in each backup group;
    Notification packet transceiver module, for periodically sending other routers of the notification packet to composition backup group, the notice report The backup group record of this router storage is carried in text, and receives the notification packet of other routers transmission;
    Second backup group configuration module, after the notification packet sent for receiving other routers, store the notice Backup group information in message, the backup group that the storage of this router is updated according to the notification packet record.
  12. 12. router according to claim 11, it is characterised in that the second backup group configuration module is specifically used for:
    Judge each bar backup group information carried in the notification packet received whether has been stored in this router;If in the presence of not having At least one backup group information of storage, then by least one backup group information and this router at least one backup group It is added in the backup group of information instruction as from the status information of router in the backup group record of this router storage;It is if complete Portion's backup group information has all stored, and further determines whether conflict backup group be present, if conflict backup group be present, passes through conflict Judgment mechanism determines master slave mode information of this router in the conflict backup group;The conflict backup group refers to receive Based on the status information of the router of the notification packet and the router of the transmission notification packet in same backup group is equal The backup group of router.
  13. 13. router according to claim 12, it is characterised in that determine this router in institute by the judgment mechanism that conflicts When stating the master slave mode information in conflict backup group, the second backup group configuration module is used for:
    Judge whether the conflict backup group is created by the router for sending the notification packet;
    If so, this router stored is revised as this road in the conflict backup group as the status information of active router By device it is described conflict backup group in as the status information from router;
    Otherwise, judge whether the conflict backup group is created by this router;
    If so, do not change status information of this router stored in the conflict backup group;
    Otherwise, the priority of router of this router with sending the notification packet is compared;
    If the priority for sending the router of the notification packet is higher than this router, by this router stored described Status information in conflict backup group as active router is revised as this router and is used as in the conflict backup group from route The status information of device;Otherwise, status information of this router stored in the conflict backup group is not changed.
  14. 14. router according to claim 13, it is characterised in that after the virtual flow-line function of this router is triggered, The backup group information of generation comprises at least:The identification information and virtual internet protocol IP address of backup group.
  15. 15. router according to claim 14, it is characterised in that judge the conflict backup group whether as described in transmission When the router of notification packet creates, the second backup group configuration module is specifically used for:
    Judge the interface IP of router of the virtual ip address in the information of the conflict backup group with sending the notification packet Whether address is identical, wherein, the virtual ip address of backup group is the interface of the router for the virtual ip address for generating the backup group IP address;
    If identical, the conflict backup group is created by sending the router of the notification packet;
    If it is not the same, the conflict backup group is created by sending the router of the notification packet;
    Judge whether the conflict backup group is created by this router, the second backup group configuration module is specifically used for:
    Judge whether the virtual ip address in the information of the conflict backup group is identical with the interface IP address of this router;
    If identical, the conflict backup group is created by this router;
    If it is not the same, the conflict backup group is created by this router.
  16. 16. router according to claim 14, it is characterised in that compare this router with sending the notification packet During the priority of router, the second backup group configuration module is specifically used for:
    Recorded according to the backup group that is carried in the notification packet, it is determined that send the router of the notification packet as main road by In all backup groups of device, in addition to the conflict backup group, the backup group of the highest priority of identification information;
    The backup group stored according to this router records, and determines that this router as in all backup groups of active router, removes Outside the conflict backup group, the backup group of the highest priority of identification information;
    Compare the priority of the identification information of two backup groups of determination;
    If the priority that the identification information of the backup group determined is recorded according to the backup group carried in the notification packet is high, The priority for sending the router of the notification packet is high;
    If the priority that the backup group stored according to this router records the identification information of the backup group determined is high, Ze Zhe roads It is high by the priority of device.
  17. 17. router according to claim 16, it is characterised in that the identification information of backup group is to create the backup group The interface IP address of router, the interface IP address is bigger, and the priority of the identification information of backup group is higher.
  18. 18. according to the router described in any one of claim 11~13, it is characterised in that also include:
    3rd backup group configuration module, after being closed for virtual flow-line function, send the notification packet, the notification packet The configured information that the virtual flow-line function of this router is closed also at least is carried, and by this router stored in backup group Status information as active router is revised as the status information that this router leaves unused in backup group.
  19. 19. router according to claim 18, it is characterised in that the 3rd backup group configuration module is additionally operable to:
    If the virtual router functionality that the router for sending the notification packet is carried in the notification packet that router receives closes The configured information closed, this router stored is revised as in the first gravity treatment backup group as from the status information of router As the status information of active router, the first gravity treatment backup group is the router for sending the notification packet as active router Backup group.
  20. 20. according to the router described in any one of claim 11~13, it is characterised in that the second backup group configuration module It is additionally operable to:
    Do not receive the notice that at least one router is sent in other routers of composition backup group in the given time Message, using this router in the second gravity treatment backup group as the shape being revised as from the status information of router as active router State information, the second gravity treatment backup group are backup group of at least one router as active router.
  21. 21. a kind of system of management router backup group, it is characterised in that including several routers, the router is power Profit requires the router described in 11~20 any one.
CN201410855053.1A 2014-12-31 2014-12-31 A kind of method, router and the system of management router backup group Active CN104506429B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410855053.1A CN104506429B (en) 2014-12-31 2014-12-31 A kind of method, router and the system of management router backup group

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410855053.1A CN104506429B (en) 2014-12-31 2014-12-31 A kind of method, router and the system of management router backup group

Publications (2)

Publication Number Publication Date
CN104506429A CN104506429A (en) 2015-04-08
CN104506429B true CN104506429B (en) 2018-01-09

Family

ID=52948144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410855053.1A Active CN104506429B (en) 2014-12-31 2014-12-31 A kind of method, router and the system of management router backup group

Country Status (1)

Country Link
CN (1) CN104506429B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105939254B (en) * 2016-06-07 2019-06-07 杭州迪普科技股份有限公司 The method and device of VRRP backup group state switching
CN108833273B (en) * 2018-06-27 2021-05-18 北京东土军悦科技有限公司 Main/standby switching and electing method, router and medium in VRRP backup group

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060533A (en) * 2007-05-14 2007-10-24 华为技术有限公司 A method, system and device for improving the reliability of VGMP protocol
CN101841462A (en) * 2010-03-02 2010-09-22 北京星网锐捷网络技术有限公司 Method, device and system for informing VRRP state information
CN103095573A (en) * 2013-02-07 2013-05-08 杭州华三通信技术有限公司 Method for virtual router redundancy protocol backup set switching and switch
CN103200093A (en) * 2013-03-05 2013-07-10 杭州华三通信技术有限公司 Method and device for improving processing performance of multiple virtual router redundancy protocol (VRRP) back-up sets
WO2014015713A1 (en) * 2012-07-24 2014-01-30 Hangzhou H3C Technologies Co., Ltd. Configuring virtual router redundancy protocol backup group

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3848235B2 (en) * 2002-10-04 2006-11-22 ソニー株式会社 COMMUNICATION PROCESSING DEVICE, COMMUNICATION PROCESSING SYSTEM AND METHOD, AND COMPUTER PROGRAM
JP4103816B2 (en) * 2003-02-12 2008-06-18 松下電器産業株式会社 Router setting method and router apparatus
US8065498B2 (en) * 2005-01-07 2011-11-22 Panasonic Corporation Backup system, recording/reproduction device, backup device, backup method, program, and integrated circuit
CN101651553B (en) * 2009-09-03 2013-02-27 华为技术有限公司 User side multicast service primary and standby protecting system, method and route devices
CN103514173B (en) * 2012-06-20 2017-08-04 华为技术有限公司 The method and node device of data processing
CN103209091B (en) * 2013-01-18 2016-06-29 中兴通讯股份有限公司 The heat backup method of group system and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060533A (en) * 2007-05-14 2007-10-24 华为技术有限公司 A method, system and device for improving the reliability of VGMP protocol
CN101841462A (en) * 2010-03-02 2010-09-22 北京星网锐捷网络技术有限公司 Method, device and system for informing VRRP state information
WO2014015713A1 (en) * 2012-07-24 2014-01-30 Hangzhou H3C Technologies Co., Ltd. Configuring virtual router redundancy protocol backup group
CN103095573A (en) * 2013-02-07 2013-05-08 杭州华三通信技术有限公司 Method for virtual router redundancy protocol backup set switching and switch
CN103200093A (en) * 2013-03-05 2013-07-10 杭州华三通信技术有限公司 Method and device for improving processing performance of multiple virtual router redundancy protocol (VRRP) back-up sets

Also Published As

Publication number Publication date
CN104506429A (en) 2015-04-08

Similar Documents

Publication Publication Date Title
Borge-Holthoefer et al. Absence of influential spreaders in rumor dynamics
US10313233B2 (en) Method for routing data, computer program, network controller and network associated therewith
CN102857414B (en) A kind of forwarding table write-in, message forwarding method and device
CN103763121B (en) The method and device that a kind of network configuration information quickly issues
CN104704779A (en) Method and apparatus for accelerating forwarding in software-defined networks
CN104113482B (en) The methods, devices and systems of flow table renewal
CN106656801A (en) Method and device for redirection of forwarding path of business flow and business flow forwarding system
CN1826769A (en) Virtual network device
CN106953905A (en) Catalogue sharing method and device between domain
US10819573B2 (en) Hierarchical coherency for network function virtualization
CN104780103B (en) Message forwarding method and device
CN106034077A (en) Dynamic route configuration method, device and system thereof
CN107360096A (en) A kind of retransmission method and system of VXLAN messages
CN106878194A (en) A kind of message processing method and device
CN108965134B (en) Message forwarding method and device
CN109240796A (en) Virtual machine information acquisition methods and device
CN106453625A (en) Information synchronization method and high-availability cluster system
CN103281346A (en) Disconnection reconnection method, network system and proxy server
CN104506429B (en) A kind of method, router and the system of management router backup group
CN103152261A (en) Method and equipment for generating and distributing link state protocol data unit fragment messages
CN107896188A (en) Data forwarding method and device
CN103986660B (en) The device of loading micro code and the method for loading micro code
CN112702311B (en) Port-based message filtering method and device
CN108989311A (en) Generate the method and apparatus of input parameter
CN106878075A (en) A kind of message processing method and device

Legal Events

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