[go: up one dir, main page]

CN105591802B - Switching equipment upgrade method and device - Google Patents

Switching equipment upgrade method and device Download PDF

Info

Publication number
CN105591802B
CN105591802B CN201510523459.4A CN201510523459A CN105591802B CN 105591802 B CN105591802 B CN 105591802B CN 201510523459 A CN201510523459 A CN 201510523459A CN 105591802 B CN105591802 B CN 105591802B
Authority
CN
China
Prior art keywords
switching equipment
upgraded
path
version information
firmware
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
CN201510523459.4A
Other languages
Chinese (zh)
Other versions
CN105591802A (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.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201510523459.4A priority Critical patent/CN105591802B/en
Publication of CN105591802A publication Critical patent/CN105591802A/en
Application granted granted Critical
Publication of CN105591802B publication Critical patent/CN105591802B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of switching equipment upgrade method and device, wherein this method comprises: determining the version information capable of updating firmware of switching equipment to be upgraded;It will guide via the message of the switching equipment forwarding to be upgraded to other switching equipment;It is corresponding capable of updating firmware to the switching equipment to be upgraded transmission according to the version information capable of updating firmware, so that the switching equipment to be upgraded capable of updating firmware is upgraded according to described.The invention avoids switching equipment to be upgraded carry out escalation process in due to equipment is restarted caused by message packet loss situations such as, effectively provide system security performance.

Description

Switching equipment upgrade method and device
Technical field
The present invention relates to field of communication technology more particularly to a kind of switching equipment upgrade method and devices.
Background technique
SDN (Software Defined Network, software defined network) is a kind of novel network architecture, can be with The control plane of the network equipment is separated with data surface, control plane function, Yi Jiyou are realized by controller (Controller) Several switching equipment (Switch) realize data surface function, can connect several hosts under each switching equipment.Controller and friendship Open flow agreement is run by control channel between exchange device, issues Open flow flow table from controller to switching equipment , instruct switching equipment to the data forwarding of data plane between each host.
In the prior art, when upgrading in SDN network to the firmware version of switching equipment, user is needed to be risen manually Grade, also, also need to restart switching equipment during the firmware version upgrade to switching equipment, however, in switching equipment weight Qi Shi since controller can not perceive the rebooting status of switching equipment moment, and then can not also provide corresponding forwarding plan in time Slightly, so, then it will lead to the message for being sent to the switching equipment restarted by firmware version upgrade by packet loss.
Summary of the invention
In view of the drawbacks of the prior art, the present invention provides a kind of switching equipment upgrade method and devices.
The present invention provides a kind of switching equipment upgrade method, applied to the controller in software defined network SDN network, institute Stating further includes switching equipment in SDN network, wherein this method comprises:
Determine the version information capable of updating firmware of switching equipment to be upgraded;
It will guide via the message of the switching equipment forwarding to be upgraded to other switching equipment;
It is corresponding capable of updating firmware to the switching equipment transmission to be upgraded according to the version information capable of updating firmware, with Upgrade the switching equipment to be upgraded capable of updating firmware according to described.
The present invention also provides a kind of switching equipment update devices, applied to the controller in SDN network, the SDN network In further include switching equipment, which includes:
Determination unit, for determining the version information capable of updating firmware of switching equipment to be upgraded;
Guidance unit, for will guide via the message of the switching equipment forwarding to be upgraded to other switching equipment;
Transmission unit, for corresponding to the switching equipment transmission to be upgraded according to the version information capable of updating firmware It is capable of updating firmware, so that the switching equipment to be upgraded capable of updating firmware is upgraded according to described.
Switching equipment upgrade method provided by the invention and device, will be through when upgrading to switching equipment to be upgraded It is guided by the message that switching equipment to be upgraded forwards to other switching equipment in addition to switching equipment to be upgraded, according to true in advance The version information capable of updating firmware made upgrades switching equipment to be upgraded.Switching equipment to be upgraded is avoided to be upgraded In the process due to equipment is restarted caused by message packet loss situations such as, effectively provide system security performance.
Detailed description of the invention
Fig. 1 is network environment schematic diagram applied by switching equipment upgrade method in the embodiment of the present invention;
Fig. 2 is a kind of switching equipment upgrade method flow diagram in the embodiment of the present invention;
Fig. 3 is a kind of switching equipment upgrade method schematic diagram in the embodiment of the present invention;
Fig. 4 is a kind of switching equipment upgrade method schematic diagram in the embodiment of the present invention;
Fig. 5 is a kind of logical construction schematic diagram of switching equipment update device in the embodiment of the present invention;
Fig. 6 is the hardware structure schematic diagram of controller where switching equipment update device in the embodiment of the present invention.
Specific embodiment
For the purpose for making the application, technical solution and advantage are more clearly understood, referring to the drawings to application scheme It is described in further detail.
In order to solve the problems in the existing technology, the present invention provides a kind of switching equipment upgrade method and dresses It sets.
A kind of network environment applied by the embodiment of the present invention as shown in Figure 1, in SDN network, including controller 110, Switching equipment VSa120, VSb121, VSc122, VSd123, VSe124, VSf125 and the multiple main frames for accessing switching equipment VMa130 and VMa131.The hardware switching equipment that switching equipment can be physical presence is also possible to VS (Virtual Switch, virtual swap device), the host that host can be physical presence be also possible to VM (Virtual Machine, virtually Host).
Referring to FIG. 2, being the processing flow schematic diagram of switching equipment upgrade method provided by the invention, the switching equipment liter Grade method can be applied to the controller in SDN network, the switching equipment upgrade method the following steps are included:
Step 201, the version information capable of updating firmware of switching equipment to be upgraded is determined;
After switching equipment in SDN network is online, OpenFlow can be sent to the controller in SDN network and (opened Stream) connection request, controller after receiving the OpenFlow connection request, reply OpenFlow back message, with the friendship Exchange device establishes OpenFlow connection.
Later, NETCONF (Network Configuration Protocol, net that controller can be run according to it Network configuration protocol), SNMP (Simple Network Management Protocol, Simple Network Management Protocol), or Information acquiring pattern as defined in OVSDB (Open Virtual Switch Data Base, open virtual switch database), Obtain the device model and corresponding device version information for establishing the switching equipment of OpenFlow connection, and the equipment that will acquire Model and corresponding device version information preservation are into local data base.
Controller in the embodiment of the present invention can also preserve newest firmware version information list, can also not protect It periodically or by administrative staff is taken manually from distal end file as needed automatically in the case where depositing newest firmware version information list Business device obtains the newest firmware version information list.Including various firmware versions in the newest firmware version information list The information such as firmware version number, holding equipment type, the newest firmware version information are typically recorded in version APP In (Application, application program) or general configuration file.
When needing to carry out edition upgrading to the switching equipment in SDN network, controller can be first in local data base It is middle to search device model corresponding with switching equipment to be upgraded and device version information, then, saved in controller newest Firmware version list in select switching equipment to be upgraded device model support firmware version information, alternatively, from distal end The device model support of switching equipment to be upgraded is selected in the newest firmware version information list that file server obtains Firmware version information will select a firmware version information as friendship to be upgraded later in the firmware version information selected The version information capable of updating firmware of exchange device.
Under normal conditions, when choosing the version information capable of updating firmware of switching equipment to be upgraded, version levels may be selected Higher than capable of updating firmware version information of the firmware version information as switching equipment to be upgraded of the device version information.
It wherein, can be by version etc. if the firmware version information that version levels are higher than the device version information is one Grade is higher than capable of updating firmware version information of the firmware version information of the device version information as switching equipment to be upgraded.So And if the firmware version that the device model of switching equipment to be upgraded selected from newest firmware version information list is supported Information be it is multiple, one of them can be chosen from multiple firmware version informations for example and can be the highest firmware version of version levels Capable of updating firmware version information of this information as switching equipment to be upgraded.
But if the switching equipment to be upgraded is not available version levels highest or higher firmware version information is completed to rise Grade, the switching equipment to be upgraded then can using the firmware version information once upgraded successfully in the firmware version information selected as The version information capable of updating firmware of switching equipment to be upgraded.
The content of the newest firmware version information list of above-mentioned acquisition, can also pass through Web UI, Shell or Rest The modes such as API are for external or user query.
Step 202, it will guide via the message of the switching equipment forwarding to be upgraded to other switching equipment;
When upgrading in the embodiment of the present invention to switching equipment, it can be upgraded for a switching equipment, it can also To carry out batch upgrade to more switching equipment.For example, can be selected to upgrade specified switching equipment as needed by user To specified firmware version, it also can choose and batch liter carried out to more specified switching equipment according to specified firmware version Grade.
Later, update time can also be preset as needed for switching equipment to be upgraded by user, wait reach in advance When the update time of setting, switching equipment to be upgraded is upgraded.
In addition, controller has the function of the automatic update time of setting when carrying out version management, if user does not set in advance Update time is set, firmware version can also be carried out to switching equipment to be upgraded according to the automatic update time that the controller is arranged Upgrading.
Alternatively, if user does not preset update time, it can also be after selecting version information capable of updating firmware, directly The upgrading of firmware version is carried out according to follow-up process to switching equipment to be upgraded.The present invention is to this without limitation.
Since restarting for switching equipment to be upgraded can be triggered during carrying out firmware version upgrade, to avoid to be upgraded When switching equipment is restarted, controller is because of message packet loss caused by can not issuing forwarding strategy in time, so when reaching upgrading Between after (do not presetting update time, when can directly upgrade to switching equipment to be upgraded, then without waiting for reach upgrading Time), before upgrading to switching equipment to be upgraded, the embodiment of the present invention can also be to original via the switching equipment to be upgraded The path of forwarding recalculates the new forward-path after excluding the switching equipment to be upgraded, and generates corresponding update stream List item is issued to all switching equipment on new forward-path, by original via the message of the switching equipment forwarding to be upgraded It guides to the switching equipment on the new path, and then the message for being sent to switching equipment forwarding to be upgraded is avoided packet loss occur Situation.
Referring to FIG. 3, it is assumed that VSb121 be switching equipment to be upgraded, receive VMa130 in controller and be sent to VMa131 When the first message of (forwarding via VSb121), controller learns VMa130- according to the destination address and network topology of the message VMa131 via switching equipment VSb121 to be upgraded path are as follows:
VSa120-VSb121-VSc122-VSf125;
When switching equipment VSb121 to be upgraded is upgraded, then original is guided through the message of VSb121 reachable to other On the switching equipment of VSf125, it may be assumed that recalculate in the path of VSa120 arrival VSf125 and exclude switching equipment to be upgraded New forward-path after VSb121, and all switching equipment on new forward-path issue update flow entry, it will be former It guides via the message of the switching equipment forwarding to be upgraded to the switching equipment on the new forward-path.For example, again Calculated new path are as follows:
VSa120-VSd123-VSe124-VSf125;
Later, the update flow entry issued respectively to VSa120, VSd123, VSe124, VSf125, by original via The message of VSb121 forwarding is guided to new forward-path, forwards the message by the switching equipment on new forward-path.
It later, then can be according to update when VSa120 receives the message for being sent to VSb121 during the upgrading of VSb121 Received message is forwarded to VSd123 by flow entry, to avoid forwarding the packet to switching equipment VSb121 to be upgraded, but due to VSb121 restarts the case where leading to message packet loss.
Meanwhile controller can also all switching equipment on the new forward-path issue according to the new forwarding road The update flow entry that the reverse path of diameter generates, so that the host of connection VSf125 is when with the main-machine communication for connecting VSa120, It avoids for message being sent to switching equipment VSb121 to be upgraded.
Further, before controller issues and updates flow entry, in order to avoid being to gather around because of the new path recalculated Stifled path, the case where still resulting in message packet loss, can also carry out traffic statistics to the new path of calculating, to determine new turn Whether hair path is to meet the forward-path of preset condition, will be via friendship to be upgraded and when new path meets preset condition The message of exchange device forwarding is guided according to the destination address of message to the path for meeting preset condition;Determining the new forwarding Path is the forward-path for being unsatisfactory for preset condition, reach it is preset retry the time when, again to the new forward-path Carry out traffic statistics.It wherein, include with original in the traffic statistics result by the flow of new forward-path via described to be upgraded The flow of the forward-path of switching equipment be overlapped after flow;
Judge whether new forward-path is to meet preset condition in the present invention specifically:
If the traffic statistics result is less than or equal to preset bandwidth usage, determine that the new forward-path is full The forward-path of sufficient preset condition;
If the traffic statistics result is greater than preset bandwidth usage, it is pre- to be unsatisfactory for determine the new forward-path If the forward-path of condition.
For example, the target MAC (Media Access Control) address of message is VMa-MAC, and the company, host VMa131 institute of target MAC (Media Access Control) address VMa-MAC The switching equipment connect is VSf125, due to including switching equipment to be upgraded in the original route of VSa120-VSf125, need weight Newly calculate the new forward-path after excluding switching equipment VSb121 to be upgraded in the path of VSa120-VSf125, it is assumed that root According to Fig. 4 calculated new path be two equivalent routes:
Path 1:VSa120-VSd123-VSe124-VSf125;And
Path 2:VSa120-VSd123-VSc122-VSf125;
So, the embodiment of the present invention can carry out traffic statistics to above-mentioned two paths respectively, and obtain traffic statistics knot Fruit.
It should be noted that in order in view of the flow of equipment to be upgraded being guided to new and is turned during subsequent upgrade The pressure for sending out path, therefore, it is necessary to turn original in new via the flow summation of the forward-path of the switching equipment to be upgraded Traffic statistics are carried out on hair path.
It is assumed that preset bandwidth usage is 70%, link VSa120-VSd123, VSd123-VSe124, VSe124- The total bandwidth of VSf125, VSd123-VSc122 and VSc122-VSf125 are respectively 100M, and the bandwidth of VSa120-VSb121 accounts for Dosage is 20M.
So, the traffic statistics result of path 1 (VSa120-VSd123-VSe124-VSf125) are as follows:
VSa120-VSd123 bandwidth usage are as follows: 40M (VSa120-VSd123 bandwidth usage)+20M (VSa120- The bandwidth usage of VSb121)=60M;
VSd123-VSe124 bandwidth usage are as follows: 30M (VSd123-VSe124 bandwidth usage)+20M (VSa120- The bandwidth usage of VSb121)=50M;
VSe124-VSf125 bandwidth usage are as follows: 40M (VSe124-VSf125 bandwidth usage)+20M (VSa120- The bandwidth usage of VSb121)=60M.
So, it is contemplated that the total occupancy of VSa120-VSd123 bandwidth after flow guidance are as follows: 60%;
It is expected that the total occupancy of VSd123-VSe124 bandwidth after flow guidance: 50%;
It is expected that the total occupancy of VSe124-VSf125 bandwidth after flow guidance: 60%.
The traffic statistics result in path 2 (VSa120-VSd123-VSc122-VSf125) are as follows:
VSa120-VSd123 bandwidth usage are as follows: 40M (VSa120-VSd123 bandwidth usage)+20M (VSa120- The bandwidth usage of VSb121)=60M;
VSd123-VSc122 bandwidth usage are as follows: 65M (VSd123-VSc122 bandwidth usage)+20M (VSa120- The bandwidth usage of VSb121)=85M;
VSc122-VSf125 bandwidth usage are as follows: 50M (VSc122-VSf125 bandwidth usage)+20M (VSa120- The bandwidth usage of VSb121)=70M.
So, it is contemplated that the total occupancy of VSa120-VSd123 bandwidth after flow guidance: 60%;
It is expected that the total occupancy of VSd123-VSc122 bandwidth after flow guidance: 85%;
It is expected that the total occupancy of VSc122-VSf125 bandwidth after flow guidance: 70%.
According to above-mentioned statistical result it is found that path VSa120-VSd123-VSe124-VSf125 is being superimposed VSa120- After the bandwidth of VSb121, the total occupancy of the bandwidth of each link is not up to preset bandwidth usage 70% therefore can be true Determining path VSa120-VSd123-VSe124-VSf125 is the path for meeting preset condition;
And due to link VSd123-VSc122 and VSc122- in the VSa120-VSd123-VSc122-VSf125 of path The total occupancy of the bandwidth of VSf125 has been more than that preset bandwidth usage is 70%, hence, it can be determined that path VSa120- VSd123-VSc122-VSf125 is not the path for meeting preset condition.
Controller can then guide the message for being sent to VMa131 to the path VSa120-VSd123- for meeting preset condition VSc122-VSf125, it may be assumed that respectively all switching equipment on the forward-path for meeting preset condition (VSa120, VSd123, VSc122, VSf125) update flow entry is issued, and then original is guided via the message that VSb121 is forwarded to new forward-path Switching equipment be forwarded.
Meanwhile controller can also on the new forward-path all switching equipment (VSa120, VSd123, VSc122, VSf125) it issues according to the reverse path VSf125-VSc122-VSd123-VSa120 of new forward-path generation Update flow entry so that the host of connection VSf125 when with the main-machine communication for connecting VSa120, avoid for message being sent to The switching equipment VSb121 of upgrading.
When receiving the message for being sent to VSb121 during the upgrading of VSb121 as a result, controller can be according to current band Wide busy situation cooks up the more idle new forward-path of bandwidth, and all switching equipment on new forward-path Update flow entry is issued, so that received message is sent to by VSa120 according to update flow entry by more idle path VSf125, simultaneously, it is ensured that message not packet loss.
However, if carry out traffic statistics to the new path of calculating, and when determining that preset condition is not satisfied in new path, Can reach it is preset retry the time when, traffic statistics are carried out to new path again according to the above process, and turn in new When hair path meets preset condition, all switching equipment on new forward-path issue flow entry to carry out flow guidance.
Wherein, the embodiment of the present invention guides the message forwarded via switching equipment to be upgraded to except switching equipment to be upgraded The bootstrap technique of other switching equipment in addition updates outside the method for flow entry except through the above-mentioned OpenFlow that issues, can be with The message forwarded via switching equipment to be upgraded is guided by way of direct traffic in the technologies such as OVSDB or NETCONF To other switching equipment in addition to switching equipment to be upgraded.For example, can be by new forward-path in NETCONF All switching equipment issue the control strategies such as ACL (Access Control List, accesses control list) carry out flow draw It leads, specific process flow can refer to the prior art, and this is no longer going to repeat them.
Step 203, it is risen according to the version information capable of updating firmware to the switching equipment transmission to be upgraded is corresponding Grade firmware, so that the switching equipment to be upgraded capable of updating firmware is upgraded according to described.
In the embodiment of the present invention, by the message forwarded via switching equipment to be upgraded guide to except switching equipment to be upgraded with After other outer switching equipment, it can according to the version information capable of updating firmware determined in step 201 to the friendship to be upgraded Exchange device transmission is corresponding capable of updating firmware, so that switching equipment VSb121 to be upgraded capable of updating firmware is risen according to described Grade.
It, will be originally via VSb121 since the embodiment of the present invention carries out in escalation process in switching equipment VSb121 to be upgraded Flow guide to other switching equipment, and then avoid VSb121 carry out escalation process in due to equipment is restarted caused by Situations such as message packet loss.
Switching equipment VSb121 to be upgraded transmitted according to controller it is capable of updating firmware upgraded after, VSb121 can be to Controller sends OpenFlow connection and establishes request (connection request), and controller connects in the OpenFlow for receiving VSb121 transmission After connecing foundation request, determines that VSb121 has upgraded and finish, and establish OpenFlow with VSb121 and connect.
Later, controller is obtained by the information acquiring pattern that the agreements such as NETCONF, SNMP or OVSDB provide The device version information of VSb121, and by the VSb121's determined before the device version information of VSb121 and VSb121 upgrading Version information capable of updating firmware compares, however, it is determined that the device version information of VSb121 and version information one capable of updating firmware It causes, illustrates that VSb121 is upgraded successfully, forward-path can be recalculated according to VSb121, and generate forwarding flow entry and be issued to The upstream equipment VSa120 of VSb121, to be forwarded the recovery in path.Simultaneously according to the device version of the VSb121 newly obtained The device version information of VSb121 in information update local data base;If, however, it is determined that the device version information of VSb121 with can Firmware updating version information is inconsistent, illustrates VSb121 upgrading failure, can re-start liter to VSb121 according to above-mentioned process Grade.
In conclusion switching equipment upgrade method provided by the invention when upgrading to switching equipment to be upgraded, is incited somebody to action It guides via the message that switching equipment to be upgraded forwards to other switching equipment in addition to switching equipment to be upgraded, according to preparatory The version information capable of updating firmware determined upgrades switching equipment to be upgraded.Compared with prior art, the present invention is handing over During exchange device upgrades, the message that original is forwarded via switching equipment to be upgraded is forwarded by other switching equipment, in turn Situations such as avoiding message packet loss caused by switching equipment to be upgraded carries out in escalation process due to equipment is restarted, effectively offer system The security performance of system.
The present invention also provides a kind of switching equipment update device, Fig. 5 is the structural schematic diagram of the switching equipment update device, The device can be applied to the controller in SDN network, further include switching equipment in the SDN network, switching equipment upgrading Device can include determining that unit 501, guidance unit 502 and transmission unit 503, in which:
Determination unit 501, for determining the version information capable of updating firmware of switching equipment to be upgraded;
Guidance unit 502, for will guide via the message of the switching equipment forwarding to be upgraded to other switching equipment;
Transmission unit 503, for according to the version information capable of updating firmware to the switching equipment to be upgraded transmission pair That answers is capable of updating firmware, so that the switching equipment to be upgraded capable of updating firmware is upgraded according to described.
Further, the determination unit 501 is specifically used for obtaining newest firmware version information list;According to local number According to the device model and device version information of the switching equipment to be upgraded prestored in library, in the new firmware version column The firmware version information that the device model of the switching equipment to be upgraded is supported is selected in table;The firmware version selected is believed Version levels are higher than the firmware version information of the device version information as the scalable of the switching equipment to be upgraded in breath Firmware version information.
Further, the guidance unit 502 be specifically used for being excluded according to preset router-level topology policy calculation it is described to Upgrade the new forward-path of switching equipment;All switching equipment on the new forward-path issue update flow entry, Guiding original via the message of the switching equipment forwarding to be upgraded to the switching equipment on the new path.
Further, the guidance unit 502 be specifically used for being excluded according to preset router-level topology policy calculation it is described to Upgrade the new forward-path of switching equipment;When reaching preset update time, flow is carried out to the new forward-path Statistics, and obtains traffic statistics result, wherein include in the traffic statistics result by the flow of new forward-path and it is former via The flow of the forward-path of the switching equipment to be upgraded be overlapped after flow;If the traffic statistics result is less than or waits In preset bandwidth usage, determine that the new forward-path is the forward-path for meeting preset condition, will via it is described to The message of upgrading switching equipment forwarding is guided according to the destination address of the message to the forward-path for meeting preset condition;If institute Traffic statistics result is stated greater than preset bandwidth usage, determines that the new forward-path is the forwarding for being unsatisfactory for preset condition Path, reach it is preset retry the time when, traffic statistics are carried out to the new forward-path again.
Further, described device further includes recovery unit, for having upgraded receiving the switching equipment to be upgraded After connection request at rear transmission, connection is established with the switching equipment to be upgraded;Obtain setting for the switching equipment to be upgraded Standby version information;If it is determined that the device version information of the switching equipment to be upgraded and the version information one capable of updating firmware It causes, the upstream for forwarding flow entry to be issued to the switching equipment to be upgraded is recalculated according to the switching equipment to be upgraded and is set It is standby, to be forwarded the recovery in path.
The switching equipment update device that the present invention is applied to controller can be with above-mentioned application in specific process flow Consistent in the process flow of switching equipment upgrade method, details are not described herein.
Above-mentioned apparatus can also pass through hardware realization, switching equipment update device institute of the present invention by software realization It can refer to shown in Fig. 6 in the hardware structure schematic diagram of terminal device or AP, basic hardware environment includes central processing unit CPU, forwarding chip, memory and other hardware, wherein include machine readable instructions in memory device, and CPU reads and executes Machine readable instructions execute the function of each unit in Fig. 5.
As can be seen that switching equipment upgrade method provided by the invention from the embodiment of the above various method and apparatus And device is when upgrading switching equipment to be upgraded, by the message forwarded via switching equipment to be upgraded guide to except to Upgrade other switching equipment other than switching equipment, according to predefining the version information capable of updating firmware to exchange to be upgraded Equipment transmission is corresponding capable of updating firmware, so that switching equipment to be upgraded is according to during capable of updating firmware upgraded, it will be former It is forwarded via the message that switching equipment to be upgraded forwards by other switching equipment, and then avoids switching equipment to be upgraded Carry out escalation process in due to equipment is restarted caused by message packet loss situations such as, effectively provide system security performance.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.

Claims (8)

1. a kind of switching equipment upgrade method, applied to the controller in software defined network SDN network, in the SDN network It further include switching equipment, which is characterized in that the described method includes:
Determine the version information capable of updating firmware of switching equipment to be upgraded;
The new forward-path of the switching equipment to be upgraded is excluded according to preset router-level topology policy calculation;To described new All switching equipment on forward-path issue update flow entry, will draw via the message of the switching equipment forwarding to be upgraded The switching equipment being directed on the new path;
It is corresponding capable of updating firmware to the switching equipment transmission to be upgraded according to the version information capable of updating firmware, so that institute Switching equipment to be upgraded is stated capable of updating firmware to be upgraded according to described.
2. the method as described in claim 1, which is characterized in that the version capable of updating firmware for determining switching equipment to be upgraded This information specifically includes:
Obtain newest firmware version information list;
According to the device model and device version information of the switching equipment to be upgraded prestored in local data base, described The firmware version information that the device model of the switching equipment to be upgraded is supported is selected in newest firmware version list;
Selected from the firmware version information selected a firmware version information as the switching equipment to be upgraded can Firmware updating version information.
3. the method as described in claim 1, which is characterized in that will draw via the message of the switching equipment forwarding to be upgraded It is directed at other switching equipment further include:
The new forward-path of the switching equipment to be upgraded is excluded according to preset router-level topology policy calculation;
Traffic statistics are carried out to the new forward-path, and obtain traffic statistics result, wherein are wrapped in the traffic statistics result It includes after being overlapped the flow of new forward-path and the former flow via the forward-path of the switching equipment to be upgraded Flow;
If the traffic statistics result is less than or equal to preset bandwidth usage, it is pre- to meet to determine the new forward-path If the forward-path of condition, will be guided via the message of the switching equipment forwarding to be upgraded according to the destination address of the message To the forward-path for meeting preset condition;
If the traffic statistics result is greater than preset bandwidth usage, determine that the new forward-path is to be unsatisfactory for default item The forward-path of part, reach it is preset retry the time when, traffic statistics are carried out to the new forward-path again.
4. the method as described in claim 1, which is characterized in that according to the version information capable of updating firmware to described wait rise Grade switching equipment transmission it is corresponding it is capable of updating firmware after, the method also includes:
It is and to be upgraded after the completion of upgrading after the completion of receiving the switching equipment to be upgraded upgrading after the connection request that sends Switching equipment establishes connection;
Obtain the device version information of the switching equipment to be upgraded after the completion of upgrading;
If it is determined that device version information and the version information one capable of updating firmware of the switching equipment to be upgraded after the completion of upgrading It causes, the upstream for forwarding flow entry to be issued to the switching equipment to be upgraded is recalculated according to the switching equipment to be upgraded and is set It is standby, to be forwarded the recovery in path.
5. a kind of switching equipment update device further includes that exchange is set applied to the controller in SDN network, in the SDN network It is standby, which is characterized in that described device includes:
Determination unit, for determining the version information capable of updating firmware of switching equipment to be upgraded;
Guidance unit, for excluding the new forwarding road of the switching equipment to be upgraded according to preset router-level topology policy calculation Diameter will be guided via the message of the switching equipment forwarding to be upgraded to the switching equipment on the new forward-path;
Transmission unit, for being risen according to the version information capable of updating firmware to the switching equipment transmission to be upgraded is corresponding Grade firmware, so that the switching equipment to be upgraded capable of updating firmware is upgraded according to described.
6. device as claimed in claim 5, which is characterized in that the determination unit is specifically used for:
Obtain newest firmware version information list;
According to the device model and device version information of the switching equipment to be upgraded prestored in local data base, described The firmware version information that the device model of the switching equipment to be upgraded is supported is selected in newest firmware version list;
Selected from the firmware version information selected a firmware version information as the switching equipment to be upgraded can Firmware updating version information.
7. device as claimed in claim 5, which is characterized in that the guidance unit is also used to:
The new forward-path of the switching equipment to be upgraded is excluded according to preset router-level topology policy calculation;
Traffic statistics are carried out to the new forward-path, and obtain traffic statistics result, wherein are wrapped in the traffic statistics result It includes after being overlapped the flow of new forward-path and the former flow via the forward-path of the switching equipment to be upgraded Flow;
If the traffic statistics result is less than or equal to preset bandwidth usage, it is pre- to meet to determine the new forward-path If the forward-path of condition, will be guided via the message of the switching equipment forwarding to be upgraded according to the destination address of the message To the forward-path for meeting preset condition;
If the traffic statistics result is greater than preset bandwidth usage, determine that the new forward-path is to be unsatisfactory for default item The forward-path of part, reach it is preset retry the time when, traffic statistics are carried out to the new forward-path again.
8. device as claimed in claim 5, which is characterized in that described device further includes recovery unit, is used for:
After receiving the connection request sent after the completion of the switching equipment to be upgraded upgrading, with the switching equipment to be upgraded Establish connection;
Obtain the device version information of the switching equipment to be upgraded after the completion of upgrading;
If it is determined that the device version information of the switching equipment to be upgraded after the completion of upgrading and the version capable of updating firmware are believed Breath is consistent, recalculates forwarding flow entry according to the switching equipment to be upgraded after the completion of upgrading and is issued to after the completion of upgrading The upstream equipment of the switching equipment to be upgraded, to be forwarded the recovery in path.
CN201510523459.4A 2015-08-24 2015-08-24 Switching equipment upgrade method and device Active CN105591802B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510523459.4A CN105591802B (en) 2015-08-24 2015-08-24 Switching equipment upgrade method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510523459.4A CN105591802B (en) 2015-08-24 2015-08-24 Switching equipment upgrade method and device

Publications (2)

Publication Number Publication Date
CN105591802A CN105591802A (en) 2016-05-18
CN105591802B true CN105591802B (en) 2019-06-04

Family

ID=55931061

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510523459.4A Active CN105591802B (en) 2015-08-24 2015-08-24 Switching equipment upgrade method and device

Country Status (1)

Country Link
CN (1) CN105591802B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126302A (en) * 2016-06-30 2016-11-16 宇龙计算机通信科技(深圳)有限公司 A kind of device update method and device
CN107453899A (en) * 2017-07-25 2017-12-08 锐捷网络股份有限公司 The upgrade method and device of virtual switch unit VSU systems
CN115426325A (en) * 2022-09-16 2022-12-02 杭州云合智网技术有限公司 Unicast zero packet loss method for restarting single Leaf device in stacking environment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685250A (en) * 2013-12-04 2014-03-26 蓝盾信息安全技术股份有限公司 Virtual machine security policy migration system and method based on SDN
CN104780071A (en) * 2015-04-21 2015-07-15 杭州华三通信技术有限公司 Method and device for upgrading virtual switch

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050010915A1 (en) * 2003-07-11 2005-01-13 Chih-Wei Chen Network-based server code auto upgrade method and system
US7266815B2 (en) * 2003-09-29 2007-09-04 International Business Machines Corporation Automated control of a licensed internal code update on a storage controller

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685250A (en) * 2013-12-04 2014-03-26 蓝盾信息安全技术股份有限公司 Virtual machine security policy migration system and method based on SDN
CN104780071A (en) * 2015-04-21 2015-07-15 杭州华三通信技术有限公司 Method and device for upgrading virtual switch

Also Published As

Publication number Publication date
CN105591802A (en) 2016-05-18

Similar Documents

Publication Publication Date Title
US10798760B2 (en) Method for controlling network slice, forwarding device, control device, and communications system
US10951640B2 (en) Traffic attack protection method and system, controller, router, and storage medium
US10587494B2 (en) Network control method and apparatus
CN109981765A (en) Method and apparatus for determining the access path of content distributing network
US9705782B2 (en) Method and system for efficient graceful restart in an open shortest path first (OSPF) network
CN106462424A (en) Method for updating terminal system, terminal and system
US9391882B2 (en) Method, system, and device for establishing pseudo wire
CN105337904A (en) Controller cluster upgrading method and device
US9288075B2 (en) Method and system for auto-configuration, and network node
CN109698757A (en) Switch master/slave device, the method for restoring user data, server and the network equipment
US10798182B2 (en) Application function control of IP address allocation
CN103916277B (en) The method and apparatus that realization does not interrupt forwarding service when restarting
CN110381162A (en) A kind of method and relevant apparatus of business processing
CN102291465B (en) Load balancing method, device and system
CN105337853A (en) Instance establishing method and apparatus in software defined network (SDN)
US10819623B2 (en) Method and device for transmitting data
CN102447574A (en) Method and device for realizing zero configuration of IRF (inter-range radio frequency) device
CN105591802B (en) Switching equipment upgrade method and device
CN109150808B (en) Communication method, device and system
WO2022116767A1 (en) Data transmission method, user equipment, and storage medium
US11706124B2 (en) Low latency for network devices not supporting LLD
CN105812495B (en) Message forwarding method and equipment
CN104734949B (en) A kind of method and device for realizing flow table configuration
WO2022213783A1 (en) Traffic forwarding method and apparatus
CN107294830B (en) A kind of data transmission method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant before: Huasan Communication Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant