Summary of the invention
For the downloading process efficiency of current software version compared with low so that cause the maintenance cost of network element is proposed to the present invention compared with high problem.For this reason, the present invention aims to provide a kind of transmission plan of improved software version, one of to address the above problem at least.
To achieve these goals, according to an aspect of the present invention, provide a kind of transmission method of software version.
Comprise according to the transmission method of software version of the present invention: operation maintenance center (OMC) receives the download request from network element or user, and wherein, download request comprises the software version information that network element is to be downloaded; OMC downloads current ability and the download request that network element is provided to download service of other network element in situation, one or more network element according to the software version of one or more network elements of its local storage, selects loading source; Download command is sent to network element by OMC, and network element is downloaded according to download command, and wherein, download command comprises the information of loading source.
Above-mentioned OMC selects the operation of loading source to comprise, and: OMC downloads in situation, one or more network element according to the software version of one or more network elements of its local storage that other network element is current to be provided the ability of download service to judge to network element in one or more network elements, whether to have the network element that belongs to same subnet and satisfied download condition with network element; If judged result is yes, from belonging to the network element of same subnet and satisfied download condition and select a network element as loading source with network element; Otherwise provide the ability of download service to judge whether software version server to be chosen as to loading source according to software version server is current to network element; If judgement can be chosen as loading source by software version server, software version server is chosen as to loading source; Otherwise, select a network element of network element that belongs to different sub-network and satisfied download condition with network element as loading source; Wherein, download condition comprises: downloaded software version to be downloaded, had the ability as loading source.
After download command is sent to network element by OMC, said method also comprises: OMC upgrades the net element information of this locality storage, and wherein, net element information comprises: current information of carrying out the network element of software version download; Wherein, current information of carrying out the network element of software version download comprises: the IP address of the mark of network element and IP address and loading source.
In addition, after network element is downloaded, said method also comprises: if download software version success to be downloaded, the software version download situation of OMC one or more network elements to its local storage according to the net element information upgrading is upgraded; If download software version failure to be downloaded, OMC is according in this locality, pre-configured failed download processing rule operates, and wherein, failed download processing rule comprises failure cause and the corresponding processing mode that software version is downloaded.
It is one of following that processing mode in above-mentioned failed download processing rule comprises: re-start download from loading source; Selected to download after new loading source by OMC.
The information of above-mentioned loading source comprises: the IP address of loading source.
Each network element in above-mentioned one or more network element in other network element current to network element provide the ability of download service depend on following one of at least: maximum quantity, the current bandwidth of the network element of current permission access, work as preload.
And the software version download situation of one or more network elements of the local storage of above-mentioned OMC comprises: the software version number that mark, IP address and each network element of each network element in network management system downloaded.
A kind of transmitting device of software version is also provided according to a further aspect in the invention.
Comprise according to the transmitting device of software version of the present invention: receiver module, for what receive from network element or user's download request, wherein, download request comprises network element or user's software version information to be downloaded; Memory, downloads situation and each network element the ability information of download service is provided for storing the software version of multiple network elements; Select module, provide the ability information of download service and the download request that receiver module receives for download situation and each network element according to the software version of memory stores, for network element is selected loading source; Sending module, for sending download command to network element, wherein, download command carries the information of the loading source of selecting module selection.
Particularly, above-mentioned selection module comprises: first judges submodule, for judging according to the software version download situation of memory stores whether multiple network elements have the network element of satisfied download condition; Second judges submodule, for judge whether to exist the network element that belongs to same subnet with network element according to the software version download situation of memory stores; The 3rd judges submodule, whether meets download condition for judging that software version server is current; The first chooser module, in the case of first judge submodule and second judge the judged result of submodule be, selecting the network element belonging in the network element of same subnet and satisfied download condition with network element is loading source; The second chooser module, in the second judged result that judges submodule be no and in the case of the 3rd judged result that judges submodule be, selecting software version server is loading source; The 3rd chooser module, for in the first judged result that judges submodule be and second judge submodule and the 3rd judge the judged result of submodule be no, selection and network element belong to the network element of network element of different sub-network and satisfied download condition as loading source; Wherein, download condition comprises: software version to be downloaded can be provided and the ability of download service can be provided.
Above-mentioned memory is also for storage network metamessage, and wherein, net element information comprises: current information of carrying out the network element of software version download.
Preferably, said apparatus also comprises: update module, for sending after download command at sending module, the net element information of memory stores is upgraded.
If above-mentioned update module also, for downloading software version success to be downloaded, is upgraded software version download situation according to the net element information upgrading.
By means of technique scheme one of at least, by the network element configuration file download service function in network management system, make these network elements can be used as loading source, for other network element that needs software version provides download service, can overcome the lower problem of downloading process efficiency due to the software version that can only cause by software version server download software version in prior art, thereby can effectively improve the download efficiency of software version, and then can reduce the maintenance cost to network element.
Embodiment
Functional overview
As mentioned above, because network element of the prior art or user can only download the software version needing from software version server, make the downloading process of software version be limited to following many factors: the link of network element and software version server, the current bandwidth of distributing to software version server and software version server can provide the quantity of the network element of download service simultaneously, due to the existence of above-mentioned factor, can cause the downloading process efficiency of software version lower and then produced the problem higher to the maintenance cost of network element.
Based on this, the invention provides a kind of transmission plan of software version,, by the network element configuration file download service function in network management system,, configure the ability that this network element has supporting document download service, these network elements just can be used as loading source, for other network element that needs software version provides download service, overcome the problem that loading source of the prior art can only be software version server, and then overcome the lower problem of downloading process efficiency of software version, reduce the maintenance cost to network element.
The above-mentioned file download service function to the network element configuration in network management system can be HTML (Hypertext Markup Language) (Hyper-Text Transfer Protocol, referred to as HTTP), safety version (the Hypertext Transfer Protocol over Secure Socket Layer of HTTP, referred to as HTTPS), file transfer protocol (FTP) (File Transfer Protocol, referred to as FTP), secure file transportation protocol (Secure File Transfer Protocol, referred to as SFTP), TFTP (Trivial File Transfer Protocol, referred to as TFTP), digital storage media order and control Extended Protocol (Digital Storage Media Commandand Control, referred to as DSMCC) etc.
Below with reference to the accompanying drawings and in conjunction with the embodiments, describe the present invention in detail.It should be noted that, if do not conflicted, the feature in embodiment and embodiment in the application can combine mutually.
Embodiment of the method
According to the embodiment of the present invention, a kind of transmission method of software version is provided, be applied to the network management system that comprises one or more network elements, OMC and software version server.Wherein, be configured to can supporting document download service for one or more network elements.Fig. 2 is according to the flow chart of the transmission method of the software version of the embodiment of the present invention, and as shown in Figure 2, the transmission method of this software version comprises step 202-step 206.
Step 202, OMC receives the download request from network element (being designated as M) or user, and wherein, download request comprises M or user's software version information to be downloaded.
Step 204, OMC downloads current ability and the download request that M is provided to download service of other network element in situation, one or more network element according to the software version of one or more network elements of its local storage, selects loading source.
When OMC downloads situation at the software version of the one or more network elements of storage, specifically can preserve following information: the software version number that mark, IP address and each network element of the each network element in network management system downloaded.
In actual applications, OMC can also further store following information in the time that the software version of the one or more network elements of storage is downloaded situation: the user name and password of having downloaded the filename of software version and corresponding file path, the license of each network element under each network element on the mark of subnet, each network element.Wherein, the mark of subnet is convenient to OMC and is selected suitable network element as loading source under each network element, the user name and password of each network element license is for carrying out legitimacy authentication to the network element that need to download software version, and filename and the corresponding file path of on each network element, having downloaded software version are convenient to find quickly download file to download.
Particularly, the operation of above-mentioned selection loading source comprises the following steps a-e:
Step a, OMC downloads in situation, one or more network element according to the software version of one or more network elements of its local storage that other network element is current to be provided the ability of download service to judge to M in one or more network elements, whether to have the network element that belongs to same subnet and satisfied download condition with M, wherein, download condition comprises: downloaded software version to be downloaded, the ability of download service is provided, if judged result is yes, proceed to step b, otherwise, proceed to step c;
Step b, from belonging to the network element of same subnet and satisfied download condition and select a network element as loading source with M, so just can reduce taking of the network bandwidth to greatest extent, saves system resource;
Step c, provides the ability of download service to judge whether software version server to be chosen as to loading source according to software version server is current to M, if judged result is yes, proceeds to steps d, otherwise, proceed to step e;
Steps d, is chosen as loading source by software version server;
Step e, selects a network element of network element that belongs to different sub-network and satisfied download condition with M as loading source.
The ability of above-mentioned download service depend on following one of at least: maximum quantity, the current bandwidth of the network element of current permission access, work as preload.; for software version server; if the quantity of the current access network element of software version server reaches the maximum quantity of the network element of current permission access; or current bandwidth takies and/or when preload saturated, represent that the current ability of not having of software version server provides download service to M.Now, OMC selects other suitable network elements as loading source, for M provides download service.
It should be noted that, the ability of the download service of software version server and network element can be different, can be also identical, and the present invention is not limited in this respect.
Having completed after the operation of above-mentioned selection loading source, proceed to step 206.
Step 206, download command is sent to M by OMC, and M downloads according to download command, and wherein, download command comprises the information of loading source.The information of the loading source here comprise following one of at least: the IP address of loading source, the user name and password of loading source license and software version to be downloaded parameter information in loading source.This parameter information comprises filename and/or the corresponding file path of software version.
Can be found out by above description, by selecting multiple network elements as loading source, overcome in prior art and can only download the lower problem of download efficiency that software version causes by software version server, than prior art, the present invention can improve network element and download the concurrency of software version, thereby improves the efficiency that software version is downloaded.
After step 206, M downloads the software version needing according to the information of loading source.That is, find loading source according to the IP address of loading source, carry out legitimacy authentication according to the user name and password of loading source license, and by after authentication, find and need the software version of downloading to carry out down operation according to above-mentioned parameter information.
For OMC, after step 206, net element information to this locality storage upgrades, wherein, this net element information comprise following one of at least: the information of the current network element that carries out software version download is (, the information of M), the progress of the download software version of this network element (, M).The information of the M here comprises the IP address of mark and IP address and the loading source of M, can also comprise the subnet mark of M.Like this, facilitate the real-time monitoring of OMC to M, understand the progress of M download software version.
If the downloading process of M completes (that is, successfully having downloaded the software version needing), OMC upgrades the software version download situation of its local storage according to the net element information upgrading.Like this, can ensure that it is all up-to-date that software version is downloaded situation, facilitates OMC to select suitable loading source.
If the failure of the downloading process of M, OMC is according in this locality, pre-configured failed download processing rule operates, and this failed download processing rule comprises failure cause and the corresponding processing mode that software version is downloaded.Wherein, the failure cause that software version is downloaded comprises: failed authentication to M of the link down of M and loading source, loading source, the path of software version do not exist etc., processing mode in failed download processing rule comprises from loading source and re-starts download, or selects to download after new loading source.
For example, if failure cause is the link down of M and loading source, corresponding processing mode is to re-start download after this loading source waits for a period of time.If failure cause is the failed authentication of loading source to M, corresponding processing mode is to select to download after new loading source, that is, M downloads in new loading source.
In practical operation, if the downloading process of M failure, also can feed back a failed download message to M, to cancel the down operation of M, next can wait for a period of time, being selected according to above-mentioned failed download processing rule by user is to continue to download in former loading source, or downloads from new loading source.
It should be noted that, above-mentioned failed download processing rule can be by system set in advance (that is, this rule comes into force to all network elements) or by user in the time that system is moved, arrange (, this rule only to specify network element come into force).For convenience of description, in Fig. 2, illustrate and described the technical scheme of embodiment of the method for the present invention with the form of step, can in the computer system such as one group of computer executable instructions, carry out in the step shown in Fig. 2.Although figure 2 illustrates logical order, in some cases, can carry out shown or described step with the order being different from herein.
Below further describe the present invention.Network element supporting document download service function in configuration network management system, this file download service function can be FTP or SFTP.
For OMC, be first described in the upper software download information of preserving of OMC and record storehouse, this software download information records storehouse and comprises following 5 kinds of information.
(1) be the threshold restriction of the file download service function that in software version server and network, each network element arranges (this threshold restriction is the ability of above-mentioned download service) in advance, this threshold value comprises: the quantity, bandwidth and the load condition that allow the network element simultaneously accessing.For example, it is 5 that a network element (being designated as N) allows the NE quantity simultaneously accessing, if the NE quantity of the current access of N is 5, or the bandwidth value of distributing to N is less than the bandwidth value specifying in threshold value, or current load is higher than the load specifying in threshold value, and N cannot continue as loading source,, current N cannot continue to provide the ability of download service, and now, it is loading source that OMC can not select N.
In practical operation, the threshold restriction of software version server and network element can be different, can be also identical.The above-mentioned network element number that simultaneously accesses this network element can obtain from download software network element list (information (3)).
(2) downloaded software information table (software version that is above-mentioned one or more network elements is downloaded situation), be mainly used in OMC and select suitable network element as loading source, this has been downloaded software information table and has comprised following content:
The user name and password and other additional informations of successful software version number and corresponding software version filename and corresponding software version file path, this network element license under network element ID (ID), network element, on the mark of subnet, network element IP address, this network element, are downloaded.
Wherein, it can be multiple that network element has been downloaded successful software version number, and under network element, mark, network element IP address, permitted user name and password, the each network element of additional information of subnet only have one.Supplementary when the additional information here can be used for recording this network element as loading source, for example, whether current running status, the file download service of this network element supports breakpoint transmission.Whether normally the current running status of network element represents network element operation, can upgrade this state to the administrative situation of network element according to OMC, and this state is to judge one of whether suitable condition as loading source of this network element.
(3) downloading software network element list (being above-mentioned net element information), be mainly used in the maintenance of the network element of OMC to current download software version, this is downloading the list of software network element can comprise following content: NE ID, subnet ID under this network element, network element IP address, the IP address of loading source.
(4) the failed download processing rule setting in advance, for selecting different processing methods according to different failure causes when the failed download.
If failure cause is the link down of network element and loading source, OMC can reselect new loading source, or if former loading source is supported breakpoint transmission, OMC also can indicate network element after link-recovery, to re-start download.
Do not exist if failure cause is failed authentication or file path, OMC can reselect new loading source, and upgrades the software information of the download table of OMC storage, and OMC no longer selects this loading source.
(5) software download log, for sending after download command to network element at OMC, records the download progress of network element and the information of reported by network elements etc.
Above-mentioned information (3) and (5) are convenient to OMC the network element of downloading software are monitored in real time.
Below start to carry out the download of software version, this downloading process comprises the following steps 1-4.
Step 1, corresponding to above-mentioned steps 202, network element sends download request to OMC, and this download request can be to be initiated or initiatively initiated by network element by user, and wherein, this download request comprises the software version information that network element is to be downloaded.
Step 2, corresponding to above-mentioned steps 204, OMC receives after download request, selects loading source.First software download information record in storehouse download software information table in the version of search request whether had other network elements to download, if other network elements were not all downloaded, select software version server as loading source; If there have been other network elements to download, OMC selects most suitable network element as loading source.
Above-mentioned OMC selects most suitable network element to comprise as the operation of loading source: preferentially select network element in same subnet and that meet loading source condition (, the current ability that the download service of providing is provided) as loading source; If there is no network element in same subnet or that do not meet loading source condition,, in the time that software version server meets loading source condition, select software version server as loading source; If software version server does not meet loading source condition, the idle network element of selecting other subnets, have the idle network element of route and meeting loading source condition is as loading source.
Step 3, corresponding to above-mentioned steps 206, OMC sends download command to network element, and network element is carried out down operation according to download command.Wherein, carry the information of the loading source of above-mentioned selection in download command, the information of this loading source comprises: the IP address of loading source, the user name and password of loading source license and the file path of software version.
Step 4, OMC upgrades and is downloading the list of software network element, and logging software download log.
In software downloading process, if network element failed download, network element reports failed download and reason to OMC, OMC processes according to failed download processing rule, OMC can select new loading source, if or former loading source support breakpoint transmission, after link-recovery, again download.The reason of failed download can be recorded to network element and download in the additional information of software information table.
The reason of network element failed download can be and the link down of loading source that the reason of this link down may be that physical link interrupts, or may be to be caused by the operation of network element this locality.These operations may comprise is provided the deleted and network element of the software version that active and standby software version switches, network element is being downloaded of file download service, network element downloading other software versions etc. to the relevant link of network element resets, network element master control borad carries out masterslave switchover, network element FTP by the overload refusal of network element in inaccessible, downloading process.
In downloading process, if the overload of loading source refusal provides file download service, loading source reports current state message to OMC, and OMC is recorded in the additional information of downloading software information table after receiving this status message, is convenient to carry out selecting properly in the time selecting loading source next time.
Device embodiment
According to the embodiment of the present invention, a kind of transmitting device of software version is provided, the transmitting device of this software version is for the down operation of multiple network elements of maintaining network.Preferably, this device is used for the function of the OMC that realizes said method embodiment.Fig. 3 is the block diagram of the transmitting device of the software version of the present embodiment, and as shown in Figure 3, this device comprises: receiver module 1, memory 2, select module 3, sending module 4 and update module 5, below each module is described in detail.
Receiver module 1, for receiving the download request from network element or user, wherein, download request comprises network element or user's software version information to be downloaded; Memory 2, downloads situation and each network element the ability information of download service is provided for storing the software version of multiple network elements.In practical operation, memory is also for storage network metamessage, wherein, net element information comprise following one of at least: the current information of the network element of software version download, the download progress of this network element of carrying out.Selecting module 3, be connected to receiver module 1 and memory 2, provide the ability information of download service and the download request that receiver module 1 receives for software version download situation and the each network element stored according to memory 2, is that network element is selected loading source; Sending module 4, is connected to and selects module 3, and for sending download command to network element, wherein, download command carries the information of selecting the loading source selected of module 3.In addition, the transmitting device of this software version can also comprise update module 5, be connected to memory 2, for sending after download command at sending module 4, the net element information that memory 2 is stored upgrades, and after down operation success, according to the net element information upgrading, software version download situation is upgraded.
Particularly, above-mentioned selection module 3 comprises: first judges submodule 30, second judges that submodule 31, the 3rd judges submodule 32, the first chooser module 33, the second chooser module 34 and the 3rd chooser module 35, below each submodule is described in detail.
First judges submodule 30, for judging according to the software version download situation of memory stores whether multiple network elements have the network element of satisfied download condition; Second judges submodule 31, for judge whether to exist the network element that belongs to same subnet with network element according to the software version download situation of memory stores; The 3rd judges submodule 32, whether meets download condition for judging that software version server is current; The first chooser module 33, be connected to the first judgement submodule 30 and second and judge submodule 31, for in the case of first judge submodule 30 and second judge the judged result of submodule 31 be, select and a network element that network element belongs in the network element of same subnet and satisfied download condition is loading source; The second chooser module 34, be connected to the second judgement submodule 31 and the 3rd and judge submodule 32, for in the second judged result that judges submodule 31 be no and in the case of the 3rd judged result that judge submodule 32 be, selection software version server is loading source; The 3rd chooser module 35, be connected to the first judgement submodule 30, second and judge that submodule 31 and the 3rd judges submodule 32, for in the first judged result that judges submodule 30 be and second judge submodule 31 and the 3rd judge the judged result of submodule 32 be all no, selection and network element belong to the network element of network element of different sub-network and satisfied download condition as loading source; Wherein, download condition comprises: software version to be downloaded can be provided and the ability of download service can be provided, the ability of the download service here depend on current permission access network element maximum quantity, current bandwidth and work as preload.
The specific implementation process of above-mentioned each module, can, with reference to the associated description in said method embodiment, repeat no more here.
Can be found out by above description, by in advance by the information of the each network element of memory stores, and by selecting module to provide software version according to the suitable loading source of the Information Selection of memory stores, overcome in prior art and can only download the lower problem of download efficiency that software version causes by software version server, than prior art, the present invention can improve network element and download the concurrency of software version, thereby improves the efficiency that software version is downloaded.
In specific implementation process, above-mentioned memory can be that software download information records storehouse, for store said method embodiment each network element file download service function threshold restriction, download software information table, download the relevant information such as the list of software network element, failed download processing rule and software download log.
Above-mentioned receiver module, sending module and update module can be unified and be set to download request processing module, the download request sending for the treatment of network element, and to network element send download command, and collect software download progress and result report, update software Download Info records storehouse.
Fig. 4 is the flow chart that carries out down operation according to the transmitting device of the software version of the embodiment of the present invention, wherein, the transmitting device of this software version is operation maintenance center, and as shown in Figure 4, the down operation flow process of the transmitting device of this software version comprises step 401-411:
Step 401, user issues after software download command and sends software download request by network element to operation maintenance center to network element, or network element initiatively sends software download request to operation maintenance center, and this software download request can be referred to as download request;
Step 403, the download request processing module of operation maintenance center receives after download request, requires to select module to select suitable loading source to network element;
Step 405, selects module to record the networking of the network element of managing and the situation of each network element that in storehouse, record according to software download information, selects loading source;
Step 407, download request processing module sends download command to network element, and notice network element is downloaded software from loading source;
Step 409, download request processing module receives progress and the result of the software download of reported by network elements, and logging software download log;
Step 411, if network element is downloaded software version success, download request processing module renewal network element has been downloaded software information table; If network element is downloaded software version failure, download request processing module reading software failed download processing rule, carries out next step processing according to rule, and logging software download log.
Based on the flow process shown in above-mentioned Fig. 4, Fig. 5 is the schematic diagram that carries out down operation according to the transmitting device of the software version of the embodiment of the present invention, wherein, the transmitting device of this software version is operation maintenance center, as shown in Figure 5, operation maintenance center's managed network element 1, network element 2, network element 3 and network element 4, wherein, network element 1 has been downloaded the software version that network element 2, network element 3 and network element 4 need.
Network element 2, network element 3 and network element 4 send download request to downloading request processing module respectively, wherein, network element 2 and network element 4 are initiatively to send download request to downloading request processing module, and network element 3 is that user sends download request by network element 3 to downloading request processing module after network element 3 issues software download command; Download request processing module requires to select module to select suitable loading source to network element 2, network element 3 and network element 4 respectively, and wherein, the loading source of selecting module to select to network element 2 is software version server, and the loading source of selecting to network element 3 and network element 4 is network elements 1; In the downloading process of network element 2, network element 3 and network element 4, progress and result that network element 2, network element 3 and network element 4 report software separately to download to download request processing module respectively, download request processing module is according to the reporting information logging software download log receiving, and update software Download Info records the relevant information in storehouse.
In sum, the present invention is according to the networking distribution of network element and real-time link situation Dynamic Selection loading source, solve the lower problem of loading source download efficiency single and that cause in prior art, than prior art, the present invention can alleviate the pressure of the network bandwidth, the concurrency that improves the software download of network element, improves the efficiency that software is downloaded.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that multiple calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in storage device and be carried out by calculation element, or they are made into respectively to each integrated circuit modules, or the multiple modules in them or step are made into single integrated circuit module to be realized.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.