CN108259217A - A kind of device updating method and device - Google Patents
A kind of device updating method and device Download PDFInfo
- Publication number
- CN108259217A CN108259217A CN201710918999.1A CN201710918999A CN108259217A CN 108259217 A CN108259217 A CN 108259217A CN 201710918999 A CN201710918999 A CN 201710918999A CN 108259217 A CN108259217 A CN 108259217A
- Authority
- CN
- China
- Prior art keywords
- forwarding
- table item
- slave device
- main equipment
- slave
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/084—Configuration by using pre-existing information, e.g. using templates or copying from other elements
- H04L41/0846—Configuration by using pre-existing information, e.g. using templates or copying from other elements based on copy from other elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/24—Multipath
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/70—Virtual switches
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Stored Programmes (AREA)
Abstract
The application, which provides a kind of device updating method and device, this method, may include:When the member device is main equipment, is found in local all forwarding-table items and be forbidden to use and delete with associated first forwarding-table item of slave device to be upgraded, setting first forwarding-table item;It receives the slave device and completes the synchronization request sent after upgrading, eliminate the setting that first forwarding-table item is forbidden to use and deletes, and other all forwarding-table items of the first forwarding-table item for eliminating the setting and local record are synchronized to the slave device;By all forwarding-table item successful synchronizations of local record to after the slave device, this equipment is switched to slave device from main equipment, and performs upgrading.The method provided using the application, while the upgrading duration of the device upgrade in not increasing IRF, reduces the time of cutout.
Description
Technical field
This application involves computer communication field more particularly to a kind of device updating methods and device.
Background technology
The core concept of IRF (Intelligent Resilient Framework, intelligent elastic framework) is to set more
For by stacking link connection together, progress is necessary with postponing, and is virtualized into a virtual unit.Use this virtualization
Technology can gather the hardware resource and software processing capability of multiple devices, realize collaborative work, the unified management of multiple devices
It is safeguarded with uninterrupted.
In IRF, equal cost multipath load balancing usually is formed to the master and slave equipment in IRF.Upgrade the phase in slave device
Between, forward-path is switched on main equipment.From when slave device upgrades completion, slave device needs to wait for setting duration.At this
In setting duration from when slave device upgrading is completed, main equipment needs to learn the interface pair of the slave device after the completion of slave device upgrades
The new routing answered, and generate the forwarding-table item of new routing that the study is arrived.Main equipment can be by all forwardings on main equipment
List item issues slave device.After preset time period, master and slave equipment performs master-slave swap.After handover, former slave device is used to instruct
Message forwards, and former main equipment is upgraded.
However, above-mentioned setting duration is usually artificial setting, when the setting of above-mentioned setting duration it is too short when so that main equipment
Do not learn also to all new routings, and whole new routing generation forwarding-table items be not synchronized to slave device, just into
The role switching of master and slave equipment is gone, so that the former slave device after switching does not receive whole slave device interfaces pair
The forwarding-table item answered, while the former main equipment after switching is upgrading again, causes partial discharge path obstructed, causes to stop.And work as
When above-mentioned setting duration sets long, and entire update time can be caused elongated.
Invention content
In view of this, the application provides a kind of device updating method and device, to realize the equipment in IRF is not increased
While the upgrading duration of upgrading, the time of cutout is reduced.
Specifically, the application is achieved by the following technical solution:
According to the application's in a first aspect, providing a kind of device updating method, the method is applied to the intelligence elasticity
The member device of framework IRF, the method includes:
When the member device is main equipment, finds in local all forwarding-table items and be associated with slave device to be upgraded
The first forwarding-table item, first forwarding-table item is set to be forbidden to use and delete;
Receive the slave device and complete the synchronization request sent after upgrading, eliminate first forwarding-table item be forbidden to use and
The setting of deletion, and other all forwarding-table items of the first forwarding-table item for eliminating the setting and local record are synchronized
To the slave device;
After all forwarding-table item successful synchronizations that will be locally recorded are to the slave device, this equipment is switched to from main equipment
Slave device, and perform upgrading.
Optionally, it is described to be found and associated first forwarding table of slave device to be upgraded in local all forwarding-table items
, including:
According to preset device identification and interface and the correspondence of next-hop, the device identification pair of the slave device is determined
The interface answered, next-hop;
It is searched in local all forwarding-table items as keyword using determining interface, next-hop and includes the keyword
The forwarding-table item found is determined as first forwarding-table item by forwarding-table item.
Optionally, after the completion of this device upgrade, this method further comprises:
Main equipment after master-slave swap sends synchronization request;
Receive the forwarding-table item of the synchronization of the main equipment after the master-slave swap;Wherein, the forwarding-table item of reception includes and this
Associated second forwarding-table item of equipment.
Optionally, the second forwarding-table item of reception is marked equipped with aging;
This method further comprises:
When study is local with the presence or absence of in the second forwarding-table item of the matched routings to during routing, checking;
If not, in the forwarding-table item for locally increasing the matched routings newly;
If so, delete the aging label of second forwarding-table item.
Optionally, the method further includes:
Whether second forwarding-table item of the detection equipped with aging label is more than preset duration in the duration of local record;If
It is to delete the second forwarding-table item for being equipped with aging label.
According to the second aspect of the application, a kind of equipment upgrade device is provided, described device is applied to the intelligence elasticity
The member device of framework IRF, described device include:
Setting unit, for when the member device is main equipment, finding and waiting to rise in local all forwarding-table items
Associated first forwarding-table item of slave device of grade sets first forwarding-table item to be forbidden to use and delete;
Synchronization unit, the synchronization request sent after upgrading for the slave device to be received to complete eliminate first forwarding
The setting that list item is forbidden to use and deletes, and other institutes of the first forwarding-table item and local record of the setting will be eliminated
There is forwarding-table item to be synchronized to the slave device;
Switch upgrade unit, after in all forwarding-table item successful synchronizations that will be locally recorded to the slave device, this
Equipment is switched to slave device from main equipment, and performs upgrading.
Optionally, the setting unit is further used for according to the corresponding of preset device identification and interface and next-hop
Relationship determines the corresponding interface of device identification, the next-hop of the slave device;Existed using determining interface, next-hop as keyword
The forwarding-table item for including the keyword is searched in local all forwarding-table items, the forwarding-table item found is determined as described
First forwarding-table item.
Optionally, described device further comprises:
Acquiring unit sends synchronization request for the main equipment after master-slave swap;And after receiving the master-slave swap
The forwarding-table item that main equipment synchronizes;Wherein, the forwarding-table item of reception includes and associated second forwarding-table item of this equipment.
Optionally, the second forwarding-table item of reception is marked equipped with aging;
Described device further comprises:
Updating unit, for when study is to during routing, inspection to be local with the presence or absence of in the second forwarding of the matched routings
List item;If not, in the forwarding-table item for locally increasing the matched routings newly;If so, delete the old of second forwarding-table item
Change label.
Optionally, described device further comprises:Unit is deleted, for detecting the second forwarding-table item for being equipped with aging label
Whether it is more than preset duration in the duration of local record;If so, delete the second forwarding-table item for being equipped with aging label.
In this application, main equipment can determine that associated first forwarding-table item of slave device to be upgraded.In slave device
After the completion of upgrading, main equipment can be synchronized to slave device by locally recording comprising all forwarding-table items including the first forwarding-table item.
After synchronously completing, master and slave equipment can perform master and slave role switching.After handover, former main equipment performs upgrading, former slave device
Message forwarding is carried out based on above-mentioned first forwarding-table item.
On the one hand, since former slave device is after main equipment is switched to, it is the slave device interface to have whole outgoing interfaces
The first forwarding-table item so that all flows for flowing through slave device can be forwarded, so as to reduce cutout.The opposing party
Face is significantly shorter than above-mentioned setting duration since all forwarding-table items are synchronized to the former slave device required time by former main equipment
(former main equipment study routing, and according to routing generation forwarding-table item learn, by forwarding-table item be handed down to slave device when
It is long), therefore the update time of equipment in IRF can be greatly shortened.
Therefore, it can realize that slave device is completed in upgrading using the method that the application provides, master and slave equipment performs master and slave angle
After color switches, former main equipment performs upgrading and former slave device instructs seamlessly transitting for message forwarding.
Description of the drawings
Fig. 1 is the exemplary plot of IRF shown in one exemplary embodiment of the application a kind of;
Fig. 2 is a kind of flow chart of device updating method shown in one exemplary embodiment of the application;
Fig. 3 is that main equipment is switched to the upgrade method after slave device in IRF shown in one exemplary embodiment of the application
Flow chart;
Fig. 4 is a kind of hardware configuration of equipment upgrade device place member device shown in one exemplary embodiment of the application
Figure;
Fig. 5 is a kind of block diagram of equipment upgrade device shown in one exemplary embodiment of the application.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, example is illustrated in the accompanying drawings.Following description is related to
During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only merely for the purpose of description specific embodiment in term used in this application, and is not intended to be limiting the application.
It is also intended in the application and " one kind " of singulative used in the attached claims, " described " and "the" including majority
Form, unless context clearly shows that other meanings.It is also understood that term "and/or" used herein refers to and wraps
Containing one or more associated list items purposes, any or all may be combined.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, not departing from
In the case of the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determining ".
Every member device in IRF all can be described as member device, and member device can be divided into two kinds of angles according to function difference
Color, respectively main equipment and slave device.Main equipment is responsible for entire IRF.Slave device can be transported as the alternate device of main equipment
Row.When master-failure, IRF systems can take over former main equipment work from one new main equipment of election from the device automatically.
Usually equal cost multipath load balancing can be formed in the master and slave equipment of IRF.In the IRF, main equipment can be based on
The advertising of route that neighbor device is sent, study routing, and forwarding table is generated, and the forwarding table is issued based on the routing learnt
To slave device.
However, in slave device escalation process, slave device can delete forwarding-table item all in this equipment.And from
During device upgrade, and since slave device is upgrading, main equipment will not learn to the corresponding routing of slave device interface and
Outgoing interface on main equipment will be deleted for the forwarding-table item and route table items of the slave device interface.
From when slave device upgrades completion, slave device needs to wait for setting duration.
In setting duration from when the slave device upgrades completion, the interface that main equipment can newly learn the slave device is corresponding
Routing, and generate the forwarding-table item of the corresponding routing of slave device interface (outgoing interface of the forwarding-table item is connect for the slave device
Mouthful).Main equipment including the forwarding-table item that outgoing interface is the slave device interface, can issue all forwarding-table items of local record
To slave device so that slave device can utilize the outgoing interface message to be instructed to forward for the forwarding-table item of the slave device interface.
After setting duration from when slave device upgrades completion, main equipment and slave device complete master and slave role switching.It is cutting
After changing, the main equipment that former slave device becomes in current IRF participates in message forwarding, and former main equipment becomes the slave device in current IRF
Afterwards, upgrading is performed.
However, the setting duration is usually by manually being set, when the setting duration set it is too short so that main equipment is also not
Learn to whole corresponding routings of slave device interface, main equipment is not the slave device interface the outgoing interface of the whole
Forwarding-table item is handed down to slave device, causes to only exist the forwarding-table item of part path in slave device.When master-slave equipment performed master,
After role switching, for message to be instructed to forward, former main equipment is used to upgrade former slave device.And at this point, only being deposited in former slave device
In the forwarding-table item of part path, cause partial discharge path obstructed, cause to stop.And when setting duration setting is long,
Entire update time can be caused elongated again.
For example, as shown in Figure 1, Fig. 1 is the exemplary plot of IRF shown in one exemplary embodiment of the application a kind of;
Assuming that the three-tier switch 1 and 2 in Fig. 1 is formed into an IRF virtual unit.Three-tier switch 1 be main equipment, three
Layer switch 2 is slave device.Equal cost multipath load balancing can be formed on three-tier switch 1 and three-tier switch 2.With downlink
For flow, path 1 as shown in Figure 1 and path 2 can be formed.
During three-tier switch 2 upgrades, three-level interchanger 1 instructs message to forward (message passage path 1 is forwarded),
The forwarding-table item and route table items of the interface on 2 grade three-tier switch 2 of interface 4 and interface recorded on three-tier switch 1 can
It is deleted, and since three-tier switch 2 is upgrading, three-tier switch 1 learns less than 2 grade three-tier switch 2 of interface 4 and interface
On the corresponding routing of interface.
From when three-tier switch 2 upgrades completion, three-tier switch 2 needs to wait for setting duration.In the three-tier switch 2
In setting duration from when upgrading is completed, since three-tier switch 2 is completed to upgrade, so three-tier switch 1 may be learned out and connect
Routing of the mouth for the interface on 2 grade three-tier switch 2 of interface 4 and interface, and generate on 2 grade three-tier switch 2 of interface 4 and interface
Interface forwarding-table item.All forwarding-table items of local record can be 4 He of interface including outgoing interface by three-tier switch 1
The forwarding-table item of interface on 2 grade three-tier switch 2 of interface, is handed down to three-tier switch 2, so that three-tier switch 2 can
Message is instructed to forward using the forwarding-table item that this is issued.
After setting duration from when the three-tier switch 2 upgrades completion, three-tier switch 1 is switched to slave device and performs
Upgrading, three-tier switch 2 are switched to main equipment.
However, the setting duration is usually by manually being set, when the setting duration set it is too short so that three-tier switch
1 does not learn also to whole corresponding new routings of 2 interface of three-tier switch (such as 2 interface of interface 4 and interface), three layers of friendship
It changes planes and 1 the forwarding-table item of interface of the outgoing interface of the whole for the three-tier switch 2 is not handed down to slave device, cause three layers
The forwarding-table item of part path is only existed on interchanger 2.When three-tier switch 1 is switched to slave device, three-tier switch 2 is switched to
After main equipment, for message to be instructed to forward, three-tier switch 1 is used to upgrade three-tier switch 2.And at this point, three-tier switch 2
There are the forwarding-table items of part path, cause partial discharge path obstructed, cause to stop.And when the preset time period is long,
Entire update time can be caused elongated again.
In view of this, in this application, main equipment can determine that associated first forwarding-table item of slave device to be upgraded.
After the completion of slave device upgrading, main equipment can be synchronized to locally recording comprising all forwarding-table items including the first forwarding-table item
Slave device.After synchronously completing, master and slave equipment can perform master and slave role switching.After handover, former main equipment performs upgrading, former
Slave device is based on above-mentioned first forwarding-table item and carries out message forwarding.
On the one hand, since former slave device is after main equipment is switched to, it is the slave device interface to have whole outgoing interfaces
The first forwarding-table item so that all flows for flowing through the original slave device can be forwarded, so as to reduce cutout.It is another
Aspect is significantly shorter than above-mentioned setting duration since all forwarding-table items are synchronized to the former slave device required time by former main equipment
(former main equipment study routing, and according to routing generation forwarding-table item learn, by forwarding-table item be handed down to slave device when
It is long), therefore the update time of equipment in IRF can be greatly shortened.
Therefore, it can realize that slave device is completed in upgrading using the method that the application provides, master and slave equipment performs master and slave angle
After color switches, former main equipment performs upgrading and former slave device instructs seamlessly transitting for message forwarding.
Referring to Fig. 2, Fig. 2 is a kind of flow chart of device updating method shown in one exemplary embodiment of the application;The party
Method may include following steps.
Step 201:Slave device sends a notification message to main equipment, and it is to be upgraded that the notification message, which is used to indicate this equipment,
Slave device.
Step 202:Main equipment finds first forwarding associated with slave device to be upgraded in local all forwarding-table items
List item sets first forwarding-table item to be forbidden to use and delete.
In the embodiment of the present application, after slave device receives upgrade command, slave device can start software package and perform upgrading.
Meanwhile the slave device can send a notification message to main equipment, and the facility information of the slave device is carried in the notification message, such as from setting
Standby IP address, device identification etc..Main equipment is after the notification message is received, it may be determined that sends the slave device of the notification message
For slave device to be upgraded.
Main equipment can be found and associated first forwarding-table item of the slave device to be upgraded in local all forwarding-table items.
In an optional implementation manner, associated first forwarding-table item of slave device can be understood as outgoing interface to be somebody's turn to do
The forwarding-table item of interface in slave device.
Record has the device identification of the member device in IRF and interface and the correspondence of next-hop on main equipment.
Main equipment upon receiving the notification message, can obtain slave device mark from the notification message.Then above-mentioned
In correspondence, search and identify matched interface and next-hop with the slave device.Then, what main equipment can be found with this connects
Mouth and next-hop in local all forwarding-table items, search the forwarding-table item for including the keyword, this are looked into as keyword
The forwarding-table item found is determined as the first forwarding-table item.
Main equipment can set first forwarding-table item to be forbidden to use and delete after the first forwarding-table item is found.
In an optional implementation manner, main equipment can be first forwarding table after the first forwarding-table item is determined
The first label of item addition, the forwarding-table item added with the first label are forbidden for message forwarding and forbid being deleted.
It should be noted that it is that flow is forwarded to just by main equipment in order to prevent that the first forwarding-table item, which is not used in message forwarding,
Flow is caused to be discarded in the slave device of upgrading, cause to stop;First forwarding-table item forbid be deleted be in order to enable
After slave device upgrading, the corresponding all forwarding-table items of interface of the slave device can be got from the main equipment so that after upgrading
Slave device will not cause to stop when message is instructed to forward.First forwarding-table item is during slave device upgrades, even if routing variable
It changes, also keeps not deleting.
Step 203:Slave device sends synchronization request after the completion of upgrading, to main equipment.
Step 204:Main equipment receives the synchronization request that the slave device upgrading is sent after the completion, eliminates above-mentioned first forwarding
The setting that list item is forbidden to use and deletes, and other institutes of the first forwarding-table item and local record of the setting will be eliminated
There is forwarding-table item to be synchronized to the slave device.
Step 205:Main equipment is after all forwarding-table item successful synchronizations that will be locally recorded are to the slave device, by this equipment
Slave device is switched to, and perform upgrading from main equipment.
In the embodiment of the present application, after the completion of slave device upgrading, slave device can send synchronization request to main equipment.
After the synchronization request is received, can eliminate that above-mentioned first forwarding-table item is forbidden to use and deletes sets main equipment
It puts.
In an optional implementation manner, after main equipment receives the synchronization request of slave device transmission, main equipment can
The first label on first forwarding-table item is revised as the second label, the first forwarding-table item added with the second label can be used in
Message forwarding is participated in, and can be deleted.
It should be noted that it is to allow from setting that the first forwarding-table item added with the second label, which can be used for message forwarding,
After standby the first forwarding-table item with the second label for receiving main equipment synchronization, can directly it be instructed using first forwarding-table item
Message forwards.The first forwarding-table item added with the second label can be deleted, and be in order to which slave device is led to from the routing of neighbor device
After accusing learning to new routing, forwarding-table item may be updated.Wherein, which is also referred to as aging label.
Main equipment can will will eliminate other all forwarding tables of the first forwarding-table item and local record of the setting
Item is synchronized to the slave device, and other all forwarding-table items of first forwarding-table item and local record are being synchronized to this
After slave device, synchronous end message is sent to slave device.
Slave device can send the response for the synchronization end message after the synchronization end message is received to main equipment
Message.This equipment can be switched to slave device by main equipment after the response message is received from main equipment, while after notifying upgrading
Slave device be switched to main equipment.
When there is multiple slave devices to upgrade, the same the end of the step that main equipment can be sent in the slave device for receiving all upgradings disappears
After the response message of breath, this equipment is switched to slave device, and perform upgrading after handover.Meanwhile main equipment can be according to from setting
Standby priority selects the slave device after a upgrading, and the slave device of the selection is notified to upgrade to main equipment or specified one
Slave device after a upgrading, and the slave device specified is notified to be switched to main equipment, it does not do here specifically defined.
Step 206:Former slave device to during routing, the update to local forwarding-table item, deletion is performed and increases behaviour newly in study
Make.
Here it is clear in order to describe, using the former slave device as the main equipment in current IRF after execution master-slave swap, note
For former slave device.
In the embodiment of the present application, which marks equipped with aging, for example, the second mark described above
Note.Here it is illustrated with second labeled as aging label.
For former slave device after the advertising of route for receiving neighbor device transmission, former slave device can learn road according to advertising of route
By.
Former slave device can check local the second forwarding-table item with the presence or absence of with the matched routings, if local be not present
With the second forwarding-table item of the matched routings, then the second forwarding table with the matched routings can be increased newly in local forwarding-table item
.If local the second forwarding-table item existed with the matched routings, the second label on second forwarding-table item can be deleted
(aging label).
In the embodiment of the present application, former slave device can detect the second forwarding-table item equipped with the second label in local record
Whether duration is more than preset duration;If so, delete the second forwarding-table item for being equipped with the second label.
When realizing, from former slave device can be when the original slave device upgrades completion, opening timing device, after preset duration,
The forwarding-table item for carrying the second label of local record is deleted.
The operation that main equipment is switched to after upgrading and upgrading performed after slave device is described below in detail.
Referring to Fig. 3, Fig. 3 is that main equipment is switched to the liter after slave device in IRF shown in one exemplary embodiment of the application
The flow chart of grade method.The flow mainly may include step as described below.
Here for a clear description, main equipment of the role switching for slave device is denoted as former main equipment, is by role switching
The slave device upgraded of main equipment is denoted as former slave device.
Step 301:Former main equipment sends a notification message to former slave device;
Step 302:Former slave device can be found and the original after the notification message is received in local all forwarding-table items
Associated second forwarding-table item of main equipment sets second forwarding-table item to be forbidden to use and delete.
In the embodiment of the present application, when former main equipment, which performs, to be upgraded, former main equipment can start software package and perform upgrading.Together
When, which can send a notification message to former slave device, the facility information of the original main equipment be carried in the notification message, such as
The IP address of former main equipment, device identification etc..Wherein, notification message is similar with notification message function described above, only
For the convenience of description, slave device is sent to main equipment
After the notification message is received, former slave device can be found and the original former slave device in local all forwarding-table items
Associated second forwarding-table item of main equipment.
In an optional implementation manner, the second forwarding-table item associated with former main equipment can be understood as outgoing interface
Forwarding-table item for the interface on the original main equipment.
Record has the device identification of the member device in IRF and interface and the correspondence of next-hop in former slave device.
Former slave device upon receiving the notification message, can obtain the original master identification from the notification message.Then exist
In above-mentioned correspondence, search and the matched interface of original master identification and next-hop.Then, former slave device can be looked into this
The interface and next-hop found in local all forwarding-table items, searches the forwarding table for including the keyword as keyword
, the forwarding-table item that this finds is determined as the second forwarding-table item.
Former slave device can set second forwarding-table item to be forbidden to use and delete after the second forwarding-table item is found.
In an optional implementation manner, former slave device can be second forwarding after the second forwarding-table item is determined
The first label of list item addition, the forwarding-table item added with the first label are forbidden forwarding for message and forbidding being deleted.
Step 303:Former main equipment sends synchronization request after the completion of upgrading, to former slave device;
Step 304:Former slave device eliminates above-mentioned the after the synchronization request that slave device upgrading is sent after the completion is received
The setting that two forwarding-table items are forbidden to use and delete, and second forwarding-table item and local record that the setting will be eliminated
Other all forwarding-table items are synchronized to the former main equipment.
In the embodiment of the present application, after the completion of the upgrading of former main equipment, former main equipment can send synchronous ask to former slave device
It asks.
After the synchronization request is received, can eliminate that above-mentioned second forwarding-table item is forbidden to use and deletes sets former slave device
It puts.
In an optional implementation manner, after former slave device receives the synchronization request that former main equipment is sent, it is former from
First on second forwarding-table item can be marked and be revised as the second label by equipment, the second forwarding-table item energy added with the second label
It is enough in and participates in message forwarding, and can be deleted.
Former slave device can will will eliminate other all forwardings of the second forwarding-table item and local record of the setting
List item is synchronized to the former main equipment, and is synchronized by all forwarding-table items of other of second forwarding-table item and local record
After the original main equipment, synchronous end message is sent to former main equipment.
Former main equipment can be sent to former slave device for the synchronization end message after the synchronization end message is received
Response message.
Former slave device, can be according to the strategy of developer's configuration, by the role of this equipment after the response message is received
Slave device is switched to, while the former main equipment after upgrading is notified to be switched to main equipment.Certainly, former slave device and former main equipment
It can be without master and slave role switching.
Step 305:Former main equipment can be based on the routing that the current master in IRF learns to locally recording forwarding-table item
It is updated, increases and delete operation.
The routing that former main equipment can be learnt based on the current master in IRF, detection is local to be whether there is and the routing
Matched second forwarding-table item.If it does, former main equipment can delete second on the second forwarding-table item with the matched routings
Mark.If it does not, former main equipment can be in the locally newly-increased forwarding-table item with the matched routings.
In addition, former main equipment can also be from the original main equipment upgrades completion, opening timing device is former after preset duration
Main equipment can delete the second forwarding-table item for being still marked with the second label.
So far, the description that member device upgrades in above-mentioned IRF is completed.
In this application, main equipment can determine that associated first forwarding-table item of slave device to be upgraded.In slave device
After the completion of upgrading, main equipment can be synchronized to slave device by locally recording comprising all forwarding-table items including the first forwarding-table item.
After synchronously completing, master and slave equipment can perform master and slave role switching.After handover, former main equipment performs upgrading, former slave device
Message forwarding is carried out based on above-mentioned first forwarding-table item.
On the one hand, since former slave device is after main equipment is switched to, it is the slave device interface to have whole outgoing interfaces
The first forwarding-table item so that all flows for flowing through slave device can be forwarded, so as to reduce cutout.The opposing party
Face is significantly shorter than above-mentioned setting duration since all forwarding-table items are synchronized to the former slave device required time by former main equipment
(former main equipment study routing, and according to routing generation forwarding-table item learn, by forwarding-table item be handed down to slave device when
It is long), therefore the update time of equipment in IRF can be greatly shortened.
Therefore, it can realize that slave device is completed in upgrading using the method that the application provides, master and slave equipment performs master and slave angle
After color switches, former main equipment performs upgrading and former slave device instructs seamlessly transitting for message forwarding.
With reference to Fig. 1, it is described in detail in the method that specific example upgrades above equipment.
Assuming that the three-tier switch 1 and 2 in Fig. 1 is formed into an IRF virtual unit.Three-tier switch 1 be main equipment, three
Layer switch 2 is slave device.Equal cost multipath load balancing can be formed on three-tier switch 1 and three-tier switch 2.With downlink
For flow, path 1 as shown in Figure 1 and path 2 can be formed.
After three-tier switch 2 receives upgrade command, three-tier switch 2 can start software package and perform upgrading.In addition, three
Layer switch 2 can also send a notification message to three-tier switch 1.
Three-tier switch 1 can obtain what is carried in notification message after the notification message for receiving the transmission of three-tier switch 2
The device identification of three-tier switch 2.The facility information of three-tier switch 2 can report the IP address of three-tier switch 2, device number
Deng.
In general, record has the device identification of the member device in IRF and interface and pair of next-hop in three-tier switch 1
It should be related to.
After the notification message for receiving the transmission of three-tier switch 2 in three-tier switch 1, three-tier switch 1 can be above-mentioned right
Interface matched with the device identification of three-tier switch 2 and next-hop are found in should being related to.Then, three-tier switch 1 can
Using the interface found and next-hop as keyword, in local all forwarding-table items, to search comprising the keyword
Forwarding-table item, the forwarding-table item that this finds is determined as the first forwarding-table item.Three-tier switch 1 can be find this
The first label of one forwarding-table item addition, the forwarding-table item added with the first label are forbidden forwarding for message and forbidding being deleted
It removes.
After three-tier switch 2 completes upgrading, three-tier switch 2 can send synchronization request message to three-tier switch 1.Three
Layer switch 1, can be by the first mark of above-mentioned first forwarding-table item after the synchronization request message for receiving the transmission of three-tier switch 2
Note is revised as the second label.The first forwarding-table item added with the second label forwards, and can be deleted available for message.
After the completion of modification, local record can be included the institute including the first forwarding-table item added with the second label by three-tier switch 1
There is forwarding-table item to be sent to three-tier switch 2, and after all forwarding-table items have been synchronized, synchronous knot is sent to three-tier switch 2
Beam message.
Three-tier switch 2 can receive three-tier switch 1 and synchronize all forwarding-table items.Three-tier switch 2 is receiving three
After the synchronization end message that layer switch 1 is sent, the response that can be returned to three-tier switch 1 for the synchronization end message disappears
Breath.Three-tier switch 1 can cut the role of this equipment from main equipment after the response message for receiving the transmission of three-tier switch 2
Slave device is changed to, and upgrading is performed after role switching is complete, while indicates that the slave device that upgrading is completed is switched to main equipment.
When there is multiple slave devices to upgrade, three-tier switch 1 can receive the same of all slave device upgraded transmissions
After the response message of the end of the step message, this equipment is switched to slave device, and perform upgrading after handover from main equipment.Meanwhile
Three-tier switch 1 can select the slave device after a upgrading to be switched to main equipment or specified one according to the priority of slave device
Slave device after a upgrading is switched to main equipment, does not do here specifically defined.
It is assumed that here, role transforming is main equipment by the instruction three-tier switch 2 of three-tier switch 1.
For three-tier switch 2 after the advertising of route for receiving neighbor device transmission, three-tier switch 2 can be according to advertising of route
Study routing.Three-tier switch 2 can check local with the presence or absence of the second forwarding-table item of matched routings arrived in the study.
If it is present it is deleted with the second label on the second forwarding-table item of the matched routings;
If it does not exist, then increase the forwarding-table item with the matched routings.
In addition, three-tier switch 2 can also be from the slave device upgrades completion, and opening timing device, after preset duration, three
Layer switch 2 can delete the first forwarding-table item for being still marked with the second label.
Process after upgrading and upgrading is performed for three-tier switch 1, it can be as described below.
In the embodiment of the present application, three-tier switch 1 can start software package and perform upgrading.Meanwhile the three-tier switch 1 can
It sends a notification message to three-tier switch 2, the device identification of the three-tier switch 1 is carried in the notification message.
In general, record has the device identification of the member device in IRF and interface and pair of next-hop in three-tier switch 2
It should be related to.
After the notification message for receiving the transmission of three-tier switch 1 in three-tier switch 2, three-tier switch 2 can be above-mentioned right
Interface matched with the device identification of three-tier switch 1 and next-hop are found in should being related to.Then, three-tier switch 2 can
Using the interface found and next-hop as keyword, in local all forwarding-table items, to search comprising the keyword
Forwarding-table item, the forwarding-table item that this finds is determined as the second forwarding-table item.Three-tier switch 2 can be the second forwarding-table item
The first label of addition.The second forwarding-table item added with the first label is forbidden for message forwarding and deletion disabled.
After three-tier switch 1 completes upgrading, three-tier switch 1 can send synchronization request message to three-tier switch 2.Three
Layer switch 2, can be by the first mark of above-mentioned second forwarding-table item after the synchronization request message for receiving the transmission of three-tier switch 1
Note is revised as the second label.The second forwarding-table item added with the second label forwards, and can be deleted available for message.
After the completion of modification, three-tier switch 2 being added with including second forwarding-table item of the second label comprising this by local record
All forwarding-table items are sent to three-tier switch 1, and after all forwarding-table items have been synchronized, and send and synchronize to three-tier switch 1
End message.
Three-tier switch 1 can receive all forwarding-table items of the synchronization of three-tier switch 2.Three-tier switch 1 is receiving three
After the synchronization end message that layer switch 2 is sent, the response that can be returned to three-tier switch 2 for the synchronization end message disappears
Breath.Three-tier switch 2, can be according to the strategy of developer's configuration after the response message for receiving the transmission of three-tier switch 1, will
The role of this equipment is switched to slave device from main equipment, while the former main equipment after upgrading is notified to be switched to main equipment.Certainly, it is former
Slave device and former main equipment also can be without role switchings.
In addition, the routing that three-tier switch 1 can be learnt based on the current master in IRF, detection is local to be whether there is
With the second forwarding-table item of the matched routings.If it does, three-tier switch 1 can delete the second forwarding table with the matched routings
Second identifier on item.If it does not, three-tier switch 1 can be in the locally newly-increased forwarding-table item with the matched routings.
In addition, three-tier switch 1 can also be from this device upgrade completion, and opening timing device, after preset duration, three layers
Interchanger 1 can delete the second forwarding-table item for being still marked with the second label.
Corresponding with the embodiment of aforementioned device upgrade method, present invention also provides the embodiments of equipment upgrade device.
The embodiment of the application equipment upgrade device can be applied on member device.Device embodiment can pass through software
It realizes, can also be realized by way of hardware or software and hardware combining.For implemented in software, as on a logical meaning
Device, be to be read computer program instructions corresponding in nonvolatile memory by the processor of member device where it
Into memory, operation is formed.For hardware view, as shown in figure 4, the member device where the application equipment upgrade device
A kind of hardware structure diagram, other than processor shown in Fig. 4, memory, network outgoing interface and nonvolatile memory,
Member device in embodiment where device, can also be right including other hardware generally according to the actual functional capability of the member device
This is repeated no more.
Fig. 5 is please referred to, Fig. 5 is a kind of block diagram of equipment upgrade device shown in one exemplary embodiment of the application.This sets
Standby update device may include:
Setting unit 501, for when the member device is main equipment, finding and treating in local all forwarding-table items
Associated first forwarding-table item of slave device of upgrading sets first forwarding-table item to be forbidden to use and delete;
Synchronization unit 502, the synchronization request sent after upgrading for the slave device to be received to complete eliminate described first turn
The setting that forwarding list item is forbidden to use and deletes, and by eliminate the setting the first forwarding-table item and local record other
All forwarding-table items are synchronized to the slave device;
Switch upgrade unit 503, after in all forwarding-table item successful synchronizations that will be locally recorded to the slave device,
This equipment is switched to slave device from main equipment, and performs upgrading.
Optionally, the setting unit 501 is further used for pair according to preset device identification and interface and next-hop
It should be related to, determine the corresponding interface of device identification, the next-hop of the slave device;Using determining interface, next-hop as keyword
The forwarding-table item for including the keyword is searched in local all forwarding-table items, the forwarding-table item found is determined as institute
State the first forwarding-table item.
Optionally, described device further comprises:
Acquiring unit 504 sends synchronization request for the main equipment after master-slave swap;And after receiving the master-slave swap
Main equipment synchronize forwarding-table item;Wherein, the forwarding-table item of reception includes and associated second forwarding-table item of this equipment.
Optionally, the second forwarding-table item of reception is marked equipped with aging;
Described device further comprises:
Updating unit 505, for when study is to during routing, inspection to be local with the presence or absence of in second turn of the matched routings
Forwarding list item;If not, in the forwarding-table item for locally increasing the matched routings newly;If so, delete second forwarding-table item
Aging marks.
Optionally, described device further comprises:Unit 506 is deleted, for detecting the second forwarding for being equipped with aging label
Whether list item is more than preset duration in the duration of local record;If so, delete the second forwarding-table item for being equipped with aging label.
The function of each unit and the realization process of effect specifically refer to and step are corresponded in the above method in above device
Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related part is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separating component
The unit of explanation may or may not be physically separate, and the component shown as unit can be or can also
It is not physical unit, you can be located at a place or can also be distributed in multiple network element.It can be according to reality
It needs that some or all of module therein is selected to realize the purpose of application scheme.Those of ordinary skill in the art are not paying
In the case of going out creative work, you can to understand and implement.
The foregoing is merely the preferred embodiment of the application, not limiting the application, all essences in the application
God and any modification, equivalent substitution, improvement and etc. within principle, done, should be included within the scope of the application protection.
Claims (10)
1. a kind of device updating method, which is characterized in that the method is set applied to the member of the intelligent elastic framework IRF
It is standby, the method includes:
When the member device is main equipment, found in local all forwarding-table items and slave device to be upgraded associated the
One forwarding-table item sets first forwarding-table item to be forbidden to use and delete;
It receives the slave device and completes the synchronization request sent after upgrading, eliminate first forwarding-table item and be forbidden to use and delete
Setting, and other all forwarding-table items of the first forwarding-table item for eliminating the setting and local record are synchronized to institute
State slave device;
In all forwarding-table item successful synchronizations that will be locally recorded to after the slave device, this equipment is switched to from main equipment from setting
It is standby, and perform upgrading.
2. according to the method described in claim 1, it is characterized in that, it is described found in local all forwarding-table items with it is to be upgraded
Associated first forwarding-table item of slave device, including:
According to preset device identification and interface and the correspondence of next-hop, determine that the device identification of the slave device is corresponding
Interface, next-hop;
The forwarding for including the keyword is searched in locally all forwarding-table items as keyword using determining interface, next-hop
The forwarding-table item found is determined as first forwarding-table item by list item.
3. according to the method described in claim 1, it is characterized in that, after the completion of this device upgrade, this method further comprises:
Main equipment after master-slave swap sends synchronization request;
Receive the forwarding-table item of the synchronization of the main equipment after the master-slave swap;Wherein, the forwarding-table item of reception includes and this equipment
Associated second forwarding-table item.
4. according to the method described in claim 3, it is characterized in that, the second forwarding-table item received is marked equipped with aging;
This method further comprises:
When study is to during routing, inspection is locally with the presence or absence of the second forwarding-table item with the matched routings;
If not, in the forwarding-table item for locally increasing the matched routings newly;
If so, delete the aging label of second forwarding-table item.
5. according to the method described in claim 4, it is characterized in that, the method further includes:
Whether second forwarding-table item of the detection equipped with aging label is more than preset duration in the duration of local record;
If so, delete the second forwarding-table item for being equipped with aging label.
6. a kind of equipment upgrade device, which is characterized in that described device is set applied to the member of the intelligent elastic framework IRF
Standby, described device includes:
Setting unit, for when the member device is main equipment, found in local all forwarding-table items with it is to be upgraded
Associated first forwarding-table item of slave device sets first forwarding-table item to be forbidden to use and delete;
Synchronization unit, the synchronization request sent after upgrading for the slave device to be received to complete eliminate first forwarding-table item
The setting for being forbidden to use and deleting, and by eliminate the setting the first forwarding-table item and other all turns of local record
Forwarding list item is synchronized to the slave device;
Switch upgrade unit, after in all forwarding-table item successful synchronizations that will be locally recorded to the slave device, this equipment
Slave device is switched to, and perform upgrading from main equipment.
7. device according to claim 6, which is characterized in that the setting unit is further used for setting according to preset
Standby mark and interface and the correspondence of next-hop, determine the corresponding interface of device identification, the next-hop of the slave device;With true
Fixed interface, next-hop search the forwarding-table item for include the keyword, general for keyword in local all forwarding-table items
The forwarding-table item found is determined as first forwarding-table item.
8. device according to claim 6, which is characterized in that described device further comprises:
Acquiring unit sends synchronization request for the main equipment after master-slave swap;And the master received after the master-slave swap sets
Standby synchronous forwarding-table item;Wherein, the forwarding-table item of reception includes and associated second forwarding-table item of this equipment.
9. device according to claim 8, which is characterized in that the second forwarding-table item of reception is marked equipped with aging;
Described device further comprises:
Updating unit, for when study is to during routing, inspection to be local with the presence or absence of in the second forwarding-table item of the matched routings;
If not, in the forwarding-table item for locally increasing the matched routings newly;If so, delete the aging mark of second forwarding-table item
Note.
10. device according to claim 9, which is characterized in that described device further comprises:Unit is deleted, for examining
Whether survey the second forwarding-table item for being equipped with aging label in the duration of local record is more than preset duration;It is equipped with if so, deleting
Second forwarding-table item of aging label.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710918999.1A CN108259217B (en) | 2017-09-30 | 2017-09-30 | Equipment upgrading method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710918999.1A CN108259217B (en) | 2017-09-30 | 2017-09-30 | Equipment upgrading method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108259217A true CN108259217A (en) | 2018-07-06 |
CN108259217B CN108259217B (en) | 2021-05-28 |
Family
ID=62721238
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710918999.1A Active CN108259217B (en) | 2017-09-30 | 2017-09-30 | Equipment upgrading method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108259217B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1933448A (en) * | 2006-08-17 | 2007-03-21 | 华为技术有限公司 | Business fast convergent method and network equipment |
CN101136845A (en) * | 2006-08-30 | 2008-03-05 | 中兴通讯股份有限公司 | Multi-protocol routing configuration device and method |
US20080082649A1 (en) * | 2006-09-29 | 2008-04-03 | Ciena Corporation | Methods and systems for extensible markup language control of network equipment |
CN101465859A (en) * | 2009-01-13 | 2009-06-24 | 中兴通讯股份有限公司 | Method and device for triggering main and standby interface board inverse switch |
CN101515891A (en) * | 2009-04-02 | 2009-08-26 | 杭州华三通信技术有限公司 | Method for processing border gateway protocol routing and router |
CN102185718A (en) * | 2011-05-12 | 2011-09-14 | 杭州华三通信技术有限公司 | System upgrading method and device |
CN106603401A (en) * | 2017-02-16 | 2017-04-26 | 迈普通信技术股份有限公司 | Rapid rerouting method and apparatus thereof |
-
2017
- 2017-09-30 CN CN201710918999.1A patent/CN108259217B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1933448A (en) * | 2006-08-17 | 2007-03-21 | 华为技术有限公司 | Business fast convergent method and network equipment |
CN101136845A (en) * | 2006-08-30 | 2008-03-05 | 中兴通讯股份有限公司 | Multi-protocol routing configuration device and method |
US20080082649A1 (en) * | 2006-09-29 | 2008-04-03 | Ciena Corporation | Methods and systems for extensible markup language control of network equipment |
CN101465859A (en) * | 2009-01-13 | 2009-06-24 | 中兴通讯股份有限公司 | Method and device for triggering main and standby interface board inverse switch |
CN101515891A (en) * | 2009-04-02 | 2009-08-26 | 杭州华三通信技术有限公司 | Method for processing border gateway protocol routing and router |
CN102185718A (en) * | 2011-05-12 | 2011-09-14 | 杭州华三通信技术有限公司 | System upgrading method and device |
CN106603401A (en) * | 2017-02-16 | 2017-04-26 | 迈普通信技术股份有限公司 | Rapid rerouting method and apparatus thereof |
Also Published As
Publication number | Publication date |
---|---|
CN108259217B (en) | 2021-05-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU2004306913B2 (en) | Redundant routing capabilities for a network node cluster | |
CN103782544B (en) | Method and device for notifying network operator when virtual addresses do not match on network elements configured for interchassis redundancy | |
CN104407911B (en) | Virtual machine migration method and device | |
CN109842694B (en) | Method for synchronizing MAC addresses, network equipment and computer readable storage medium | |
EP2911341A1 (en) | Method and device for dynamically switching gateway of distributed resilient network interconnect | |
CN106250228B (en) | The method and device that virtual machine entity thermophoresis network smoothly switches | |
CN105704045B (en) | The method of virtual machine location information synchronizing, gateway and system between data center's gateway | |
CN105162704A (en) | Multicast replication method and device in Overlay network | |
CN106330786A (en) | MAC address synchronization method, apparatus and system | |
CN105340226B (en) | The method and device thereof of the main preparation system switching of dynamic routing equipment | |
CN103401782B (en) | A kind of MAC Address synchronous method and equipment | |
CN108243102B (en) | Method for realizing fast rerouting and PE equipment | |
CN103516612B (en) | Distribution router generates method and the distribution router of route table items | |
CN103918225A (en) | Node device in ring network and path switching control method for same | |
CN106605217B (en) | For the method and system for being moved to another website from a website will to be applied | |
CN109167700B (en) | Detection method and device for Segment Routing (SR) tunnel | |
CN105208060A (en) | Service data synchronization method, service data synchronization device and service data synchronization system | |
CN103532851B (en) | Data flow processing method in distributed aggregated link network and device | |
CN110430116A (en) | Data forwarding method and device, edge device and readable storage medium storing program for executing | |
CN106341249A (en) | Redundant port switching method and device | |
CN104683486A (en) | Method and device for processing synchronous messages in distributed system and distributed system | |
CN108540386A (en) | One kind preventing Business Stream interrupt method and device | |
CN109088830B (en) | Port state synchronization method and device | |
CN106789623B (en) | Link communication support method and system based on ospf protocol | |
CN113489640A (en) | Message forwarding method, device and gateway system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |