Summary of the invention
At the downloading process efficient of present software version lower so that cause to the maintenance cost problem of higher of network element and the present invention is proposed.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.
Transmission method according to software version of the present invention comprises: operation maintenance center (OMC) receives the download request from network element or user, wherein, comprises the software version information that network element is to be downloaded in the download request; OMC downloads according to the software version of one or more network elements of its local storage that other network element in situation, the one or more network element is current to provide the ability and the download request of download service to network element, selects loading source; OMC sends to network element with download command, and network element is downloaded according to download command, wherein, comprises the information of loading source in the download command.
Above-mentioned OMC selects the operation of loading source to comprise, and: OMC downloads in situation, the 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 whether to have the network element that belongs to same subnet and satisfied download condition with network element in one or more network elements; If judged result is for being, then select a network element as loading source from belonging to the network element of same subnet and satisfied download condition with network element; Otherwise provide the ability of download service to judge whether and the software version server can be chosen as loading source to network element according to the software version server is current; If judge and the software version server can be chosen as loading source, then the software version server is chosen as loading source; Otherwise, select to belong to the network element of network element of different sub-network and satisfied download condition as loading source with network element; Wherein, download condition comprises: downloaded software version to be downloaded, had the ability as loading source.
After OMC sent to network element with download command, said method also comprised: 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 sign of network element and IP address and loading source.
In addition, after network element was downloaded, said method also comprised: if download software version success to be downloaded, then OMC upgrades the software version download situation of one or more network elements of its local storage according to the net element information that upgrades; If download software version to be downloaded failure, then OMC according in this locality pre-configured failed download processing rule operate, wherein, the 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 the above-mentioned failed download processing rule comprises: download again from loading source; Select to download after the 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 that current permission inserts, 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 sign of each network element in the network management system, IP address and each network element be downloaded software version number.
A kind of transmitting device of software version also is provided according to a further aspect in the invention.
Transmitting device according to software version of the present invention comprises: receiver module, be used to receive from network element or user's download request, and wherein, comprise the software version information that network element or user are to be downloaded in the download request; Memory is used to store the software version download situation of a plurality of network elements and the ability information that each network element provides download service; Selecting module, be used for downloading situation and each network element provides the ability information of download service and the download request that receiver module receives according to the software version of memory stores, is that network element is selected loading source; Sending module is used for sending download command to network element, and wherein, download command carries the information of the loading source of selecting the module selection.
Particularly, above-mentioned selection module comprises: first judges submodule, is used for judging according to the software version download situation of memory stores whether a plurality of network elements have the network element of satisfied download condition; Second judges submodule, is used for judging 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, is used to judge that the software version server is current whether satisfies the download condition; The first chooser module is used for judging that first submodule and second judges that the judged result of submodule is under the situation that is, a network element of selecting to belong in the network element of same subnet and satisfied download condition with network element is a loading source; The second chooser module is used for judging that second the judged result of submodule is and the 3rd not judge that the judged result of submodule is under the situation that is that selecting the software version server is loading source; The 3rd chooser module, being used in first judged result of judging submodule is to be and second to judge that submodule and the 3rd judges that the judged result of submodule is under the situation not, selects to belong to the network element of network element of different sub-network and satisfied download condition as loading source with network element; Wherein, download condition comprises: software version to be downloaded can be provided and the ability of download service can be provided.
Above-mentioned memory also is used to store net element information, 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, be used for after sending module sends download command, and the net element information of memory stores is upgraded.
If above-mentioned update module also is used for downloading software version success to be downloaded, then software version download situation is upgraded according to the net element information that upgrades.
By means of technique scheme one of at least, by to the network element configuration file download service function in the 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 in the prior art owing to can only download the lower problem of downloading process efficient of the software version that software version causes by the software version server, thereby can effectively improve the download efficiency of software version, and then can reduce maintenance cost network element.
Embodiment
Functional overview
As mentioned above, because network element of the prior art or user can only download the software version that needs from the software version server, make the downloading process of software version be subject to following multiple factor: the link of network element and software version server, the current bandwidth of software version server and the quantity that the software version server can provide the network element of download service simultaneously distributed to, because the existence of above-mentioned factor, can cause the downloading process efficient of software version lower and then produced maintenance cost problem of higher to network element.
Based on this, the invention provides a kind of transmission plan of software version, promptly, by to the network element configuration file download service function in the network management system, promptly, dispose this network element and have the ability of supporting file 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 the software version server, and then overcome the lower problem of downloading process efficient of software version, reduced maintenance cost to network element.
Above-mentioned file download service function to the network element configuration in the network management system can be HTML (Hypertext Markup Language) (Hyper-Text Transfer Protocol, abbreviate HTTP as), safety version (the Hypertext Transfer Protocol over Secure Socket Layer of HTTP, abbreviate HTTPS as), file transfer protocol (FTP) (File Transfer Protocol, abbreviate FTP as), secure file transportation protocol (Secure File Transfer Protocol, abbreviate SFTP as), TFTP (Trivial File Transfer Protocol, abbreviate TFTP as), digital storage media order and control Extended Protocol (Digital Storage Media Commandand Control abbreviates DSMCC as) etc.
Below with reference to the accompanying drawings and in conjunction with the embodiments, describe the present invention in detail.Need to prove that if do not conflict, embodiment and the feature among the embodiment among the application can make up mutually.
Method embodiment
According to the embodiment of the invention, a kind of transmission method of software version is provided, be applied to comprise the network management system of one or more network elements, OMC and software version server.Wherein, one or more network elements are configured to support file download service.Fig. 2 is the flow chart according to the transmission method of the software version of the embodiment of the 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, wherein, comprises the software version information that M or user are to be downloaded in the download request.
Step 204, OMC downloads current ability and the download request that provides download service to M of other network element in situation, the 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 downloaded situation at the software version of the one or more network elements of storage, specifically can preserve following information: the sign of each network element in the network management system, IP address and each network element be downloaded software version number.
In actual applications, OMC can also further store following information when the software version of the one or more network elements of storage is downloaded situation: downloaded the filename of software version and the user name and password that corresponding file path, each network element are permitted under each network element on the sign of subnet, each network element.Wherein, the sign of subnet is convenient to the suitable network element of OMC selection as loading source under each network element, the user name and password of each network element permission is used for the network element of needs download software version is carried out the legitimacy authentication, and the filename and the corresponding file path of having downloaded software version on each network element are convenient to find file in download to download quickly.
Particularly, the operation of above-mentioned selection loading source may further comprise the steps a-e:
Step a, OMC downloads in situation, the 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 whether to have the network element that belongs to same subnet and satisfied download condition with M in one or more network elements, wherein, the download condition comprises: downloaded software version to be downloaded, the ability of download service is provided, if judged result is for being, then proceed to step b, otherwise, proceed to step c;
Step b selects a network element as loading source from belonging to M the network element of same subnet and satisfied download condition, so just can reduce taking of the network bandwidth to greatest extent, saving system resource;
Step c provides the ability of download service to judge whether and the software version server can be chosen as loading source according to the software version server is current to M, if judged result then proceeds to steps d for being, otherwise, proceed to step e;
Steps d is chosen as loading source with the software version server;
Step e selects to belong to the network element of network element of different sub-network and satisfied download condition as loading source with M.
The ability of above-mentioned download service depend on following one of at least: maximum quantity, the current bandwidth of the network element that current permission inserts, work as preload.Promptly, for the 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, perhaps current bandwidth take and/or when preload saturated, represent that then the current ability of not having of software version server provides download service to M.At this moment, OMC selects other suitable network elements as loading source, for M provides download service.
Need to prove that the ability of the download service of software version server and network element can be different, also can be identical, and the present invention is not limited in this respect.
After the operation of having finished above-mentioned selection loading source, proceed to step 206.
Step 206, OMC sends to M with download command, and M downloads according to download command, wherein, comprises the information of loading source in the download command.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 permission and the parameter information of software version on loading source to be downloaded.This parameter information comprises the filename and/or the corresponding file path of software version.
By above description as can be seen, by selecting a plurality of network elements as loading source, overcome in the prior art and can only download the lower problem of download efficiency that software version causes by the software version server, than prior art, the present invention can improve the concurrency that network element is downloaded software version, thereby improves the software version downloading efficiency.
After step 206, M is according to the software version of the download of information needs of loading source.That is, find loading source according to the IP address of loading source, the user name and password of permitting according to loading source carries out the legitimacy authentication, and by after the authentication, finds needs downloaded software version to carry out down operation according to above-mentioned parameter information.
For OMC, after step 206, the net element information that this locality is stored upgrades, wherein, this net element information comprise following one of at least: current information (that is the information of M), this network element (that is progress of download software version M), of carrying out the network element that software version downloads.The information of the M here comprises the IP address of sign and IP address and the loading source of M, can also comprise the subnet sign of M.Like this, make things convenient for the real-time monitoring of OMC, understand the progress that M downloads software version M.
If the downloading process of M is finished (that is, successfully having downloaded the software version that needs), then OMC upgrades its local saved software version download situation according to the net element information that upgrades.Like this, can guarantee that it all is up-to-date that software version is downloaded situation, makes things convenient for OMC to select suitable loading source.
If the downloading process of M failure, then OMC according in this locality pre-configured failed download processing rule operate, 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: the link down of M and loading source, loading source do not exist the failed authentication of M, the path of software version etc., processing mode in the failed download processing rule comprises from loading source to be downloaded again, perhaps selects to download after the new loading source.
For example, if failure cause is the link down of M and loading source, then corresponding processing mode is to download again after this loading source waits for a period of time.If failure cause is the failed authentication of loading source to M, then corresponding processing mode is to select to download after the new loading source, that is, M downloads on new loading source.
In practical operation, if the downloading process of M failure, also can feed back a failed download message to M, down operation with cancellation M, next can wait for a period of time, being selected according to above-mentioned failed download processing rule by the user is to continue to download on former loading source, perhaps downloads from new loading source.
Need to prove that above-mentioned failed download processing rule can be to be set in advance (that is, this rule comes into force to all network elements) or (, this rule is only to specifying network element to come into force) is set when being moved in system by the user by system.For convenience of description, in Fig. 2, illustrated and described the technical scheme of method embodiment of the present invention, can in computer system, carry out such as a set of computer-executable instructions in the step shown in Fig. 2 with the form of step.Though figure 2 illustrates logical order, in some cases, can carry out step shown or that describe with the order that is different from herein.
Below further describe the present invention.Network element in the configuration network management system is supported the file download service function, and this document download service function can be FTP or SFTP.
For OMC, at first be described in OMC and go up the software download information record storehouse of preserving, this software download information record storehouse comprises following 5 kinds of information.
(1) the threshold value restriction of the file download service function that is provided with for each network element in software version server and the network in advance (this threshold value restriction is the ability of above-mentioned download service), this threshold value comprises: the quantity, bandwidth and the load condition that allow the network element that inserts simultaneously.For example, the NE quantity that a network element (being designated as N) allows to insert simultaneously is 5, if the NE quantity of the current access of N is 5, the bandwidth value of perhaps distributing to N is less than predetermined bandwidth value in the threshold value, and perhaps current load is higher than the load of stipulating in the threshold value, and then N can't continue as loading source, promptly, current N can't continue to provide the ability of download service, and at this moment, it is loading source that OMC can not select N.
In practical operation, the restriction of the threshold value of software version server and network element can be different, also can be identical.The above-mentioned network element number that inserts this network element simultaneously can obtain from download software network element tabulation (information promptly (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 the 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 permission have been downloaded under network element ID (ID), the network element on the sign of subnet, network element IP address, this network element.
Wherein, it can be a plurality of that network element has been downloaded successful software version number, and sign, network element IP address, permitted user name and password, each network element of additional information of subnet have only one under the network element.Supplementary when the additional information here can be used for writing down this network element as loading source, for example, whether current running status, the file download service of this network element supports breakpoint transmission.The current running status of network element is represented whether normally operation of network element, can upgrade this state to the administrative situation of network element according to OMC, and whether suitable this state be to judge one of this network element condition as loading source.
(3) downloading software network element tabulation (being above-mentioned net element information), be mainly used in the maintenance of OMC to the network element of current download software version, this is downloading the tabulation of software network element can comprise following content: subnet ID under the NE ID, this network element, network element IP address, the IP address of loading source.
(4) the failed download processing rule that sets in advance is used for selecting different processing methods according to different failure causes when failed download.
If failure cause is the link down of network element and loading source, then OMC can reselect new loading source, and perhaps, if former loading source is supported breakpoint transmission, then OMC also can indicate network element to treat to download again behind the link-recovery.
Do not exist if failure cause is failed authentication or file path, then 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 daily record is used for after OMC sends download command to network element the download progress of record 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 begin to carry out the download of software version, this downloading process may further comprise the 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 the 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, after OMC receives download request, is selected loading source.At first whether the version of downloading search request in the software information table in software download information record storehouse has had other network elements to download, if other network elements were not all downloaded, then selects the software version server as loading source; If there have been other network elements to download, then OMC selects only network element as loading source.
Above-mentioned OMC selects only network element to comprise as the operation of loading source: preferentially select in the same subnet and network element that loading source condition (that is the current ability that the download service of providing is arranged) is provided as loading source; If there is not network element in the same subnet or that do not meet the loading source condition, then when the software version server meets the loading source condition, select the software version server as loading source; If the software version server does not meet the loading source condition, the idle network element of then selecting other subnets, have the idle network element of route and meeting the 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 the download command, the information of this loading source comprises: the user name and password that the IP address of loading source, loading source are permitted, the file path that reaches software version.
Step 4, OMC upgrades and is downloading the tabulation of software network element, and the logging software download log.
In the software download process, if the network element failed download, then network element reports failed download and reason to OMC, OMC handles according to the failed download processing rule, OMC can select new loading source, if perhaps former loading source is supported breakpoint transmission, then treats to download again behind the link-recovery.The reason of failed download can record 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, and the reason of this link down may be that physical link interrupts, and perhaps may be that the operation by network element this locality causes.These operations may comprise to the relevant link of network element resets, the network element master control borad carries out masterslave switchover, network element FTP by the overload refusal of network element in inaccessible, the downloading process provide that the active and standby software version of file download service, network element switches, network element just at the downloaded software version deleted and network element downloading other software versions etc.
In downloading process, if the overload of loading source refusal provides file download service, then loading source reports current state message to OMC, and OMC records in the additional information of downloading the software information table after receiving this status message, is convenient to correctly select when selecting loading source next time.
Device embodiment
According to the embodiment of the invention, a kind of transmitting device of software version is provided, the transmitting device of this software version is used for the down operation of a plurality of network elements of maintaining network.Preferably, this device is used for realizing the function of the OMC of said method embodiment.Fig. 3 is the block diagram of transmitting device of the software version of 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 is used to receive the download request from network element or user, wherein, comprises the software version information that network element or user are to be downloaded in the download request; Memory 2 is used to store the software version download situation of a plurality of network elements and the ability information that each network element provides download service.In practical operation, memory also is used to store net element information, wherein, net element information comprise following one of at least: the current information of the network element that software version downloads, the download progress of this network element of carrying out.Selecting module 3, be connected to receiver module 1 and memory 2, be used for providing the ability information of download service and the download request that receiver module 1 receives according to memory 2 saved software versions download situation and each network element, is that network element is selected loading source; Sending module 4 is connected to and selects module 3, is used for sending download command to network element, and wherein, download command carries the information of the loading source of selecting module 3 selections.In addition, the transmitting device of this software version can also comprise update module 5, be connected to memory 2, be used for after sending module 4 sends download command, net element information to memory 2 storages upgrades, and after the down operation success, software version download situation is upgraded according to the net element information that upgrades.
Particularly, above-mentioned selection module 3 comprises: first judges submodule 30, second judges that submodule the 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, is used for judging according to the software version download situation of memory stores whether a plurality of network elements have the network element of satisfied download condition; Second judges submodule 31, is used for judging 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, is used to judge that the software version server is current whether satisfies the download condition; The first chooser module 33, be connected to first and judge the submodule 30 and the second judgement submodule 31, be used for judging that first submodule 30 and second judges that the judged result of submodule 31 is under the situation that is that a network element of selecting to belong in the network element of same subnet and satisfied download condition with network element is a loading source; The second chooser module 34, be connected to second and judge submodule 31 and the 3rd judgement submodule 32, be used for judging that second the judged result of submodule 31 is and the 3rd not judge that the judged result of submodule 32 is under the situation that is, selecting the software version server is loading source; The 3rd chooser module 35, be connected to first and judge submodule 30, the second judgement submodule 31 and the 3rd judgement submodule 32, being used in first judged result of judging submodule 30 is to be and second to judge that submodule 31 and the 3rd judges that the judged result of submodule 32 all be under the situation not, selects and network element belongs to the network element of network element of different sub-network and satisfied download condition as loading source; Wherein, the 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 depends on maximum quantity, the current bandwidth of the network element that current permission inserts and works as preload.
The specific implementation process of above-mentioned each module can repeat no more here with reference to the associated description among the said method embodiment.
By above description as can be seen, by in advance by the information of 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 the prior art and can only download the lower problem of download efficiency that software version causes by the software version server, than prior art, the present invention can improve the concurrency that network element is downloaded software version, thereby improves the software version downloading efficiency.
In specific implementation process, above-mentioned memory can be software download information record storehouse, be used for storing said method embodiment each network element the file download service function the threshold value restriction, downloaded the software information table, download relevant information such as the tabulation of software network element, failed download processing rule and software download daily record.
Above-mentioned receiver module, sending module and update module can be unified and be set to the download request processing module, be used for the download request that processing net element sends, and to network element transmission download command, and the progress and the result of collection software download report update software download message record 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 invention, wherein, the transmitting device of this software version is an 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, the user sends the software download request by network element to operation maintenance center after network element issues the software download order, or network element initiatively sends the software download request to operation maintenance center, and this software download request can abbreviate download request as;
Step 403 after the download request processing module of operation maintenance center receives download request, requires to select module to select suitable loading source to network element;
Step 405 selects module according to the networking of the network element of being managed that writes down in the software download information record storehouse and the situation of each network element, selects loading source;
Step 407, the download request processing module sends download command to network element, and the notice network element is downloaded software from loading source;
Step 409, the download request processing module receives the progress and the result of the software download of reported by network elements, and the logging software download log;
Step 411, if network element is downloaded the software version success, then download request processing module renewal network element has been downloaded the software information table; If network element is downloaded the software version failure, then download request processing module reading software failed download processing rule carries out next step processing according to rule, and the logging software download log.
Based on above-mentioned flow process shown in Figure 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 invention, wherein, the transmitting device of this software version is an 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 the user sends download request by network element 3 to downloading request processing module after network element 3 issues the software download order; The download request processing module requires to select module to select suitable loading source for respectively network element 2, network element 3 and network element 4, and wherein, the loading source of selecting module to select for network element 2 is the software version server, and the loading source of selecting for 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, network element 2, network element 3 and network element 4 are respectively to downloading progress and the result that request processing module reports software download separately, the download request processing module is according to the reporting information logging software download log that receives, and the relevant information in the update software download message record storehouse.
In sum, the present invention is according to the networking distribution and the real-time link situation Dynamic Selection loading source of network element, solved in the prior art the single and lower problem of download efficiency that cause of loading source, than prior art, the present invention can alleviate the pressure of the network bandwidth, improve the concurrency of the software download of network element, improve the efficient of software download.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the storage device and carry out by calculation element, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and 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.