[go: up one dir, main page]

CN101141303A - Client upgrade method, server, and client in a network management system - Google Patents

Client upgrade method, server, and client in a network management system Download PDF

Info

Publication number
CN101141303A
CN101141303A CNA2007101513071A CN200710151307A CN101141303A CN 101141303 A CN101141303 A CN 101141303A CN A2007101513071 A CNA2007101513071 A CN A2007101513071A CN 200710151307 A CN200710151307 A CN 200710151307A CN 101141303 A CN101141303 A CN 101141303A
Authority
CN
China
Prior art keywords
client
download
loading source
server
software
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CNA2007101513071A
Other languages
Chinese (zh)
Inventor
陈懿新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNA2007101513071A priority Critical patent/CN101141303A/en
Publication of CN101141303A publication Critical patent/CN101141303A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

本发明公开了一种在网络管理系统中客户端升级方法,该方法包括:服务器接收来自客户端的升级请求,所述升级请求包括需要下载的客户端软件的信息;服务器从可供下载的下载源中,根据所述可供下载的下载源的文件列表,选择具有所述升级请求中所请求的客户端软件的下载源;服务器将所选择的下载源列表发送给该客户端,使该客户端从该下载源列表中选择下载源以下载客户端软件并执行下载得到的客户端软件。本发明还公开了一种适用于网络管理系统的服务器以及客户端。根据本发明公开的方法、服务器以及客户端,当客户端升级时,可以避免单点故障问题。

Figure 200710151307

The invention discloses a method for upgrading a client in a network management system. The method comprises: a server receives an upgrade request from a client, and the upgrade request includes information about client software to be downloaded; In the process, according to the file list of download sources available for download, select the download source with the client software requested in the upgrade request; the server sends the selected download source list to the client, so that the client Select a download source from the download source list to download the client software and execute the downloaded client software. The invention also discloses a server and a client end suitable for the network management system. According to the method, server and client disclosed in the present invention, when the client is upgraded, the problem of single point failure can be avoided.

Figure 200710151307

Description

一种网络管理系统中的客户端升级方法、服务器、客户端 Client upgrade method, server, and client in a network management system

技术领域 technical field

本发明涉及网络管理系统中升级技术,特别是指一种在网络管理系统中客户端升级方法,以及服务器和客户端。The invention relates to an upgrade technology in a network management system, in particular to a method for upgrading a client in the network management system, as well as a server and a client.

背景技术 Background technique

网络管理系统的升级涉及到服务器端的升级和客户端的升级。一般情况下,服务器的部署相对集中,数量也不会太多,可以现场进行升级,客户端的部署会比较分散,数量也较多,因此,对于客户端的升级主要是通过自动升级的方式实现。The upgrade of the network management system involves the upgrade of the server and the client. In general, the deployment of servers is relatively concentrated and the number is not too large, and can be upgraded on site. The deployment of clients is scattered and the number is also large. Therefore, the upgrade of clients is mainly realized through automatic upgrades.

在网络管理系统中,客户端的软件保存在固定的服务器中,该服务器成为所有客户端下载客户端软件的唯一下载源。客户端在自动升级过程中,从所述服务器中下载客户端软件,客户端软件下载完成后,客户端自动替换自身的软件,运行最新下载的客户端软件。图1所示为,在客户端自动升级过程中,各客户端下载客户端软件的示意图。In the network management system, the client software is stored in a fixed server, which becomes the only download source for all clients to download the client software. During the automatic upgrading process, the client downloads the client software from the server. After the download of the client software is completed, the client automatically replaces its own software and runs the latest downloaded client software. FIG. 1 is a schematic diagram of each client downloading client software during the client automatic upgrade process.

随着网络管理系统中的客户端数量的不断增加,如果多个客户端同时从一个服务器下载客户端软件,则服务器的负荷会存在瓶颈,降低客户端升级效率。由于所有客户端都从一个服务器下载客户端软件,如果服务器出故障,则客户端无法完成自动升级,所以,服务器成为单点故障,升级的可靠性降低。客户端并发升级的时候,对升级的客户端没有安全性保证,服务器负荷以及网络状况未知,升级过程的安全性无法得到保障。As the number of clients in the network management system continues to increase, if multiple clients download client software from a server at the same time, there will be a bottleneck in the load of the server, reducing the efficiency of client upgrades. Since all clients download client software from one server, if the server fails, the clients cannot complete the automatic upgrade, so the server becomes a single point of failure and the reliability of the upgrade is reduced. When the client is upgraded concurrently, there is no security guarantee for the upgraded client, the server load and network status are unknown, and the security of the upgrade process cannot be guaranteed.

发明内容 Contents of the invention

本发明实施例提供一种在网络管理系统中客户端升级方法,避免服务器的单点故障。An embodiment of the present invention provides a method for upgrading a client in a network management system to avoid a single point of failure of a server.

本发明实施例提供一种服务器,能够为客户端升级提供下载源列表使客户端从中选择下载源下载客户端软件,避免单点故障。An embodiment of the present invention provides a server capable of providing a list of download sources for client upgrades so that the client can select a download source from which to download client software, thereby avoiding a single point of failure.

本发明实施例提供一种客户端,能够确定合适的下载源下载客户端软件,避免单点故障。The embodiment of the present invention provides a client, which can determine a suitable download source to download client software, and avoid single point of failure.

本发明实施例提供一种在网络管理系统中客户端升级方法,该方法包括:An embodiment of the present invention provides a method for upgrading a client in a network management system, the method comprising:

服务器接收来自客户端的升级请求,所述升级请求包括需要下载的客户端软件的信息;The server receives an upgrade request from the client, where the upgrade request includes information about the client software to be downloaded;

服务器从可供下载的下载源中,根据所述可供下载的下载源对应的文件列表,选择具有所述升级请求中所请求的客户端软件的下载源;The server selects, from the download sources available for download, a download source having the client software requested in the upgrade request according to the file list corresponding to the download source available for download;

服务器将所选择的下载源列表发送给该客户端,使该客户端从该下载源列表中选择下载源以下载客户端软件并执行下载得到的客户端软件。The server sends the selected download source list to the client, so that the client selects a download source from the download source list to download the client software and execute the downloaded client software.

本发明实施例提供一种在网络管理系统中客户端升级方法,该方法包括:An embodiment of the present invention provides a method for upgrading a client in a network management system, the method comprising:

客户端确定升级客户端软件,向服务器发送包括需要下载的客户端软件信息的升级请求,使该服务器返回能够下载该客户端软件的下载源列表;The client determines to upgrade the client software, and sends an upgrade request including the client software information to be downloaded to the server, so that the server returns a list of download sources capable of downloading the client software;

客户端接收到该服务器返回的下载源列表后,从该下载源列表中确定用于下载客户端软件的下载源,从所确定的下载源下载客户端软件,并执行下载得到的客户端软件。After receiving the download source list returned by the server, the client determines a download source for downloading the client software from the download source list, downloads the client software from the determined download source, and executes the downloaded client software.

本发明实施例提供一种服务器,应用于网络管理系统,该服务器包括:An embodiment of the present invention provides a server, which is applied to a network management system, and the server includes:

升级请求接收单元,用于接收客户端的客户端软件升级请求,并从升级请求中获取该客户端需要下载的客户端软件的信息;The upgrade request receiving unit is used to receive the client software upgrade request of the client, and obtain the information of the client software that the client needs to download from the upgrade request;

下载源选择单元,用于为所述升级请求的客户端,选择具有所述需要下载的客户端软件的下载源,并将所选择的下载源列表发送给所述客户端。The download source selection unit is configured to select a download source with the client software to be downloaded for the client requesting the upgrade, and send the selected download source list to the client.

本发明实施例提供一种客户端,应用于网络管理系统,所述客户端包括:An embodiment of the present invention provides a client, which is applied to a network management system, and the client includes:

升级请求单元,用于确定升级客户端软件,并向服务器发送包括需要下载的客户端软件信息的升级请求;An upgrade request unit, configured to determine to upgrade the client software, and send an upgrade request including client software information to be downloaded to the server;

下载源确定单元,用于接收服务器返回的下载源列表,并从该下载源列表中确定用于下载客户端软件的下载源;The download source determining unit is used to receive the download source list returned by the server, and determine the download source for downloading the client software from the download source list;

下载单元,用于从所述下载源确定单元所确定的下载源中下载客户端软件;a download unit, configured to download client software from the download source determined by the download source determination unit;

升级单元,用于执行所述下载单元下载得到的客户端软件。An upgrading unit is configured to execute the client software downloaded by the downloading unit.

根据本发明实施例提供的方法、服务器以及客户端,当客户端请求升级所需要的客户端软件时,服务器为客户端提供能够下载该客户端软件的下载源列表,使该客户端能够从中选择下载源下载客户端软件,因此,由服务器和客户端为下载客户端软件确定下载源,与现有技术中只有服务器成为下载源的情况相比,能够避免单点故障问题,从而提高网络管理系统的性能。According to the method, server and client provided by the embodiments of the present invention, when the client requests to upgrade the client software required, the server provides the client with a list of download sources that can download the client software, so that the client can choose from The download source downloads the client software. Therefore, the download source is determined by the server and the client for downloading the client software. Compared with the situation in which only the server becomes the download source in the prior art, the single point of failure problem can be avoided, thereby improving the network management system. performance.

附图说明 Description of drawings

图1所示为现有技术中,在客户端自动升级过程中下载客户端软件的示意图;Fig. 1 shows that in the prior art, the schematic diagram of downloading the client software during the client automatic upgrade process;

图2所示为本发明实施例中网络管理系统的结构框图;Fig. 2 shows the structural block diagram of the network management system in the embodiment of the present invention;

图3所示为本发明实施例中客户端升级流程图;Fig. 3 shows the flowchart of client upgrade in the embodiment of the present invention;

图4所示为本发明实施例中下载客户端软件的流程图;Fig. 4 shows the flowchart of downloading client software in the embodiment of the present invention;

图5所示为本发明实施例中客户端根据优先级选择下载源的流程图;Fig. 5 is shown as the flow chart that client selects download source according to priority in the embodiment of the present invention;

图6所示为本发明实施例的网络管理系统中,服务器和客户端软件的内部结构图。FIG. 6 is a diagram showing the internal structure of the server and client software in the network management system of the embodiment of the present invention.

具体实施方式 Detailed ways

为使本发明的目的、技术方案和优点更加清楚明白,下面举具体实施例,对本发明作进一步详细的说明。In order to make the object, technical solution and advantages of the present invention clearer, specific examples are given below to further describe the present invention in detail.

本发明实施例给出的网络管理系统中,客户端升级时,由服务器和客户端确定用于下载客户端软件的下载源,在此可以按照一定策略选择下载源,从而避免现有技术中只有服务器成为下载源所导致的单点故障问题;而且,当客户端软件被分为多个文件块时,客户端可以为每个文件块确定下载源,实现多点并行下载,从而提高下载效率;更进一步,还设计了安全性措施,从而提高网络管理系统的安全性。In the network management system provided by the embodiment of the present invention, when the client is upgraded, the download source for downloading the client software is determined by the server and the client, and the download source can be selected according to a certain strategy, thereby avoiding only The single point of failure problem caused by the server becoming the download source; moreover, when the client software is divided into multiple file blocks, the client can determine the download source for each file block to realize multi-point parallel download, thereby improving download efficiency; Furthermore, security measures are also designed to improve the security of the network management system.

首先,介绍网络管理系统的总体结构。图2所示为本发明实施例中网络管理系统的结构框图。如图2所示,网络管理系统中包括:服务器和多个客户端。网络管理系统中,可以设置一个服务器,也可以设置多个服务器。设置一个服务器时,该服务器中存放客户端软件,且保存有可供下载的下载源的信息(例如下载地址、下载端口等)以及可供下载的下载源具有的文件列表;设置多个服务器时,服务器又可以根据服务内容的不同,分为主服务器和下载用服务器,主服务器中存放客户端软件,且保存有可供下载的下载源的信息以及可供下载的下载源具有的文件列表,下载用服务器中存放客户端软件,是专门为下载而设置的。在所述网络管理系统中,当客户端需要升级客户端软件时,服务器根据自身所保存的可供下载的下载源信息以及这些下载源所具有的文件列表,为该客户端选择下载源,使客户端从服务器所选择的下载源中再进一步确定用于下载客户端软件的下载源下载。服务器可以为该客户端选择存放有客户端软件的下载用服务器作为下载源,也可以选择有客户端软件且登录系统的客户端作为下载源。这样,各客户端下载客户端软件时,能够从不同的下载源下载,减少服务器的负荷,也避免单点故障,提高升级可靠性。如果客户端软件被分为多个文件块时,客户端还可以同时从多个下载源下载,从而提高下载速度。First, introduce the overall structure of the network management system. Fig. 2 is a structural block diagram of the network management system in the embodiment of the present invention. As shown in Figure 2, the network management system includes: a server and multiple clients. In the network management system, one server or multiple servers can be set. When setting up a server, the client software is stored in the server, and the download source information (such as download address, download port, etc.) , the server can be divided into the main server and the download server according to the different service content. The main server stores the client software, and saves the information of the download source available for download and the file list of the download source available for download. The client software is stored in the downloading server, which is specially set up for downloading. In the network management system, when the client needs to upgrade the client software, the server selects the download source for the client according to the download source information stored by itself and the file lists of these download sources, so that The client further determines the download source for downloading the client software from the download sources selected by the server. The server may select a download server storing client software as a download source for the client, or may select a client having client software and logging into the system as a download source. In this way, when each client downloads the client software, it can download from different download sources, which reduces the load on the server, avoids single point of failure, and improves upgrade reliability. If the client software is divided into multiple file blocks, the client can also download from multiple download sources at the same time, thereby increasing the download speed.

下面,详细介绍客户端升级的处理流程。The following describes the process of client upgrade in detail.

图3所示为客户端升级的流程图。如图3所示,客户端升级通过以下几个步骤实现。Figure 3 is a flow chart of client upgrade. As shown in Figure 3, the client upgrade is implemented through the following steps.

步骤301:客户端确定升级客户端软件。Step 301: the client determines to upgrade the client software.

服务器中设置有服务器软件与客户端软件的匹配关系。例如:V100R001B01D009:文件1-V100R001B01D009;文件2-V100R001B01D008The matching relationship between the server software and the client software is set in the server. For example: V100R001B01D009: file 1-V100R001B01D009; file 2-V100R001B01D008

在所述匹配关系中,设置有服务器软件的版本号与客户端软件的版本号之间的对应关系,V100R001B01D009是服务器软件的版本号,V100R001B01D009和V100R001B01D008是服务器软件的版本号支持的客户端软件的版本号;在所述匹配关系中,还设置有客户端软件的版本号与客户端软件相关文件的对应关系,例如,V100R001B01D009对应文件1,V100R001B01D008对应文件2。以上示例的匹配关系中,“:”号表示服务器软件版本与客户端软件版本的对应关系,“:”号前是服务器软件的版本号,“:”号后是客户端软件相关文件的名称和版本号对;“-”号表示客户端软件版本与文件的对应关系,“-”号前是文件名称,“-”号后是对应的客户端软件的版本号,如果匹配的客户端软件的版本和文件有多个,则使用“;”号分割。服务器需要实时更新所述匹配关系,例如,当服务器软件升级时,需要更新所述匹配关系。In the matching relationship, there is a corresponding relationship between the version number of the server software and the version number of the client software, V100R001B01D009 is the version number of the server software, V100R001B01D009 and V100R001B01D008 are the Version number; in the matching relationship, there is also a corresponding relationship between the version number of the client software and the relevant files of the client software, for example, V100R001B01D009 corresponds to file 1, and V100R001B01D008 corresponds to file 2. In the matching relationship in the above example, the sign ":" indicates the corresponding relationship between the server software version and the client software version. Before the sign ":" is the version number of the server software, and after the sign ":" is the name and Version number pair; "-" indicates the corresponding relationship between the client software version and the file, before the "-" is the file name, after the "-" is the version number of the corresponding client software, if the matching client software If there are multiple versions and files, use ";" to separate them. The server needs to update the matching relationship in real time, for example, when the server software is upgraded, the matching relationship needs to be updated.

客户端登录网络管理系统时,从服务器获取所述匹配关系,判断自身的客户端软件是否与服务器软件匹配,如果不匹配,则确定需要升级客户端软件。When the client logs in to the network management system, it obtains the matching relationship from the server, and judges whether its own client software matches the server software, and if not, it determines that the client software needs to be upgraded.

在网络管理系统中,针对确定客户端升级的方式,可以设置客户端升级策略。升级策略中,可以设置以手动方式确定升级还是以自动方式确定升级。如果升级策略中设置以手动方式确定升级,则当客户端确定客户端软件与服务器软件不匹配时,客户端向用户提示是否升级客户端软件,并根据用户的选择确定是否升级客户端软件;如果升级策略中设置以自动方式确定升级,则当客户端确定客户端软件与服务器软件不匹配时,由客户端直接确定升级客户端软件。In the network management system, in order to determine the way to upgrade the client, a client upgrade policy can be set. In the upgrade policy, you can set whether to determine the upgrade manually or automatically. If the upgrade policy is set to manually determine the upgrade, when the client determines that the client software does not match the server software, the client will prompt the user whether to upgrade the client software, and determine whether to upgrade the client software according to the user's choice; if If the upgrade policy is set to automatically determine the upgrade, when the client determines that the client software does not match the server software, the client directly determines to upgrade the client software.

步骤302:客户端向服务器发送升级请求,该升级请求中包括需要下载的客户端软件的信息。Step 302: the client sends an upgrade request to the server, and the upgrade request includes information about the client software to be downloaded.

客户端从服务器获取所述匹配关系,将与服务器软件匹配的客户端软件确定为所述需要下载的客户端软件。例如,在步骤301中举例的匹配关系中,与服务器软件版本V100R001B01D009匹配的客户端软件版本有两个,各版本分别对应一个文件,这时,客户端可以选择任意一个文件下载,例如文件1或文件2。The client acquires the matching relationship from the server, and determines the client software that matches the server software as the client software that needs to be downloaded. For example, in the matching relationship exemplified in step 301, there are two client software versions that match the server software version V100R001B01D009, and each version corresponds to a file. At this time, the client can choose any file to download, such as file 1 or file 2.

升级请求中包括的需要下载的客户端软件的信息,可以为客户端软件的版本号,也可以为与客户端软件版本号对应的文件名。The information of the client software to be downloaded included in the upgrade request may be the version number of the client software, or may be a file name corresponding to the version number of the client software.

步骤303:服务器接收到升级请求后,为该客户端选择具有所述升级请求中包括的需要下载的客户端软件的下载源,并将所选择的下载源列表发送给该客户端。Step 303: After receiving the upgrade request, the server selects a download source for the client that includes the client software to be downloaded included in the upgrade request, and sends the selected download source list to the client.

在服务器中,需要保存可供下载的下载源的信息以及维护有各下载源所具有的文件列表。其中,可供下载的下载源可以为如图2中的下载用服务器,或者为客户端。服务器中保存的各下载源的信息包括下载地址、下载端口等信息,其中,下载地址是下载源的IP地址。下载地址和下载端口等信息可以由服务器预先设置;也可以由各下载源向服务器提供并由服务器登记相应信息。In the server, it is necessary to save the information of download sources available for download and maintain a file list of each download source. Wherein, the downloading source available for downloading may be a downloading server as shown in FIG. 2 , or a client. The information of each download source stored in the server includes information such as a download address and a download port, wherein the download address is the IP address of the download source. Information such as the download address and download port can be preset by the server; each download source can also be provided to the server and the corresponding information can be registered by the server.

网络管理系统中的所有客户端都可以成为下载源,或者部分客户端可以成为下载源。其中,作为下载源的客户端,在下载成功客户端软件或执行下载的客户端软件之后,需要向服务器登记自身能够提供该客户端软件相关文件的列表,以使得服务器更新该客户端可供下载的文件列表。作为下载源的客户端在向服务器登记自身能够提供该客户端软件相关文件的列表的同时,还可以将自身用于提供下载的下载地址、下载端口等信息发送给该服务器,以使得服务器更新该客户端作为下载源的下载信息。All clients in the network management system can become download sources, or some clients can become download sources. Wherein, the client as the download source, after successfully downloading the client software or executing the downloaded client software, needs to register with the server that it can provide a list of relevant files of the client software, so that the server can update the client for downloading list of files. When the client as the download source registers itself with the server and can provide the list of the client software related files, it can also send information such as the download address and download port used to provide the download to the server, so that the server can update the client software. The download information of the client as the download source.

另外,在该网络管理系统中,还可以设置可供下载的下载源用户。在此,所有的用户都可以成为下载源用户,或者只有部分用户才可以成为下载源用户。In addition, in the network management system, download source users available for download can also be set. Here, all users can become download source users, or only some users can become download source users.

服务器需要登记下载源的状态,例如,各下载源登录系统的情况,登录各下载源的用户信息等。其中,由于下载用服务器是专门为下载设置的,因此,可以默认该下载用服务器是始终登录在系统的。客户端登录系统后,向服务器报告自身已登录系统的信息,而且,同时可以向服务器报告登录的用户信息,服务器则更新该客户端的登录情况以及登录该客户端的用户信息。The server needs to register the status of the download sources, for example, the status of each download source logging into the system, the registration of user information of each download source, and the like. Wherein, since the downloading server is specially set up for downloading, it may be defaulted that the downloading server is always logged in the system. After the client logs into the system, it reports to the server the information that it has logged into the system, and at the same time, it can report the logged-in user information to the server, and the server updates the client's login status and the user's information logged in to the client.

服务器需要设置为客户端选择下载源的条件,例如,可以仅考虑是否有客户端软件,也可以同时考虑是否有客户端软件和登录情况,还可以同时考虑是否有客户端软件、登录情况以及所登录的用户情况。服务器为客户端选择下载源时,可以根据客户端的升级请求和所设置的条件,选择满足条件的下载源。例如,服务器可以为客户端选择有客户端软件的服务器为下载源,或者,选择登录系统且有客户端软件的客户端为下载源,或者,选择登录用户为下载源用户并且有客户端软件的客户端为下载源。The server needs to set the conditions for the client to select the download source. For example, it can only consider whether there is client software, or whether there is client software and login status, or whether there is client software, login status, and all Logged in user status. When the server selects a download source for the client, it may select a download source that satisfies the conditions according to the upgrade request of the client and the conditions set. For example, the server can select a server with client software as the download source for the client, or select a client that logs in to the system and has the client software as the download source, or selects the login user as the download source user and has the client software. The client is the download source.

通过以上方式,服务器可以根据网络管理系统对安全性的要求,指定合适的客户端作为下载源,而且根据客户端的登录情况以及登录用户信息等,为当前的下载请求选择下载源列表,从而给客户端提供多个可供下载的下载源,能够提升客户端软件升级的可靠性。Through the above method, the server can designate a suitable client as the download source according to the security requirements of the network management system, and select the download source list for the current download request according to the client's login status and login user information, so as to provide the client The terminal provides multiple download sources for downloading, which can improve the reliability of the client software upgrade.

服务器给客户端发送下载源列表时,可以将下载地址发送给客户端,同时还可以付上相应的下载端口,或者也可以将下载源的名称发送给客户端。服务器给客户端发送下载源列表时,还可以同时将各下载源可供下载的文件列表发送给客户端。When the server sends the download source list to the client, the download address can be sent to the client, and the corresponding download port can also be added at the same time, or the name of the download source can also be sent to the client. When the server sends the download source list to the client, it can also send the downloadable file list of each download source to the client at the same time.

步骤304:客户端从服务器返回的下载源列表中的下载源下载客户端软件,执行下载得到的客户端软件。Step 304: the client downloads the client software from the download sources in the download source list returned by the server, and executes the downloaded client software.

下面,详细介绍客户端从服务器返回的下载源列表中的下载源下载客户端软件的过程,如图4所示,具体包括如下步骤:Next, the process of the client downloading the client software from the download sources in the download source list returned by the server is described in detail, as shown in Figure 4, which specifically includes the following steps:

步骤401:客户端从服务器返回的下载源列表中,选择候选下载源。Step 401: the client selects a candidate download source from the list of download sources returned by the server.

针对候选下载源的选择方式,也可以设置升级策略。例如,以手动方式选择候选下载源,或者以自动方式选择候选下载源。以手动或自动方式选择候选下载源,分别按照如下方法实现。For the selection method of candidate download sources, an upgrade policy may also be set. For example, the candidate download source is selected manually, or the candidate download source is selected automatically. The candidate download source is selected manually or automatically, respectively, according to the following methods.

1)以手动方式选择候选下载源时,由用户通过客户端界面,从服务器选择的下载源中,选择候选下载源。1) When the candidate download source is selected manually, the user selects the candidate download source from the download sources selected by the server through the client interface.

2)以自动方式选择候选下载源时,由客户端选择候选下载源。2) When the candidate download source is selected automatically, the client selects the candidate download source.

对候选下载源的个数,可以选择任意多个,也可以设置最多能选的个数。As for the number of candidate download sources, any number can be selected, and the maximum number that can be selected can also be set.

当然,客户端可以将从服务器得到的下载源列表中的所有下载源选择为候选下载源,换句话说,在实际应用过程中,可以省略本步骤401。此时以下步骤中所述的候选下载源为服务器返回的下载源列表中的下载源。Of course, the client may select all the download sources in the download source list obtained from the server as candidate download sources. In other words, step 401 may be omitted during actual application. At this time, the candidate download sources described in the following steps are the download sources in the download source list returned by the server.

步骤402:客户端获取候选下载源的状态信息,具体通过如下的步骤402-1和步骤402-2实现。Step 402: The client obtains the state information of the candidate download source, which is specifically implemented through the following steps 402-1 and 402-2.

402-1:客户端检测是否可达各候选下载源,根据检测结果,不可达的候选下载源无效,可达的候选下载源有效。对于可达的候选下载源,确定该候选下载源的网络返回速度。402-1: The client detects whether each candidate download source is reachable. According to the detection result, the unreachable candidate download source is invalid, and the reachable candidate download source is valid. For a reachable candidate download source, determine the network return speed of the candidate download source.

在此,可以采用“ping”命令检测是否可达。通过“ping”命令,可以确定是否可达,同时,对于可达的候选下载源,还可以确定网络返回速度。Here, you can use the "ping" command to check whether it is reachable. Through the "ping" command, it can be determined whether it is reachable, and at the same time, for reachable candidate download sources, the return speed of the network can also be determined.

402-2:客户端与步骤402-1中确定的有效的候选下载源建立通信连接,通信连接建立成功后,客户端向该候选下载源发送下载请求,候选下载源向该客户端返回响应,该响应中,包括自身的当前负荷,当前正在下载的通信连接数量。其中,负荷可以为CPU占用情况和内存空闲大小。候选下载源向客户端返回的响应中,还可以包括自身能够提供下载的文件列表。402-2: The client establishes a communication connection with the effective candidate download source determined in step 402-1. After the communication connection is successfully established, the client sends a download request to the candidate download source, and the candidate download source returns a response to the client. The response includes its own current load and the number of communication connections currently being downloaded. Wherein, the load may be CPU usage and free memory size. The response returned by the candidate download source to the client may also include a list of files that it can provide for download.

本步骤402中获取的候选下载源的状态信息包括:网络的返回速度、CPU占用情况、内存空闲大小、当前正在下载的通信连接数量。The status information of the candidate download sources obtained in step 402 includes: network return speed, CPU usage, free memory size, and the number of communication connections currently being downloaded.

步骤403:客户端根据候选下载源的状态信息,确定用于下载客户端软件的下载源。Step 403: The client determines the download source for downloading the client software according to the state information of the candidate download source.

客户端为了确定较合适的下载源,可以设置优先级策略,并按照优先级策略确定用于下载客户端软件的下载源。这里所述的优先级策略,具体包括所考虑状态因素的优先级以及每个状态因素的判定条件。例如,本实施例中设置如下4个优先级,分别为:In order to determine a more suitable download source, the client may set a priority policy, and determine the download source for downloading the client software according to the priority policy. The priority policy described here specifically includes the priority of the considered status factors and the determination conditions of each status factor. For example, in this embodiment, the following four priorities are set, which are:

优先级一:考虑当前正在下载的通信连接数量,优先选择当前正在下载的通信连接数量最少的下载源。Priority 1: Considering the number of communication connections currently being downloaded, the download source with the least number of communication connections currently being downloaded is preferentially selected.

优先级二:考虑网络返回速度,优先选择返回速度最快的下载源。Priority 2: Consider the network return speed, and give priority to the download source with the fastest return speed.

优先级三:考虑CPU占用情况,优先选择CPU占用最少的下载源。Priority 3: Considering the CPU usage, choose the download source with the least CPU usage first.

优先级四:考虑内存空闲大小,优先选择内存空闲最大的下载源。Priority 4: Consider the size of free memory, and give priority to the download source with the largest free memory.

优先级的顺序可根据具体应用进行调整,各优先级中所考虑的状态因素的判定条件也可根据具体应用进行调整。针对优先级一中当前正在下载的通信连接数量的因素,也可以设置优先选择的数量范围,例如,可以优先选择当前正在下载的通信连接数量为1个或2个的下载源;针对优先级二中网络返回速度,也可以设置优先选择的速度范围,例如,可以优先选择返回速度为1ms到2ms之间的下载源;针对优先级三中CPU占用情况,也可以设置优先选择的百分比,例如,可以优先选择CPU占用百分比为0到50%之间的下载源;针对优先级四中内存空闲大小,也可以设置优先选择的空闲大小,例如,可以优先选择内存空闲为128M以上的下载源。The order of priorities can be adjusted according to specific applications, and the determination conditions of the status factors considered in each priority can also be adjusted according to specific applications. For the factors of the number of communication connections currently being downloaded in priority one, the number range of priority selection can also be set. For example, download sources with 1 or 2 communication connections currently being downloaded can be preferentially selected; for priority two In the network return speed, you can also set the preferred speed range, for example, you can give priority to the download source with a return speed between 1ms and 2ms; for the CPU usage in priority three, you can also set the preferred percentage, for example, You can give priority to the download source whose CPU usage percentage is between 0 and 50%. For the free memory size in priority 4, you can also set the preferred free size. For example, you can give priority to the download source with the free memory above 128M.

如上所述,客户端通过检测候选下载源的网络状态确定下载源,从而能够进一步提高客户端软件升级的可靠性。而且,对不同的网络特性设置不同的优先级,根据不同优先级的状态因素和判定条件来确定下载源,这样,能够使网络管理系统中的负荷均匀,提高网络管理系统的整体性能。As mentioned above, the client determines the download source by detecting the network status of the candidate download source, so that the reliability of the client software upgrade can be further improved. Moreover, different priorities are set for different network characteristics, and the download source is determined according to state factors and judgment conditions of different priorities. In this way, the load in the network management system can be evened out, and the overall performance of the network management system can be improved.

另外,客户端软件可以是一个文件,或者,客户端软件也可以被分为多个文件块,其中,文件块的大小可任意设置,例如,64K或大于64K。当客户端软件被分为多个文件块时,客户端可以为每个文件块分别确定不同的下载源,并从不同的下载源分别下载不同的文件块,这样,不同的文件块可以并行下载,能够实现多点并行下载,从而减少下载客户端软件的总时间,提高下载效率。In addition, the client software can be a file, or the client software can also be divided into multiple file blocks, wherein the size of the file block can be set arbitrarily, for example, 64K or greater than 64K. When the client software is divided into multiple file blocks, the client can determine different download sources for each file block, and download different file blocks from different download sources, so that different file blocks can be downloaded in parallel , can realize multi-point parallel downloading, thereby reducing the total time for downloading client software and improving downloading efficiency.

客户端根据所设置的优先级,给文件或每个文件块分别选择合适的下载源,具体如图5所示的流程,包括以下几个步骤:The client selects an appropriate download source for the file or each file block according to the set priority, and the specific process shown in Figure 5 includes the following steps:

步骤501:根据优先级一判断是否能确定唯一的下载源,即在候选下载源中,判断当前正在下载的通信连接数量满足优先级一条件的候选下载源是否唯一,如果唯一,则将所述满足优先级一条件的候选下载源确定为下载源,结束本流程;如果不唯一,说明有多个候选下载源满足优先级一的条件,则执行步骤502。Step 501: Determine whether the only download source can be determined according to priority one, that is, among the candidate download sources, judge whether the candidate download source whose number of communication connections currently being downloaded satisfies the priority one condition is unique, and if unique, then The candidate download source satisfying the condition of priority one is determined to be the download source, and the flow ends; if not unique, it means that there are multiple candidate download sources satisfying the condition of priority one, and step 502 is executed.

步骤502:进一步根据优先级二判断是否能够确定唯一的下载源,即在满足优先级一条件的候选下载源中,判断网络返回速度满足优先级二条件的候选下载源是否唯一,如果唯一,则将所述满足优先级一、二条件的候选下载源确定为下载源,结束本流程;如果不唯一,说明在满足优先级一条件的候选下载源中,仍有多个候选下载源满足优先级二的条件,则执行步骤503。Step 502: further judge whether the only download source can be determined according to priority two, that is, among the candidate download sources satisfying the condition of priority one, judge whether the candidate download source whose network return speed satisfies the condition of priority two is unique, and if unique, then Determine the candidate download source that meets the priority 1 and 2 conditions as the download source, and end this process; if it is not unique, it means that among the candidate download sources that meet the priority 1 condition, there are still multiple candidate download sources that meet the priority If the condition is two, step 503 is executed.

步骤503:进一步根据优先级三判断是否能够确定唯一的下载源,即在在满足优先级一、二条件的候选下载源中,判断当前CPU占用情况满足优先级三的条件的候选下载源是否唯一,如果唯一,则将满足优先级一、二、三条件的候选下载源确定为下载源,结束本流程;如果不唯一,说明在满足优先级一、二条件的候选下载源中,仍有多个候选下载源满足优先级三的条件,则执行步骤504。Step 503: Further judge whether the only download source can be determined according to the priority level three, that is, among the candidate download sources satisfying the priority level one and two conditions, determine whether the candidate download source satisfying the priority level three condition is the only one , if it is unique, then determine the candidate download sources that meet the conditions of priority 1, 2 and 3 as the download source, and end this process; if not unique, it means that there are still many If a candidate download source satisfies the condition of priority three, step 504 is executed.

步骤504:进一步根据优先级四是判断否能够确定唯一的下载源,即在满足优先级一、二、三条件的候选下载源中,判断当前内存空闲大小满足优先级四的条件的候选下载源是否唯一,如果唯一,则将满足优先级一、二、三、四条件的候选下载源确定为下载源,结束本流程;如果不唯一,说明在满足优先级一、二、三条件的候选下载源中,仍有多个候选下载源满足优先级四的条件,则选择其中任意候选下载源确定为下载源。Step 504: Further judge whether the only download source can be determined according to priority 4, that is, among the candidate download sources meeting the conditions of priority 1, 2, and 3, determine the candidate download source whose current free memory size satisfies the condition of priority 4 Whether it is unique, if it is unique, determine the candidate download source that meets the conditions of priority 1, 2, 3, and 4 as the download source, and end this process; Among the sources, there are still multiple candidate download sources meeting the condition of priority 4, and any candidate download source is selected as the download source.

通过以上步骤501~504,可以给每个文件块确定相应的下载源。Through the above steps 501-504, the corresponding download source can be determined for each file block.

步骤404:客户端从所确定的下载源中下载客户端软件。Step 404: the client downloads the client software from the determined download source.

如果客户端软件被分为多个文件块,则客户端从步骤403中确定的各下载源中,下载相应的文件块,下载完所有文件块后,将所有文件块组合成为客户端软件。If the client software is divided into multiple file blocks, the client downloads the corresponding file blocks from each download source determined in step 403, and after all the file blocks are downloaded, all the file blocks are combined into the client software.

如果文件块下载失败,则可以重新尝试下载,如果还是失败,则可以选择其它下载源重新下载该文件块。重新选择下载源的方法可以采用上述步骤403所述的方法。在此,文件块的下载失败的情况可以包括:下载源客户端拒绝本次下载,或者,由于通信链路的问题所导致的失败情况等。If the download of the file block fails, the download can be tried again, and if it still fails, another download source can be selected to re-download the file block. The method for reselecting the download source may adopt the method described in step 403 above. Here, the failure to download the file block may include: the download source client rejects the download, or the failure is caused by a communication link problem, and the like.

为了校验文件块的正确性,在文件块中可以设置校验码。当文件块下载成功时,检测文件块的校验码是否正确,如果不正确,则认为文件块传输过程中产生错误,重新下载该校验码不正确的文件块。例如,可以在每个文件块的前面增加4个字节的文件头,在该文件头中可以设置每个文件块的编号,校验码的一种实现方式是把文件头中的所有字节做“异或”等运算,得到校验码的值。校验码的检测方法为,按照设置校验码的方法再次运算得到校验码,并判断重新运算得到的校验码和下载得到的文件块中所携带的校验码是否相同,如果相同,则校验码正确,否则,校验码不正确。通过这种校验过程,能够进一步提高客户端软件升级的可靠性。In order to verify the correctness of the file block, a check code can be set in the file block. When the file block is successfully downloaded, it is checked whether the check code of the file block is correct, if not, it is considered that an error occurred during the file block transmission, and the file block with the incorrect check code is re-downloaded. For example, a 4-byte file header can be added in front of each file block, and the number of each file block can be set in the file header. One implementation of the check code is to put all the bytes in the file header Do "XOR" and other operations to get the value of the check code. The detection method of the check code is to calculate the check code again according to the method of setting the check code, and judge whether the check code obtained by the re-calculation is the same as the check code carried in the downloaded file block. If they are the same, Then the check code is correct, otherwise, the check code is incorrect. Through this verification process, the reliability of client software upgrade can be further improved.

客户端成功下载文件块后,可以向服务器登记自身能够提供的文件块的信息,包括下载地址、下载的端口号以及已成功下载的文件块名。登记成功后,该客户端可以成为该文件块的下载源,其它客户端能够从该客户端下载该文件块。After the client successfully downloads the file chunks, it can register with the server the information of the file chunks it can provide, including the download address, the port number for downloading, and the name of the successfully downloaded file chunks. After successful registration, the client can become the download source of the file block, and other clients can download the file block from the client.

所有文件块下载完成后,客户端将所有的文件块组合成一个文件,然后检验文件的正确性。文件的正确性也是利用校验码检验,具体方法同文件块的正确性检验。通过检验,如果确定文件不正确,则该文件无效,需要重新下载,如果确定文件正确,则该文件有效。After all the file blocks are downloaded, the client combines all the file blocks into one file, and then verifies the correctness of the file. The correctness of the file is also checked by the check code, and the specific method is the same as the correctness check of the file block. After checking, if it is determined that the file is incorrect, the file is invalid and needs to be downloaded again; if it is determined that the file is correct, the file is valid.

通过以上步骤,客户端下载成功客户端软件后,即可执行自动升级。客户端在下载成功客户端软件或升级完成之后,向服务器登记自身能够提供的文件的信息,包括下载地址,下载端口号以及客户端软件的文件列表等。Through the above steps, after the client successfully downloads the client software, it can perform automatic upgrade. After the client successfully downloads the client software or completes the upgrade, it registers with the server the information of the files it can provide, including the download address, download port number, and file list of the client software.

这样,所述下载成功客户端软件且升级成功的客户端,如果该客户端为可供下载的下载源,则该客户端能够为其它客户端提供当前客户端软件,其它客户端能够从该客户端下载所需要的客户端软件。In this way, if the client that successfully downloads the client software and upgrades successfully is a download source that can be downloaded, then the client can provide other clients with the current client software, and other clients can download from the client. download the required client software.

考虑到网络管理系统的安全性,系统管理员可以对可供下载的下载源进一步设置安全策略。例如,当客户端请求客户端软件下载时,要求该客户端输入用户名和密码,服务器确认输入的用户名和密码正确后,允许该客户端下载客户端软件。Considering the security of the network management system, the system administrator can further set security policies for the available download sources. For example, when a client requests client software download, the client is required to input a user name and password, and the server allows the client to download the client software after confirming that the input user name and password are correct.

系统管理员可以在网络管理系统中创建一个下载用户,当客户端请求下载时,要求该客户端输入下载用户名和密码,服务器确认输入的下载用户名和密码正确后,允许该客户端下载客户端软件。The system administrator can create a download user in the network management system. When the client requests to download, the client is required to enter the download user name and password. After the server confirms that the input download user name and password are correct, the client is allowed to download the client software. .

具体在图3所示的客户端升级流程中,在步骤302和步骤303之间进一步包括:服务器指示客户端输入用户名和密码,客户端输入用户名和密码后,由服务器判断输入的用户名和密码是否正确,如果正确,则进入步骤303;否则,服务器拒绝该客户端的升级请求,结束本流程。Specifically, in the client upgrade process shown in FIG. 3 , between step 302 and step 303, it further includes: the server instructs the client to input a user name and password, and after the client enters the user name and password, the server judges whether the input user name and password are correct, if correct, go to step 303; otherwise, the server rejects the client's upgrade request, and ends this process.

当通过用户名和密码确认,服务器允许客户端下载客户端软件时,服务器可以为本次下载设置序列号,并将该序列号分别发送给客户端和下载源,该客户端根据该序列号,才能够从相应的下载源中下载客户端软件。具体为:当客户端要从下载源中下载客户端软件时,将序列号发送给该下载源;下载源比较自身从服务器获得的序列号和从该客户端获得的序列号是否相同,如果相同,则允许该客户端下载,否则,拒绝该客户端下载。When the server allows the client to download the client software through the user name and password confirmation, the server can set a serial number for this download, and send the serial number to the client and the download source respectively. The client software can be downloaded from the corresponding download source. Specifically: when the client wants to download the client software from the download source, it sends the serial number to the download source; the download source compares whether the serial number obtained by itself from the server is the same as the serial number obtained from the client, and if they are the same , the client is allowed to download, otherwise, the client is denied to download.

另外,作为可供下载的下载源的客户端或服务器,也可以设置允许下载的用户和/或IP地址。当一个客户端向自身请求下载时,下载源指示该客户端输入用户名,并判断该用户是否为自身允许下载的用户,如果是,则允许下载,否则拒绝下载;或者,下载源判断该客户端的IP地址是否为自身允许下载的IP地址,如果是,则允许下载,否则拒绝下载;或者,下载源要求该客户端输入用户名,并判断该用户是否为自身允许下载的用户,同时还判断该客户端的IP地址是否为自身允许下载的IP地址,如果判断结果都为是,则允许下载,否则拒绝下载。In addition, as a client or server as a download source that can be downloaded, users and/or IP addresses that are allowed to download can also be set. When a client requests a download from itself, the download source instructs the client to enter a user name, and judges whether the user is a user allowed to download by itself, and if so, allows the download, otherwise refuses to download; Whether the IP address of the client is the IP address allowed to download by itself, if so, the download is allowed, otherwise the download is refused; or, the download source requires the client to enter a user name, and judges whether the user is a user allowed to download by itself, and also judges Whether the IP address of the client is the IP address allowed to download by itself, if the judgment results are all yes, the download is allowed, otherwise the download is refused.

通过以上安全性设计,当客户端向服务器请求升级客户端软件时,服务器要求客户端输入自身允许的用户名和密码;当客户端从下载源下载客户端软件时,该下载源也可以要求该客户端输入自身所允许的用户名和密码,或者该下载源判断请求下载的客户端是否为自身所允许的客户端,经确认后,方可允许下载,从而提高网络管理系统的安全性。Through the above security design, when the client requests the server to upgrade the client software, the server requires the client to enter the user name and password allowed by itself; when the client downloads the client software from the download source, the download source can also require the client to The terminal enters the user name and password allowed by itself, or the download source judges whether the client requesting download is a client allowed by itself, and only after confirmation can the download be allowed, thereby improving the security of the network management system.

结合以上实施例中描述的客户端升级的方法,图2所示的网络管理系统中,客户端确定升级客户端软件,向所述服务器发送包括需要下载的客户端软件信息的升级请求;服务器为升级请求的客户端选择下载源,并将下载源列表发送给所述升级请求的客户端;所述客户端从服务器选择的下载源中再确定用于下载客户端软件的下载源并下载。在所述网络管理系统中还可以包括:下载用服务器;所述下载用服务器保存客户端软件。这时,服务器为升级请求的客户端可以选择所述下载用服务器或客户端;这样,客户端可以从所述下载用服务器或客户端中,下载客户端软件。客户端下载成功客户端软件后或者执行所下载的客户端软件后,向服务器登记所述自身能够提供该客户端软件相关文件的信息。In conjunction with the client upgrade method described in the above embodiments, in the network management system shown in Figure 2, the client determines to upgrade the client software, and sends an upgrade request including client software information to be downloaded to the server; the server is The client of the upgrade request selects a download source, and sends the list of download sources to the client of the upgrade request; the client determines and downloads the download source for downloading the client software from the download sources selected by the server. The network management system may further include: a server for downloading; the server for downloading stores client software. At this time, the server can select the downloading server or client as the client requesting the upgrade; in this way, the client can download the client software from the downloading server or client. After the client successfully downloads the client software or executes the downloaded client software, it registers with the server that it can provide relevant files of the client software.

下面,结合图6,详细介绍网络管理系统中的服务器和客户端的内部结构。如图6所示,服务器包括:升级请求接收单元602、下载源选择单元603。所述升级请求接收单元602接收客户端的客户端软件升级请求,并从升级请求中获取该客户端需要下载的客户端软件信息;所述下载源选择单元603为所述升级请求的客户端,选择具有所述需要下载的客户端软件的下载源,并将所选择的下载源列表发送给所述客户端。Next, with reference to FIG. 6 , the internal structures of the server and the client in the network management system will be introduced in detail. As shown in FIG. 6 , the server includes: an upgrade request receiving unit 602 and a download source selecting unit 603 . The upgrade request receiving unit 602 receives the client software upgrade request of the client, and obtains the client software information that the client needs to download from the upgrade request; the download source selection unit 603 is the client of the upgrade request, and selects Have the download source of the client software that needs to be downloaded, and send the selected download source list to the client.

该服务器可以进一步包括:下载源信息存储单元601,用于保存可供下载的下载源的信息以及可供下载的下载源具有的文件列表。所述下载源选择单元603根据下载源信息存储单元601中保存的下载源信息以及文件列表,为升级请求的客户端选择下载源。The server may further include: a download source information storage unit 601, configured to store information of download sources available for download and a file list of download sources available for download. The download source selection unit 603 selects a download source for the client requesting the upgrade according to the download source information and the file list stored in the download source information storage unit 601 .

所述服务器还可以包括:下载源用户信息保存单元604。所述下载源用户信息保存单元604保存可供下载的用户信息,这时,所述下载源选择单元603为客户端选择下载源时,可以选择以所述下载源用户信息保存单元604中所保存的可供下载的用户登录的下载源。The server may further include: a download source user information saving unit 604 . The download source user information storage unit 604 stores user information available for download. At this time, when the download source selection unit 603 selects a download source for the client, it can choose to use the download source user information storage unit 604. User-login download sources available for download.

所述服务器还可以包括:用户检验单元605。所述用户检验单元605要求所述升级请求的客户端输入用户名和密码,判断所述客户端输入的用户名和密码是否正确,并将判断结果发送给所述下载源选择单元603。所述下载源选择单元603得到用户名密码输入正确的结果,为该客户端选择下载源;所述下载源选择单元603得到用户名密码输入错误的结果,拒绝为该客户端选择下载源,本次升级请求失败。通过用户检验单元605的用户检验,可以保证网络管理系统的安全性。The server may further include: a user verification unit 605 . The user verification unit 605 requires the client of the upgrade request to input a user name and password, judges whether the user name and password input by the client are correct, and sends the judgment result to the download source selection unit 603 . The download source selection unit 603 obtains the result that the user name and password are input correctly, and selects the download source for the client; the download source selection unit 603 obtains the result that the user name and password input is wrong, and refuses to select the download source for the client. Upgrade requests failed. Through the user verification by the user verification unit 605, the security of the network management system can be guaranteed.

下面,介绍客户端的内部结构。假设,客户端1为请求升级的客户端,客户端2、客户端3以及客户端4为所述服务器的下载源选择单元603所选择的下载源。Next, introduce the internal structure of the client. Assume that client 1 is the client requesting an upgrade, and client 2, client 3, and client 4 are the download sources selected by the download source selection unit 603 of the server.

如图6所示,客户端1中至少包括:升级请求单元701、下载源确定单元702、下载单元703,升级单元707。其中,所述升级请求单元701用于确定需要升级客户端软件,并向服务器发送包括需要下载的客户端软件信息的升级请求;所述下载源确定单元702接收服务器所返回的下载源列表,并从该下载源列表中确定用于下载客户端软件的下载源;所述下载单元703从所述下载源确定单元702确定的下载源中下载客户端软件;所述升级单元707执行所述下载单元703下载得到的客户端软件。所述下载单元703和升级单元707还可以集成为一个单元实现。As shown in FIG. 6 , the client 1 at least includes: an upgrade request unit 701 , a download source determination unit 702 , a download unit 703 , and an upgrade unit 707 . Wherein, the upgrade request unit 701 is configured to determine that the client software needs to be upgraded, and send an upgrade request including client software information to be downloaded to the server; the download source determining unit 702 receives the download source list returned by the server, and Determine the download source used to download the client software from the download source list; the download unit 703 downloads the client software from the download source determined by the download source determination unit 702; the upgrade unit 707 executes the download unit 703 Download the obtained client software. The download unit 703 and the upgrade unit 707 may also be integrated into one unit.

其中,所述下载源确定单元702包括:状态信息获取单元702-2和确定单元702-3。所述状态信息获取单元702-2用于获取所述下载源列表中的下载源的状态信息;所述确定单元702-3用于根据所述下载源的状态信息确定下载源。所述下载源确定单元702还包括:候选下载源选择单元702-1。所述候选下载源选择单元702-1从服务器返回的下载源列表中,选择候选下载源;这时,所述状态信息获取单元702-2获取所述候选下载源选择单元702-1选择的候选下载源的状态信息;所述确定单元702-3根据所述候选下载源的状态信息确定下载源。Wherein, the download source determining unit 702 includes: a state information acquiring unit 702-2 and a determining unit 702-3. The state information obtaining unit 702-2 is configured to obtain the state information of the download source in the download source list; the determining unit 702-3 is configured to determine the download source according to the state information of the download source. The download source determining unit 702 further includes: a candidate download source selecting unit 702-1. The candidate download source selection unit 702-1 selects a candidate download source from the download source list returned by the server; at this time, the state information acquisition unit 702-2 acquires the candidate download source selected by the candidate download source selection unit 702-1. Status information of the download source; the determining unit 702-3 determines the download source according to the status information of the candidate download source.

假设所述候选下载源选择单元702-1选择客户端2、客户端3、客户端4为候选下载源,则所述状态信息获取单元702-2分别向所述客户端2、客户端3、客户端4发送用于获取状态信息的请求,并由客户端2、客户端3、客户端4分别向客户端1返回自身的状态信息,由客户端1的状态信息获取单元702-2接收各客户端返回的状态信息。客户端2、客户端3、客户端4分别包括下载请求收发单元801。所述状态信息返回单元801根据客户端1的获取状态信息的请求,向客户端1返回自身的状态信息。Assuming that the candidate download source selection unit 702-1 selects client 2, client 3, and client 4 as candidate download sources, the state information acquisition unit 702-2 sends the client 2, client 3, and Client 4 sends a request for obtaining state information, and client 2, client 3, and client 4 return their own state information to client 1 respectively, and the state information obtaining unit 702-2 of client 1 receives each Status information returned by the client. The client 2 , the client 3 , and the client 4 respectively include a download request transceiving unit 801 . The state information returning unit 801 returns its own state information to the client 1 according to the request of the client 1 for acquiring state information.

所述客户端1还可以包括:优先级策略单元704。所述优先级策略单元704设置优先级策略,这时,所述确定单元702-3可以按照所述优先级策略单元704所设置的优先级策略确定下载源。具体设置优先级的方法和确定下载源的方法参见前述实施例。The client 1 may further include: a priority policy unit 704 . The priority policy unit 704 sets a priority policy. At this time, the determination unit 702-3 may determine the download source according to the priority policy set by the priority policy unit 704. For the specific method of setting the priority and the method of determining the download source, refer to the foregoing embodiments.

假设,客户端1的下载源确定单元702确定客户端4为下载源,所述客户端1的下载单元703从所述下载源确定单元702确定的客户端4中下载客户端软件。所述客户端4包括:下载提供单元802。当客户端1确定客户端4为下载源之后,该客户端4的下载提供单元802为客户端1提供下载服务,具体可以由客户端1的下载单元703从客户端4的下载提供单元802下载客户端软件,或者由客户端4的下载提供单元802将所述客户端1所需要的客户端软件发送给该客户端1的下载单元703。Assume that the download source determination unit 702 of the client 1 determines that the client 4 is the download source, and the download unit 703 of the client 1 downloads the client software from the client 4 determined by the download source determination unit 702 . The client 4 includes: a download providing unit 802 . After the client 1 determines that the client 4 is the download source, the download providing unit 802 of the client 4 provides the download service for the client 1, specifically, the downloading unit 703 of the client 1 can download from the download providing unit 802 of the client 4. The client software, or the client software required by the client 1 is sent by the download providing unit 802 of the client 4 to the download unit 703 of the client 1 .

客户端1中还可以包括用户名输入单元705。当服务器的用户检测单元605要求客户端1输入用户名和密码时,由客户端1的用户名输入单元705输入用户名和密码。The client 1 may also include a user name input unit 705 . When the user detection unit 605 of the server requires the client 1 to input the user name and password, the user name and password are input by the user name input unit 705 of the client 1 .

客户端1中还可以包括登记单元706。所述登记单元706用于当所述下载单元703下载客户端软件或所述升级单元707升级成功客户端软件后,向服务器登记自身能够提供的文件列表。当客户端软件的所有文件下载完毕时,将该客户端软件的完整的文件列表登记到服务器中;当下载完毕部分文件块时,客户端也可以将该文件块的信息登记到服务器中。这时,服务器的下载源信息存储单元601,根据从客户端1的登记单元706中得到的文件列表,更新该客户端1所具有的文件列表。The client 1 may also include a registration unit 706 . The registering unit 706 is configured to register the list of files that it can provide to the server after the downloading unit 703 downloads the client software or the upgrading unit 707 successfully upgrades the client software. When all the files of the client software are downloaded, the complete file list of the client software is registered in the server; when part of the file blocks are downloaded, the client can also register the information of the file blocks in the server. At this time, the download source information storage unit 601 of the server updates the file list owned by the client 1 according to the file list obtained from the registration unit 706 of the client 1 .

客户端1中还可以包括所述状态信息返回单元801和下载提供单元802。而且,所述客户端2、客户端3也可以包括所述客户端1中的701~707单元,以及下载提供单元802;所述客户端4也可以包括所述客户端1中的701~707单元。换句话说,每个客户端都能够成为提供下载服务的下载源,而且,每个客户端都可以从其它下载源中下载自身所需要的客户端软件。The client 1 may also include the status information returning unit 801 and the download providing unit 802 . Moreover, the client 2 and client 3 may also include units 701-707 in the client 1 and the download providing unit 802; the client 4 may also include units 701-707 in the client 1 unit. In other words, each client can become a download source that provides download services, and each client can download the client software it needs from other download sources.

本领域普通技术人员可以理解上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:ROM、RAM、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: ROM, RAM , disk or CD, etc.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the scope of the present invention. within the scope of protection.

Claims (21)

1. client upgrade method in network management system is characterized in that this method comprises:
Server receives the upgrade request from client, and described upgrade request comprises the information of the client software that needs are downloaded;
Server is from can for the loading source corresponding file tabulation of downloading, selecting to have the loading source of the client software of being asked in the described upgrade request according to described for the loading source of downloading;
Server sends to this client with selected loading source tabulation, makes this client select loading source to download the client software that obtains with download client software and execution from this loading source tabulation.
2. method according to claim 1 is characterized in that, this method also comprises:
Server is preserved in this network management system and can and be safeguarded the described listed files that has for the loading source of downloading for the information of the loading source of downloading.
3. method according to claim 1 and 2 is characterized in that,
Described loading source for download comprises: can be for the download client of downloading;
The described download of the described server registers state of client logging in network management system;
Described server from being for selection loading source the loading source of downloading: according to the logging status of described download with client, select the logging in network management system and have the download client of described client software.
4. method according to claim 1 and 2 is characterized in that,
Described loading source for download comprises: can be for the download client of downloading;
The user profile that the described download of described server registers is used client with the state and the described download of login of client logging in network management system;
Described server is from can be for selecting loading source be the loading source of downloading: according to described download with the logging status of client and the user of login, select to have described client software, logging in network management system and login user be for can be for the user's who downloads download client.
5. method according to claim 1 is characterized in that,
Described server receives after the upgrade request, before selecting loading source, further comprise: indicate described client input username and password, and whether the username and password of judging this client input is correct, if correct, then select loading source, otherwise, refuse the upgrade request of this client, process ends;
Described user client user's name by name or download user name.
6. client upgrade method in network management system is characterized in that this method comprises:
Client is determined updating client software, sends the upgrade request of the client software information comprise that needs are downloaded to server, and the loading source that this server is returned can download this client software is tabulated;
After client receives the loading source tabulation that this server returns, from this loading source tabulation, be identified for the loading source of download client software,, and carry out and download the client software that obtains from determined loading source download client software.
7. method according to claim 6 is characterized in that,
Described client determines that updating client software is: client is obtained the matching relationship of server software and client software from server, the client software of judging self whether with the server software coupling, if do not match, then determine updating client software;
The client software information that the needs that comprise in the described upgrade request are downloaded is: the information of the client software that mates with server software in the described matching relationship.
8. method according to claim 6 is characterized in that,
Behind the described client software of described client downloads, this method further comprises: user end to server sends self can provide the tabulation of this client software corresponding document, the listed files that server registers self can be provided.
9. method according to claim 6 is characterized in that,
Described client software is divided into a plurality of blocks of files;
The loading source that client is identified for download client software is: client is identified for downloading the loading source of corresponding document piece respectively for each blocks of files;
Described client download client software from determined loading source is: client is downloaded corresponding blocks of files respectively from determined each loading source, and the blocks of files that download obtains is combined into client software.
10. according to claim 6 or 9 described methods, it is characterized in that the step that described client is identified for the loading source of download client software comprises:
Client is obtained the state information of the loading source in the described loading source tabulation;
Client is identified for the loading source of download client software according to the state information of the loading source of being obtained.
11. method according to claim 10 is characterized in that, the state information that described client is obtained the loading source in the described loading source tabulation is: described client is obtained the state information of all or part of loading source in the described loading source tabulation.
12. method according to claim 10 is characterized in that,
Client comprises according to the step that the state information of loading source is identified for the loading source of download client software: client is identified for the loading source of download client software according to the state information of loading source according to priority policy.
13. method according to claim 6 is characterized in that,
Described client before the download client software, is inputed user name according to the indication of inputing user name of described loading source from loading source, confirm the user who the is inputed user name that allows to download by name by this loading source after, from this loading source download client software;
Perhaps, described client from loading source before the download client software, confirm that by described loading source the address of this client is the address that allows to download after, from this loading source download client software;
Perhaps, described client is from loading source before the download client software, user name is inputed in the indication of inputing user name according to described loading source, confirm the user who the is inputed user name that allows download by name by this loading source, after confirming the address of address for the permission download of this client simultaneously, from this loading source download client software.
14. a server is applied to network management system, it is characterized in that, this server comprises:
The upgrade request receiving element is used to receive the client terminal software updating request of client, and obtains the information of the client software that this client need download from upgrade request;
The loading source selected cell is used to the client of described upgrade request, selects to have the described loading source that needs the client software downloaded, and selected loading source tabulation is sent to described client.
15. server according to claim 14 is characterized in that, described server further comprises: the loading source information memory cell, and being used to preserve can be for the information of the loading source of downloading and the described listed files that has for the loading source of downloading;
Loading source information and listed files that described loading source selected cell is preserved according to the loading source information memory cell are for the client of upgrade request is selected loading source.
16. server according to claim 14, it is characterized in that, described server further comprises: the subscriber checking unit, be used to indicate the client input username and password of described upgrade request, and the username and password of confirming the input of described client is selected loading source by described loading source selected cell when correct.
17. a client is applied to network management system, it is characterized in that, described client comprises:
The upgrade request unit is used for determining updating client software, and sends the upgrade request of the client software information that comprises that needs are downloaded to server;
The loading source determining unit is used for the loading source tabulation that reception server returns, and is identified for the loading source of download client software from this loading source tabulation;
Download unit is used for from the determined loading source download client of described loading source determining unit software;
The upgrading unit is used to carry out described download unit and downloads the client software that obtains.
18. client according to claim 17 is characterized in that, described loading source determining unit comprises:
The state information acquisition unit is used for obtaining the state information of the loading source of described loading source tabulation;
Determining unit is used for determining loading source according to the state information of described loading source.
19. system according to claim 17, it is characterized in that, described client further comprises registration unit, be used for when described download unit download client software, after client software is carried out in perhaps described upgrading unit, self can provide the tabulation of these client software associated documents to the server transmission.
20. client according to claim 17 is characterized in that, described client further comprises: state information is returned the unit, is used for obtaining request according to coming from other client's state information, returns the state information of self to described other client.
21. client according to claim 17 is characterized in that, described client further comprises: download the unit is provided, be used for determining to provide download service for it after as loading source when other client.
CNA2007101513071A 2007-09-24 2007-09-24 Client upgrade method, server, and client in a network management system Pending CN101141303A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2007101513071A CN101141303A (en) 2007-09-24 2007-09-24 Client upgrade method, server, and client in a network management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007101513071A CN101141303A (en) 2007-09-24 2007-09-24 Client upgrade method, server, and client in a network management system

Publications (1)

Publication Number Publication Date
CN101141303A true CN101141303A (en) 2008-03-12

Family

ID=39193067

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007101513071A Pending CN101141303A (en) 2007-09-24 2007-09-24 Client upgrade method, server, and client in a network management system

Country Status (1)

Country Link
CN (1) CN101141303A (en)

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009117921A1 (en) * 2008-03-28 2009-10-01 华为技术有限公司 Distributed network management system, network management server and method
WO2011023020A1 (en) * 2009-08-26 2011-03-03 中兴通讯股份有限公司 Method and system for performing services in server and client of client/server framework
CN102012826A (en) * 2010-11-19 2011-04-13 奇智软件(北京)有限公司 Method and system for intelligently installing/upgrading software
CN102053851A (en) * 2010-12-23 2011-05-11 福建星网视易信息系统有限公司 Method for remotely editing interface for embedded terminal
CN102065110A (en) * 2009-11-12 2011-05-18 钟惠波 On-line updating method and system for client side software on basis of P2SP (Peer to Server and to Peer)
CN102081536A (en) * 2010-12-30 2011-06-01 华为终端有限公司 Method for updating increment, and server
WO2011085625A1 (en) * 2010-01-15 2011-07-21 腾讯科技(深圳)有限公司 Method, system and client for downloading software installation packages
CN101594253B (en) * 2009-06-23 2011-12-28 中兴通讯股份有限公司 Method and system for single board upgrading
CN102315954A (en) * 2010-07-02 2012-01-11 无锡华润上华半导体有限公司 System for updating and managing client software
CN101795203B (en) * 2009-02-03 2012-08-15 华为软件技术有限公司 Method and device for downloading software upgrading data packet
CN101686147B (en) * 2008-09-26 2012-12-19 华为终端有限公司 Terminal equipment upgrading method and terminal equipment realizing same
CN102946446A (en) * 2012-12-10 2013-02-27 深圳市凯立德科技股份有限公司 Data download method and positioning and navigation terminal
CN103186397A (en) * 2011-12-31 2013-07-03 国民技术股份有限公司 Data installing method and data installing system
CN101778097B (en) * 2009-11-25 2013-11-06 中兴通讯股份有限公司 Network updating method and system and main service side used for realizing network upgrade
WO2014043915A1 (en) * 2012-09-24 2014-03-27 华为技术有限公司 Server management method, device, and system, and computer-readable medium
CN104038520A (en) * 2013-03-05 2014-09-10 北京畅游天下网络技术有限公司 Multi-version distributed resource management method and multi-version distributed resource management system
CN104426917A (en) * 2013-08-19 2015-03-18 中兴通讯股份有限公司 Downloading processing method, downloading processing device and client
CN105099772A (en) * 2015-07-02 2015-11-25 许继集团有限公司 Method and system for upgrading energy efficiency service cloud terminal
CN105867952A (en) * 2015-01-20 2016-08-17 中国科学院上海高等研究院 Software upgrading method and system
CN106850720A (en) * 2015-12-07 2017-06-13 中兴通讯股份有限公司 Method for upgrading software, apparatus and system
CN106933625A (en) * 2017-02-23 2017-07-07 湖北光谷天下传媒股份有限公司 A kind of method and system of multi-source software upgrading
CN108173774A (en) * 2018-02-27 2018-06-15 北京明朝万达科技股份有限公司 The upgrade method and system of a kind of client
CN109218359A (en) * 2017-07-03 2019-01-15 深圳市中兴微电子技术有限公司 A kind of method and server end of internet of things equipment software upgrading
CN109343880A (en) * 2018-09-29 2019-02-15 武汉斗鱼网络科技有限公司 RN packet updating method, RN packet updating device and readable storage medium
CN112291623A (en) * 2020-10-15 2021-01-29 四川长虹网络科技有限责任公司 Method for upgrading intelligent network set top box software
CN113867756A (en) * 2021-09-01 2021-12-31 深圳市华曦达科技股份有限公司 Software upgrade method, terminal device and readable storage medium

Cited By (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009117921A1 (en) * 2008-03-28 2009-10-01 华为技术有限公司 Distributed network management system, network management server and method
CN101686147B (en) * 2008-09-26 2012-12-19 华为终端有限公司 Terminal equipment upgrading method and terminal equipment realizing same
CN101795203B (en) * 2009-02-03 2012-08-15 华为软件技术有限公司 Method and device for downloading software upgrading data packet
CN101594253B (en) * 2009-06-23 2011-12-28 中兴通讯股份有限公司 Method and system for single board upgrading
WO2011023020A1 (en) * 2009-08-26 2011-03-03 中兴通讯股份有限公司 Method and system for performing services in server and client of client/server framework
US8732694B2 (en) 2009-08-26 2014-05-20 Zte Corporation Method and system for performing services in server and client of client/server architecture
CN101635726B (en) * 2009-08-26 2012-07-04 中兴通讯股份有限公司 Service end of C/S architecture and service executing method and service executing system of client
CN102065110A (en) * 2009-11-12 2011-05-18 钟惠波 On-line updating method and system for client side software on basis of P2SP (Peer to Server and to Peer)
CN101778097B (en) * 2009-11-25 2013-11-06 中兴通讯股份有限公司 Network updating method and system and main service side used for realizing network upgrade
WO2011085625A1 (en) * 2010-01-15 2011-07-21 腾讯科技(深圳)有限公司 Method, system and client for downloading software installation packages
CN102315954A (en) * 2010-07-02 2012-01-11 无锡华润上华半导体有限公司 System for updating and managing client software
WO2012065562A1 (en) * 2010-11-19 2012-05-24 北京奇虎科技有限公司 Method and system for intelligent installation/upgrading of software
CN102012826A (en) * 2010-11-19 2011-04-13 奇智软件(北京)有限公司 Method and system for intelligently installing/upgrading software
CN102053851A (en) * 2010-12-23 2011-05-11 福建星网视易信息系统有限公司 Method for remotely editing interface for embedded terminal
CN102081536A (en) * 2010-12-30 2011-06-01 华为终端有限公司 Method for updating increment, and server
CN103186397A (en) * 2011-12-31 2013-07-03 国民技术股份有限公司 Data installing method and data installing system
WO2014043915A1 (en) * 2012-09-24 2014-03-27 华为技术有限公司 Server management method, device, and system, and computer-readable medium
CN102946446A (en) * 2012-12-10 2013-02-27 深圳市凯立德科技股份有限公司 Data download method and positioning and navigation terminal
CN104038520A (en) * 2013-03-05 2014-09-10 北京畅游天下网络技术有限公司 Multi-version distributed resource management method and multi-version distributed resource management system
CN104426917A (en) * 2013-08-19 2015-03-18 中兴通讯股份有限公司 Downloading processing method, downloading processing device and client
CN105867952A (en) * 2015-01-20 2016-08-17 中国科学院上海高等研究院 Software upgrading method and system
CN105099772A (en) * 2015-07-02 2015-11-25 许继集团有限公司 Method and system for upgrading energy efficiency service cloud terminal
CN105099772B (en) * 2015-07-02 2019-04-12 许继集团有限公司 A kind of upgrade method and system of efficiency service cloud terminal
WO2017097210A1 (en) * 2015-12-07 2017-06-15 中兴通讯股份有限公司 Method, apparatus and system for upgrading software
CN106850720A (en) * 2015-12-07 2017-06-13 中兴通讯股份有限公司 Method for upgrading software, apparatus and system
CN106933625A (en) * 2017-02-23 2017-07-07 湖北光谷天下传媒股份有限公司 A kind of method and system of multi-source software upgrading
CN109218359A (en) * 2017-07-03 2019-01-15 深圳市中兴微电子技术有限公司 A kind of method and server end of internet of things equipment software upgrading
CN108173774A (en) * 2018-02-27 2018-06-15 北京明朝万达科技股份有限公司 The upgrade method and system of a kind of client
CN108173774B (en) * 2018-02-27 2021-05-14 北京明朝万达科技股份有限公司 Client upgrading method and system
CN109343880A (en) * 2018-09-29 2019-02-15 武汉斗鱼网络科技有限公司 RN packet updating method, RN packet updating device and readable storage medium
CN112291623A (en) * 2020-10-15 2021-01-29 四川长虹网络科技有限责任公司 Method for upgrading intelligent network set top box software
CN113867756A (en) * 2021-09-01 2021-12-31 深圳市华曦达科技股份有限公司 Software upgrade method, terminal device and readable storage medium

Similar Documents

Publication Publication Date Title
CN101141303A (en) Client upgrade method, server, and client in a network management system
CN111865598B (en) Identity verification method and related device for network function service
US11204751B2 (en) Mitigating incompatibilities due to code updates in a system containing multiple networked electronic control units
JP2020530722A (en) PDU type setting method, UE policy setting method, and related entities
CN110602108B (en) Data communication method, device, equipment and storage medium based on block chain network
CN103650428A (en) Network quarantine system, network quarantine method and program therefor
WO2009015585A1 (en) Method, system and terminal for right control in device management
US10425537B2 (en) Method, apparatus, and system for allocating phone number
KR102564488B1 (en) BLOCKCHAIN-BASED IoT DEVICE FIRMWARE SUPPLY SYSTEM AND FIRMWARE UPDATE METHOD USING THE SAME
CN114845355B (en) Network access method and device, terminal equipment, network equipment and storage medium
CN104915220A (en) Upgrading method and system of client side application program and client side
JP2006285601A (en) File delivery method and client terminal to realize it
CN111327650A (en) Data transmission method, device, equipment and storage medium
CN101998227A (en) Service routing method, device and system
CN105635218B (en) Software center system
CN120455278A (en) Automatic update and server synchronization method and system for intelligent gateway
CN111353177A (en) Block chain-based privacy large file storage system
CN106708539A (en) Client updating method and device
CN111901245B (en) Iscsi multi-path management system, method, equipment and storage medium
CN105162769A (en) Gateway authority transfer method and gateway authority transfer device
CN102724165A (en) Control method and device for terminal communication, and management server
CN105450593A (en) Method and device for registration
CN101873330A (en) Access control method and server for supporting IPv6/IPv4 dual stack access
JP5397380B2 (en) Access control system, access control method, and communication terminal
CN105634852A (en) Check processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20080312