CN107682197A - Device updating method, the network equipment and server - Google Patents

Device updating method, the network equipment and server Download PDF

Info

Publication number
CN107682197A
CN107682197A CN201710967355.1A CN201710967355A CN107682197A CN 107682197 A CN107682197 A CN 107682197A CN 201710967355 A CN201710967355 A CN 201710967355A CN 107682197 A CN107682197 A CN 107682197A
Authority
CN
China
Prior art keywords
network equipment
upgrade file
level
network
upgrade
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.)
Pending
Application number
CN201710967355.1A
Other languages
Chinese (zh)
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.)
Ruijie Networks Co Ltd
Original Assignee
Ruijie Networks 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 Ruijie Networks Co Ltd filed Critical Ruijie Networks Co Ltd
Priority to CN201710967355.1A priority Critical patent/CN107682197A/en
Publication of CN107682197A publication Critical patent/CN107682197A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a kind of device updating method, the network equipment and server.Wherein, device updating method includes:Determine to need to use the network equipment subset that same upgrade file is upgraded from sets of network devices to be upgraded;The root device that the first level is in level forwarding relation is identified from network equipment subset according to the level forwarding relation between each network equipment in network equipment subset;Issue upgrade command to root device, with indicate root device download upgrade file upgraded and in level forwarding relation be in root device next level the network equipment forward upgrade file.The method that the application provides can effectively reduce CDN flows.

Description

Device updating method, the network equipment and server
Technical field
The application is related to communication technical field, more particularly to a kind of device updating method, the network equipment and server.
Background technology
The network equipment is attached to the physical entity in network.The species of the network equipment is various, and growing day by day.Basic The network equipment has:Personal computer, server, interchanger, bridge, router, access device (AccessPoint, AP), printing Machine and modem, fiber optical transceiver etc..These network equipments are typically distributed in the regional of LAN, and by local Management server in net is managed.
In actual applications, it is sometimes desirable to these network equipments are upgraded, to solve the problems, such as that the network equipment is potential Or the performance of the lifting network equipment.In initial implementation, the network equipment unified by management server in local area network Updating and management is carried out, i.e. management server uniformly issues upgrade command, it is necessary to the network of upgrading to the network equipment that needs upgrade The upgrade command of equipment while response management server, the file needed for upgrading is downloaded from management server, this may result in pipe The concurrent pressure for managing server is larger.
To solve the problems, such as that the concurrent pressure of management server is big, occur being based on content distributing network The upgrading scheme of (ContentDeliveryNetwork, CDN).In the upgrading scheme based on CDN, management server is to needs The network equipment of upgrading uniformly issues upgrade command, it is necessary to which the network equipment of upgrading downloads upgrading institute from different CDN servers The file needed, no longer it is to download the required file of upgrading from management server, so as to mitigate the concurrently pressure of management server Power.But the program depends on CDN server, it is necessary to consume CDN flows, when especially needing the network equipment that upgrades more, A large amount of CDN flows will be consumed.
The content of the invention
The many aspects of the application provide a kind of device updating method, the network equipment and server, to realize equipment liter Level, and mitigate the concurrent pressure of CDN server, save CDN flows.
The embodiment of the present application provides a kind of device updating method, applied to management server, including:
The network equipment for needing to use same upgrade file to be upgraded is determined from sets of network devices to be upgraded Collection;
Relation is forwarded according to the level between each network equipment in the network equipment subset, from the network equipment subset Middle identification is in the root device of the first level in the level forwarding relation;
Upgrade command is issued to the root device, is upgraded, simultaneously with indicating that the root device downloads the upgrade file The upgrade file is forwarded to the network equipment for next level that the root device is in the level forwarding relation.
In an optional embodiment, device updating method also includes:
The upgrade command of other network equipments in the network equipment subset in addition to the root device is issued into state It is arranged to issue, to forbid issuing the upgrade command to other network equipments.
It is described to determine to need to use same upgrading text from sets of network devices to be upgraded in an optional embodiment The network equipment subset that part is upgraded, including:
The device identification of each network equipment in the sets of network devices is obtained according to device upgrade configured information;
Corresponding relation according to present in network between each upgrade file label and device identification, determine that the network is set Upgrade file label corresponding to each network equipment in standby set;
The network equipment of the corresponding same upgrade file label of acquisition forms the network and set from the sets of network devices Standby subset.
It is each in the sets of network devices according to the acquisition of device upgrade configured information in an optional embodiment Before the mark of the network equipment, methods described also includes:
Receive the device identification and corresponding upgrade file label that each network equipment is sent in the network;
From the network in upgrade file label corresponding to each network equipment, different upgrade file labels is identified;
To each different upgrade file label, the upgrade file label and the corresponding upgrade file label are established Corresponding relation between the device identification of the network equipment;
Build the level forwarding relation between the network equipment that same upgrade file label is corresponded in the network.
In an optional embodiment, the network equipment of same upgrade file label is corresponded in the structure network Between level forwarding relation after, methods described also includes:
Every network equipment in the network equipment to corresponding to same upgrade file label in the network, according to the net The level forwarding relation between the network equipment of same upgrade file label is corresponded in network, by the last layer level of the network equipment The network equipment and next level the network equipment device identification and the network equipment and the network equipment upper one Hierarchical relationship configured information between the network equipment of level and the network equipment of next level is sent to the network equipment.
In an optional embodiment, it is described issue upgrade command to the root device after, methods described also includes:
Other network equipments in the root device and/or the level forwarding relation in addition to the root device are received to return The MD5 values of the upgrade file returned;
If the MD5 values that the root device and/or other network equipments return are identical with the MD5 values being locally stored, Send upgrading determine instruction to the root device and/or the other network equipments, with indicate the root device and/or it is described its Its network equipment is upgraded according to the upgrade file.
The embodiment of the present application also provides a kind of device updating method, applied to root device, including:
Receive the upgrade command that management server issues;
Download upgrade file corresponding to the upgrade command;
Upgraded according to the upgrade file;And
The upgrade file is forwarded to the node device that the next level of the root device is in level forwarding relation, So that the node device is upgraded according to the upgrade file;
Wherein, between each network equipment that level forwarding relation refers to need to use the upgrade file to be upgraded Hierarchical relationship.
In an optional embodiment, the upgrade file is forwarded in level forwarding relation and is in the root device The node device of next level, including:
Adjacency table corresponding to staging business is inquired about, to obtain the device identification of the node device;Wherein, the neighbour Connect the level between the device identification that the node device is stored with relation table and the node device and the root device Relation configured information;
The communication port bound by the device identification with the node device, the section is forwarded to by the upgrade file Point device.
In an optional embodiment, adjacency table corresponding to staging business is inquired about described, to obtain the node Before the device identification of equipment, methods described also includes:
Receive the node device that the management server is sent device identification and the node device with it is described Hierarchical relationship configured information between root device;
Hierarchical relationship between the device identification of the node device and the node device and the root device is referred to Show information storage into the adjacency table.
In an optional embodiment, before the upgrade command that the reception management server issues, methods described is also Including:
Upgrade file label is generated according to the attribute information of the root device, the upgrade file label is described for identifying Upgrade file needed for root device upgrading;
The device identification of the upgrade file label and the root device is sent to the management server, for institute State management server and build the level forwarding relation.
In an optional embodiment, it is described upgraded according to the upgrade file before, methods described also includes:
Calculate the MD5 values of the upgrade file;
The MD5 values are sent to the management server, for the management server according to the MD5 values to described Upgrade file carries out correctness verification;
When receiving the upgrading determine instruction that the management server issues, determine that the upgrade file passes through correctness Verification.
The embodiment of the present application also provides a kind of device updating method, applied to node device, including:
Receive the upgrade file that first network equipment is sent;
Judge whether the first network equipment is the last layer level that the node device is in level forwarding relation The network equipment;Wherein, the level forwarding relation refers to each network equipment for needing to use the upgrade file to be upgraded Between hierarchical relationship;
When judged result is to be, upgraded according to the upgrade file, and the upgrade file is forwarded in institute The network equipment of next level in the node device in level forwarding relation is stated, under the node device The network equipment of one level is upgraded according to the upgrade file.
In an optional embodiment, judge whether the first network equipment is in described in level forwarding relation The network equipment of the last layer level of node device, including:
Adjacency table corresponding to staging business is inquired about, to judge to be in the node device in the adjacency table It whether there is the device identification of the first network equipment in the device identification of the network equipment of last layer level;
In the presence of judged result is, it is in described in the level forwarding relation to determine the first network equipment The network equipment of the last layer level of node device;
It is described that the upgrade file is forwarded to next layer that the node device is in the level forwarding relation The network equipment of level, including:
The adjacency table is inquired about, to obtain the equipment mark of the network equipment of next level in the node device Know, the network equipment of the last layer level in the node device and the network of next level are stored with the adjacency table The network equipment and next layer of the device identification of equipment and the node device with the last layer level in the node device Hierarchical relationship configured information between the network equipment of level;
The communication port bound by the device identification of the network equipment with next level in the node device, will The upgrade file is forwarded to the network equipment of next level in the node device.
The embodiment of the present application also provides a kind of server, including:
Determining module, for from sets of network devices to be upgraded, it is determined that needing to use same upgrade file to be risen The network equipment subset of level;
Identification module, for forwarding relation according to the level between each network equipment in the network equipment subset, from institute State the root device that identification in network equipment subset is in the first level in the level forwarding relation;
Server sending module, for issuing upgrade command to the root device, to indicate described in the root device download Upgrade file is upgraded and turned to the network equipment for next level that the root device is in the level forwarding relation Send out upgrade file described.
In an optional embodiment, server also includes setup module, for will remove institute in the network equipment subset The upgrade command for stating other network equipments outside root device issues state and is arranged to issue, to forbid to other networks Equipment issues the upgrade command.
The embodiment of the present application also provides a kind of network equipment, root device can be used as to realize, including:
Receiving module, the upgrade command issued for receiving management server;
Download module, for downloading upgrade file corresponding to the upgrade command;
Upgraded module, for being upgraded according to the upgrade file;
Sending module, the next layer of the root device is in for the upgrade file to be forwarded in level forwarding relation The node device of level, so that the node device is upgraded according to the upgrade file;Wherein, the level forwarding relation is Refer to the hierarchical relationship between each network equipment for needing to use the upgrade file to be upgraded.
The embodiment of the present application also provides a kind of network equipment, node device can be used as to realize, including:
Receiving module, for receiving the upgrade file of first network equipment transmission;
Judge module, for judging whether the first network equipment is to be set in level forwarding relation in the node The network equipment of standby last layer level;Wherein, the level forwarding relation refers to need to use the upgrade file to be upgraded Each network equipment between hierarchical relationship;
Upgraded module, for when judged result is to be, being upgraded according to the upgrade file;
Sending module, the node device is in for the upgrade file to be forwarded in the level forwarding relation Next level the network equipment, for next level in the node device the network equipment according to the upgrade file Upgraded.
In the embodiment of the present application, it is necessary to have between the network equipment upgraded using same upgrade file step by step to The level forwarding relation of the lower forwarding upgrade file, when needing to carry out device upgrade, it is determined that needing to use same upgrading text The network equipment that part is upgraded, relation is forwarded according to the level between these network equipments, closed to being forwarded in the level The root device of the first level in system issues upgrade command;Root device according to upgrade command download upgrade file upgraded and to The network equipment of next level forwards the upgrade file, for other network equipments, need to only receive the network of last layer level The upgrade file of device forwards is upgraded automatically.As can be seen here, in the embodiment of the present application, it is same for needing to use The network equipment of upgrade file, management server need not all issue upgrade command to all-network equipment, and without all nets Network equipment downloads upgrade file from the server for be stored with upgrade file, can not only mitigate the concurrently pressure of management server Power, and the flow for downloading upgrade file consumption can be reduced, if upgrade file is stored in CDN server, CDN can be saved Flow.
Brief description of the drawings
Accompanying drawing described herein is used for providing further understanding of the present application, forms the part of the application, this Shen Schematic description and description please is used to explain the application, does not form the improper restriction to the application.In the accompanying drawings:
Fig. 1 a are a kind of structural representation for network system that the embodiment of the application one provides;
Fig. 1 b are the structural representation for another network system that another embodiment of the application provides;
Fig. 1 c are the structural representation for applying for another network system that another embodiment provides;
Fig. 2 is the schematic flow sheet of the device updating method at the management server end that the another embodiment of the application provides;
Fig. 3 is the structural representation for the binary tree that the another embodiment of the application provides;
Fig. 4 is the schematic flow sheet of the device updating method at the root device end that the another embodiment of the application provides;
Fig. 5 is the schematic flow sheet of the device updating method at the node device end that the another embodiment of the application provides;
Fig. 6 is the flow chart for another device updating method that the another embodiment of the application provides;
Fig. 7 is the function structure chart for the server that the another embodiment of the application provides;
Fig. 8 is the function structure chart for the network equipment that the another embodiment of the application provides;
Fig. 9 is the function structure chart for the network equipment that another embodiment of the application provides.
Embodiment
To make the purpose, technical scheme and advantage of the application clearer, below in conjunction with the application specific embodiment and Technical scheme is clearly and completely described corresponding accompanying drawing.Obviously, described embodiment is only the application one Section Example, rather than whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing Go out under the premise of creative work the every other embodiment obtained, belong to the scope of the application protection.
Fig. 1 a are a kind of structural representation for network system that the embodiment of the application one provides.As shown in Figure 1a, the system Including:Management server 10, CDN server 30 and the more network equipments 20.
The more network equipments 20 can be distributed in multiple regions of LAN, such as region 1, region shown in Fig. 1 a 2nd ..., region n.These regions can be different physical regions, such as city A, city B etc..More network equipments 20 can be with It is the equipment of same type, such as the more network equipments 20 are entirely personal computer, server, interchanger, bridge, route Device, AP, printer, modem or fiber optical transceiver etc..Or the more network equipments 20 can also be different types of set It is standby, for example, the more network equipments 20 can include personal computer simultaneously, server, interchanger, bridge, router, access are set At least two in standby (AccessPoint, AP), printer, modem and fiber optical transceiver etc..
Management server 10 is mainly responsible for being managed collectively the more network equipments 20.For example, in some special situations Under, management server 10 needs to carry out upgrade maintenance to these network equipments 20, and it is potential to solve these network equipments 20 with this Problem and the performance for lifting these equipment 20.
But as the quantity of the network equipment 20 is more and more, type becomes increasingly complex, and upgrades these network equipments 20 Cost more and more higher.For example, upgrade to these network equipments 20, the bandwidth pressure, concurrent of management server 10 can be caused Pressure is larger, at the same these network equipments 20 concentrate to CDN server 30 download upgrading file used can also waste it is more CDN flows.
In view of the above-mentioned problems, the present embodiment provides a solution, cardinal principle is:Management server 10 is according to network Equipment 20 upgrades required upgrade file, and the more network equipments 20 are classified, and is needing to use same upgrade file Level forwarding relation is formed between the network equipment 20, level forwarding relation refers to need to use same upgrade file to be upgraded Each network equipment 20 between hierarchical relationship, relation is forwarded based on the level, management server 10 passes through in first layer The root device of level issues upgrade command so that root device downloads upgrade file from CDN server 30, and subsequent upgrade file can be by Relation successively forwarding downwards between each network equipment 20 since the root device is forwarded according to level, it is all real to reach each network equipment 20 The purpose now upgraded.
As a whole, management server 10 need not all issue upgrade command to all-network equipment 20, and without institute There is the network equipment 20 to download upgrade file from CDN server 30, can not only mitigate the concurrent pressure of management server 10, and And the number of devices that upgrade file is downloaded from CDN server 30 can be reduced, and then reduce the CDN streams that device upgrade is consumed Amount.
Further, because the network equipment for needing to use same upgrade file, management server 10 is without to all The network equipment 20 all issues upgrade command, and downloads upgrade file without all-network equipment 20, even only needs one in theory The platform network equipment 20 (i.e. root device) downloads upgrade file from server where upgrade file, so being downloaded during device upgrade Amount of bandwidth shared by upgrade file will not be very big, and the concurrent pressure of management server 10 is also little.Based on this, network system CDN server 30 can not be even used in system, but storage and distribution upgrade file are responsible for by management server 10, to enter One step saves CDN flows, and network system now is as shown in Figure 1 b.
In addition to network system shown in Fig. 1 a and Fig. 1 b, include Cloud Server in another network system shown in Fig. 1 c, Cloud Server is responsible for storing and distributing upgrade file, the description as described in management server 10 and the network equipment 20 can be found in Fig. 1 a and Shown in Fig. 1 b.
What deserves to be explained is the solution that the embodiment of the present application provides is not only suitable for the network system of framework shown in Fig. 1 a It is applied to the network system of framework shown in Fig. 1 b and Fig. 1 c again.
Below by from the angle of distinct device, the solution provided with reference to accompanying drawing the embodiment of the present application is carried out specifically It is bright.
Fig. 2 is the schematic flow sheet of the device updating method at the management server end that the another embodiment of the application provides.Such as Shown in Fig. 2, included as the device updating method performed by management server:
101st, determine that the network for needing to use same upgrade file to be upgraded is set from sets of network devices to be upgraded Standby subset.
102nd, relation is forwarded according to the level between each network equipment in network equipment subset, known from network equipment subset The root device of the first level is in not in level forwarding relation.
103rd, upgrade command is issued to root device, is upgraded and in level with indicating that root device downloads upgrade file The network equipment forwarding upgrade file of next level in root device in forwarding relation.
In a step 101, sets of network devices to be upgraded may include one or more network equipments to be upgraded.These The possible possible difference of firmwares different, version is possible different or to be upgraded of the type of the network equipment to be upgraded so that needs The upgrade file used is different., can be from sets of network devices to be upgraded, it is determined that each network to be upgraded is set based on this The standby upgrade file needed to use, it would be desirable to which the network equipment upgraded using same upgrade file is aggregated into network equipment Collection.It is alternatively possible at least one network equipment subset is determined from sets of network devices to be upgraded.Wherein, every net Network subset of devices includes the more network equipments.The mode upgraded to the network equipment in each network equipment subset is identical, Described to simplify, the present embodiment illustrates so that the network equipment in one of network equipment subset upgrades as an example.
, can be according to the net built in advance for any network equipment subset at least one network equipment subset Level forwarding relation in network subset of devices between each network equipment, identification is in level forwarding relation from network equipment subset In be in the first level the network equipment.Wherein, described to simplify, the net of the first level will be in the level forwarding relation Network equipment is referred to as root device.
Wherein, the level forwarding relation in network equipment subset between each network equipment, which refers to, needs to use same upgrade file Hierarchical relationship between each network equipment upgraded.In the upgrade file needed for forwarding upgrading, in network equipment subset There is different levels, each network equipment forwards according to the level of oneself to the network equipment of next level between each network equipment Upgrade file.That is, for upgrade file, can be forwarded downwards step by step according to the hierarchical relationship between each network equipment.For example, The first level, the second level, third layer level etc. are followed successively by from top to bottom;The network equipment in the first level can be by upgrade file The network equipment in the second level is forwarded to, upgrade file can be forwarded in the 3rd by the network equipment in the second level The network equipment of level, the like.Wherein, in each level forwarding relation, the root device in the first level is one, The network equipment in other levels can be one or more, depending on the realization of specific visual level forwarding relation.
After root device is identified, management server can issue upgrade command to root device, be risen with indicating that root device is downloaded Level file is upgraded;And the network equipment forwarding upgrading of next level in root device is literary into level forwarding relation Part.
, can be from CDN server or high in the clouds or management server or cloud after upgrade command is received for root device Server downloads the upgrade file needed for upgrading.On the one hand root device is carried out after upgrade file is downloaded to according to upgrade file Upgrading, on the other hand forward upgrade file to the network equipment of next level of root device.Relation, root device are forwarded according to level Next level the network equipment receive root device forwarding upgrade file after continue to be transmitted to the net of its next level Network equipment, the like, untill the all-network equipment in network equipment subset receives upgrade file.
In the present embodiment, for sets of network devices to be upgraded, it may be determined that need to use same upgrade file to be risen The network equipment subset of level;To each network equipment in network equipment subset, management server can be according in network equipment subset Level forwarding relation between each network equipment, identifies root device and issues upgrade command to root device, to indicate root device Upgrade file is downloaded to be upgraded and forward upgrade file to the network equipment of next level.For management server, without Into network equipment subset, all-network equipment issues upgrade command, can mitigate the concurrent pressure of management server;In addition, nothing Need all-network equipment in network equipment subset to download upgrade file from server where upgrade file, reduce from upgrading text Server downloads the number of devices of upgrade file where part, so that upgrade file can be stored in any kind of server On.If upgrade file is stored in CDN server, it is possible to reduce the CDN flows that device upgrade is consumed;If upgrade file stores In the bandwidth shared by download upgrade file in management server, then can be reduced, the influence to miscellaneous equipment or business is reduced, And CDN flows need not be consumed.
In certain embodiments, management server can also be set in addition to sending upgrade command to root device to network Other network equipments in addition to root device in standby subset send upgrade command;For other network equipments, can be neglected should Upgrade command.
In further embodiments, it is contemplated that the network equipment of next level can be obtained from the network equipment of last layer level and risen Level file, therefore, management server can not issue upgrade command to other network equipments in addition to root device.Based on this, Management server to root device in addition to sending upgrade command, also by other nets in network equipment subset in addition to root device The upgrade command of network equipment issues state and is arranged to issue, to forbid issuing upgrade command to other network equipments.
What deserves to be explained is the embodiment of the present application does not limit management server sends upgrade command and management to root device Server issues the upgrade command of other network equipments the execution sequence that state is arranged between having issued, and can sequentially hold OK, can also perform parallel.
In the present embodiment, for management server, only upgrade command need to be issued to root device, without being set to every network It is standby to issue upgrade command, you can to realize the upgrading of each network equipment, reduce the instruction number issued, further reduce management clothes The flow of business device.
In above-described embodiment or following embodiments, determine to need to use same liter from sets of network devices to be upgraded The network equipment subset that level file is upgraded, including:According to device upgrade configured information, each net in sets of network devices is obtained The mark of network equipment;Corresponding relation according to present in network between each upgrade file label and device identification, determines network Upgrade file label corresponding to each network equipment in cluster tool;Corresponding same upgrade file mark is obtained from sets of network devices The network equipment of label forms network equipment subset.
Alternatively, when needing upgrade of network apparatus, being responsible for the keeper of upgrading task can send to management server Device upgrade configured information.Management server after device upgrade configured information is received, can slave unit upgrading configured information in Obtain the device identification of each network equipment in sets of network devices.Wherein, the device identification of the network equipment can unique mark network Equipment, such as can be the IP address of the network equipment, sequence number etc..
Still optionally further, device upgrade configured information can include the equipment mark of each network equipment in sets of network devices Know, then directly slave unit can upgrade the device identification that each network equipment in sets of network devices is obtained in configured information.For example, Device upgrade configured information includes the IP address or sequence number of each network equipment, then can directly obtain the IP of each network equipment Address or sequence number.
Still optionally further, device upgrade configured information can also be set including each network in other sensing sets of network devices Standby configured information, then the device identification of each network equipment can be determined for example, can be in advance according to rule according to the configured information The network equipment present in network is then divided into some equipment groups, distinct device group has unique group ID, based on this, the finger It can be the group ID of each network equipment corresponding device group in sets of network devices to show information, and then can be determined accordingly to set according to group ID The device identification of the network equipment in standby group.
What deserves to be explained is each network equipment can be the network in same equipment group in sets of network devices to be upgraded The network equipment in equipment or distinct device group.For example, working as needs to rise the network equipment in an equipment group During level, the network equipment in the equipment group can be formed sets of network devices to be upgraded as the network equipment to be upgraded. In another example when needing to the network equipment in multiple equipment group while upgrading, can be by the network in multiple equipment group Equipment forms sets of network devices to be upgraded as the network equipment to be upgraded.
, can be each according to present in network after the device identification of each network equipment in getting sets of network devices Corresponding relation between upgrade file label and device identification, determine upgrading text corresponding to each network equipment in sets of network devices Part label.
Wherein, above-mentioned network is primarily referred to as the network in management server compass of competency.Include more in the network The information such as the network equipment, the device types of the more network equipments, performance, version may be different, therefore the upgrading text needed for upgrading Part also can be different.Based on this, each network equipment in network can be classified according to upgrade file, and pre-establish upgrade file Corresponding relation between the device identification of label and each network equipment.Wherein, upgrade file label upgrades for unique mark one File, upgrade file are different, then upgrade file label is different, it is necessary to the network equipment upgraded using identical upgrade file Device identification corresponds to same upgrade file label.Based on this, when it is determined that the network equipment to be upgraded device identification after, can To be searched in the corresponding relation between the upgrade file label pre-established and device identification, so as to obtain sets of network devices In upgrade file label corresponding to each network equipment.Further, corresponding same upgrade file mark is obtained from sets of network devices The network equipment of label, to form network equipment subset, the network equipment in the network equipment subset needs to use same upgrading File is upgraded.
In above-described embodiment or following embodiments, according to device upgrade configured information, obtain in sets of network devices Before the mark of each network equipment, the corresponding relation between upgrade file label and device identification can be pre-established.One kind is built The embodiment of corresponding relation between liter level file label and device identification is as follows:
Each network equipment can be by the device identification of itself and corresponding upgrade file in the network that management server is administered Label is sent to management server.Management server receives the device identification that each network equipment is sent in network and corresponding After upgrade file label, different upgradings can be identified from network in upgrade file label corresponding to each network equipment File label.In one example, the device identification received includes mark A, mark B and mark C, is risen corresponding to each device identification Level file label includes file label a1, file label a1 and file label a2, then can identify file label a1 and file Label a1 belongs to identical upgrade file label, and file label a2 belongs to different upgrade file labels from file label a1.
Then, to each different upgrade file label, such as file label a1 and file label a2 in above-mentioned example, The corresponding relation established between the device identification of the network equipment of upgrade file label and respective upgrades file label.Show above-mentioned In example, file label a1 can be established with identifying A, mark B corresponding relation, and corresponding passes of the file label a2 with identifying C System.
Then, the level forwarding relation between the network equipment that same upgrade file label is corresponded in network is built.
Wherein, the network equipment of corresponding same upgrade file label refers to the device identification corresponding to same upgrade file label The network equipment identified.In the examples described above, same upgrade file label is corresponded to, such as file label a1 device identification is Identify A and mark B.So, the respective file label a1 network equipment is marked by the mark A network equipments identified and mark B The network equipment of knowledge.
It is optional when the level forwarding relation between the network equipment of same upgrade file label is corresponded in above-mentioned structure network Ground, binary tree is built according to the device identification for the network equipment that same upgrade file label is corresponded in network, the section on binary tree Point represents to correspond to the network equipment of same upgrade file label in network, corresponding same in the set membership expression network between node Level forwarding relation between the network equipment of one upgrade file label.
Still optionally further, can according to each network equipment of corresponding same upgrade file label device identification by greatly to Small sequential build binary tree, or, can also be according to the device identification of each network equipment of corresponding same upgrade file label Ascending sequential build binary tree.
Wherein, binary tree is the ordered tree that each node is up to two subtrees, must have a specific node to be referred to as root (ROOT) node.One binary tree includes i layers, and i-th layer of node total number is no more than 2^ (i-1).In binary tree, to each section For point, its next stage node can be described as the child node of the node, and its even higher level of node can be described as the father node of the node.It is this Set membership between node represents to correspond to the level forwarding relation between the network equipment of same upgrade file label in network. Upgrade file will be forwarded to the child node of the father node by father node, then the child node of the child node is forwarded to by the child node, The like.
In one example, the device identification of corresponding same upgrade file label includes mark A, mark B, mark C and mark D, this 4 the identified network equipments of mark can be 4 interchangers, router, access device or printer., can be with such as Fig. 3 The network equipment that selection mark A is identified is distributed on root node.Correspondingly, the network equipment that order mark B is identified is distributed in In the left child node of root node;The network equipment that order mark C is identified is distributed in the right child node of root node, order mark D institutes Where the network equipment of mark is distributed in the network equipment that mark B is identified in the left child node of node.
In binary tree shown in Fig. 3, the level of network equipment forwarding relation is from identifying the network equipment that A identified to mark Know the network equipment that B and C is identified to be forwarded, the network equipment that mark B is identified enters to the mark D network equipments identified Row forwarding.
In above-described embodiment or following embodiments, come for the network equipment that same upgrade file label is corresponded in network Say, it is necessary to download upgrade file according to upgrade command and upgrade file is forwarded to the network of next level for root device Equipment;For other network equipments outside root device, the upgrading that its network equipment for needing to receive last layer level issues is literary Part, and the upgrade file received is forwarded to the network equipment of next level.In order that every network equipment accurately receive and Upgrade file is forwarded, management server is after level forwarding relation is built, to corresponding to same upgrade file label in network Every network equipment in the network equipment, can be according to the layer between the network equipment that same upgrade file label is corresponded in network Level forwarding relation, by the device identification of the network equipment of the last layer level of the network equipment and the network equipment of next level and Hierarchical relationship between the network equipment of the last layer level of the network equipment and the network equipment and the network equipment of next level Configured information is sent to the network equipment.For the network equipment, the network equipment of management server transmission can be received Last layer level the network equipment and next level the network equipment device identification and the network equipment and the network equipment The network equipment of last layer level and the network equipment of next level between hierarchical relationship configured information.Alternatively, the network Equipment can store the equipment mark of the network equipment of a level thereon and the network equipment of next level by adjacency table Knowledge and corresponding hierarchical relationship configured information.
Illustrate:In a kind of adjacency table, can include hierarchical identification field, adjacent device identification field, when Preceding device identification field.Alternatively, if hierarchical identification field represents that the device identification in adjacent device identification field is marked by " 1 " The network equipment of knowledge is that the network of the last layer pole for the network equipment that the device identification in current device identification field is identified is set It is standby;If hierarchical identification field represents that the network equipment that the device identification in adjacent device identification field is identified is current for " 0 " The network equipment of next layer of pole of the network equipment that the device identification in device identification field is identified.
As shown in figure 3, for the network equipment that mark B is identified, management server can be by a level thereon The network equipment and mark A institutes that the mark D and mark B of the mark A of the network equipment and the network equipment of next level are identified Hierarchical relationship configured information between the network equipment that the network equipment and mark D of mark are identified, which is sent to mark B, to be identified The network equipment.For the network equipment that mark B is identified, the network that the mark A that management server issues is identified is received The device identification for the network equipment that equipment and mark D are identified and hierarchical relationship configured information, and can be according to the hierarchical relationship Configured information knows that the network equipment of a level thereon is to identify the network equipments that are identified of A and the network of its next level is set Standby is to identify the network equipment that D is identified.Such as a kind of adjacency table that mark B is identified is as shown in table 1:
Table 1
Current device identification field Adjacent device identification field Hierarchical identification field
B A 1
B D 0
In above-described embodiment or following embodiments, after upgrade command is issued to root device, root device can be from CDN Upgrade file is downloaded, and upgrade file is forwarded to the network equipment of next level., may during upgrade file is forwarded Upgrade file is tampered or loss of data, and the upgrade file for causing the network equipment to receive is incorrect, based on this, in root device And/or after other network equipments receive upgrade file, and before being upgraded according to upgrade file, can be first to upgrading File carries out correctness verification, it is determined that upgrade file is verified by correctness and then upgraded according to upgrade file.
In a kind of optional embodiment, other networks in root device and/or level forwarding relation in addition to root device Equipment can calculate the upgrade file received Message Digest Algorithm 5 (Message Digest Algorithm, MD5) value, and MD5 values are uploaded to management server.What management server reception root device and/or other network equipments returned The MD5 values of upgrade file, and the MD5 values of the upgrade file with being locally stored are made comparisons.If root device and/or other network equipments The MD5 values of return are identical with the MD5 values being locally stored, it is meant that upgrade file is correct, then is set to root device and/or other networks Preparation send upgrading determine instruction, to indicate that root device and/or other network equipments are upgraded according to upgrade file.To root device And/or for other network equipments, after upgrading determine instruction is received, it may be determined that upgrade file is verified by correctness, is entered And it can be upgraded according to the upgrade file that itself is received.
Alternatively, if the MD5 values that root device and/or other network equipments return differ with the MD5 values being locally stored, anticipate It is incorrect that taste upgrade file, and management server can not return to upgrading determine instruction to root device and/or other network equipments.It is right For root device, if not receiving the upgrading determine instruction that management server issues, it can be taken again from management server, CDN Business device or Cloud Server download upgrade file.And for other network equipments, if not receiving the upgrading that management server issues Determine instruction, then directly it can download upgrade file from management server, CDN server or Cloud Server.
Except it is above-mentioned the method for correctness verification is carried out to upgrade file in addition to, management server will can also be locally stored MD5 values are issued to root device and/or other network equipments, and the MD5 of upgrade file is calculated by root device and/or other network equipments Value, and whether the MD5 values for comparing the MD5 values calculated and receiving are identical with to upgrade file progress correctness verification.
Device updating method is described from the angle of management server for above-described embodiment emphasis, and example below will Device updating method is carried out from the angle of the root device in each network equipment for needing to use same upgrade file to be upgraded Description.As shown in figure 4, the device updating method performed by root device includes:
201st, the upgrade command that management server issues is received.
202nd, upgrade file corresponding to upgrade command is downloaded.
203rd, upgraded according to upgrade file.
The 204th, upgrade file is forwarded to the node device that the next level of root device is in level forwarding relation, for Node device is upgraded according to upgrade file;Wherein, level forwarding relation refers to need to use what upgrade file was upgraded Hierarchical relationship between each network equipment.
In the present embodiment, it is in each network equipment that root device refers to need to use same upgrade file to be upgraded The network equipment of first level in level forwarding relation.
For root device, the upgrade command that management server issues is received.Wherein, upgrade command is indicating that root is set Standby upgrade file of downloading is upgraded, and forwards upgrade file to the network equipment of next level.Based on this, root device is receiving To after upgrade command, on the one hand download upgrade file corresponding to upgrade command and upgraded according to upgrade file;The opposing party Upgrade file is forwarded to the node device that the next level of the root device is in level forwarding relation by face, for the node Equipment is upgraded according to the upgrade file.
Alternatively, can be taken with reference to the way of realization of network system, root device from management server, CDN server or cloud Business device downloads upgrade file corresponding to upgrade command.Alternatively, upgrade file label can be included in upgrade command, root device can To download upgrade file corresponding to the upgrade file label.
Wherein, the first level that root device is in level forwarding relation, based on this, root device can turn upgrade file It is sent to the node device in the next level of root device, that is, the node device of the second level.Wherein, relation is forwarded in level In the network equipment in addition to the first level can be described as node device.Alternatively, the node device of each level can be one It is or multiple.Root device in the first level is one.
Alternatively, the node device of next level of root device is after upgrade file is received, on the one hand according to upgrading text Part is upgraded, and on the other hand also can forward the upgrade file to the node device of its next level.
What deserves to be explained is the present embodiment does not limit root device carries out upgrading with upgrade file is turned according to upgrade file It the execution sequence being sent between the node device of the next level of root device, can sequentially perform, can also perform parallel.For example, Root device after upgrade file is downloaded, upgrade file can be forwarded to the node device of the next level of root device, Ran Houzai Upgraded according to upgrade file.Or root device can be upgraded after upgrade file is downloaded using upgrade file While, upgrade file is forwarded to the node device of the next level of root device.
In the present embodiment, root device can the upgrading according to corresponding to the upgrade command that management server issues downloads upgrade command File, upgrade file is then forwarded to the node device that the next level of root device is in level forwarding relation, for section Point device is upgraded according to upgrade file.Root device is engaged with management server so that upgrade file can need to make Forwarding downwards step by step between the network equipment upgraded with same upgrade file, risen without all-network equipment from being stored with Upgrade file is downloaded on the server of level file, can not only mitigate the concurrent pressure of management server, and can reduce down The flow of upgrade file consumption is carried, if upgrade file is stored in CDN server, CDN flows can be saved.
In above-described embodiment or following embodiments, root device manages and is maintained in staging business by adjacency table In be in root device in same level forwarding relation and the device identification of the node device of next level in root device.Its In, in order to forward upgrade file to the node device of next level, established between root device and the node device of its next level There are communication port, and the equipment of the node device of the next level for the root device safeguarded in the communication port and adjacency table Binding relationship is established between mark.Based on this, upgrade file is forwarded in level forwarding relation and is in root device by root device Next level node device, including:
Adjacency table corresponding to root device inquiry staging business, is set with obtaining the node of next level in root device Standby device identification;The communication port bound by the device identification with the node device, is forwarded to node by upgrade file and sets It is standby.
Alternatively, the type of service of the network equipment includes but is not limited to staging business, distribution service, communication service etc., no Same type of service corresponds to different adjacency tables.Adjacency table in the present embodiment refers to adjacent corresponding to staging business Connect relation table.Be stored with adjacency table node device device identification and node device and root device between level close It is configured information.Here node device refers to the node device of the next level of root device.The device identification of node device can Unique mark node device, for example, the IP address of node device, series number etc..
Hierarchical relationship configured information between node device and root device is used for the equipment for indicating next level of root device Equipment for node device, or the last layer level of node device is root device.
Based on the information stored in adjacency table, equipment that root node can inquire node device from adjacency table Mark, that is, determine the destination of forwarding.Then, the communication port that root device is bound by the device identification with node device, will Upgrade file is forwarded to node device.
Alternatively, root device can pre-establish the communication port between node device.According to root device and node device Between communication protocol difference, the communication port between node device established would also vary from.With root device and Exemplified by node device is AP, and using the tunnel protocol for supporting roaming between each AP, based on this, each AP can be from management service Device obtains roaming neighbor information, and then establishes roaming tunnel with adjacent AP.Wherein, roaming neighbor information is standardization communication protocol It is middle to establish the information interacted during communication connection.
In the above-described embodiments, need to inquire about upgrading when root device forwards upgrade file to the node device of its next level Adjacency table corresponding to business.Alternatively, management server can forward previously according to level corresponding to above-mentioned upgrade file Relation, by the hierarchical relationship between the device identification of the node device of next level of root device and node device and root device Configured information is handed down to root device.Based on this, root device can receive the device identification for the node device that management server issues And the hierarchical relationship configured information between node device and root device;Then, by the device identification of node device and node Hierarchical relationship configured information between equipment and root device is stored into adjacency table, so as to previously generate adjacency table. Alternatively, management server can be by a message, such as notice message is by the device identification of node device and node device Hierarchical relationship configured information between root device is handed down to root device.
For ease of management server according to level forward relation to root device issue its node device device identification and Hierarchical relationship configured information between node device and root device, root device can upload root device to management server in advance Device identification and root device upgrade the mark of required upgrade file, i.e. upgrade file label.Similarly, node device The device identification to management server uploading nodes equipment and node device upgrade the mark of required upgrade file in advance Know, i.e. upgrade file label.Management server is receiving the device identification of root device and node device and corresponding upgrading After file label, each network equipment for needing to use same upgrade file to be upgraded can be directed to and establish level forwarding relation.
Further, it is contemplated that the network equipment may be different due to type difference, version difference, performance so that need to use Upgrade file it is different.Based on this, root device generates upgrade file label according to the attribute information of itself, and upgrade file label is used In the upgrade file needed for mark root device upgrading, and the unique mark of upgrade file.Alternatively, the attribute information of root device The information such as device type, version, performance including root device.Then, root device setting upgrade file label and root device Standby mark is sent to management server, for management server structure level forwarding relation.Management server is set receiving root The device identification sent after standby upgrade file label and device identification with reference to other each network equipments and corresponding upgrading text Part label, identify different upgrade file labels.Then, to each different upgrade file label, upgrade file mark is established Corresponding relation between the device identification of the network equipment of label and respective upgrades file label;And then build corresponding same upgrading text Level forwarding relation between the root device and node device of part label.
, can be to upgrade file before being upgraded according to upgrade file in above-described embodiment or following embodiments Carry out correctness verification.When correctness verification passes through, then perform updating operation.In the present embodiment, it can use and compare upgrading The method of the MD5 values of file carries out correctness verification to upgrade file.
First, root device calculates the MD5 values of downloaded upgrade file.Then, the MD5 values for calculating gained are sent to pipe Server is managed, so that management server carries out correctness verification according to MD5 values to upgrade file.
Alternatively, management server, can be by the MD5 received the and MD5 being locally stored value phases after MD5 values are received Than if the MD5 values received are identical with the MD5 values being locally stored, upgrading determine instruction being sent to root device, to indicate root device Upgraded according to upgrade file.
For root device, when receiving the upgrading determine instruction that management server issues, determine that upgrade file passes through Correctness verifies.It is alternatively possible to be set, if within a specified time receiving upgrading determine instruction, it is determined that rising a specified time Level file is verified by correctness.Then, root device is upgraded according to upgrade file.
If not receiving upgrading determine instruction within a specified time, determine that upgrade file is not verified by correctness, then may be used To abandon upgrade file, and re-download upgrade file.
Certainly, the MD5 values being locally stored can also be issued to root device by management server in advance.Root device, which calculates, to be downloaded Upgrade file MD5 values, compare the MD5 values that calculate and the MD5 values received from management server.If the two is identical, it is determined that Upgrade file is verified by correctness, and root device is upgraded according to upgrade file.If the two is differed, determine upgrade file not Verified by correctness, upgrade file can be re-downloaded.
Above example describes the flow of device updating method from the angle of root device, and example below will turn from level The angle of node device in hair relation is described.As shown in figure 5, the device updating method performed by node device includes:
301st, the upgrade file that first network equipment is sent is received.
302nd, judge first network equipment whether be in level forwarding relation in node device last layer level net Network equipment.When judged result is to be, step S303 is performed;When judged result is no, step S304 is performed.
303rd, upgraded according to upgrade file, and upgrade file is forwarded to and set in level forwarding relation in node The network equipment of standby next level, so that the network equipment of next level in node device is risen according to upgrade file Level, terminates this operation.
304th, upgrade file is abandoned, terminates this operation.
Node device in the present embodiment refers to the network equipment of next level of first network equipment.Wherein first network is set Standby can be the network equipment of any level, such as root device, the equipment of the second level, third layer level in level forwarding relation Equipment etc..
When first network equipment is root device, it can download upgrade file, and upgrade file is forwarded into the second layer The equipment of level;Now, the equipment of the second level is exactly the node device in the present embodiment.When first network equipment is the second level The network equipment when, upgrade file further can be forwarded to by it after the upgrade file that root device issues is received The equipment of three levels;Now, the equipment of third layer level is exactly the node device in the present embodiment.
Node device can directly receive the upgrade file of first network equipment transmission, without the service to storage upgrade file Device, as CDN server downloads upgrade file.
It should meet that level forwards relation between first network equipment and node device.Level forwarding relation refers to need to use Hierarchical relationship between each network equipment that upgrade file is upgraded.Each network equipment can be divided into different levels, such as from The first level, the second level, third layer level etc. are up to followed successively by down;Upgrade file can be forwarded to by the network equipment of the first level Upgrade file can be forwarded to the network equipment of third layer level by the network equipment of the second level, the network equipment of the second level, according to It is secondary to analogize.
Based on this, it can be determined that whether first network equipment is the last layer that node device is in level forwarding relation The network equipment of level, when judged result for when being, it is meant that node device meets that level forwards relation with first network equipment, holds Row step 303;When judged result is no, it is meant that node device is unsatisfactory for level forwarding relation with first network equipment, holds Row step 304.
In step 303, node device can be upgraded according to the upgrade file received from first network equipment, and Upgrade file is forwarded to the network equipment that the next level of node device is in level forwarding relation.If node device is The network equipment of second level, upgrade file can be forwarded to the network equipment of third layer level;If node device is the 3rd The network equipment of level, upgrade file can be forwarded to the network equipment of the 4th level, the like.
What deserves to be explained is the present embodiment do not limit node device according to upgrade file carry out upgrading with by upgrade file The execution sequence being forwarded between the network equipment of next level, can sequentially it perform, can also parallel instruction.For example, node Equipment can first be upgraded, then upgrade file is forwarded to the network equipment of next level.Or node device can also be first Upgrade file is forwarded to the network equipment of next level, then upgraded.Or node device can also be in the same of upgrading When, upgrade file is forwarded to the network equipment of next level.
In step 304, node device is unsatisfactory for level forwarding relation with first network equipment, it is meant that first network is set The upgrade file that preparation is sent is not the upgrade file required for node device, then abandons the upgrade file, and terminates this operation.
What deserves to be explained is the node device of the present embodiment can be the network equipment of any level in addition to root device.
In the present embodiment, node device directly can obtain upgrade file from the network equipment of last layer level, and according to Level forwards relation, and upgrade file is forwarded to the network equipment of next level, can root so as to the network equipment of next level Upgraded according to the upgrade file received from node device so that can according to level forward relation, node device and after Upgrade file is forwarded between continuous neighbouring device, the network equipment of other each levels in addition to root device need not be from storage upgrade file File server download upgrade file, reduce and download the flow that is consumed of upgrade file, if upgrade file is stored in CDN clothes Business device, then can save CDN flows.
In above-described embodiment or following embodiments, node device manages and is maintained in upgrading industry by adjacency table It is in business with root device in same level forwarding relation and the node of the last layer level in node device and next level is set Standby device identification.
Based on this, judge whether first network equipment is the last layer level that node device is in level forwarding relation The network equipment, including:Adjacency table corresponding to staging business is inquired about, it is upper in node device in adjacency table to judge It whether there is the device identification of first network equipment in the device identification of the network equipment of one level.When judged result is presence When, determine the network equipment of the first network equipment for the last layer level in node device in level forwarding relation.
The equipment mark of the network equipment of the last layer level in node device is stored with the adjacency table of node device Knowledge and the hierarchical relationship configured information between node device and the network equipment of the last layer level in node device.Wherein, Hierarchical relationship configured information between node device and the network equipment of last layer level in node device is used to indicate node Hierarchical relationship up and down between the network equipment of equipment and last layer level.
In the presence of judged result is, it is meant that device identification is inquired from adjacency table corresponding to staging business, Also it is assured that the network equipment of the first network equipment for the last layer level in node device in level forwarding relation.
When judged result be in the absence of when, it is meant that do not inquire equipment mark from adjacency table corresponding to staging business Know, it is not that the network of last layer level in node device is set in level forwarding relation to be assured that first network equipment yet It is standby.
Node device is it is determined that first network equipment is the last layer level in node device in level forwarding relation After the network equipment, upgrade file can be forwarded to the node device of its next level.Wherein, in order to the node of next level Being established between the node device of device forwards upgrade file, node device and its next level has communication port, and is set in node The next level for the node device safeguarded in standby communication port and adjacency table between the node device of its next level Node device device identification between establish binding relationship.Based on this, node device is forwarded in level by upgrade file , can be by inquiring about adjacency table, to obtain place in forwarding relation during the network equipment of next level in node device In the device identification of the network equipment of next level of node device, and then pass through the net with next level in node device The communication port of the device identification binding of network equipment, the network that upgrade file is forwarded to next level in node device are set It is standby.
Wherein, be also stored with adjacency table the device identification of the network equipment of next level in node device with And the hierarchical relationship configured information between node device and the network equipment of next level in node device.Wherein, node Hierarchical relationship configured information between equipment and the network equipment of next level in node device is used to indicate node device Hierarchical relationship up and down between the network equipment of next level.
Alternatively, the communication that node device can be pre-established between the node device in the next level of node device is led to Road.According to the difference of communication protocol between node device and the node device of its next level, established with its next level Node device between communication port would also vary from.Node device using node device and its next level is as AP Example, and using the tunnel protocol for supporting roaming between each AP, based on this, each AP can obtain roaming neighbours from management server Information, and then establish roaming tunnel with adjacent AP.Wherein, roaming neighbor information is to establish communication connection in standardization communication protocol When the information that interacts.
In the above-described embodiments, node device judges whether first network equipment is that node is in level forwarding relation The network equipment of the last layer level of equipment and need to inquire about when upgrade file is forwarded into the node device of its next level and rise Adjacency table corresponding to level business.Alternatively, management server can forward previously according to level corresponding to above-mentioned upgrade file Relation, by the device identification of the network equipment of the last layer level of node device and node device and the last layer in node device Hierarchical relationship configured information between the network equipment of level, and the device identification of the network equipment of next level of node device Hierarchical relationship configured information between node device and the network equipment of next level in node device is handed down to node Equipment.Based on this, node device can receive the network equipment for the last layer level in node device that management server issues Device identification, its next level the network equipment device identification, with node device last layer level the network equipment Between hierarchical relationship configured information and between the network equipment of next level in node device hierarchical relationship instruction Information, and above- mentioned information is stored in adjacency table, so as to previously generate adjacency table.Alternatively, management server Above- mentioned information can be issued to by node device by a message, such as notice message.
In the present embodiment, by previously generating adjacency table so that node device, can be with after upgrade file is received Directly by inquiring about adjacency table, first network equipment is determined to be in the last layer of node device in level forwarding relation The network equipment of level, and upgrade file is forwarded to the network equipment of next level as early as possible, improve update rate.
The last layer level in node device is issued to node device according to level forwarding management for ease of management server The device identification of the network equipment, its next level the network equipment device identification, with the last layer level in node device The network equipment between hierarchical relationship configured information and the layer between the network equipment of next level in node device Level relation configured information, node device can the device identification to management server uploading nodes equipment and node devices in advance Upgrade the mark of required upgrade file, i.e. upgrade file label.Similarly, in the above-described embodiments, root device is also advance Its device identification and upgrade file label are uploaded to management server.Management server is receiving node device and root device After device identification and corresponding upgrade file label, each network for needing to use and being upgraded with a upgrade file can be directed to Equipment establishes level forwarding relation.
Further, it is contemplated that the network equipment may be different due to type difference, version difference or performance so that need The upgrade file used is different.Based on this, upgrading label is generated according to the attribute information of second network equipment, upgrading label is used for Identify the unique mark of the upgrading type, i.e. upgrade file belonging to second network equipment.Wherein, second network equipment refers to this implementation The executive agent of example:Node device.The attribute information of second network equipment includes device type, version, the performance of node device Etc. information.
Then, the device identification for upgrading label and second network equipment is sent to management server by node device, with For management server generation level forwarding relation.Management server is receiving the upgrade file label and equipment mark of node device The device identification sent after knowledge with reference to other each network equipments and corresponding upgrade file label, identify different upgradings File label.Then, to each different upgrade file label, the net of upgrade file label and respective upgrades file label is established Corresponding relation between the device identification of network equipment;And then build the root device and node device of corresponding same upgrade file label Between level forwarding relation.
, can be to upgrade file before being upgraded according to upgrade file in above-described embodiment or following embodiments Carry out correctness verification.When correctness verification passes through, then perform updating operation.In the present embodiment, it can use and compare upgrading The method of the MD5 values of file carries out correctness verification to upgrade file.
First, node device calculates the MD5 values of the upgrade file received.Then, it is right according to the MD5 values of upgrade file Upgrade file carries out correctness verification.
Alternatively, the MD5 values for calculating gained can be also sent to management server by node device, and management server is receiving , can be by the MD5 received compared with the MD5 values being locally stored, if the MD5 values that receive and being locally stored to after MD5 values MD5 values are identical, and upgrading determine instruction is sent to node device.When node device receives upgrading determine instruction, it is believed that Upgrade file is verified by correctness, and then performs the operation upgraded according to upgrade file.
Still optionally further, when node device within a specified time receives upgrading determine instruction, it is believed that upgrading File is verified by correctness.If not receiving upgrading determine instruction within a specified time, determine upgrade file not by correct Property verification, it is meant that there is mistake in repeating process in upgrade file, can abandon the upgrade file, and thinks highly of from file service Newly downloaded upgrade file.Alternatively, node device can send upgrade file solicited message, file server to file server After upgrade file solicited message is received, upgrade file is directly issued to node device.Alternatively, node device can be with Direct log file server, actively downloads upgrade file from file server.
Certainly, the MD5 values being locally stored can also be issued to node device by management server in advance.Node device calculates The MD5 values of the upgrade file of reception, compare the MD5 values calculated and the MD5 values received from management server.If the two is identical, Determine that upgrade file is verified by correctness, node device is upgraded according to upgrade file.If the two is differed, it is determined that upgrading File is not verified by correctness, can re-download upgrade file from file server.
Fig. 6 is the flow chart for another device updating method that the another embodiment of the application provides.As shown in fig. 6, the party Method includes:
401st, each network equipment generation upgrade file label in network.
For ease of description, first network equipment and second network equipment are only shown in Fig. 6, but be not limited to this.
402nd, each network equipment sends the device identification of oneself and corresponding upgrade file label to management server.
403rd, management server is after the upgrade file label of each network equipment and device identification is received, for corresponding same The network equipment structure level forwarding relation of one upgrade file label.
404th, management server is directed to level corresponding to each upgrade file label and forwards relation, is sent out to corresponding network equipment Send notice message, the equipment that the notice message includes the last layer pole of the network equipment and/or the network equipment of next level Mark and hierarchical relationship configured information.
405th, each network equipment receives notice message, and by the device identification in notice message and hierarchical relationship configured information Store in adjacency table.
So far, device upgrade preprocessing process terminates.
406th, when needing to upgrade equipment to be upgraded, management server can identify from sets of network devices to be upgraded The root device of the first level is in each level forwarding relation that the sets of network devices is related to.
Assuming that first network equipment and second network equipment are in same level forwarding relation, and first network equipment is Root device, second network equipment are the node device of next level of first network equipment.
407th, management server issues upgrade command to first network equipment.
408th, first network equipment can download upgrade file after upgrade command is received from file server.
409th, first network equipment is upgraded according to upgrade file.
Wherein, after first network device downloads upgrade file, updating operation directly can be carried out according to upgrade file, Upgrade file can be carried out after verification passes through, then carry out updating operation.For example, first network equipment can calculate upgrade file MD5 values;MD5 values are sent to management server.Management server is sentenced after the MD5 values that first network equipment is sent are received Whether the MD5 values that disconnected first network equipment is sent are identical with the MD5 values being locally stored;If judged result is identical, to the first net Network equipment sends upgrading determine instruction.First network equipment can be carried out after upgrading determine instruction is received according to upgrade file Upgrading.
410th, upgrade file is forwarded to second network equipment by first network equipment according to adjacency table.
The execution sequencing of above-mentioned steps 410 and step 409 does not limit.
411st, second network equipment is upper one according to syntople list deciding first network equipment after upgrade file is received The network equipment of level.
412nd, second network equipment is upgraded according to upgrade file.
Wherein, second network equipment directly can carry out upgrading behaviour after upgrade file is received according to upgrade file Make, upgrade file can also be carried out after verification passes through, then carry out updating operation.For example, second network equipment calculates upgrading text The MD5 values of part, MD5 values are sent to management server.Management server receive second network equipment send MD5 values after, Judge whether the MD5 values that second network equipment is sent are identical with the MD5 values being locally stored;If judged result is identical, to second The network equipment sends upgrading determine instruction.Second network equipment can enter after upgrading determine instruction is received according to upgrade file Row upgrading.
If the 413, second network equipment also has the node device of next level, second network equipment forwards upgrade file To the node device of next level.
Similarly, the execution sequencing of above-mentioned steps 413 and step 412 does not limit.
As can be seen here, for management server, only upgrade command need to be issued to root device, management server can be mitigated Concurrent pressure;In addition, taken without all network equipments upgraded using same upgrade file where upgrade file Business device downloads upgrade file, reduces the number of devices that upgrade file is downloaded from server where upgrade file, so that rising Level file can be stored on any kind of server.If upgrade file is stored in CDN server, it is possible to reduce device upgrade The CDN flows consumed;If upgrade file is stored in management server, the band downloaded shared by upgrade file can be reduced Width, the influence to miscellaneous equipment or business is reduced, and CDN flows need not be consumed.
The embodiment of the present application also provides a kind of server, as shown in fig. 7, server 500 includes:Determining module 501, identification Module 502 and server sending module 503.
Determining module 501, for determining to need to use same upgrade file to carry out from sets of network devices to be upgraded The network equipment subset of upgrading.
Identification module 502, for the layer between each network equipment in the network equipment subset that is determined according to determining module 501 Level forwarding relation, identification root device in the first level in level forwarding relation from network equipment subset.
Server sending module 503, the root device for being identified to identification module 502 issue upgrade command, with instruction Root device download upgrade file upgraded and in level forwarding relation be in root device next level the network equipment Forward upgrade file.
Alternatively, server 500 also includes setup module, for will be other in addition to root device in network equipment subset The upgrade command of the network equipment issues state and is arranged to issue, to forbid issuing upgrade command to other network equipments.
Optionally it is determined that module 501 is from sets of network devices to be upgraded, it is determined that needing to use same upgrade file During the network equipment subset upgraded, it is specifically used for:According to device upgrade configured information, each net in sets of network devices is obtained The device identification of network equipment;Corresponding relation according to present in network between each upgrade file label and device identification, it is determined that Upgrade file label corresponding to each network equipment in sets of network devices;Corresponding same upgrading text is obtained from sets of network devices The network equipment of part label forms network equipment subset.
Alternatively, server 500 also includes level forwarding relation structure module, for receiving each network equipment hair in network The device identification sent and corresponding upgrade file label;From network in upgrade file label corresponding to each network equipment, know Do not go out different upgrade file labels;To each different upgrade file label, upgrade file label and respective upgrades text are established Corresponding relation between the device identification of the network equipment of part label;The network of same upgrade file label is corresponded in structure network Level forwarding relation between equipment.
Alternatively, level forwarding relation structure module corresponds to the network equipment of same upgrade file label in network is built Between level forwarding relation when, specifically for the equipment mark according to the network equipment that same upgrade file label is corresponded in network Know and build binary tree, the node on binary tree represents to correspond to the network equipment of same upgrade file label in network, between node The set membership level that represents correspond in network between the network equipment of same upgrade file label forward relation.
Alternatively, server sending module 503, it is additionally operable to correspond to the network of same upgrade file label in network is built After level forwarding relation between equipment, every network in the network equipment to corresponding to same upgrade file label in network Equipment, relation is forwarded according to the level between the network equipment that same upgrade file label is corresponded in network, by the network equipment The device identification of the network equipment of last layer level and the network equipment of next level and the network equipment are set with the network Hierarchical relationship configured information between the network equipment of standby last layer level and the network equipment of next level is sent to network and set It is standby.
Alternatively, server 500 also includes server receiving module, for receiving root device and/or level forwarding relation In the MD5 values of upgrade file that return of other network equipments in addition to root device.Server sending module 503, if being additionally operable to The MD5 values that root device and/or other network equipments return are identical with the MD5 values being locally stored, then to root device and/or other nets Network equipment sends upgrading determine instruction, to indicate that root device and/or other network equipments are upgraded according to upgrade file.
In the present embodiment, for sets of network devices to be upgraded, it may be determined that need to use same upgrade file to be risen The network equipment subset of level;To each network equipment in network equipment subset, management server can be according in network equipment subset Level forwarding relation between each network equipment, identifies root device and issues upgrade command to root device, to indicate root device Upgrade file is downloaded to be upgraded and forward upgrade file to the network equipment of next level.For management server, without Into network equipment subset, all-network equipment issues upgrade command, can mitigate the concurrent pressure of management server;In addition, nothing Need all-network equipment in network equipment subset to download upgrade file from server where upgrade file, reduce from upgrading text Server downloads the number of devices of upgrade file where part, so that upgrade file can be stored in any kind of server On.If upgrade file is stored in CDN server, it is possible to reduce the CDN flows that device upgrade is consumed;If upgrade file stores In the bandwidth shared by download upgrade file in management server, then can be reduced, the influence to miscellaneous equipment or business is reduced, And CDN flows need not be consumed.
The embodiment of the present application also provides a kind of network equipment, and the network equipment can be used as root device to realize.As shown in figure 8, The network equipment 600 includes:Receiving module 601, download module 602, upgraded module 603 and sending module 604.
Receiving module 601, the upgrade command issued for receiving management server.
Download module 602, for downloading upgrade file corresponding to the upgrade command of the reception of receiving module 601.
Upgraded module 603, the upgrade file for being downloaded according to download module 602 are upgraded.
Sending module 604, for upgrade file to be forwarded in level forwarding relation in the next level of root device Node device, so that node device is upgraded according to upgrade file;Wherein, level forwarding relation refers to need to use upgrading text Hierarchical relationship between each network equipment that part is upgraded.
Alternatively, sending module 604 is in the next layer of root device being forwarded to upgrade file in level forwarding relation During the node device of level, specifically for adjacency table corresponding to inquiry staging business, to obtain the device identification of node device; Wherein, be stored with adjacency table node device device identification and node device and root device between hierarchical relationship refer to Show information;The communication port bound by the device identification with node device, node device is forwarded to by upgrade file.
Alternatively, receiving module 601 is inquiring about adjacency table corresponding to staging business, to obtain the equipment of node device Before mark, it is additionally operable between device identification and node device and the root device of the node device that reception management server is sent Hierarchical relationship configured information, and then by the hierarchical relationship between the device identification of node device and node device and root device Configured information is stored into adjacency table.
Alternatively, sending module 604 is additionally operable to according to root device before the upgrade command that management server issues is received Attribute information generation upgrade file label, upgrade file label be used for identify root device upgrading needed for upgrade file;It will rise The device identification of level file label and root device is sent to management server, so that management server structure level forwarding is closed System.
Alternatively, the network equipment 600 also includes computing module and determining module.Wherein, computing module is used to calculate and upgraded The MD5 values of file.MD5 values are sent to management server by sending module, for management server according to MD5 values to upgrade file Carry out correctness verification.When receiving the upgrading determine instruction that management server issues, determining module can determine that upgrade file Verified by correctness.
In the present embodiment, root device can the upgrading according to corresponding to the upgrade command that management server issues downloads upgrade command File, upgrade file is then forwarded to the node device that the next level of root device is in level forwarding relation, for section Point device is upgraded according to upgrade file.Root device is engaged with management server so that upgrade file can need to make Forwarding downwards step by step between the network equipment upgraded with same upgrade file, risen without all-network equipment from being stored with Upgrade file is downloaded on the server of level file, can not only mitigate the concurrent pressure of management server, and can reduce down The flow of upgrade file consumption is carried, if upgrade file is stored in CDN server, CDN flows can be saved.
The embodiment of the present application also provides a kind of network equipment, and the network equipment can be used as node device to realize.Such as Fig. 9 institutes Show, the network equipment 700 includes:Receiving module 701, judge module 702, upgraded module 703 and sending module 704.
Receiving module 701, for receiving the upgrade file of first network equipment transmission.
Judge module 702, for judging whether first network equipment is that the node device is in level forwarding relation Last layer level the network equipment.
Upgraded module 703, for when the judged result of judge module 702 is is, being upgraded according to upgrade file.
Sending module 704, next layer of node device is in level forwarding relation for upgrade file to be forwarded to The network equipment of level, so that the network equipment of next level in node device is upgraded according to upgrade file;Wherein, layer Hierarchical relationship between each network equipment that level forwarding relation refers to need to use upgrade file to be upgraded.
Alternatively, judge module 702 is judging whether first network equipment is to be set in level forwarding relation in node During the network equipment of standby last layer level, it is specifically used for:Adjacency table corresponding to staging business is inquired about, to judge syntople It whether there is the equipment mark of first network equipment in table in the device identification of the network equipment of last layer level in node device Know;In the presence of judged result is, first network equipment is determined to be in the last layer of node device in level forwarding relation The network equipment of level.
Alternatively, upgrade file is being forwarded in level forwarding relation under node device by sending module 704 During the network equipment of one level, specifically for inquiring about adjacency table, to obtain the network of next level in node device The device identification of equipment;Wherein, the network equipment of the last layer level in node device and next is stored with adjacency table The network equipment of the device identification of the network equipment of level and node device and the last layer level in node device and next Hierarchical relationship configured information between the network equipment of level;Pass through the network equipment with next level in node device The communication port of device identification binding, upgrade file is forwarded to the network equipment of next level in node device.
Alternatively, receiving module 701 is additionally operable to receive management before the upgrade file that first network equipment is sent is received The device identification of the network equipment of the next level for the node device that server issues and node device are with being in node device Hierarchical relationship configured information between the network equipment of next level;By the equipment of the network equipment of next level of node device Mark and the hierarchical relationship configured information storage between node device and the network equipment of next level in node device are arrived In adjacency table.
Alternatively, sending module 704 is before the level forwarding relation that issues of management server is received, and is additionally operable to according to the The attribute information generation upgrading label of two network equipments, upgrading label are used to identify the upgrading type belonging to second network equipment; The device identification for upgrading label and second network equipment is sent to management server, so that management server generation level turns Hair relation.
Alternatively, the network equipment 700 also includes correction verification module, and for the MD5 values according to upgrade file, upgrade file is entered Row correctness verifies;When upgrade file is verified by correctness, the operation upgraded according to upgrade file is performed.
Alternatively, the network equipment 700 also includes acquisition module, for when upgrade file is not verified by correctness, from File server obtains upgrade file.
In the present embodiment, node device directly can obtain upgrade file from the network equipment of last layer level, and according to Level forwards relation, and upgrade file is forwarded to the network equipment of next level, can root so as to the network equipment of next level Upgraded according to the upgrade file received from node device so that can according to level forward relation, node device and after Upgrade file is forwarded between continuous neighbouring device, the network equipment of other each levels in addition to root device need not be from storage upgrade file File server download upgrade file, reduce and download the flow that is consumed of upgrade file, if upgrade file is stored in CDN clothes Business device, then can save CDN flows.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net Network interface and internal memory.
Internal memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moved State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM), Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus Or any other non-transmission medium, the information that can be accessed by a computing device available for storage.Define, calculate according to herein Machine computer-readable recording medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability Comprising so that process, method, commodity or equipment including a series of elements not only include those key elements, but also wrapping Include the other element being not expressly set out, or also include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that wanted including described Other identical element also be present in the process of element, method, commodity or equipment.
Embodiments herein is the foregoing is only, is not limited to the application.For those skilled in the art For, the application can have various modifications and variations.All any modifications made within spirit herein and principle, it is equal Replace, improve etc., it should be included within the scope of claims hereof.

Claims (17)

1. a kind of device updating method, applied to management server, it is characterised in that methods described includes:
Determine to need to use the network equipment subset that same upgrade file is upgraded from sets of network devices to be upgraded;
Known according to the level forwarding relation between each network equipment in the network equipment subset from the network equipment subset The root device of the first level is in not in the level forwarding relation;
Issue upgrade command to the root device, with indicate the root device download the upgrade file upgraded and to The network equipment of next level in the root device forwards the upgrade file in the level forwarding relation.
2. according to the method for claim 1, it is characterised in that also include:
The upgrade command of other network equipments in the network equipment subset in addition to the root device is issued into state to set To have issued, to forbid issuing the upgrade command to other network equipments.
3. according to the method for claim 1, it is characterised in that described to determine to need from sets of network devices to be upgraded The network equipment subset upgraded using same upgrade file, including:
The device identification of each network equipment in the sets of network devices is obtained according to device upgrade configured information;
Corresponding relation according to present in network between each upgrade file label and device identification, determine the network equipment collection Upgrade file label corresponding to each network equipment in conjunction;
The network equipment that corresponding same upgrade file label is obtained from the sets of network devices forms the network equipment Collection.
4. according to the method for claim 3, it is characterised in that the net is obtained according to device upgrade configured information described In network cluster tool before the mark of each network equipment, methods described also includes:
Receive the device identification and corresponding upgrade file label that each network equipment is sent in the network;
From the network in upgrade file label corresponding to each network equipment, different upgrade file labels is identified;
To each different upgrade file label, network of the upgrade file label with the corresponding upgrade file label is established Corresponding relation between the device identification of equipment;
Build the level forwarding relation between the network equipment that same upgrade file label is corresponded in the network.
5. according to the method for claim 4, it is characterised in that correspond to same upgrade file in the structure network After level forwarding relation between the network equipment of label, methods described also includes:
Every network equipment in the network equipment to corresponding to same upgrade file label in the network, according in the network Level forwarding relation between the network equipment of corresponding same upgrade file label, by the net of the last layer level of the network equipment The device identification of the network equipment of network equipment and next level and the last layer level of the network equipment and the network equipment The network equipment and next level the network equipment between hierarchical relationship configured information be sent to the network equipment.
6. according to the method described in claim any one of 1-5, it is characterised in that issue upgrading described to the root device and refer to After order, methods described also includes:
Receive what other network equipments in the root device and/or the level forwarding relation in addition to the root device returned The Message Digest Algorithm 5 MD5 values of the upgrade file;
If the MD5 values that the root device and/or other network equipments return are identical with the MD5 values being locally stored, to institute State root device and/or other network equipments send upgrading determine instruction, to indicate the root device and/or other nets Network equipment is upgraded according to the upgrade file.
7. a kind of device updating method, applied to root device, it is characterised in that methods described includes:
Receive the upgrade command that management server issues;
Download upgrade file corresponding to the upgrade command;
Upgraded according to the upgrade file;And
The upgrade file is forwarded to the node device that the next level of the root device is in level forwarding relation, for The node device is upgraded according to the upgrade file;Wherein, the level forwarding relation refers to need to use the liter Hierarchical relationship between each network equipment that level file is upgraded.
8. according to the method for claim 7, it is characterised in that described be forwarded to the upgrade file forwards pass in level The node device of the next level of the root device is in system, including:
Adjacency table corresponding to staging business is inquired about, to obtain the device identification of the node device;Wherein, the adjacent pass Be be stored with table the node device device identification and the node device and the root device between hierarchical relationship Configured information;
The communication port bound by the device identification with the node device, is forwarded to the node by the upgrade file and sets It is standby.
9. according to the method for claim 8, it is characterised in that adjacency table corresponding to staging business is inquired about described, So that before obtaining the device identification of the node device, methods described also includes:
The device identification and the node device for receiving the node device that the management server is sent are set with described Hierarchical relationship configured information between standby;
Hierarchical relationship between the device identification of the node device and the node device and the root device is indicated into letter Breath storage is into the adjacency table.
10. according to the method for claim 7, it is characterised in that in the upgrade command that the reception management server issues Before, methods described also includes:
Upgrade file label is generated according to the attribute information of the root device, the upgrade file label is set for identifying described Upgrade file needed for standby upgrading;
The device identification of the upgrade file label and the root device is sent to the management server, for the pipe Manage level forwarding relation described in server construction.
11. according to the method described in claim any one of 7-10, it is characterised in that carried out described according to the upgrade file Before upgrading, methods described also includes:
Calculate the MD5 values of the upgrade file;
The MD5 values are sent to the management server, for the management server according to the MD5 values to the upgrading File carries out correctness verification;
When receiving the upgrading determine instruction that the management server issues, determine that the upgrade file passes through correctness school Test.
12. a kind of device updating method, applied to node device, it is characterised in that methods described includes:
Receive the upgrade file that first network equipment is sent;
Judge the first network equipment whether be in level forwarding relation in the node device last layer level net Network equipment;Wherein, between each network equipment that level forwarding relation refers to need to use the upgrade file to be upgraded Hierarchical relationship;
When judged result is to be, upgraded according to the upgrade file, and the upgrade file is forwarded in the layer The network equipment of next level in the node device in level forwarding relation, for next layer in the node device The network equipment of level is upgraded according to the upgrade file.
13. according to the method for claim 12, it is characterised in that described to judge whether the first network equipment is in layer The network equipment of last layer level in the node device in level forwarding relation, including:
Adjacency table corresponding to staging business is inquired about, to judge to be in upper the one of the node device in the adjacency table It whether there is the device identification of the first network equipment in the device identification of the network equipment of level;
In the presence of judged result is, the first network equipment is determined to be in the node in the level forwarding relation The network equipment of the last layer level of equipment;
It is described that the upgrade file is forwarded to next level in the node device in the level forwarding relation The network equipment, including:
The adjacency table is inquired about, to obtain the device identification of the network equipment of next level in the node device, The network equipment of the last layer level in the node device is stored with the adjacency table and the network of next level is set The network equipment and next level of standby device identification and the node device with the last layer level in the node device The network equipment between hierarchical relationship configured information;
The communication port bound by the device identification of the network equipment with next level in the node device, by described in Upgrade file is forwarded to the network equipment of next level in the node device.
A kind of 14. server, it is characterised in that including:
Determining module, for determining the net for needing to use same upgrade file to be upgraded from sets of network devices to be upgraded Network subset of devices;
Identification module, for forwarding relation from the network according to the level between each network equipment in the network equipment subset Identification is in the root device of the first level in the level forwarding relation in subset of devices;
Server sending module, for issuing upgrade command to the root device, to indicate that the root device downloads the upgrading File is upgraded and forwards institute to the network equipment for next level that the root device is in the level forwarding relation State upgrade file.
15. server according to claim 14, it is characterised in that also include:
Setup module, for by the upgrade command of other network equipments in the network equipment subset in addition to the root device The state of issuing is arranged to issue, to forbid issuing the upgrade command to other network equipments.
16. a kind of network equipment, root device can be used as to realize, it is characterised in that the network equipment includes:
Receiving module, the upgrade command issued for receiving management server;
Download module, for downloading upgrade file corresponding to the upgrade command;
Upgraded module, for being upgraded according to the upgrade file;
Sending module, next level of the root device is in level forwarding relation for the upgrade file to be forwarded to Node device, so that the node device is upgraded according to the upgrade file;Wherein, the level forwarding relation refers to Need to use the hierarchical relationship between each network equipment that the upgrade file upgraded.
17. a kind of network equipment, node device can be used as to realize, it is characterised in that the network equipment includes:
Receiving module, for receiving the upgrade file of first network equipment transmission;
Judge module, for judging whether the first network equipment is that the node device is in level forwarding relation The network equipment of last layer level;Wherein, what level forwarding relation referred to need to use the upgrade file to be upgraded is each Hierarchical relationship between the network equipment;
Upgraded module, for when judged result is to be, being upgraded according to the upgrade file;
Sending module, it is in for the upgrade file to be forwarded in the level forwarding relation under the node device The network equipment of one level, carried out for the network equipment of next level in the node device according to the upgrade file Upgrading.
CN201710967355.1A 2017-10-17 2017-10-17 Device updating method, the network equipment and server Pending CN107682197A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710967355.1A CN107682197A (en) 2017-10-17 2017-10-17 Device updating method, the network equipment and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710967355.1A CN107682197A (en) 2017-10-17 2017-10-17 Device updating method, the network equipment and server

Publications (1)

Publication Number Publication Date
CN107682197A true CN107682197A (en) 2018-02-09

Family

ID=61139728

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710967355.1A Pending CN107682197A (en) 2017-10-17 2017-10-17 Device updating method, the network equipment and server

Country Status (1)

Country Link
CN (1) CN107682197A (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737178A (en) * 2018-05-21 2018-11-02 珠海中慧微电子有限公司 The upgrade method of wireless network child nodes
CN108762792A (en) * 2018-06-21 2018-11-06 普联技术有限公司 Upgrading network equipment method, upgrade server, terminal device and storage medium
CN109710285A (en) * 2018-11-22 2019-05-03 网宿科技股份有限公司 A kind of device updating method and system
CN110769057A (en) * 2019-10-25 2020-02-07 广东博智林机器人有限公司 Automatic upgrading method, device and system based on cascade system
CN110851186A (en) * 2019-11-08 2020-02-28 迈普通信技术股份有限公司 Network equipment restarting method and device, electronic equipment and readable storage medium
CN110875850A (en) * 2019-09-27 2020-03-10 深圳市中电数通智慧安全科技股份有限公司 Firmware upgrading method and system, readable storage medium and terminal equipment
WO2020062048A1 (en) * 2018-09-28 2020-04-02 西门子股份公司 Method for transmitting update data, content delivery network node and data update system
CN111176674A (en) * 2018-11-12 2020-05-19 中移(杭州)信息技术有限公司 OSGI plug-in upgrading method and device, electronic equipment and storage medium
CN111277435A (en) * 2020-01-16 2020-06-12 南京大鱼半导体有限公司 Method and device for upgrading network equipment, storage medium and electronic equipment
CN111488163A (en) * 2020-04-08 2020-08-04 苏州浪潮智能科技有限公司 Firmware updating method and device, electronic equipment and storage medium
CN111679849A (en) * 2020-05-14 2020-09-18 深圳市盛弘电气股份有限公司 Equipment upgrading method of multilayer topology management structure and charging pile system
CN111683114A (en) * 2020-04-21 2020-09-18 视联动力信息技术股份有限公司 Method and device for upgrading equipment program, terminal equipment and storage medium
CN111917595A (en) * 2020-08-14 2020-11-10 深圳市欧瑞博科技股份有限公司 System upgrading method and device, intelligent equipment and storage medium
CN112003717A (en) * 2020-07-06 2020-11-27 视联动力信息技术股份有限公司 Device upgrading method, network device, server, electronic device and storage medium
CN112929189A (en) * 2019-12-05 2021-06-08 浙江宇视科技有限公司 Upgrading method, device, equipment and storage medium of network terminal equipment
CN112996026A (en) * 2021-04-27 2021-06-18 深圳市乙辰科技股份有限公司 Double-backup upgrading method and system for wireless network equipment
CN113347225A (en) * 2021-04-19 2021-09-03 中科创达软件股份有限公司 OTA (over the air) upgrading method and server for terminal equipment of Internet of things
WO2022206480A1 (en) * 2021-03-31 2022-10-06 华为技术有限公司 Data packet sending method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1777110A (en) * 2005-11-25 2006-05-24 杭州华为三康技术有限公司 Cluster device batch file transmitting method and file transmission device
CN101686145A (en) * 2008-09-26 2010-03-31 深圳华为通信技术有限公司 Equipment capable of upgrading, upgrading method and system
CN105763345A (en) * 2014-12-15 2016-07-13 中兴通讯股份有限公司 Network element upgrade management method, device and system
US20170230239A1 (en) * 2014-08-05 2017-08-10 Hewlett Packard Enterprise Development Lp Upgrading Of Controller Cluster

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1777110A (en) * 2005-11-25 2006-05-24 杭州华为三康技术有限公司 Cluster device batch file transmitting method and file transmission device
CN101686145A (en) * 2008-09-26 2010-03-31 深圳华为通信技术有限公司 Equipment capable of upgrading, upgrading method and system
US20170230239A1 (en) * 2014-08-05 2017-08-10 Hewlett Packard Enterprise Development Lp Upgrading Of Controller Cluster
CN105763345A (en) * 2014-12-15 2016-07-13 中兴通讯股份有限公司 Network element upgrade management method, device and system

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737178A (en) * 2018-05-21 2018-11-02 珠海中慧微电子有限公司 The upgrade method of wireless network child nodes
CN108762792A (en) * 2018-06-21 2018-11-06 普联技术有限公司 Upgrading network equipment method, upgrade server, terminal device and storage medium
WO2020062048A1 (en) * 2018-09-28 2020-04-02 西门子股份公司 Method for transmitting update data, content delivery network node and data update system
CN111176674A (en) * 2018-11-12 2020-05-19 中移(杭州)信息技术有限公司 OSGI plug-in upgrading method and device, electronic equipment and storage medium
CN111176674B (en) * 2018-11-12 2023-04-28 中移(杭州)信息技术有限公司 OSGI plug-in upgrading method and device, electronic equipment and storage medium
CN109710285A (en) * 2018-11-22 2019-05-03 网宿科技股份有限公司 A kind of device updating method and system
CN110875850B (en) * 2019-09-27 2022-07-29 深圳市中电数通智慧安全科技股份有限公司 Firmware upgrading method and system, readable storage medium and terminal equipment
CN110875850A (en) * 2019-09-27 2020-03-10 深圳市中电数通智慧安全科技股份有限公司 Firmware upgrading method and system, readable storage medium and terminal equipment
CN110769057A (en) * 2019-10-25 2020-02-07 广东博智林机器人有限公司 Automatic upgrading method, device and system based on cascade system
CN110851186A (en) * 2019-11-08 2020-02-28 迈普通信技术股份有限公司 Network equipment restarting method and device, electronic equipment and readable storage medium
CN112929189A (en) * 2019-12-05 2021-06-08 浙江宇视科技有限公司 Upgrading method, device, equipment and storage medium of network terminal equipment
CN111277435A (en) * 2020-01-16 2020-06-12 南京大鱼半导体有限公司 Method and device for upgrading network equipment, storage medium and electronic equipment
CN111488163A (en) * 2020-04-08 2020-08-04 苏州浪潮智能科技有限公司 Firmware updating method and device, electronic equipment and storage medium
CN111488163B (en) * 2020-04-08 2022-11-08 苏州浪潮智能科技有限公司 Firmware updating method and device, electronic equipment and storage medium
CN111683114A (en) * 2020-04-21 2020-09-18 视联动力信息技术股份有限公司 Method and device for upgrading equipment program, terminal equipment and storage medium
CN111679849A (en) * 2020-05-14 2020-09-18 深圳市盛弘电气股份有限公司 Equipment upgrading method of multilayer topology management structure and charging pile system
CN111679849B (en) * 2020-05-14 2023-12-12 深圳市盛弘电气股份有限公司 Equipment upgrading method of multilayer topology management structure and charging pile system
CN112003717A (en) * 2020-07-06 2020-11-27 视联动力信息技术股份有限公司 Device upgrading method, network device, server, electronic device and storage medium
CN112003717B (en) * 2020-07-06 2023-05-09 视联动力信息技术股份有限公司 Device upgrading method, network device, server, electronic device and storage medium
CN111917595A (en) * 2020-08-14 2020-11-10 深圳市欧瑞博科技股份有限公司 System upgrading method and device, intelligent equipment and storage medium
WO2022206480A1 (en) * 2021-03-31 2022-10-06 华为技术有限公司 Data packet sending method and device
CN113347225B (en) * 2021-04-19 2022-05-24 中科创达软件股份有限公司 OTA (over the air) upgrading method and server for terminal equipment of Internet of things
CN113347225A (en) * 2021-04-19 2021-09-03 中科创达软件股份有限公司 OTA (over the air) upgrading method and server for terminal equipment of Internet of things
CN112996026B (en) * 2021-04-27 2021-09-10 深圳市乙辰科技股份有限公司 Double-backup upgrading method and system for wireless network equipment
CN112996026A (en) * 2021-04-27 2021-06-18 深圳市乙辰科技股份有限公司 Double-backup upgrading method and system for wireless network equipment

Similar Documents

Publication Publication Date Title
CN107682197A (en) Device updating method, the network equipment and server
CN104954220B (en) A kind of virtual network service deployment method and apparatus
CN110224878A (en) Gateway configures update method, device and server
CN104506462B (en) MAC Address management method and equipment in a kind of distribution switch
CN106878363A (en) A kind of information processing method, apparatus and system
US10819575B2 (en) System and method of configuring network elements
WO2017215378A1 (en) Software-defined network, node, path calculation method and device, and storage medium
CN100479367C (en) Program arranging method and system based on distributing network
CN108062243A (en) Generation method, task executing method and the device of executive plan
CN115514696B (en) Method, device and equipment for transmitting computing power resource information
CN110389766A (en) HBase container cluster dispositions method, system, equipment and computer readable storage medium
CN105721192A (en) Method and apparatus for realizing capacity planning
CN110032547A (en) File stores improved method under a kind of distributed environment
CN109102273A (en) A kind of realization method and system of distributed intelligence payment routing
CN110247795A (en) A kind of cloud net resource service chain method of combination and system based on intention
CN108833610A (en) A kind of information updating method, apparatus and system
CN101442591A (en) Method and system for self-checking and updating performance business model discrepancy
CN107276916A (en) Interchanger flow table management method based on agreement unaware retransmission technique
CN102439920B (en) Business cross-layer separation path computing method, device and communication system
CN107403012A (en) A kind of method for interchanging data and device
CN112953768B (en) Three-layer network change scheme verification method and system
WO2021212823A1 (en) Rerouting method and apparatus, and electronic device and computer readable medium
CN100596087C (en) FTN matching management method
CN107861751A (en) The amending method and device of configuration file
Liu et al. A new approach for delivering customized security everywhere: Security service chain

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180209