CN100571160C - Method for upgrading software and device and network element - Google Patents

Method for upgrading software and device and network element Download PDF

Info

Publication number
CN100571160C
CN100571160C CNB2007100872541A CN200710087254A CN100571160C CN 100571160 C CN100571160 C CN 100571160C CN B2007100872541 A CNB2007100872541 A CN B2007100872541A CN 200710087254 A CN200710087254 A CN 200710087254A CN 100571160 C CN100571160 C CN 100571160C
Authority
CN
China
Prior art keywords
network element
software
adjacent
upgrading
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.)
Active
Application number
CNB2007100872541A
Other languages
Chinese (zh)
Other versions
CN101145948A (en
Inventor
张晋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNB2007100872541A priority Critical patent/CN100571160C/en
Publication of CN101145948A publication Critical patent/CN101145948A/en
Application granted granted Critical
Publication of CN100571160C publication Critical patent/CN100571160C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a kind of method for upgrading software and device of the software upgrading that is used to realize network element and use the network element of this method for upgrading software and have the network element of this software updating apparatus, wherein, this method may further comprise the steps: any network element in the network receives after the upgrade software from transmit leg, self software to network element is upgraded, and upgrades the software information table of network element; Search the adjacent network element that need upgrade software adjacent with network element; And send upgrade software to the adjacent network element of the needs that find upgrading.Thereby, by the present invention, reduced workload, when having reduced the network element software upgrading possibility of omission taking place, and has reduced the pressure that traditional upgrading mode is brought network service.

Description

Method for upgrading software and device and network element
Technical field
The present invention relates to a kind of method for upgrading software and device of the software upgrading that is used to realize network element and use the network element of this method for upgrading software and have the network element of this software updating apparatus.
Background technology
A kind of diagrammatic sketch of typical equipment monitoring system is provided as shown in Figure 1.Wherein, equipment monitoring system is formed 104 (104a among Fig. 1,104b, 104c, 104d and 104e) by watch-dog (webmaster) 102 and monitored device (network element) usually.
The network element that webmaster 102 is managed sometimes seldom, and is but a lot of sometimes, even hundreds and thousands of.If the software that moves on the network element needs upgrading for some reason, general way is that the main frame by webmaster 102 carries out updating operation to each network element respectively, this way wastes time and energy, especially under the situation of a lot of network elements of management, but also may cause the not upgrading of indivedual network element softwares owing to careless omission.
Thereby, be badly in need of a solution and reduce a lot of workloads that produce when upgrading, omit network element when avoiding upgrading simultaneously.
Summary of the invention
In order to address the above problem, the invention provides a kind of method for upgrading software and device of the software upgrading that is used to realize network element and use the network element of this method for upgrading software and have the network element of this software updating apparatus, it can reproduce under the very many sometimes conditions of the network element number managed for webmaster, the a lot of workloads that produce when reducing upgrading, omit network element when avoiding upgrading simultaneously, thereby increased the reliability of upgrading.
One aspect of the present invention provides a kind of method for upgrading software, be used to realize the software upgrading of network element, it can may further comprise the steps: any network element in the network receives after the upgrade software from transmit leg, self software to network element is upgraded, and upgrades the software information table of network element; Search the adjacent network element that need upgrade software adjacent with network element; And send upgrade software to the adjacent network element of the needs that find upgrading.
Further, this method for upgrading software can also may further comprise the steps: after network element successfully receives upgrade software, return success the update software information table to transmit leg.
According to an aspect of the present invention, in this software upgrade process,, then return the message that takes defeat to transmit leg if network element does not successfully receive upgrade software; And transmit leg receives after the failed message, sends upgrade software to network element again.
In addition, in the step of searching the network element that need upgrade software adjacent, comprise following processing: inquire the version information of the network element adjacent, judge whether this network element needs upgrade software with network element with network element; And judge whether to have searched all network elements adjacent with network element.
Wherein, transmit leg can comprise: webmaster or adjacent network element.
Another aspect of the present invention also provides a kind of software updating apparatus, be used to realize the software upgrading of network element, it can comprise: the upgrading update module, be positioned on the network element, be used for after network element receives upgrade software from transmit leg, self software to network element is upgraded, and upgrades the software information table of network element; Enquiry module is used to search the adjacent network element that need upgrade software adjacent with network element; And sending module, be used for sending upgrade software to the adjacent network element of the needs upgrading that finds.
This software updating apparatus can also comprise and returns module, is used for returning success the update software information table to transmit leg after network element successfully receives upgrade software.
In addition, return module and also be used for successfully not receiving under the situation of upgrade software at network element, return the message that takes defeat to transmit leg, wherein, after receiving from the failed message that returns module, sending module sends upgrade software to network element again.
According to a further aspect in the invention, can comprise in the enquiry module: the inquiry module is used to inquire the version information of the network element adjacent with network element, and judges whether needs upgrade software of this network element according to version information; And judge module, be used to judge whether to have searched all network elements adjacent with network element.Wherein, transmit leg can comprise: webmaster or adjacent network element.
The present invention also provides a kind of network element of using above-mentioned method for upgrading software.
The present invention also provides a kind of network element with above-mentioned software updating apparatus.
In the present invention, can realize upgrade software is handed down to access network element from the webmaster main frame, access network element is propagated software automatically to adjacent network element, and adjacent network element continues the software diffusion is propagated, and finally realizes the whole network software upgrading.
Thereby, only download software by the webmaster main frame to access network element, software self-propagating method between network element is carried out software upgrading and has been reduced workload then, when having reduced the network element software upgrading possibility of omission takes place, and has reduced the pressure that traditional upgrading mode is brought network service.
Other features and advantages of the present invention will be set forth in the following description, and, partly from specification, become apparent, perhaps understand by implementing the present invention.Purpose of the present invention and other advantages can realize and obtain by specifically noted structure in the specification of being write, claims and accompanying drawing.
Description of drawings
Accompanying drawing is used to provide further understanding of the present invention, and constitutes the part of specification, is used from explanation the present invention with embodiments of the invention one, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the diagrammatic sketch of typical equipment monitoring system;
Fig. 2 is according to the flow chart of method for upgrading software of the present invention;
Fig. 3 is the flow chart according to the software upgrading resume module process of the embodiment of the invention;
Fig. 4 is the network diagram that need carry out software upgrading; And
Fig. 5 is the block diagram according to software updating apparatus of the present invention.
Embodiment
Below in conjunction with accompanying drawing the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein only is used for description and interpretation the present invention, and be not used in qualification the present invention.
Fig. 2 is according to the flow chart of method for upgrading software of the present invention.As shown in Figure 2, this method may further comprise the steps:
Step S202, any network element in the network receive after the upgrade software from transmit leg, self software of network element is upgraded, and upgrade the software information table of network element;
Step S204 searches the adjacent network element that need upgrade software adjacent with network element; And
Step S206 is to the adjacent network element transmission upgrade software of the needs upgrading that finds.
This method for upgrading software is further comprising the steps of: step S208 returns success the update software information table to transmit leg after network element successfully receives upgrade software.
In software upgrade process,, then return the message that takes defeat to transmit leg if network element does not successfully receive upgrade software; And transmit leg receives after the failed message, sends upgrade software to network element again.
In addition, in the step of searching the network element that need upgrade software adjacent, comprise following processing: inquire the version information of the network element adjacent, judge whether this network element needs upgrade software with network element with network element; And judge whether to have searched all network elements adjacent with network element.
Wherein, transmit leg comprises webmaster or adjacent network element.
Be appreciated that the network element of using above-mentioned method for upgrading software also within protection scope of the present invention, and, make the workload of network element reduce greatly, increased the reliability of upgrading by using above-mentioned software approach.
Fig. 3 is the flow chart according to the software upgrading resume module process of the embodiment of the invention, the prerequisite of carrying out this software upgrading resume module is the module that a responsible software upgrading is all arranged in each network element, and the main effect of this module is: receive the upgrade software from webmaster or adjacent network element; Realize the upgrading of network element self software; Seek network element with own adjacent needs upgrading; Network element to the needs upgrading adjacent with oneself sends upgrade software; And in above each corresponding subsequent processing appears carrying out when wrong or unusual in stage.
Like this, under the effect of each network element software upgrading module, just can realize upgrade software is handed down to access network element from the webmaster main frame, access network element is propagated software automatically to adjacent network element, adjacent network element continues the software diffusion is propagated, and finally realizes the whole network software upgrading.
As shown in Figure 3, the processing procedure in this software upgrading module may further comprise the steps:
Step S302, the software upgrading module is waited for and is received data, receives data then;
Step S304 judges whether to receive successfully, if do not have, then returns failed message to transmit leg, gets back to step S302 and continues to wait for, otherwise proceed to handle;
Step S306, when receiving successfully, the software upgrading module returns success the update software information table to transmit leg, and to adjacent network element inquiry version information, update software version information table;
Step S308 judges whether adjacent network element needs upgrade software, if do not need, and execution in step S316 then, otherwise proceed following processing;
S310 if adjacent network element needs upgrade software, then sends software data;
S312 judges whether the transmission of software data is successful; If successfully do not send, then return step S310 and resend, otherwise continue following the processing;
S314, the update software information table; And
S316, a last adjacent network element when judging whether is if the result is for being that then process finishes, otherwise returns step S308.
Fig. 4 is the network diagram that need carry out software upgrading, and as shown in Figure 4, the implementation step of method for upgrading software comprises:
One, goes up increase software upgrading module at watch-dog (webmaster) 402 and monitored device 404 (404a among Fig. 4,404b, 404c, 404d and 404e);
Two, webmaster 402 downloads to the network element 404a that inserts; And
Three, program begins to propagate from other network elements of trend (404b, 404c, 404d and 404e) from access network element 404a.
Below with reference to the network of Fig. 4 being carried out software upgrading, be upgraded to 2.0 from 1.0 according to the method for upgrading software of the embodiment of the invention.Wherein, the network element software version information table in each network element 404 thes contents are as follows:
The software version information table of network element 404a
Network element ID Software version
Network element 404a 1.0
Network element 404b 1.0
Network element 404b software version information table
Network element ID Software version
Network element 404a 1.0
Network element 404b 1.0
Network element 404c 1.0
Network element 404c software version information table
Network element ID Software version
Network element 404b 1.0
Network element 404c 1.0
Network element 404d 1.0
Network element 404e 1.0
Network element 404d software version information table
Network element ID Software version
Network element 404c 1.0
Network element 404d 1.0
Network element 404e software version information table
Network element ID Software version
Network element 404d 1.0
Network element 404e 1.0
The first step: behind the software of webmaster 402 updating network element 404a, the software version information table of network element 404a becomes:
Network element ID Software version
Network element 404a 2.0
Network element 404b 1.0
In second step, behind the software of network element 404a updating network element 404b, the software version information table of network element 404a and 404b becomes:
The software version information table of network element 404a
Network element ID Software version
Network element 404a 2.0
Network element 404b 2.0
The software version information table of network element 404b
Network element ID Software version
Network element 404a 2.0
Network element 404b 2.0
Network element 404c 1.0
The 3rd step: behind the software of network element 404b updating network element 404e, the software version information table of network element 404b and 404c becomes:
Network element 404b software version information table
Network element ID Software version
Network element 404a 2.0
Network element 404b 2.0
Network element 404c 2.0
Network element 404e software version information table
Network element ID Software version
Network element 404b 2.0
Network element 404e 2.0
Network element 404d 1.0
Network element 404e 1.0
Ensuing the 4th step is identical with above step with the 5th step, and herein for simplicity, the omission detailed description just realizes that at last the whole network upgrades successfully.
Fig. 5 is the block diagram according to software updating apparatus 500 of the present invention.As shown in Figure 5, this device comprises: upgrading update module 502, be positioned on the network element, and be used for after network element receives upgrade software from transmit leg, self software of network element is upgraded, and upgrade the software information table of network element; Enquiry module 504 is used to search the adjacent network element that need upgrade software adjacent with network element; And sending module 506, be used for sending upgrade software to the adjacent network element of the needs upgrading that finds.
This software updating apparatus 500 also comprises and returns module 508, is used for returning success the update software information table to transmit leg after network element successfully receives upgrade software.
In addition, return module 508 and also be used for successfully not receiving under the situation of upgrade software, return the message that takes defeat to transmit leg, wherein at network element, after receiving from the failed message that returns module 508, sending module 506 sends upgrade software to network element again.
Comprise in the enquiry module 504: inquiry module 5042 is used to inquire the version information of the network element adjacent with network element, and judges whether needs upgrade software of this network element according to version information; And judge module 5044, be used to judge whether to have searched all network elements adjacent with network element.
Wherein, transmit leg can comprise: webmaster or adjacent network element.
Should be appreciated that the network element with above-mentioned software updating apparatus is also included within protection scope of the present invention, and had above-mentioned software updating apparatus, make the upgrade job amount of network element reduce greatly, increased the reliability of system.
In sum, by the present invention, a lot of workloads that produced when having reduced upgrading avoid omitting network element simultaneously when upgrading.
Be the preferred embodiments of the present invention only below, be not limited to the present invention, for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (11)

1. a method for upgrading software is used to realize the software upgrading of network element, it is characterized in that, may further comprise the steps:
Any network element in the network receives after the upgrade software from transmit leg, self software of described network element is upgraded, and upgrade the software information table of described network element;
Search the adjacent network element of the needs described upgrade software adjacent with described network element; And
Described adjacent network element to the needs upgrading that finds sends described upgrade software.
2. method for upgrading software according to claim 1 is characterized in that, and is further comprising the steps of:
After described network element successfully receives described upgrade software, return success the update software information table to described transmit leg.
3. method for upgrading software according to claim 1 is characterized in that, and is further comprising the steps of:
If described network element does not successfully receive described upgrade software, then return the message that takes defeat to described transmit leg; And
Described transmit leg receives after the described failed message, sends described upgrade software to described network element again.
4. method for upgrading software according to claim 1 is characterized in that, in the step of the described adjacent network element of searching the needs described upgrade software adjacent with described network element, comprises following processing:
Inquire the version information of the network element adjacent, judge whether the network element adjacent with described network element needs described upgrade software with described network element; And
Judge whether to have searched all network elements adjacent with described network element.
5. according to each described method for upgrading software in the claim 1 to 4, it is characterized in that described transmit leg comprises: webmaster or adjacent network element.
6. a software updating apparatus is used to realize the software upgrading of network element, it is characterized in that, comprising:
The upgrading update module is positioned on the network element, is used for after described network element receives upgrade software from transmit leg, self software of described network element is upgraded, and upgrade the software information table of described network element;
Enquiry module is used to search the adjacent network element of the needs described upgrade software adjacent with described network element; And
Sending module is used for sending described upgrade software to the described adjacent network element of the needs upgrading that finds.
7. software updating apparatus according to claim 6 is characterized in that, also comprises:
Return module, be used for after described network element successfully receives described upgrade software, returning success the update software information table to described transmit leg.
8. software updating apparatus according to claim 6 is characterized in that, the described module of returning also is used for successfully not receiving under the situation of described upgrade software at described network element, returns the message that takes defeat to described transmit leg,
Wherein, after receiving from the described described failed message that returns module, described transmit leg sends described upgrade software to described network element again.
9. software updating apparatus according to claim 6 is characterized in that, in described enquiry module, comprising:
The inquiry module is used to inquire the version information of the network element adjacent with described network element, and judges the whether described upgrade software of needs of the network element adjacent with described network element according to described version information; And
Judge module is used to judge whether to have searched all network elements adjacent with described network element.
10. according to each described software updating apparatus in the claim 6 to 9, it is characterized in that described transmit leg comprises: webmaster or adjacent network element.
11. a network element has each described software updating apparatus in the claim 6 to 10.
CNB2007100872541A 2007-03-21 2007-03-21 Method for upgrading software and device and network element Active CN100571160C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007100872541A CN100571160C (en) 2007-03-21 2007-03-21 Method for upgrading software and device and network element

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007100872541A CN100571160C (en) 2007-03-21 2007-03-21 Method for upgrading software and device and network element

Publications (2)

Publication Number Publication Date
CN101145948A CN101145948A (en) 2008-03-19
CN100571160C true CN100571160C (en) 2009-12-16

Family

ID=39208262

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007100872541A Active CN100571160C (en) 2007-03-21 2007-03-21 Method for upgrading software and device and network element

Country Status (1)

Country Link
CN (1) CN100571160C (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101784042B (en) * 2009-01-16 2014-02-05 中兴通讯股份有限公司 Software loading method and software loading system
CN102004649A (en) * 2009-09-03 2011-04-06 华为技术有限公司 Method and equipment for updating software
CN102185754B (en) * 2011-01-30 2014-03-12 广东佳和通信技术有限公司 Method for upgrading board card in switch system
CN103577204A (en) * 2012-07-26 2014-02-12 上海斐讯数据通信技术有限公司 Software upgrading method and software upgrading system for mobile devices
CN103354505B (en) * 2013-06-28 2016-08-10 国家电网公司 A kind of electronic installation group's software batch upgrade method
WO2016058133A1 (en) * 2014-10-14 2016-04-21 华为技术有限公司 Software upgrading method and device
CN105743948A (en) * 2014-12-11 2016-07-06 中兴通讯股份有限公司 Network version upgrading method and apparatus
CN104750530A (en) * 2015-04-14 2015-07-01 重庆特斯联科技有限公司 Bluetooth lock control terminal software updating method
CN114422486B (en) * 2022-03-14 2024-01-16 潍柴动力股份有限公司 Terminal software version upgrading method, system and vehicle

Also Published As

Publication number Publication date
CN101145948A (en) 2008-03-19

Similar Documents

Publication Publication Date Title
CN100571160C (en) Method for upgrading software and device and network element
US8132165B2 (en) Interception proxy-based approach for in-service software upgrade
CN102609281B (en) Distributed software patch update method and system
US9946530B2 (en) Firmware upgrade method and system
CN105320527A (en) Configuration file renewing method, device and system based on zookeeper distributed type search engine
US8719390B2 (en) Server management apparatus and server management method
CN103164247B (en) The method and device that system application is repaired automatically
CN105677380B (en) Method and device for board-by-board upgrading of double master control isolations
US11243921B2 (en) Database expansion system, equipment, and method of expanding database
CN110225078A (en) A kind of application service update method, system and terminal device
CN103249027B (en) The method and apparatus that a kind of terminal traffic processes
CN104657158A (en) Method and device for processing business in business system
CN107395385A (en) Method for upgrading software and device
CN105516230A (en) Data processing method and device
CN101729293A (en) Method and system for updating versions in batch based on DHCP network
CN105871568A (en) Software upgrading method and system
CN103645922A (en) Software cleaning method based on cloud query
US8949423B2 (en) Autonomically co-locating first and second components on a select server
CN105550342A (en) Data processing method of completely-transparent distributed database
CN110798358B (en) Distributed service identification method and device, computer readable medium and electronic equipment
CN106708541A (en) Version upgrading processing method and apparatus
JP2006277158A (en) Data update system, server and program
CN100576182C (en) The real-time monitoring system of computer documents and method
CN112685486B (en) Data management method and device for database cluster, electronic equipment and storage medium
CN108650320B (en) Method for synchronizing configuration files of isomorphic cascading equipment in cluster environment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant