WO2009003385A1 - Methods, apparatus and systems for updating equipment - Google Patents

Methods, apparatus and systems for updating equipment Download PDF

Info

Publication number
WO2009003385A1
WO2009003385A1 PCT/CN2008/071204 CN2008071204W WO2009003385A1 WO 2009003385 A1 WO2009003385 A1 WO 2009003385A1 CN 2008071204 W CN2008071204 W CN 2008071204W WO 2009003385 A1 WO2009003385 A1 WO 2009003385A1
Authority
WO
WIPO (PCT)
Prior art keywords
file server
upgrade
server
file
user equipment
Prior art date
Application number
PCT/CN2008/071204
Other languages
French (fr)
Chinese (zh)
Inventor
Wenhao Jiang
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
Publication of WO2009003385A1 publication Critical patent/WO2009003385A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/024Standardisation; Integration using relational databases for representation of network management data, e.g. managing via structured query language [SQL]

Definitions

  • the present invention relates to the field of computers and communications, and in particular, to a method for upgrading a device, an upgrade policy server, a network management server, a user equipment, and a communication system.
  • the method for upgrading the user equipment is to store the latest version number on the network side.
  • receiving the version number sent by the user equipment it compares with the local version number, and notifies the user equipment when the comparison result is inconsistent.
  • the upgrade is performed, and the address of the file server, the download path, and the like are sent to the user device.
  • the user equipment downloads the version file from the file server according to the received information, and performs an upgrade operation.
  • the user device needs to be restarted during most upgrade operations, and the new version will take effect.
  • the network side device is subject to cost and technical constraints.
  • the network server and/or file server may be faulty.
  • the user equipment may fail to upgrade, which may cause the user equipment to fail.
  • a large number of user devices are upgraded concurrently, and the current network cannot provide sufficient bandwidth.
  • the upgrade bandwidth of each device cannot be guaranteed, resulting in an upgrade failure, which may lead to user device failure. Otherwise, when the user needs to use the user device, the user device The upgrade operation has resulted in the user being temporarily unable to use the normal business and affecting the user body. Test.
  • the embodiment of the present invention provides a method for upgrading a device, an upgrade policy server, a network management server, a user device, and a communication system, which are used to improve the success rate of device upgrade.
  • a method of upgrading a device includes the following steps:
  • a method of upgrading a device, applied to the device side includes the following steps:
  • the identifier of the file server is randomly selected from the local configuration information, and the latest version information is obtained from the file server corresponding to the identifier;
  • the latest version information is compared with the local version information, and when it is determined that the local version is lower than the latest version, the latest version file is obtained from the file server according to the latest version information, and the upgrade is performed.
  • An upgrade policy server including:
  • a receiving unit configured to receive version information of the user equipment
  • a policy unit configured to compare the received version information of the user equipment with the latest version information of the local device, and search for at least one file server storing the latest version file if it is determined that the version of the user equipment is lower than the latest version And a file server that selects a number of devices that are carried from the at least one file server that does not reach a preset threshold;
  • a sending unit configured to send information about the selected file server and latest version information to the User equipment.
  • a network management server includes a management unit, where the management unit is used to manage and maintain devices in the network; the network management server further includes:
  • a receiving unit configured to receive version information sent by the user equipment
  • an upgrade policy unit configured to compare the received version information of the user equipment with the latest version information of the local device, and, when determining that the version of the user equipment is lower than the latest version, find at least one of the files with the latest version file a file server, selecting, from the at least one file server, a file server that does not reach a preset threshold value;
  • a sending unit configured to send the information of the selected file server and the latest version information to the user equipment.
  • a user equipment including:
  • An obtaining unit configured to obtain latest version information from the selected file server according to the identifier of the file server randomly selected from the local configuration information
  • a comparing unit configured to compare the obtained latest version information with the local version information, and notify the obtaining unit to obtain the latest version file from the file server, if it is determined that the version of the user device is lower than the latest version;
  • Processing unit used to upgrade according to the latest version file.
  • a communication system comprising:
  • a user equipment configured to send version information, and obtain the latest version file from the corresponding file server according to the received file server information and the latest version information, and upgrade the file;
  • a server configured to compare the received version information of the user equipment with the latest version information of the local device, and search for the latest version file if the version of the first device is determined to be lower than the latest version.
  • At least one file server and a file server selected from the at least one file server to have a first number of devices that do not reach a preset threshold, and sending the selected file server information and the latest version information to the file server a device
  • At least one file server for storing the latest version file.
  • the network side selects a file server that does not reach the preset threshold from the file server that stores the latest version file, so that the user equipment downloads from the file server.
  • the latest version of the file Achieve the load of the balanced file server, avoiding file server overload and causing embarrassment, and improving the success rate of device upgrade.
  • the embodiment of the present invention implements an upgrade method applied to a user equipment.
  • the user equipment randomly selects a file server, and the purpose of balancing the load of the file server is also achieved, and the network side does not need to make an upgrade decision, thereby reducing the burden on the network side.
  • the embodiment of the invention further provides a distributed network structure, which increases the server responsible for the upgrade policy scheduling in the communication system, facilitates the expansion of the network structure, and improves the success rate of the device upgrade.
  • FIG. 1A is a structural diagram of a communication system including an upgrade policy server according to an embodiment of the present invention
  • FIG. 1B is a structural diagram of a communication system not including an upgrade policy server according to an embodiment of the present invention
  • a structural diagram of the server
  • FIG. 2B is a structural diagram of another network management server according to an embodiment of the present invention.
  • FIG. 3 is a structural diagram of an upgrade policy server in an embodiment of the present invention.
  • FIG. 4A is a structural diagram of a communication system when a user equipment is used as an upgrade policy according to an embodiment of the present invention
  • FIG. 4B is a structural diagram of a user equipment according to an embodiment of the present invention
  • FIG. 5 is a flowchart of a method for upgrading a device according to an embodiment of the present invention.
  • FIG. 6 is a flowchart of a method for upgrading a device according to a second embodiment of the present invention.
  • FIG. 7 is a flowchart of a third method for upgrading a device according to an embodiment of the present invention.
  • FIG. 8A is a flowchart of a fourth method for upgrading a device according to an embodiment of the present invention.
  • FIG. 8B is a flowchart of a fifth method for upgrading a device according to an embodiment of the present invention.
  • FIG. 9 is a flowchart of a method for upgrading a device when a user equipment is used as an upgrade policy according to an embodiment of the present invention. detailed description
  • the embodiment provides multiple methods for upgrading the device, and improves multiple upgrade links, thereby improving the success rate of the device upgrade.
  • the first method is to make the user device
  • the version file is downloaded from a file server with a small number of user devices. This method balances the load of the file server and prevents the file server from being corrupted, so that the user device can successfully download the version file from the file server and upgrade.
  • the second method is to enable the user equipment to perform an upgrade operation after the startup, the method can avoid the upgrade when the user needs to use the user equipment, that is, the normal service, and can avoid the failure of the user equipment when the upgrade fails during startup.
  • the third method is to enable the user equipment to perform an upgrade operation when idle.
  • This method can avoid upgrading when the user needs to use the user equipment, that is, use normal services, and can prevent the network from providing sufficient bandwidth for multiple users.
  • This embodiment also provides a preferred method, that is, a combination of the above three methods.
  • the embodiment also provides a method for the user to randomly select a file server and download a version file, and the load of the file server can be balanced, and the network side does not need to perform an upgrade decision to reduce the burden on the network side.
  • the communication system in this embodiment includes a user equipment 101, a network management server 102, an upgrade policy server 103, and a file server 104.
  • the file server 104 stores files of various versions (including data for upgrading devices) and files including version information. There may be multiple file servers 104, which are divided according to factors such as device type, manufacturer, product model, and region. A file server 104 can store only the version files related to the A service of the Type A device of the Type A produced by the manufacturer A, and can also store all the version files.
  • the user equipment 101 may be one or more devices that directly provide services to users. In order to better serve users, various configurations and services need to be upgraded.
  • the user equipment 101 sends a handshake message to the network management server 102 at startup or periodically.
  • the message includes its own version information, including the version number, and the version number includes the product information of the user equipment 101 (including the device type, vendor, and product). Information such as the model number and the current version file (including the identification of the version file, etc.).
  • device types such as mobile phones and personal computers.
  • the upgrade operation is suspended, and the upgrade is continued after the service is finished, otherwise Performing an upgrade operation, downloading the latest version from the specified file server 104 according to the file server 104 information. And notify the network side that the upgrade has begun. After the download version file is completed, upgrade the configuration and notify the network side that the download is complete.
  • the user equipment 101 needs to perform a restart operation when performing some upgrade operations to make the new version file take effect.
  • the network management server 102 manages each device in the network.
  • the network management server 102 extracts the version number from the received handshake message and transmits the version number to the corresponding upgrade policy server 103.
  • the upgrade policy server 103 is configured to perform an upgrade policy scheduling, which may be one or more, and is used to compare whether the version number is consistent with the latest version number stored by the version number after receiving the version number, and determine whether the current upgrade period is allowed. If the version number sent by the user equipment 101 at the time of startup is received, it is further determined whether the user equipment 101 is allowed to be upgraded at the time of startup. When the above conditions are satisfied, the query is based on the correspondence between the version number and the file server 104.
  • the file server 104 corresponding to the latest version number selects the file server 104 with a small number of user devices to be carried from the queried file server 104 according to the pre-defined upgrade policy, and transmits the information of the file server 104 to the user device 101.
  • the upgrade policy server 103 when the notification sent by the user equipment 101 that the upgrade has been started is received, the number of user equipments carried by the file server 104 is increased by one, and when the download end notification sent by the user equipment 101 is received, the file server 104 is carried. The number of user devices is decremented by one.
  • the information about the file server 104 stored in the upgrade policy server 103 may be obtained through the web server, or interacted with the file server 104, or obtained by manual configuration. Further, the upgrade policy server 103 may be separately set according to factors such as device type, vendor, product model, and region. This step-by-step structure can better support a large number of user equipments 101 to be upgraded at the same time. When the network needs to be expanded, only a few upgrade policy servers 103 need to be added to the network and registered with the network management server 102, and no other equipment is needed. Make changes.
  • the upgrade policy server 103 is an independent entity as an example.
  • the above-mentioned pre-defined upgrade policies are various, for example, the threshold value of the number of user equipments that are set by the file server 104 according to the performance and bandwidth of the file server 104, and the upgrade policy server 103 queries the file server 104.
  • the number of the user equipments that are carried does not reach the threshold, the information of the file server 104 is sent to the user equipment 101, and the subsequent files need not be queried.
  • the server 104 another preferred upgrade strategy is to set a threshold value of the number of user equipments carried by the file server 104 according to the performance and bandwidth of the file server 104, and the upgrade policy server 103 carries the files carried by the file servers 104.
  • the number of user equipments is compared with the corresponding threshold value, and the information of the file server 104 with the smallest ratio is sent to the user equipment 101, so that the load of each file server 104 can be better balanced.
  • the upgrade policy server 103 that performs the upgrade policy scheduling is an independent entity; the upgrade policy server 103 can also be embedded in the network management server 102 as a function module, as shown in FIG. 1B, the communication in this embodiment
  • the system includes a user device 101, a network management server 102, and a file server 104.
  • the file server 104 stores files of various versions and files including version information. There may be multiple file servers 104, which are divided according to factors such as device type, manufacturer, product model, and region. A file server 104 can store only version files of the A type A device produced by the manufacturer A in relation to the A service, and can also store all version files.
  • the user equipment 101 may be one or more devices that directly provide services to users. In order to better serve users, various configurations and services need to be upgraded.
  • the user equipment 101 starts or periodically sends a handshake message to the network management server 102, the message includes its own version information, and when receiving the information of the file server 104, it determines whether there is currently a service being processed, especially cannot be upgraded. Synchronous services, such as call service, if yes, suspend the upgrade operation, wait for the service to end, and then continue the upgrade. Otherwise, perform the upgrade operation, download the latest version file from the specified file server 104 according to the file server 104 information, and notify the network.
  • the side has started to upgrade. After the download version file is completed, upgrade the configuration and notify the network side that the download is complete.
  • the user device 101 needs to perform a reboot operation for some upgrade operations to make the new version file take effect.
  • the network management server 102 manages each device in the network.
  • the network management server 102 extracts the version number from the received handshake message, compares the version number with the stored latest version number corresponding to the user equipment 101, and finds that the comparison result is inconsistent, and determines whether the current upgrade period is allowed. If the version number sent by the user device 101 at startup is received, then it is determined whether the permission is allowed.
  • the user equipment 101 is upgraded at startup, and when the above conditions are satisfied, the file server 104 corresponding to the latest version number is queried according to the correspondence between the version number and the file server 104, and the file server 104 is queried according to the pre-defined upgrade policy.
  • the file server 104 that selects a small number of user devices is selected, and the related information of the file server is returned to the user device 101. And, when the notification of the upgrade has been received, the number of the user equipments of the selected file server 104 is increased by one, and the number of the user equipments corresponding to the selected file server 104 is decreased by one when the notification of the completion of the download is received. .
  • the network management server 102 includes the receiving unit 201, the selecting unit 202, the management unit 206, and the sending unit 204. .
  • the management unit 206 is used to manage and maintain devices in the network.
  • the receiving unit 201 receives the handshake message and the like sent by the user equipment 101.
  • the selecting unit 202 extracts the version number of the user equipment 101 from the handshake message, and selects the corresponding upgrade policy server 103 according to the corresponding relationship between the version number and the upgrade policy server 103.
  • the transmitting unit 204 transmits the version number and the information of the user device 101 (including the identification and address of the user device 101, etc.) to the selected upgrade policy server 103.
  • the network management server 102 further includes a storage unit 203 for storing the correspondence between each user equipment 101 and the upgrade policy server 103, and the IP address of the upgrade policy server 103, and the like.
  • Each of the storage units in this embodiment may be a floppy disk, a hard disk, a magnetic tape, or the like.
  • the network management server 102 includes the receiving unit 201, the selecting unit 202, the upgrading policy unit 205, and the management unit. 206 and transmitting unit 204.
  • the management unit 206 is used to manage and maintain devices in the network.
  • the receiving unit 201 receives the handshake message sent by the user equipment 101, the notification that the upgrade has been started, the notification of the completion of the download, and the like.
  • the upgrade policy unit 205 is used to control and manage the upgrade operation with respect to each user device 101.
  • the upgrade policy unit 205 includes a version module, a determination module, a lookup module, and a counting module.
  • the upgrade policy unit 205 can be multiple, and is divided according to factors such as device type, vendor, product model, and region.
  • the version module compares the received version number with the stored latest version number corresponding to the user equipment 101, and determines that the upgrade is required when the comparison result is inconsistent; the determining module determines whether the current time period is allowed to be upgraded, if received It is the version number sent by the user equipment 101 at the time of startup, and then it is determined whether the user equipment 101 is allowed to be upgraded at startup; when both the version module and the judgment module determine that the upgrade is allowed, the search module queries the file server corresponding to the latest version number. 104. Select, from the queried file server 104, the file server 104 that has a small number of user equipments according to the pre-defined upgrade policy.
  • the notification module When the notification module has notified that the user equipment 101 has started the upgrade, the number of the user equipments corresponding to the selected file server 104 is increased by one, and when the user equipment 101 is informed that the download of the user equipment 101 is completed, the selected file server 104 corresponds to the bearer. The number of user devices is reduced by 1.
  • the counting module may also add 1 to the number of user equipments carried by the file server 104 when the sending unit 204 sends the information of the file server 104 to the user equipment 101. This embodiment provides a preferred implementation.
  • the transmitting unit 204 transmits the related information of the file server 104 selected by the upgrade policy unit 205, the latest version number, and the like to the user device 101.
  • the selecting unit 202 When receiving the handshake message, the selecting unit 202 extracts the version number of the user equipment 101 from the handshake message, and sends the version number to the upgrade policy unit 205, and when the upgrade policy unit 205 is multiple, according to the version number and The upgrade policy unit 205 identifies the corresponding relationship of the (ID), selects the corresponding upgrade policy unit 205, and triggers the corresponding upgrade policy unit 205 to perform operations.
  • the network management server 102 further includes a storage unit 203, configured to store a correspondence between each user equipment 101 and the upgrade policy server 103, and an interface identifier of the upgrade policy unit 205, and store the latest version number of each user equipment 101, each version number and Correspondence identified by the file server 104, information of each file server 104, time period during which the various user devices 101 are allowed to be upgraded, and permission to start Upgraded user device 101 type.
  • a storage unit 203 configured to store a correspondence between each user equipment 101 and the upgrade policy server 103, and an interface identifier of the upgrade policy unit 205, and store the latest version number of each user equipment 101, each version number and Correspondence identified by the file server 104, information of each file server 104, time period during which the various user devices 101 are allowed to be upgraded, and permission to start Upgraded user device 101 type.
  • the information of the file server 104 includes the identifier of the file server 104, the IP address, the path of each version file, and the transmission protocol of the application (such as Hypertext Transfer Protocol (HTTP), File Transfer Protocol (FTP), and The file name and password of the file server 104, the number of user devices currently carried, and the threshold value, etc., are the normal file transfer protocol (TFTP, Trivial File Transfer Protocol).
  • HTTP Hypertext Transfer Protocol
  • FTP File Transfer Protocol
  • TFTP Trivial File Transfer Protocol
  • the upgrade policy server 103 includes a receiving unit 301, a policy unit 302, and a sending unit 304.
  • the receiving unit 301 receives the version number and other information of the user equipment 101 sent by the network management server 102, and receives a notification that the user equipment 101 has started to upgrade and a notification that the download is completed.
  • the policy unit 302 is for controlling and managing the upgrade operation with respect to each user equipment 101.
  • the policy unit 302 includes a version module, a determination module, a lookup module, and a counting module.
  • the version module compares the received version number with the stored latest version number corresponding to the user equipment 101, and determines that the upgrade is required when the comparison result is inconsistent; the determining module determines whether the current time period is allowed to be upgraded, if The version number sent by the user equipment 101 at the time of startup is determined, and then it is determined whether the user equipment 101 is allowed to be upgraded at startup; when both the version module and the judgment module determine that the upgrade is allowed, the search module is queried, and the query corresponds to the latest version number.
  • the file server 104 selects the file server 104 with a small number of user devices from the queried file server 104 according to a pre-defined upgrade policy.
  • the counting module adds 1 to the number of user devices carried by the selected file server 104 when the notification of the user device 101 starts to be upgraded, and the bearer corresponding to the selected file server 104 when the user device 101 is informed that the download is completed. The number of user devices is reduced by 1.
  • the counting module may also add 1 to the number of user equipments carried by the file server 104 when the sending unit 304 sends the information of the file server 104 to the user equipment 101. This embodiment provides a preferred implementation.
  • the transmitting unit 304 transmits the information of the selected file server 104 and the latest version number to the user equipment 101.
  • the upgrade policy server 103 further includes a storage unit 303 for storing the latest version numbers of the various user devices 101, the corresponding relationship between the version numbers and the file server 104, the information of each file server 104, and the various user devices 101 allowing the upgrade.
  • the information of the file server 104 includes the identifier of the file server 104, the IP address, the path of each version file, and the application transmission protocol (such as Hypertext Transfer Protocol (HTTP), File Transfer Protocol (FTP), and Common File Transfer Protocol (TFTP). ), the user name and password of the file server 104, the number of user devices currently carried, and threshold values.
  • HTTP Hypertext Transfer Protocol
  • FTP File Transfer Protocol
  • TFTP Common File Transfer Protocol
  • the communication system includes at least one user equipment 101 and a file server 104.
  • the file server 104 stores files of various versions and files including version information. There may be multiple file servers 104, which are divided according to factors such as device type, manufacturer, product model, and region. A file server 104 can store only version files of the A type A device produced by the manufacturer A in relation to the A service, and can also store all version files.
  • the user equipment 101 randomly selects the file server 104 from the local configuration file at startup or periodically, and connects to the selected file server 104 according to the recorded file server information, and downloads the latest version information (including the version number and the download path, etc.). . Then, the downloaded version number is compared with the version number currently used by the local device. When the comparison result is inconsistent, the upgrade is required. Further, according to the local configuration information, it is determined whether the current upgrade period is currently allowed. If the version information is downloaded at startup, Then, it is determined whether it is a device that is allowed to be upgraded at startup, and whether there is currently a service being processed. If the above conditions are all met, the version file corresponding to the latest version number is downloaded from the selected file server 104 and upgraded. . If the user device 101 belongs to a device that is prohibited from being upgraded at startup, the user device 101 may be initially configured to be disabled from selecting the file server 104 at startup.
  • the acquiring unit, the processing unit, and the comparing unit are included.
  • the obtaining unit is configured to obtain the latest version information from the selected file server according to the identifier of the file server randomly selected from the local configuration information.
  • a comparing unit configured to compare the obtained latest version information with local version information, and notify the obtaining unit to obtain the latest version file from the file server if it is determined that the version of the user device is lower than the latest version.
  • Processing unit used to upgrade according to the latest version file.
  • the receiving unit 401, the selecting unit 402, the processing unit 404, the comparing unit 406, and the sending unit 405 are included.
  • the comparison unit 406 compares the local version number with the latest version number in the received version information. When the comparison result is inconsistent, an upgrade is needed to further determine whether the current upgrade period is currently allowed, and if the version information is downloaded at startup. Then, it continues to determine whether it belongs to the device that is allowed to be upgraded at the time of startup, and judges whether there is currently a service in use. If the above all meet the conditions of the upgrade, the instruction transmitting unit 405 sends a request for obtaining the version file to the selected file server 104.
  • the receiving unit 401 receives the version information and the version file transmitted by the file server 104.
  • Processing unit 404 upgrades based on the received version file.
  • the transmitting unit 405 transmits a request for obtaining version information and a request for obtaining a version file to the selected file server 104 in accordance with the identification of the selected file server 104.
  • the selection unit 402 selects the file server 104 from the identification list of the file server 104 when it starts, and instructs the sending unit 405 to send a request for obtaining the version information to the selected file server 104 according to the address of the file server 104.
  • the user equipment 101 further includes a storage unit 403 for storing a configuration file including a version number, a time period for allowing the upgrade, whether the user device 101 can be upgraded at startup, an identifier list of the file server 104, and an address of the file server 104, and the like. .
  • the method for downloading the user equipment 101 from the file server 104 with a lower load rate to download the version file is as follows:
  • Step 501 The user equipment 101 sends a handshake message to the network management server 102 at startup or periodically, and the message includes a version number.
  • Step 502 The network management server 102 extracts the version number from the received handshake message, and obtains the version number from the local
  • the upgrade policy server 103 that is responsible for the upgrade of the user equipment 101 is selected in the list of the upgrade policy server 103, and the version number and the information of the user equipment 101 are sent to the corresponding upgrade policy server 103.
  • the network management server 102 finds that the user equipment 101 is in the A zone, and then selects the upgrade policy server 103 responsible for the A zone from the list of the upgrade policy server 103. If there are multiple upgrade policy servers 103 that are responsible for the A zone, the network management server 102 can be further classified according to the device type.
  • the network management server 102 finds that the user equipment 101 is of the A type, and then selects the A type of the plurality of upgrade policy servers 103 that are responsible for the A zone. Upgrade the policy server 103.
  • Step 503 The upgrade policy server 103 compares the received version number with the latest version number of the locality. If the comparison result is consistent, the upgrade process is terminated, and the notification that the "already the latest version" is further sent to the user device 101, otherwise Proceed to step 504.
  • Step 504 The upgrade policy server 103 queries the file server 104 that stores the latest version file from the list of local file servers 104, and selects the file server 104 with a lower load rate.
  • the specific method is as follows: Calculate the users carried by the file servers. The ratio of the number of devices to their threshold. The smallest ratio is selected from each ratio, and when it is determined that the minimum ratio is less than 1, the information of the file server 104 corresponding to the smallest ratio and the latest version number are sent to the user equipment 101, so that the user equipment 101 can connect to the file server 104. .
  • the upgrade policy server 103 determines the ratio of the number of user equipments carried by the file server 104 whose number of user equipments is lower than the threshold value to the threshold value, selects the file server 104 corresponding to the smallest ratio, and selects the file.
  • the information of the server 104 and the latest version number are transmitted to the user device 101.
  • the upgrade policy server 103 finds that the number of user equipments carried by all the file servers 104 reaches the threshold, the upgrade process is terminated, and the notification of "temporarily unable to upgrade" can be further sent to the user equipment 101.
  • Step 505 The user equipment 101 establishes a connection with the file server 104 according to the received information of the file server 104, and downloads the latest version file according to the latest version number received and the information of the file server 104, and notifies that the upgrade policy server 103 has started. upgrade.
  • the upgrade policy server 103 transmits the IP address of the file server 104, the storage path of the version file, the user name and password at the time of login to the user device 101.
  • User equipment 101 according to the above The information is logged into the file server 104.
  • the upgrade policy server 103 since all file servers 104 use the same username and password, and this information is already recorded in the configuration file of the user device 101, the upgrade policy server 103 only needs to send the IP address and version of the file server 104 to the user device 101.
  • the storage path of the file since all file servers 104 use the same username and password, and this information is already recorded in the configuration file of the user device 101, the upgrade policy server 103 only needs to send the IP address and version of the file server 104 to the user device 101.
  • the storage path of the file since all file servers 104 use the same username and password, and this information is already recorded in the configuration file of the user device 101, the upgrade policy server 103 only needs to send the IP address and version of the file server 104 to the user device 101
  • Step 506 After receiving the notification that the upgrade has been started, the upgrade policy server 103 updates the local information about the file server 104, and increases the number of user equipments carried by the selected file server 104 by one.
  • Step 507 After the downloading is completed, the user equipment 101 notifies the upgrade policy server 103 that the download is completed, and upgrades according to the latest version file downloaded.
  • the user equipment 101 interacts with the upgrade policy server 103 through the network management server 102, and the user equipment 101 notifies the network management server 102 that the download is completed, and the network management server 102 forwards the notification to the corresponding upgrade policy server 103.
  • Step 508 After receiving the notification that the download is completed, the upgrade policy server 103 updates the local information about the file server 104, and decrements the number of user equipments carried by the selected file server 104 by one.
  • the upgrade policy server 103 may send information of the plurality of file servers 104 that do not reach the threshold value to the user equipment 101, and the user equipment 101 randomly selects the file server from the plurality of file servers 104. 104 downloads the latest version file, and transmits the identifier of the selected file server 104 to the upgrade policy server 103 when notifying the upgrade policy server 103 to start downloading.
  • the upgrade policy server 103 increments the number of user devices carried by the corresponding file server 104 by one based on the received identifier.
  • the upgrade policy server 103 belongs to the network management server 102, that is, the network management server 102 includes the upgrade policy unit 205
  • the selection unit 202 in the network management server 102 extracts the version number from the received handshake message, and locally
  • the upgrade policy column unit 205 selects the upgrade policy unit 205 responsible for the upgrade of the user equipment 101, and sends the version number and the information of the user equipment 101 to the upgrade policy unit 205, and then the upgrade policy unit 205 determines whether the user equipment 101 is upgraded.
  • the user equipment 101 sends a notification that the download has been started to the network management server 102, and the notification is transmitted to the upgrade policy unit 205 by the receiving unit in the network management server 102, or is transmitted via the selection unit 202.
  • the upgrade policy unit 205 is given.
  • VOIP voice over IP
  • the method for upgrading the device by the user equipment 101 at the time of startup is as follows:
  • Step 601 The user equipment 101 sends a handshake message to the network management server 102 at startup, and the message includes a version number.
  • Step 602 The network management server 102 extracts the version number from the received handshake message, selects the upgrade policy server 103 responsible for the upgrade of the user equipment 101 from the list of the local upgrade policy server 103, and sets the version number and the information of the user equipment 101. Sent to the upgrade policy server 103.
  • Step 603 The upgrade policy server 103 compares the received version number with the latest version number of the locality. If the comparison result is consistent, the upgrade process is ended, and the notification that the "already the latest version" is further sent to the user device 101, otherwise Proceed to step 604.
  • Step 604 The upgrade policy server 103 determines whether the user equipment 101 belongs to a device that is allowed to be upgraded at startup.
  • the upgrade policy server 103 contains a list of device types that are allowed to be upgraded at startup or a list of device types that are prohibited from being upgraded at startup.
  • the upgrade policy server 103 can learn the type of the user device 101 according to the version number or the information of the user device 101, and determine whether the type of the user device 101 belongs to the type described in the device type list, and can determine whether the user device 101 belongs to the upgrade when the device is allowed to be started. device of. If yes, proceed to step 605. Otherwise, the upgrade process is terminated, and the notification of "temporarily unable to upgrade" may be further sent to the user equipment 101.
  • the user equipment 101 may periodically send the network management server 102 with the notification after the startup is completed.
  • the handshake number of the version number is a device that is allowed to be upgraded at startup.
  • Step 605 The upgrade policy server 103 queries the file server 104 storing the latest version file from the local file server 104 list, selects a file server 104 from the file server 104, and sends the information and the latest version information of the file server 104 to the user device 101. .
  • Step 606 The user equipment 101 according to the received information of the file server 104 and the file service The device 104 establishes a connection and downloads the latest version file based on the latest version number received and the information of the file server 104.
  • step 603 and step 604 can be interchanged.
  • Each of the user equipments 101 is usually started at 6 am to 9 am.
  • part of the user equipment 101 is prohibited from being upgraded at the time of startup, and the load of the file server 104 is also alleviated, and the occupation of the network bandwidth is alleviated, thereby improving the success of the upgrade. rate.
  • IPTV Internet Protocol Television
  • the user equipment 101 supporting the IPTV service needs to be restricted or prohibited. Upgrade the device or upgrade the IPTV service during the time period. Or, for example, each user equipment 101 is frequently used from 9:00 am to 11:00 pm (usually referred to as busy time), and network resources are occupied more. At this time, the network side may not provide sufficient resources for the user.
  • the upgrade of the device 101 requires that the user device 101 be restricted or prohibited from performing device upgrades during the time period.
  • the method for the user equipment 101 to upgrade the device during idle time is as follows:
  • Step 701 The user equipment 101 sends a handshake message to the network management server 102 at startup or periodically, and the message includes the version number.
  • Step 702 The network management server 102 extracts the version number from the received handshake message, selects the upgrade policy server 103 responsible for the user equipment 101 upgrade from the list of the local upgrade policy server 103, and sets the version number and the information of the user equipment 101. Sent to the upgrade policy server 103.
  • Step 703 The upgrade policy server 103 compares the received version number with the latest version number of the locality. If the comparison result is consistent, the upgrade process is ended, and the notification that the "already the latest version" is further sent to the user equipment 101, otherwise Proceed to step 704.
  • Step 704 The upgrade policy server 103 determines whether the current time belongs to the time period for allowing the user equipment 101 to be upgraded. If yes, proceed to step 705. Otherwise, the upgrade process is ended, and the notification of "temporarily unable to upgrade" may be further sent to the user equipment 101. Can be based on device type, manufacturer, The product model and other factors set different time periods for each user equipment 101 to allow the upgrade. For example, the user equipment 101 of the manufacturer A is specified to be upgraded between 8:00 and 10:00, and the user equipment 101 of the manufacturer is between 10:00 and 12:00. The upgrade can also balance the load of the file server 104, and alleviate the occupation of the network bandwidth.
  • Step 705 The upgrade policy server 103 queries the file server 104 storing the latest version file from the local file server 104 list, selects a file server 104 from the file server 104, and sends the information and the latest version information of the file server 104 to the user device 101. .
  • Step 706 The user equipment 101 establishes a connection with the file server 104 according to the received information of the file server 104, and downloads the latest version file according to the latest version number received and the information of the file server 104.
  • step 703 and step 704 can be interchanged.
  • the method for a preferred upgrade device combining the above three methods in this embodiment is as follows:
  • Step 801 The user equipment 101 sends a handshake message to the network management server 102 at startup or periodically, and the message includes the version number.
  • Step 802 The network management server 102 extracts the version number from the received handshake message, selects the upgrade policy server 103 responsible for the user equipment 101 upgrade from the list of the local upgrade policy server 103, and sets the version number and the information of the user equipment 101. Sent to the upgrade policy server 103.
  • Step 803 The upgrade policy server 103 compares the received version number with the latest version number of the locality. If the comparison result is consistent, the upgrade process is ended, and the notification that the "already the latest version" is further sent to the user device 101, otherwise Continue to step 804.
  • Step 804 When the upgrade policy server 103 receives the version number sent by the user equipment 101 at the time of startup, it is determined whether the user equipment 101 belongs to the device that is allowed to be upgraded, and if yes, proceed to step 805; otherwise, the upgrade process is terminated, and the The user device 101 sends a notification such as "temporarily unable to upgrade".
  • Step 805 The upgrade policy server 103 determines whether the current time belongs to the user equipment. The time period of the 101 upgrade, if yes, proceed to step 806, otherwise the upgrade process is terminated, and the notification of "temporarily unable to upgrade" may be further sent to the user equipment 101.
  • Step 806 The upgrade policy server 103 queries the file server 104 storing the latest version file from the local file server 104 list, selects the file server 104 with a lower load rate, and sends the information of the file server 104 and the latest version number. User equipment 101 is provided. When the upgrade policy server 103 finds that the number of user equipments carried by all the file servers 104 reaches the threshold, the upgrade process is terminated, and the notification of "temporarily unable to upgrade" can be further sent to the user equipment 101.
  • Step 807 The user equipment 101 establishes a connection with the file server 104 according to the received information of the file server 104, and downloads the latest version file according to the latest version number received and the information of the file server 104, and notifies that the upgrade policy server 103 has started. upgrade.
  • the user equipment 101 may determine whether it has a running service, such as a call service, and if so, suspend the upgrade, and may continue the upgrade process after the service ends, prompting the user to upgrade, otherwise The user is prompted to upgrade, or directly establish a connection with the file server 104 to continue the upgrade process. If the user confirms that the upgrade is possible or the user does not cancel the upgrade within a certain period of time, the upgrade is started. Otherwise, the process ends, or the user is prompted to upgrade again after a period of time.
  • a running service such as a call service
  • Step 808 After receiving the notification that the upgrade has been started, the upgrade policy server 103 increases the number of user equipments carried by the selected file server 104 by one.
  • Step 809 After the download is completed, the user equipment 101 notifies the upgrade policy server 103 that the download is completed, and upgrades according to the latest version file downloaded. User device 101 restarts after the upgrade is complete, and the new version file takes effect.
  • Step 810 After receiving the notification that the download is completed, the upgrade policy server 103 decrements the number of user equipments carried by the selected file server 104 by one.
  • step 803, step 804 and step 805 can be interchanged.
  • the foregoing embodiment describes how to upgrade the device when the upgrade policy server 103 is used as an independent entity for the upgrade policy.
  • the following describes the upgrade when the network management server 102 is used as the upgrade policy.
  • the implementation of the backup see Figure 8B.
  • Step 811 The user equipment 101 sends a handshake message to the network management server 102 at startup or periodically, and the message includes the version number.
  • Step 812 The network management server 102 extracts the version number from the received handshake message.
  • Step 813 The network management server 102 compares the version number with the latest version number of the locality. If the comparison result is consistent, the upgrade process is terminated, and the notification that the "already the latest version" is further sent to the user equipment 101, otherwise the process proceeds to step 804.
  • Step 814 When receiving the version number sent by the user equipment 101 at the time of startup, the network management server 102 determines whether the user equipment 101 belongs to the device that is allowed to be upgraded at startup, and if yes, proceeds to step 815; otherwise, the upgrade process is terminated, and the user may further proceed to the user.
  • the device 101 sends a notification such as "temporarily unable to upgrade".
  • Step 815 The network management server 102 determines whether the current time belongs to a time period for allowing the user equipment 101 to be upgraded. If yes, the process proceeds to step 816. Otherwise, the upgrade process is terminated, and the notification that the user device 101 is temporarily unable to upgrade may be further sent.
  • Step 816 The network management server 102 queries the file server 104 storing the latest version file from the local file server 104 list, selects the file server 104 with a lower load rate, and sends the information and the latest version number of the file server 104 to the file server 104.
  • User equipment 101 When the upgrade policy server 103 finds that the number of user equipments carried by all the file servers 104 reaches the threshold, the upgrade process is terminated, and the notification of "temporarily unable to upgrade" can be further sent to the user equipment 101.
  • Step 817 The user equipment 101 establishes a connection with the file server 104 according to the received information of the file server 104, and downloads the latest version file according to the latest version number received and the information of the file server 104, and notifies that the upgrade policy server 103 has started. upgrade.
  • the user equipment 101 may determine whether it has a running service, such as a call service, and if so, suspend the upgrade, and may continue the upgrade process after the service ends, prompting the user to upgrade, otherwise The user is prompted to upgrade, or directly establish a connection with the file server 104 to continue the upgrade process. If the user confirms that it can be upgraded or is certain If the user does not cancel the upgrade within the time, the upgrade is started. Otherwise, the process ends, or the user is prompted to upgrade again after a period of time.
  • a running service such as a call service
  • Step 818 After receiving the notification that the upgrade has been started, the network management server 102 increases the number of user equipments carried by the selected file server 104 by one.
  • Step 819 After the downloading is completed, the user equipment 101 notifies the network management server 102 that the download is completed, and upgrades according to the latest version file downloaded. User device 101 restarts after the upgrade is complete, and the new version file takes effect.
  • Step 820 After receiving the notification that the download is completed, the network management server 102 reduces the number of user equipments carried by the selected file server 104 by one.
  • the method for upgrading an upgrade device in the user equipment 101 in this embodiment is as follows:
  • Step 901 The user equipment 101 queries the list of file servers 104 in the local configuration file at startup or periodically, and randomly selects the file server 104 therefrom.
  • Step 902 The user equipment 101 further obtains the information of the selected file server 104 from the configuration file, and according to the information, connects to the file server 104 to download the file containing the latest version number.
  • Step 903 The user equipment 101 compares the local version number with the latest version number received. If the comparison result is consistent, the upgrade process ends, otherwise step 904 is continued.
  • Step 904 The user equipment 101 determines, according to the local configuration information, whether it belongs to the device that is allowed to be upgraded at startup, and if yes, proceeds to step 905; otherwise, the upgrade process ends.
  • Step 905 The user equipment 101 determines whether the current time belongs to the time period allowed for the upgrade described in the local configuration information, and if yes, proceeds to step 906, otherwise, the upgrade process is ended; or whether the current time belongs to the time period for which the upgrade is prohibited in the local configuration information. If yes, the upgrade process is ended, otherwise step 906 is continued.
  • Step 906 The user device 101 downloads the latest version file from the selected file server 104 and performs an upgrade.
  • the user equipment 101 can determine the time allowed to be upgraded at startup and currently allowed to be upgraded.
  • the configuration file is queried and the file server 104 is randomly selected.
  • the network side selects, from the file server that stores the latest version file, the file server that does not reach the preset threshold, so that the user equipment downloads from the file server.
  • the latest version of the file Achieve a balanced file server load, avoiding file server overload and causing embarrassment.
  • the number of user equipments carried by the file server is compared with a threshold value, and the file server with the smallest ratio is selected, thereby providing a better method for balancing the file server load.
  • the user equipment is divided into upgraded time segments, which can improve the success rate of the upgrade, balance the load of the file server, and avoid delays in using the normal service and enhance the user experience.
  • the user equipment is further restricted from being upgraded at startup, thereby avoiding delays in using the normal service and enhancing the user experience.
  • This embodiment implements a method for upgrading an upgraded device by embedding an upgrade policy in a user equipment.
  • the user equipment randomly selects a file server, and the load of the file server is balanced, and the network side is not required to perform an upgrade decision, thereby reducing the network side.
  • the burden The embodiment of the invention further provides a distributed network structure, in which a server responsible for the upgrade policy is added in the communication system, which facilitates the expansion of the network structure.

Abstract

A method for updating equipment involves receiving a version information of a sender equipment, and comparing the version information of the sender equipment with the local latest version information, and finding at least one file server storing the latest version file if the version of the sender equipment is lower than the local latest version, and selecting the file server in which the number of equipments loaded by it is less than the predetermined threshold value from the at least one file server according to the pre-set updating policy, and sending the information of the selected file server and the latest version information to the sender equipment in order to the sender equipment downloads the latest version file from corresponding file server according to the file server information and the latest version information and updates. The method is applied to an updating policy server, a network management server, a user equipment, and a communication system.

Description

升级设备的方法、 装置及系统 技术领域  Method, device and system for upgrading equipment
本发明涉及计算机及通信领域, 特别是涉及升级设备的方法、 升级策略 服务器、 网管服务器、 用户设备及通信系统。  The present invention relates to the field of computers and communications, and in particular, to a method for upgrading a device, an upgrade policy server, a network management server, a user equipment, and a communication system.
背景技术 Background technique
经过宽带网络的高速发展, 各大电信运营商的宽带网络建设和业务逐渐 达到饱和, 电信运营商已经不满足于通过网络接入业务获利, 转而挖掘各种 增值业务, 而终端设备作为这些增值业务的载体, 成为电信网络最后一米的 边缘延伸、 各运营商关注的焦点。 同时由于终端设备具有数量大、 地域分布 广、 位于用户侧因此无法主动访问、 与服务器通信时并发数具有随机性、 版 本更新频繁等特点 , 因此终端设备的批量升级成为难点和焦点。  After the rapid development of broadband networks, the broadband network construction and services of major telecom operators are gradually saturated. Telecom operators are not satisfied with profiting through network access services, and instead digging various value-added services, and terminal equipment as these The carrier of value-added services has become the edge of the last mile of the telecommunication network and the focus of operators. At the same time, because the terminal equipment has a large number, a wide geographical distribution, and is inaccessible to the user side, and the number of concurrent transmissions is random, and the version update is frequent, the batch upgrade of the terminal device becomes a difficult point and a focus.
目前现有技术中, 升级用户设备的方法是网络侧存有最新的版本号, 当 接收到用户设备发送的版本号时将, 其与本地的版本号进行比较, 在比较结 果不一致时通知用户设备进行升级, 同时将文件服务器的地址、 下载路径等 信息发送给用户设备。 用户设备根据收到的信息从文件服务器下载版本文件, 并进行升级操作。 大多数升级操作过程中用户设备需要重启, 新版本才能生 效。  In the prior art, the method for upgrading the user equipment is to store the latest version number on the network side. When receiving the version number sent by the user equipment, it compares with the local version number, and notifies the user equipment when the comparison result is inconsistent. The upgrade is performed, and the address of the file server, the download path, and the like are sent to the user device. The user equipment downloads the version file from the file server according to the received information, and performs an upgrade operation. The user device needs to be restarted during most upgrade operations, and the new version will take effect.
在实现本发明的过程中, 发明人发现, 现有技术中至少存在以下技术问 题:  In the process of implementing the present invention, the inventors have found that at least the following technical problems exist in the prior art:
网络侧设备由于受到成本和技术的制约, 当大量用户设备批量请求升级 时, 可能导致网络服务器和 /或文件服务器瘫痪, 用户设备升级失败, 可能进 而导致用户设备出现故障; 或者当有新版本发布后, 大量用户设备并发升级, 而当前网络无法提供足够的带宽, 每个设备的升级带宽无法保证, 导致升级 失败, 可能进而导致用户设备出现故障; 又或者在用户需要使用用户设备时, 用户设备进行了升级操作, 导致用户暂时无法使用正常的业务, 影响用户体 验。 The network side device is subject to cost and technical constraints. When a large number of user equipments are requested to upgrade in batches, the network server and/or file server may be faulty. The user equipment may fail to upgrade, which may cause the user equipment to fail. After that, a large number of user devices are upgraded concurrently, and the current network cannot provide sufficient bandwidth. The upgrade bandwidth of each device cannot be guaranteed, resulting in an upgrade failure, which may lead to user device failure. Otherwise, when the user needs to use the user device, the user device The upgrade operation has resulted in the user being temporarily unable to use the normal business and affecting the user body. Test.
发明内容 Summary of the invention
本发明实施例提供升级设备的方法、 升级策略服务器、 网管服务器、 用 户设备及通信系统, 用于提高设备升级的成功率。  The embodiment of the present invention provides a method for upgrading a device, an upgrade policy server, a network management server, a user device, and a communication system, which are used to improve the success rate of device upgrade.
一种升级设备的方法, 包括以下步骤:  A method of upgrading a device includes the following steps:
接收发送方设备的版本信息;  Receiving version information of the sender device;
比较接收到的发送方设备的版本信息与本地的最新版本信息, 在确定发 送方设备的版本低于所述最新版本的情况下, 查找存储有最新版本文件的至 少一个文件服务器;  Comparing the received version information of the sender device with the latest version information of the local device, and searching for at least one file server storing the latest version file when determining that the version of the sender device is lower than the latest version;
根据预先设置的升级策略, 从所述至少一个文件服务器中选择承载的设 备数量未达到预设的门限值的文件服务器, 并将选择的文件服务器的信息和 最新版本信息返回给发送方设备, 使所述发送方设备根据收到的文件服务器 的信息和最新版本信息从相应的文件服务器下载最新版本文件, 并进行升级。  And selecting, according to the preset upgrade policy, a file server that does not reach a preset threshold from the at least one file server, and returns information of the selected file server and latest version information to the sender device, And causing the sender device to download the latest version file from the corresponding file server according to the received file server information and the latest version information, and perform an upgrade.
一种升级设备的方法, 应用于设备侧, 包括以下步骤:  A method of upgrading a device, applied to the device side, includes the following steps:
从本地的配置信息中随机选择文件服务器的标识, 并从该标识所对应的 文件服务器获得最新版本信息;  The identifier of the file server is randomly selected from the local configuration information, and the latest version information is obtained from the file server corresponding to the identifier;
将最新版本信息与本地的版本信息进行比较, 并在确定本地的版本低于 所述最新版本时, 根据最新版本信息从所述文件服务器获得最新版本文件, 进行升级。  The latest version information is compared with the local version information, and when it is determined that the local version is lower than the latest version, the latest version file is obtained from the file server according to the latest version information, and the upgrade is performed.
一种升级策略服务器, 包括:  An upgrade policy server, including:
接收单元, 用于接收用户设备的版本信息;  a receiving unit, configured to receive version information of the user equipment;
策略单元, 用于将接收到的用户设备的版本信息与本地的最新版本信息 进行比较, 并在确定用户设备的版本低于所述最新版本的情况下查找存储有 最新版本文件的至少一个文件服务器, 以及从所述至少一个文件服务器中选 择承载的设备数量未达到预设的门限值的文件服务器;  a policy unit, configured to compare the received version information of the user equipment with the latest version information of the local device, and search for at least one file server storing the latest version file if it is determined that the version of the user equipment is lower than the latest version And a file server that selects a number of devices that are carried from the at least one file server that does not reach a preset threshold;
发送单元, 用于将选择的文件服务器的信息和最新版本信息发送给所述 用户设备。 a sending unit, configured to send information about the selected file server and latest version information to the User equipment.
一种网管服务器, 包括管理单元, 所述管理单元用于管理和维护网络中 的设备; 网管服务器还包括:  A network management server includes a management unit, where the management unit is used to manage and maintain devices in the network; the network management server further includes:
接收单元, 用于接收用户设备发送的版本信息;  a receiving unit, configured to receive version information sent by the user equipment;
升级策略单元, 用于将接收到的用户设备的版本信息与本地的最新版本 信息进行比较, 并在确定用户设备的版本低于所述最新版本的情况下, 查找 存储有最新版本文件的至少一个文件服务器, 从所述至少一个文件服务器中 选择承载的设备数量未达到预设的门限值的文件服务器;  And an upgrade policy unit, configured to compare the received version information of the user equipment with the latest version information of the local device, and, when determining that the version of the user equipment is lower than the latest version, find at least one of the files with the latest version file a file server, selecting, from the at least one file server, a file server that does not reach a preset threshold value;
发送单元, 用于将选择的文件服务器的信息和最新版本信息发送给所述 用户设备。  And a sending unit, configured to send the information of the selected file server and the latest version information to the user equipment.
一种用户设备, 包括:  A user equipment, including:
获取单元, 用于根据从本地的配置信息中随机选择文件服务器的标识, 从所述选择的文件服务器获得最新版本信息;  An obtaining unit, configured to obtain latest version information from the selected file server according to the identifier of the file server randomly selected from the local configuration information;
比较单元, 用于将获得的最新版本信息与本地的版本信息进行比较, 在 确定用户设备的版本低于所述最新版本的情况下, 通知所述获取单元从所述 文件服务器获得最新版本文件;  a comparing unit, configured to compare the obtained latest version information with the local version information, and notify the obtaining unit to obtain the latest version file from the file server, if it is determined that the version of the user device is lower than the latest version;
处理单元, 用于根据最新版本文件进行升级。  Processing unit, used to upgrade according to the latest version file.
一种通信系统, 包括:  A communication system comprising:
用户设备, 用于发送版本信息, 以及根据接收到的文件服务器的信息和 最新版本信息从相应的文件服务器获得最新版本文件, 并进行升级;  a user equipment, configured to send version information, and obtain the latest version file from the corresponding file server according to the received file server information and the latest version information, and upgrade the file;
服务器, 用于将接收到的所述用户设备的版本信息与本地的最新版本信 息进行比较, 并在确定所述第一设备的版本低于所述最新版本的情况下查找 存储有最新版本文件的至少一个文件服务器, 以及从所述至少一个文件服务 器中选择承载的第一设备数量未达到预设的门限值的文件服务器, 并将选择 的文件服务器的信息和最新版本信息发送给所述第一设备;  a server, configured to compare the received version information of the user equipment with the latest version information of the local device, and search for the latest version file if the version of the first device is determined to be lower than the latest version. At least one file server, and a file server selected from the at least one file server to have a first number of devices that do not reach a preset threshold, and sending the selected file server information and the latest version information to the file server a device
至少一个文件服务器, 用于存储所述最新版本文件。 本发明实施例中网络侧在确定用户设备需要升级后, 从存有最新版本文 件的文件服务器中选择承载的用户设备数量未达到预设门限值的文件服务 器, 使用户设备从该文件服务器下载最新版本文件。 实现均衡文件服务器的 负载, 避免文件服务器超载而导致瘫痪, 提高设备升级的成功率。 At least one file server for storing the latest version file. In the embodiment of the present invention, after determining that the user equipment needs to be upgraded, the network side selects a file server that does not reach the preset threshold from the file server that stores the latest version file, so that the user equipment downloads from the file server. The latest version of the file. Achieve the load of the balanced file server, avoiding file server overload and causing embarrassment, and improving the success rate of device upgrade.
本发明实施例实现了应用于用户设备的升级方法, 由用户设备随机选择 文件服务器, 也可达到均衡文件服务器负载的目的, 并且不需要网络侧做升 级决定, 减轻了网络侧的负担。  The embodiment of the present invention implements an upgrade method applied to a user equipment. The user equipment randomly selects a file server, and the purpose of balancing the load of the file server is also achieved, and the network side does not need to make an upgrade decision, thereby reducing the burden on the network side.
本发明实施例还提供了一种分布式的网络结构, 在通信系统中增加负责 升级策略调度的服务器, 便于网络结构的扩展, 提升设备升级的成功率。 附图说明  The embodiment of the invention further provides a distributed network structure, which increases the server responsible for the upgrade policy scheduling in the communication system, facilitates the expansion of the network structure, and improves the success rate of the device upgrade. DRAWINGS
图 1A为本发明实施例中通信系统包括升级策略服务器时的结构图; 图 1B为本发明实施例中通信系统未包括升级策略服务器时的结构图; 图 2A为本发明实施例中一种网管服务器的结构图;  1A is a structural diagram of a communication system including an upgrade policy server according to an embodiment of the present invention; FIG. 1B is a structural diagram of a communication system not including an upgrade policy server according to an embodiment of the present invention; a structural diagram of the server;
图 2B为本发明实施例中另一种网管服务器的结构图;  2B is a structural diagram of another network management server according to an embodiment of the present invention;
图 3为本发明实施例中升级策略 Λ良务器的结构图;  3 is a structural diagram of an upgrade policy server in an embodiment of the present invention;
图 4A为本发明实施例中用户设备作升级策略时通信系统的结构图; 图 4B为本发明实施例中用户设备的结构图;  4A is a structural diagram of a communication system when a user equipment is used as an upgrade policy according to an embodiment of the present invention; FIG. 4B is a structural diagram of a user equipment according to an embodiment of the present invention;
图 5为本发明实施例中第一种升级设备的方法流程图;  FIG. 5 is a flowchart of a method for upgrading a device according to an embodiment of the present invention;
图 6为本发明实施例中第二种升级设备的方法流程图;  6 is a flowchart of a method for upgrading a device according to a second embodiment of the present invention;
图 7为本发明实施例中第三种升级设备的方法流程图;  7 is a flowchart of a third method for upgrading a device according to an embodiment of the present invention;
图 8A为本发明实施例中第四种升级设备的方法流程图;  8A is a flowchart of a fourth method for upgrading a device according to an embodiment of the present invention;
图 8B为本发明实施例中第五种升级设备的方法流程图;  8B is a flowchart of a fifth method for upgrading a device according to an embodiment of the present invention;
图 9为本发明实施例中用户设备作升级策略时升级设备的方法流程图。 具体实施方式  FIG. 9 is a flowchart of a method for upgrading a device when a user equipment is used as an upgrade policy according to an embodiment of the present invention. detailed description
为了提高设备升级的成功率, 本实施例提供多种升级设备的方法, 改善 多个升级环节, 从而提高设备升级的成功率。 如第一种方法是, 使用户设备 从承载的用户设备数量较少的文件服务器下载版本文件, 该方法可均衡文件 服务器的负载, 防止文件服务器瘫痪, 使用户设备可以成功从文件服务器下 载版本文件并进行升级。 如第二种方法是, 使用户设备在启动后进行升级操 作, 该方法可避免在用户需要使用用户设备即使用正常的业务时升级, 并且 可避免在启动时升级失败导致用户设备故障。 如第三种方法是, 使用户设备 在空闲时进行升级操作, 该方法既可避免在用户需要使用用户设备即使用正 常的业务时升级, 又可以避免网络无法提供足够的带宽以供多个用户设备并 发升级而导致升级失败。 本实施例还提供一种较佳的方法, 即上述三种方法 的结合。 本实施例还提供一种方法, 由用户设备随机选择文件服务器并下载 版本文件, 也可以实现均衡文件服务器的负载, 并且不需要由网络侧做升级 判决, 以减轻网络侧的负担。 In order to improve the success rate of the device upgrade, the embodiment provides multiple methods for upgrading the device, and improves multiple upgrade links, thereby improving the success rate of the device upgrade. As the first method is to make the user device The version file is downloaded from a file server with a small number of user devices. This method balances the load of the file server and prevents the file server from being corrupted, so that the user device can successfully download the version file from the file server and upgrade. For example, the second method is to enable the user equipment to perform an upgrade operation after the startup, the method can avoid the upgrade when the user needs to use the user equipment, that is, the normal service, and can avoid the failure of the user equipment when the upgrade fails during startup. For example, the third method is to enable the user equipment to perform an upgrade operation when idle. This method can avoid upgrading when the user needs to use the user equipment, that is, use normal services, and can prevent the network from providing sufficient bandwidth for multiple users. The upgrade failed because the device was upgraded concurrently. This embodiment also provides a preferred method, that is, a combination of the above three methods. The embodiment also provides a method for the user to randomly select a file server and download a version file, and the load of the file server can be balanced, and the network side does not need to perform an upgrade decision to reduce the burden on the network side.
参见图 1A, 本实施例中通信系统包括用户设备 101、 网管服务器 102、 升级策略服务器 103和文件服务器 104。  Referring to FIG. 1A, the communication system in this embodiment includes a user equipment 101, a network management server 102, an upgrade policy server 103, and a file server 104.
文件服务器 104, 存储有各版本文件(包括用于升级设备的数据 )和包括 版本信息的文件。 文件服务器 104可以有多个, 根据设备类型、 厂商、 产品 型号、 区域等因素进行划分。 一个文件服务器 104可以只存储厂商 A生产的 A类型的 A型号设备与 A业务有关的版本文件,也可以存储所有的版本文件。  The file server 104 stores files of various versions (including data for upgrading devices) and files including version information. There may be multiple file servers 104, which are divided according to factors such as device type, manufacturer, product model, and region. A file server 104 can store only the version files related to the A service of the Type A device of the Type A produced by the manufacturer A, and can also store all the version files.
用户设备 101 可以为一个或多个, 是一种直接为用户提供服务的设备, 为了更好的为用户提供服务, 需要升级各种配置和业务。 用户设备 101 , 在启 动时或者定期向网管服务器 102发送握手报文, 该报文包括自身的版本信息, 包括版本号等, 其中版本号包括用户设备 101 的产品信息 (包括设备类型、 厂商、 产品型号等)和当前版本文件的信息(包括版本文件的标识等)。 其中 设备类型如手机、 个人计算机等。 并在接收到文件服务器 104信息时, 判断 当前是否有正在处理的业务, 尤其是不能与升级同步进行的业务, 如通话业 务等, 若是, 则暂停升级操作, 等待业务结束后再继续升级, 否则进行升级 操作, 根据文件服务器 104信息从指定的文件服务器 104下载最新的版本文 件, 同时通知网络侧已开始升级。 下载版本文件完成后进行升级配置, 同时 通知网络侧下载结束。 用户设备 101 在进行一些升级操作时需要进行重启操 作, 使新的版本文件生效。 The user equipment 101 may be one or more devices that directly provide services to users. In order to better serve users, various configurations and services need to be upgraded. The user equipment 101 sends a handshake message to the network management server 102 at startup or periodically. The message includes its own version information, including the version number, and the version number includes the product information of the user equipment 101 (including the device type, vendor, and product). Information such as the model number and the current version file (including the identification of the version file, etc.). Among them, device types such as mobile phones and personal computers. When receiving the information of the file server 104, it is determined whether there is currently a service being processed, especially a service that cannot be synchronized with the upgrade, such as a call service, and if so, the upgrade operation is suspended, and the upgrade is continued after the service is finished, otherwise Performing an upgrade operation, downloading the latest version from the specified file server 104 according to the file server 104 information. And notify the network side that the upgrade has begun. After the download version file is completed, upgrade the configuration and notify the network side that the download is complete. The user equipment 101 needs to perform a restart operation when performing some upgrade operations to make the new version file take effect.
网管服务器 102管理网络中的各设备。 网管服务器 102从接收到的握手 报文中提取出版本号, 并将该版本号传送给相应的升级策略服务器 103。  The network management server 102 manages each device in the network. The network management server 102 extracts the version number from the received handshake message and transmits the version number to the corresponding upgrade policy server 103.
升级策略服务器 103 用于进行升级策略调度, 可以为一个或多个, 用于 在收到版本号后, 比较该版本号与自身存储的最新版本号是否一致, 判断当 前是否处于允许升级的时段, 若收到的是用户设备 101 在启动时发送的版本 号, 那么还要判断是否允许该用户设备 101 在启动时升级, 在上述条件均满 足时根据版本号与文件服务器 104 的对应关系, 查询与最新版本号对应的文 件服务器 104 ,并根据预先制定的升级策略从查询到的文件服务器 104中选择 承载的用户设备数量较少的文件服务器 104,将该文件服务器 104的信息发送 给用户设备 101。 以及, 在收到用户设备 101发送的已开始升级的通知时将该 文件服务器 104承载的用户设备数量进行加 1处理, 在收到用户设备 101发 送的下载结束通知时将该文件服务器 104承载的用户设备数量进行减 1处理。 升级策略服务器 103 中存储的关于文件服务器 104的信息可以是通过网管服 务器获得, 或者与文件服务器 104进行交互而获得, 或者是由手工配置获得。 进一步的, 还可以根据设备类型、 厂商、 产品型号、 区域等因素分别设置升 级策略服务器 103。这种分步式结构可以更好的支持大量用户设备 101同时升 级, 当网络需要扩容时, 只需在网络中增加几台升级策略服务器 103 并向网 管服务器 102 注册即可, 不需要对其它设备进行改动。 本实施例中以升级策 略服务器 103为独立的实体为例进行说明。  The upgrade policy server 103 is configured to perform an upgrade policy scheduling, which may be one or more, and is used to compare whether the version number is consistent with the latest version number stored by the version number after receiving the version number, and determine whether the current upgrade period is allowed. If the version number sent by the user equipment 101 at the time of startup is received, it is further determined whether the user equipment 101 is allowed to be upgraded at the time of startup. When the above conditions are satisfied, the query is based on the correspondence between the version number and the file server 104. The file server 104 corresponding to the latest version number selects the file server 104 with a small number of user devices to be carried from the queried file server 104 according to the pre-defined upgrade policy, and transmits the information of the file server 104 to the user device 101. And, when the notification sent by the user equipment 101 that the upgrade has been started is received, the number of user equipments carried by the file server 104 is increased by one, and when the download end notification sent by the user equipment 101 is received, the file server 104 is carried. The number of user devices is decremented by one. The information about the file server 104 stored in the upgrade policy server 103 may be obtained through the web server, or interacted with the file server 104, or obtained by manual configuration. Further, the upgrade policy server 103 may be separately set according to factors such as device type, vendor, product model, and region. This step-by-step structure can better support a large number of user equipments 101 to be upgraded at the same time. When the network needs to be expanded, only a few upgrade policy servers 103 need to be added to the network and registered with the network management server 102, and no other equipment is needed. Make changes. In this embodiment, the upgrade policy server 103 is an independent entity as an example.
其中, 上述预先制定的升级策略有多种, 如一种是根据文件服务器 104 的性能和带宽等为该文件服务器 104设定承载的用户设备数量的门限值, 升 级策略服务器 103查询到文件服务器 104承载的用户设备数量未达到门限值 时, 将该文件服务器 104的信息发送给用户设备 101 , 不需要查询后续的文件 服务器 104;如另一种较佳的升级策略是根据文件服务器 104的性能和带宽等 为该文件服务器 104设定承载的用户设备数量的门限值,升级策略服务器 103 将各文件服务器 104承载的用户设备数量与对应的门限值作比, 将比值最小 的文件服务器 104 的信息发送给用户设备 101 , 可较好的均衡各文件服务器 104的负载。 The above-mentioned pre-defined upgrade policies are various, for example, the threshold value of the number of user equipments that are set by the file server 104 according to the performance and bandwidth of the file server 104, and the upgrade policy server 103 queries the file server 104. When the number of the user equipments that are carried does not reach the threshold, the information of the file server 104 is sent to the user equipment 101, and the subsequent files need not be queried. The server 104; another preferred upgrade strategy is to set a threshold value of the number of user equipments carried by the file server 104 according to the performance and bandwidth of the file server 104, and the upgrade policy server 103 carries the files carried by the file servers 104. The number of user equipments is compared with the corresponding threshold value, and the information of the file server 104 with the smallest ratio is sent to the user equipment 101, so that the load of each file server 104 can be better balanced.
在上述通信系统中, 进行升级策略调度的升级策略服务器 103 为一个独 立的实体; 该升级策略服务器 103 也可作为一个功能模块内嵌于网管服务器 102, 参见图 1B所示, 本实施例中通信系统包括用户设备 101、 网管服务器 102和文件服务器 104。  In the foregoing communication system, the upgrade policy server 103 that performs the upgrade policy scheduling is an independent entity; the upgrade policy server 103 can also be embedded in the network management server 102 as a function module, as shown in FIG. 1B, the communication in this embodiment The system includes a user device 101, a network management server 102, and a file server 104.
文件服务器 104,存储有各版本文件和包括版本信息的文件。 文件服务器 104可以有多个, 根据设备类型、 厂商、 产品型号、 区域等因素进行划分。 一 个文件服务器 104可以只存储厂商 A生产的 A类型的 A型号设备与 A业务有 关的版本文件, 也可以存储所有的版本文件。  The file server 104 stores files of various versions and files including version information. There may be multiple file servers 104, which are divided according to factors such as device type, manufacturer, product model, and region. A file server 104 can store only version files of the A type A device produced by the manufacturer A in relation to the A service, and can also store all version files.
用户设备 101 可以为一个或多个, 是一种直接为用户提供服务的设备, 为了更好的为用户提供服务, 需要升级各种配置和业务。 用户设备 101 在启 动时或者定期向网管服务器 102发送握手报文, 该报文包括自身的版本信息, 并在接收到文件服务器 104信息时, 判断当前是否有正在处理的业务, 尤其 是不能与升级同步进行的业务, 如通话业务等, 若是, 则暂停升级操作, 等 待业务结束后再继续升级, 否则进行升级操作, 根据文件服务器 104信息从 指定的文件服务器 104 下载最新的版本文件, 同时通知网络侧已开始升级。 下载版本文件完成后进行升级配置, 同时通知网络侧下载结束。 用户设备 101 在进行一些升级操作时需要进行重启操作, 使新的版本文件生效。  The user equipment 101 may be one or more devices that directly provide services to users. In order to better serve users, various configurations and services need to be upgraded. When the user equipment 101 starts or periodically sends a handshake message to the network management server 102, the message includes its own version information, and when receiving the information of the file server 104, it determines whether there is currently a service being processed, especially cannot be upgraded. Synchronous services, such as call service, if yes, suspend the upgrade operation, wait for the service to end, and then continue the upgrade. Otherwise, perform the upgrade operation, download the latest version file from the specified file server 104 according to the file server 104 information, and notify the network. The side has started to upgrade. After the download version file is completed, upgrade the configuration and notify the network side that the download is complete. The user device 101 needs to perform a reboot operation for some upgrade operations to make the new version file take effect.
网管服务器 102管理网络中的各设备。 网管服务器 102从接收到的握手 报文中提取出版本号, 将该版本号与存储的与该用户设备 101 对应的最新版 本号进行比较, 发现比较结果不一致时, 判断当前是否处于允许升级的时段, 若收到的是用户设备 101 在启动时发送的版本号, 那么还要判断是否允许该 用户设备 101 在启动时升级, 在上述条件均满足时根据版本号与文件服务器 104的对应关系, 查询与最新版本号对应的文件服务器 104 , 并根据预先制定 的升级策略从查询到的文件服务器 104 中选择承载的用户设备数量较少的文 件服务器 104 , 将该文件服务器的相关信息返回给用户设备 101。 并且, 在收 到已开始升级的通知时将选择的文件服务器 104对应的承载的用户设备数量 加 1 ,在收到下载完成的通知时将选择的文件服务器 104对应的承载的用户设 备数量减 1。 The network management server 102 manages each device in the network. The network management server 102 extracts the version number from the received handshake message, compares the version number with the stored latest version number corresponding to the user equipment 101, and finds that the comparison result is inconsistent, and determines whether the current upgrade period is allowed. If the version number sent by the user device 101 at startup is received, then it is determined whether the permission is allowed. The user equipment 101 is upgraded at startup, and when the above conditions are satisfied, the file server 104 corresponding to the latest version number is queried according to the correspondence between the version number and the file server 104, and the file server 104 is queried according to the pre-defined upgrade policy. The file server 104 that selects a small number of user devices is selected, and the related information of the file server is returned to the user device 101. And, when the notification of the upgrade has been received, the number of the user equipments of the selected file server 104 is increased by one, and the number of the user equipments corresponding to the selected file server 104 is decreased by one when the notification of the completion of the download is received. .
参见图 2A, 为图 1A的本实施例通信系统中网管服务器的内部结构示意 图, 即本实施例中网管服务器 102未作升级策略时包括接收单元 201、选择单 元 202、 管理单元 206和发送单元 204。  2A is a schematic diagram of the internal structure of the network management server in the communication system of the embodiment of FIG. 1A. In this embodiment, the network management server 102 includes the receiving unit 201, the selecting unit 202, the management unit 206, and the sending unit 204. .
管理单元 206用于管理和维护网络中的设备。  The management unit 206 is used to manage and maintain devices in the network.
接收单元 201接收用户设备 101发送的握手报文等。  The receiving unit 201 receives the handshake message and the like sent by the user equipment 101.
选择单元 202从握手报文中提取出该用户设备 101 的版本号, 并根据该 版本号和升级策略服务器 103 标识的对应关系, 选择对应的升级策略服务器 103。  The selecting unit 202 extracts the version number of the user equipment 101 from the handshake message, and selects the corresponding upgrade policy server 103 according to the corresponding relationship between the version number and the upgrade policy server 103.
发送单元 204向选择的升级策略服务器 103发送版本号及用户设备 101 的信息 (包括用户设备 101的标识和地址等)等。  The transmitting unit 204 transmits the version number and the information of the user device 101 (including the identification and address of the user device 101, etc.) to the selected upgrade policy server 103.
网管服务器 102还包括存储单元 203 ,用于存储各用户设备 101与升级策 略服务器 103标识的对应关系, 以及升级策略服务器 103的 IP地址等。 本实 施例中的各存储单元可以是软盘、 硬盘和磁带等。  The network management server 102 further includes a storage unit 203 for storing the correspondence between each user equipment 101 and the upgrade policy server 103, and the IP address of the upgrade policy server 103, and the like. Each of the storage units in this embodiment may be a floppy disk, a hard disk, a magnetic tape, or the like.
参见图 2B, 为图 1B的本实施例通信系统中网管服务器的内部结构示意 图, 即本实施例中网管服务器 102作升级策略调度时包括接收单元 201、选择 单元 202、 升级策略单元 205、 管理单元 206和发送单元 204。  2B is a schematic diagram of the internal structure of the network management server in the communication system of the embodiment of FIG. 1B. In this embodiment, the network management server 102 includes the receiving unit 201, the selecting unit 202, the upgrading policy unit 205, and the management unit. 206 and transmitting unit 204.
管理单元 206用于管理和维护网络中的设备。  The management unit 206 is used to manage and maintain devices in the network.
接收单元 201接收用户设备 101发送的握手报文、 已开始升级的通知和 下载完成的通知等。 升级策略单元 205用于控制和管理关于各用户设备 101 的升级操作。 升 级策略单元 205 包括版本模块、 判断模块、 查找模块和计数模块。 升级策略 单元 205 可以为多个, 根据设备类型、 厂商、 产品型号、 区域等因素进行划 分。 The receiving unit 201 receives the handshake message sent by the user equipment 101, the notification that the upgrade has been started, the notification of the completion of the download, and the like. The upgrade policy unit 205 is used to control and manage the upgrade operation with respect to each user device 101. The upgrade policy unit 205 includes a version module, a determination module, a lookup module, and a counting module. The upgrade policy unit 205 can be multiple, and is divided according to factors such as device type, vendor, product model, and region.
其中, 版本模块将收到的版本号与存储的与该用户设备 101 对应的最新 版本号进行比较, 在比较结果不一致时确定需要升级; 判断模块判断当前是 否处于允许升级的时段, 若收到的是用户设备 101 在启动时发送的版本号, 那么还要判断是否允许该用户设备 101 在启动时升级; 在版本模块和判断模 块均确定允许升级时, 查找模块查询与最新版本号对应的文件服务器 104 , 并 根据预先制定的升级策略从查询到的文件服务器 104 中选择承载的用户设备 数量较少的文件服务器 104。计数模块在获知已用户设备 101开始升级的通知 时, 将选择的文件服务器 104对应的承载的用户设备数量加 1 , 以及在获知用 户设备 101下载完成时, 将选择的文件服务器 104对应的承载的用户设备数 量减 1。 计数模块也可以在发送单元 204向用户设备 101发送文件服务器 104 的信息时将该文件服务器 104对应的承载的用户设备数量加 1 ,本实施例提供 一种较佳的实现方式。  The version module compares the received version number with the stored latest version number corresponding to the user equipment 101, and determines that the upgrade is required when the comparison result is inconsistent; the determining module determines whether the current time period is allowed to be upgraded, if received It is the version number sent by the user equipment 101 at the time of startup, and then it is determined whether the user equipment 101 is allowed to be upgraded at startup; when both the version module and the judgment module determine that the upgrade is allowed, the search module queries the file server corresponding to the latest version number. 104. Select, from the queried file server 104, the file server 104 that has a small number of user equipments according to the pre-defined upgrade policy. When the notification module has notified that the user equipment 101 has started the upgrade, the number of the user equipments corresponding to the selected file server 104 is increased by one, and when the user equipment 101 is informed that the download of the user equipment 101 is completed, the selected file server 104 corresponds to the bearer. The number of user devices is reduced by 1. The counting module may also add 1 to the number of user equipments carried by the file server 104 when the sending unit 204 sends the information of the file server 104 to the user equipment 101. This embodiment provides a preferred implementation.
发送单元 204向用户设备 101发送升级策略单元 205所选择的文件服务 器 104的相关信息和最新版本号等。  The transmitting unit 204 transmits the related information of the file server 104 selected by the upgrade policy unit 205, the latest version number, and the like to the user device 101.
当接收到握手报文时,选择单元 202从握手报文中提取出该用户设备 101 的版本号, 并发送给升级策略单元 205 , 以及当升级策略单元 205为多个时, 根据该版本号和升级策略单元 205标识 (ID ) 的对应关系, 选择对应的升级 策略单元 205 , 并触发该对应的升级策略单元 205进行操作。  When receiving the handshake message, the selecting unit 202 extracts the version number of the user equipment 101 from the handshake message, and sends the version number to the upgrade policy unit 205, and when the upgrade policy unit 205 is multiple, according to the version number and The upgrade policy unit 205 identifies the corresponding relationship of the (ID), selects the corresponding upgrade policy unit 205, and triggers the corresponding upgrade policy unit 205 to perform operations.
网管服务器 102还包括存储单元 203 ,用于存储各用户设备 101与升级策 略服务器 103标识的对应关系, 以及升级策略单元 205的接口标识、 存储各 种用户设备 101的最新版本号, 各版本号与文件服务器 104标识的对应关系, 各文件服务器 104的信息, 各种用户设备 101允许升级的时段和允许启动时 升级的用户设备 101类型。 文件服务器 104的信息包括文件服务器 104的标 识、 IP地址、各版本文件的路径、应用的传输协议(如超文本传输协议( HTTP, Hypertext Transfer Protocol )、 文件传输协议 ( FTP, File Transfer Protocol )和 普通文件传输协议( TFTP, Trivial File Transfer Protocol )等)、 登录此文件服 务器 104的用户名和密码、 当前承载的用户设备数量和门限值等。 The network management server 102 further includes a storage unit 203, configured to store a correspondence between each user equipment 101 and the upgrade policy server 103, and an interface identifier of the upgrade policy unit 205, and store the latest version number of each user equipment 101, each version number and Correspondence identified by the file server 104, information of each file server 104, time period during which the various user devices 101 are allowed to be upgraded, and permission to start Upgraded user device 101 type. The information of the file server 104 includes the identifier of the file server 104, the IP address, the path of each version file, and the transmission protocol of the application (such as Hypertext Transfer Protocol (HTTP), File Transfer Protocol (FTP), and The file name and password of the file server 104, the number of user devices currently carried, and the threshold value, etc., are the normal file transfer protocol (TFTP, Trivial File Transfer Protocol).
参见图 3 , 为图 1A的本实施例通信系统中升级策略服务器的内部结构示 意图, 即本实施例中升级策略服务器 103包括接收单元 301、 策略单元 302和 发送单元 304。  Referring to FIG. 3, it is an internal structure of the upgrade policy server in the communication system of the embodiment of FIG. 1A. In this embodiment, the upgrade policy server 103 includes a receiving unit 301, a policy unit 302, and a sending unit 304.
接收单元 301接收网管服务器 102发送的用户设备 101的版本号及其它 信息, 以及接收用户设备 101发送的已开始升级的通知和下载完成的通知等。  The receiving unit 301 receives the version number and other information of the user equipment 101 sent by the network management server 102, and receives a notification that the user equipment 101 has started to upgrade and a notification that the download is completed.
策略单元 302用于控制和管理关于各用户设备 101 的升级操作。 策略单 元 302包括版本模块、 判断模块、 查找模块和计数模块。  The policy unit 302 is for controlling and managing the upgrade operation with respect to each user equipment 101. The policy unit 302 includes a version module, a determination module, a lookup module, and a counting module.
其中, 版本模块, 将收到的版本号与存储的与该用户设备 101 对应的最 新版本号进行比较, 在比较结果不一致时确定需要升级; 判断模块, 判断当 前是否处于允许升级的时段, 若收到的是用户设备 101 在启动时发送的版本 号, 那么还要判断是否允许该用户设备 101 在启动时升级; 在版本模块和判 断模块均确定允许升级时, 查找模块, 查询与最新版本号对应的文件服务器 104, 并根据预先制定的升级策略从查询到的文件服务器 104中选择承载的用 户设备数量较少的文件服务器 104。计数模块, 在获知已用户设备 101开始升 级的通知时, 将选择的文件服务器 104对应的承载的用户设备数量加 1 , 以及 在获知用户设备 101下载完成时, 将选择的文件服务器 104对应的承载的用 户设备数量减 1。计数模块也可以在发送单元 304向用户设备 101发送文件服 务器 104的信息时将该文件服务器 104对应的承载的用户设备数量加 1 ,本实 施例提供一种较佳的实现方式。  The version module compares the received version number with the stored latest version number corresponding to the user equipment 101, and determines that the upgrade is required when the comparison result is inconsistent; the determining module determines whether the current time period is allowed to be upgraded, if The version number sent by the user equipment 101 at the time of startup is determined, and then it is determined whether the user equipment 101 is allowed to be upgraded at startup; when both the version module and the judgment module determine that the upgrade is allowed, the search module is queried, and the query corresponds to the latest version number. The file server 104 selects the file server 104 with a small number of user devices from the queried file server 104 according to a pre-defined upgrade policy. The counting module adds 1 to the number of user devices carried by the selected file server 104 when the notification of the user device 101 starts to be upgraded, and the bearer corresponding to the selected file server 104 when the user device 101 is informed that the download is completed. The number of user devices is reduced by 1. The counting module may also add 1 to the number of user equipments carried by the file server 104 when the sending unit 304 sends the information of the file server 104 to the user equipment 101. This embodiment provides a preferred implementation.
发送单元 304将所述选择的文件服务器 104的信息和最新版本号发送给 用户设备 101。 升级策略服务器 103还包括存储单元 303 ,用于存储各种用户设备 101的 最新版本号、各版本号与文件服务器 104标识的对应关系、各文件服务器 104 的信息、各种用户设备 101允许升级的时段和允许启动时升级的用户设备 101 类型。 文件服务器 104的信息包括文件服务器 104的标识、 IP地址、 各版本 文件的路径、 应用的传输协议(如超文本传输协议(HTTP )、 文件传输协议 ( FTP )和普通文件传输协议 ( TFTP )等)、 登录此文件服务器 104的用户名 和密码、 当前承载的用户设备数量和门限值等。 The transmitting unit 304 transmits the information of the selected file server 104 and the latest version number to the user equipment 101. The upgrade policy server 103 further includes a storage unit 303 for storing the latest version numbers of the various user devices 101, the corresponding relationship between the version numbers and the file server 104, the information of each file server 104, and the various user devices 101 allowing the upgrade. The time period and the type of user device 101 that is allowed to be upgraded at startup. The information of the file server 104 includes the identifier of the file server 104, the IP address, the path of each version file, and the application transmission protocol (such as Hypertext Transfer Protocol (HTTP), File Transfer Protocol (FTP), and Common File Transfer Protocol (TFTP). ), the user name and password of the file server 104, the number of user devices currently carried, and threshold values.
参见图 4A, 本实施例中当在用户设备 101中内嵌升级策略时, 通信系统 包括至少一个用户设备 101和文件服务器 104。  Referring to FIG. 4A, when the upgrade policy is embedded in the user equipment 101 in this embodiment, the communication system includes at least one user equipment 101 and a file server 104.
文件服务器 104,存储有各版本文件和包括版本信息的文件。 文件服务器 104可以有多个, 根据设备类型、 厂商、 产品型号、 区域等因素进行划分。 一 个文件服务器 104可以只存储厂商 A生产的 A类型的 A型号设备与 A业务有 关的版本文件, 也可以存储所有的版本文件。  The file server 104 stores files of various versions and files including version information. There may be multiple file servers 104, which are divided according to factors such as device type, manufacturer, product model, and region. A file server 104 can store only version files of the A type A device produced by the manufacturer A in relation to the A service, and can also store all version files.
用户设备 101 在启动时或者定期从本地的配置文件中随机选择文件服务 器 104, 并根据记载的文件服务器信息连接到选择的文件服务器 104, 并下载 最新的版本信息(包括版本号和下载路径等)。 然后将下载的版本号与本地当 前使用的版本号进行比较, 当比较结果不一致时, 需要进行升级, 进一步根 据本地的配置信息判断当前是否处于允许升级的时段, 若在启动时下载的版 本信息, 则继续判断自身是否属于允许启动时升级的设备, 以及判断当前是 否有正在处理的业务, 若上述均符合升级的条件时,从选择的文件服务器 104 下载与最新版本号对应的版本文件并进行升级。 若用户设备 101 属于禁止启 动时升级的设备, 那么可以在初始配置该用户设备 101 时禁止其在启动时选 择文件服务器 104。  The user equipment 101 randomly selects the file server 104 from the local configuration file at startup or periodically, and connects to the selected file server 104 according to the recorded file server information, and downloads the latest version information (including the version number and the download path, etc.). . Then, the downloaded version number is compared with the version number currently used by the local device. When the comparison result is inconsistent, the upgrade is required. Further, according to the local configuration information, it is determined whether the current upgrade period is currently allowed. If the version information is downloaded at startup, Then, it is determined whether it is a device that is allowed to be upgraded at startup, and whether there is currently a service being processed. If the above conditions are all met, the version file corresponding to the latest version number is downloaded from the selected file server 104 and upgraded. . If the user device 101 belongs to a device that is prohibited from being upgraded at startup, the user device 101 may be initially configured to be disabled from selecting the file server 104 at startup.
本实施例中, 用户设备 101 内嵌升级策略时包括获取单元、 处理单元、 比较单元。 获取单元用于根据从本地的配置信息中随机选择文件服务器的标 识, 从所述选择的文件服务器获得最新版本信息。 比较单元, 用于将获得的最新版本信息与本地的版本信息进行比较, 在 确定用户设备的版本低于所述最新版本的情况下, 通知所述获取单元从所述 文件服务器获得最新版本文件。 In this embodiment, when the user equipment 101 embeds the upgrade policy, the acquiring unit, the processing unit, and the comparing unit are included. The obtaining unit is configured to obtain the latest version information from the selected file server according to the identifier of the file server randomly selected from the local configuration information. And a comparing unit, configured to compare the obtained latest version information with local version information, and notify the obtaining unit to obtain the latest version file from the file server if it is determined that the version of the user device is lower than the latest version.
处理单元, 用于根据最新版本文件进行升级。  Processing unit, used to upgrade according to the latest version file.
可选的, 参见图 4B, 本实施例中用户设备 101内嵌升级策略时包括接收 单元 401、 选择单元 402、 处理单元 404、 比较单元 406和发送单元 405。 比 较单元 406将本地的版本号与接收到的版本信息中的最新版本号进行比较, 当比较结果不一致时, 需要进行升级, 进一步判断当前是否处于允许升级的 时段, 若在启动时下载的版本信息, 则继续判断自身是否属于允许启动时升 级的设备, 以及判断当前是否有正在使用的业务, 若上述均符合升级的条件 时, 指示发送单元 405向选择的文件服务器 104发送获取版本文件的请求。  Optionally, referring to FIG. 4B, when the user equipment 101 embeds the upgrade policy in this embodiment, the receiving unit 401, the selecting unit 402, the processing unit 404, the comparing unit 406, and the sending unit 405 are included. The comparison unit 406 compares the local version number with the latest version number in the received version information. When the comparison result is inconsistent, an upgrade is needed to further determine whether the current upgrade period is currently allowed, and if the version information is downloaded at startup. Then, it continues to determine whether it belongs to the device that is allowed to be upgraded at the time of startup, and judges whether there is currently a service in use. If the above all meet the conditions of the upgrade, the instruction transmitting unit 405 sends a request for obtaining the version file to the selected file server 104.
接收单元 401接收文件服务器 104发送的版本信息和版本文件。  The receiving unit 401 receives the version information and the version file transmitted by the file server 104.
处理单元 404根据收到的版本文件进行升级。  Processing unit 404 upgrades based on the received version file.
发送单元 405根据选择的文件服务器 104的标识, 向选择的文件服务器 104发送获取版本信息的请求和获取版本文件的请求。  The transmitting unit 405 transmits a request for obtaining version information and a request for obtaining a version file to the selected file server 104 in accordance with the identification of the selected file server 104.
其中, 选择单元 402启动时或者定期从文件服务器 104的标识列表中选 择文件服务器 104 ,指示发送单元 405根据文件服务器 104的地址向选择的文 件服务器 104发送获取版本信息的请求。  The selection unit 402 selects the file server 104 from the identification list of the file server 104 when it starts, and instructs the sending unit 405 to send a request for obtaining the version information to the selected file server 104 according to the address of the file server 104.
用户设备 101还包括存储单元 403 , 用于存储配置文件, 配置文件包括版 本号、 允许升级的时段、 该用户设备 101 是否可以在启动时升级、 文件服务 器 104的标识列表和文件服务器 104的地址等。  The user equipment 101 further includes a storage unit 403 for storing a configuration file including a version number, a time period for allowing the upgrade, whether the user device 101 can be upgraded at startup, an identifier list of the file server 104, and an address of the file server 104, and the like. .
参见图 5 ,本实施例中使用户设备 101从负载率较低的文件服务器 104下 载版本文件的升级设备的方法流程如下:  Referring to FIG. 5, in the embodiment, the method for downloading the user equipment 101 from the file server 104 with a lower load rate to download the version file is as follows:
步骤 501 :用户设备 101在启动时或者定期向网管服务器 102发送握手报 文, 该 ^艮文包括版本号。  Step 501: The user equipment 101 sends a handshake message to the network management server 102 at startup or periodically, and the message includes a version number.
步骤 502: 网管服务器 102从收到的握手报文中提取出版本号,从本地的 升级策略服务器 103列表中选择负责该用户设备 101升级的升级策略服务器 103 , 将版本号和用户设备 101的信息发送给对应的升级策略服务器 103。 例 如,根据区域划分升级策略服务器 103 , 网管服务器 102发现用户设备 101处 于 A区, 那么从升级策略服务器 103列表中选择负责 A区的升级策略服务器 103。 若存在多个升级策略服务器 103负责 A区, 那么可进一步根据设备类型 进行划分, 网管服务器 102发现用户设备 101为 A类型, 则从负责 A区的多 个升级策略服务器 103中选择负责 A类型的升级策略服务器 103。 Step 502: The network management server 102 extracts the version number from the received handshake message, and obtains the version number from the local The upgrade policy server 103 that is responsible for the upgrade of the user equipment 101 is selected in the list of the upgrade policy server 103, and the version number and the information of the user equipment 101 are sent to the corresponding upgrade policy server 103. For example, according to the zoning upgrade policy server 103, the network management server 102 finds that the user equipment 101 is in the A zone, and then selects the upgrade policy server 103 responsible for the A zone from the list of the upgrade policy server 103. If there are multiple upgrade policy servers 103 that are responsible for the A zone, the network management server 102 can be further classified according to the device type. The network management server 102 finds that the user equipment 101 is of the A type, and then selects the A type of the plurality of upgrade policy servers 103 that are responsible for the A zone. Upgrade the policy server 103.
步骤 503:升级策略服务器 103将收到的版本号与本地的最新版本号进行 比较, 若比较结果一致, 则结束升级流程, 可进一步向用户设备 101 发送如 "已是最新版本" 的通知, 否则继续步骤 504。  Step 503: The upgrade policy server 103 compares the received version number with the latest version number of the locality. If the comparison result is consistent, the upgrade process is terminated, and the notification that the "already the latest version" is further sent to the user device 101, otherwise Proceed to step 504.
步骤 504:升级策略服务器 103从本地的文件服务器 104列表中查询存有 最新版本文件的文件服务器 104 , 从中选择负载率较低的文件服务器 104 , 具 体方法为: 计算出各文件服务器所承载的用户设备数量与其门限值的比值。 从各比值中选择最小的比值, 并在判断最小比值小于 1 时, 将最小的比值所 对应的文件服务器 104的信息和最新版本号发送给用户设备 101 ,使用户设备 101可以连接到文件服务器 104。 或者, 升级策略服务器 103为承载的用户设 备数量低于门限值的文件服务器 104 求出承载的用户设备数量与其门限值的 比值, 选择最小的比值所对应的文件服务器 104, 并将该文件服务器 104的信 息和最新版本号发送给用户设备 101。升级策略服务器 103发现所有的文件服 务器 104 所承载的用户设备数量均达到门限值时, 结束升级流程, 可进一步 向用户设备 101发送如 "暂时无法升级" 的通知。  Step 504: The upgrade policy server 103 queries the file server 104 that stores the latest version file from the list of local file servers 104, and selects the file server 104 with a lower load rate. The specific method is as follows: Calculate the users carried by the file servers. The ratio of the number of devices to their threshold. The smallest ratio is selected from each ratio, and when it is determined that the minimum ratio is less than 1, the information of the file server 104 corresponding to the smallest ratio and the latest version number are sent to the user equipment 101, so that the user equipment 101 can connect to the file server 104. . Alternatively, the upgrade policy server 103 determines the ratio of the number of user equipments carried by the file server 104 whose number of user equipments is lower than the threshold value to the threshold value, selects the file server 104 corresponding to the smallest ratio, and selects the file. The information of the server 104 and the latest version number are transmitted to the user device 101. When the upgrade policy server 103 finds that the number of user equipments carried by all the file servers 104 reaches the threshold, the upgrade process is terminated, and the notification of "temporarily unable to upgrade" can be further sent to the user equipment 101.
步骤 505:用户设备 101根据收到的文件服务器 104的信息与该文件服务 器 104建立连接, 并根据收到的最新版本号和文件服务器 104的信息下载最 新版本文件, 同时通知升级策略服务器 103已开始升级。  Step 505: The user equipment 101 establishes a connection with the file server 104 according to the received information of the file server 104, and downloads the latest version file according to the latest version number received and the information of the file server 104, and notifies that the upgrade policy server 103 has started. upgrade.
例如, 升级策略服务器 103向用户设备 101发送文件服务器 104的 IP地 址、 版本文件的存储路径、 登录时的用户名和密码。 用户设备 101 根据上述 信息登录到文件服务器 104。 或者, 由于所有的文件服务器 104均使用相同的 用户名和密码, 并且此信息已记载在用户设备 101 的配置文件中, 那么升级 策略服务器 103向用户设备 101只需要发送文件服务器 104的 IP地址和版本 文件的存储路径。 For example, the upgrade policy server 103 transmits the IP address of the file server 104, the storage path of the version file, the user name and password at the time of login to the user device 101. User equipment 101 according to the above The information is logged into the file server 104. Alternatively, since all file servers 104 use the same username and password, and this information is already recorded in the configuration file of the user device 101, the upgrade policy server 103 only needs to send the IP address and version of the file server 104 to the user device 101. The storage path of the file.
步骤 506: 升级策略服务器 103收到已开始升级的通知后, 更新本地关于 文件服务器 104的信息,将选择的文件服务器 104所承载的用户设备数量加 1。  Step 506: After receiving the notification that the upgrade has been started, the upgrade policy server 103 updates the local information about the file server 104, and increases the number of user equipments carried by the selected file server 104 by one.
步骤 507: 用户设备 101在下载完毕后, 通知升级策略服务器 103已下载 完成, 同时根据下载的最新版本文件进行升级。  Step 507: After the downloading is completed, the user equipment 101 notifies the upgrade policy server 103 that the download is completed, and upgrades according to the latest version file downloaded.
或者, 用户设备 101通过网管服务器 102与升级策略服务器 103进行交 互, 用户设备 101通知网管服务器 102已下载完成, 由网管服务器 102将该 通知转发给相应的升级策略服务器 103。  Alternatively, the user equipment 101 interacts with the upgrade policy server 103 through the network management server 102, and the user equipment 101 notifies the network management server 102 that the download is completed, and the network management server 102 forwards the notification to the corresponding upgrade policy server 103.
步骤 508: 升级策略服务器 103收到已下载完成的通知后, 更新本地关于 文件服务器 104的信息,将选择的文件服务器 104所承载的用户设备数量减 1。  Step 508: After receiving the notification that the download is completed, the upgrade policy server 103 updates the local information about the file server 104, and decrements the number of user equipments carried by the selected file server 104 by one.
在上述方法中, 升级策略服务器 103 可以将承载的用户设备数量未达到 门限值的多个文件服务器 104的信息发送给用户设备 101 ,由用户设备 101从 多个文件服务器 104中随机选择文件服务器 104下载最新版本文件, 并在通 知升级策略服务器 103开始下载时将选择的文件服务器 104的标识发送给升 级策略服务器 103。升级策略服务器 103根据收到的标识将相应的文件服务器 104承载的用户设备数量加 1。  In the above method, the upgrade policy server 103 may send information of the plurality of file servers 104 that do not reach the threshold value to the user equipment 101, and the user equipment 101 randomly selects the file server from the plurality of file servers 104. 104 downloads the latest version file, and transmits the identifier of the selected file server 104 to the upgrade policy server 103 when notifying the upgrade policy server 103 to start downloading. The upgrade policy server 103 increments the number of user devices carried by the corresponding file server 104 by one based on the received identifier.
若升级策略服务器 103归属于网管服务器 102,即网管服务器 102包含升 级策略单元 205 , 则在上述方法中, 网管服务器 102中的选择单元 202从收到 的握手报文中提取出版本号, 从本地的升级策略列单元 205表中选择负责该 用户设备 101升级的升级策略单元 205 ,将版本号和用户设备 101的信息发送 给升级策略单元 205 , 然后由升级策略单元 205决定用户设备 101是否升级。 用户设备 101将已开始下载等通知发送给网管服务器 102, 由网管服务器 102 中的接收单元将各通知传送给升级策略单元 205 ,或者经由选择单元 202传送 给升级策略单元 205。 If the upgrade policy server 103 belongs to the network management server 102, that is, the network management server 102 includes the upgrade policy unit 205, in the above method, the selection unit 202 in the network management server 102 extracts the version number from the received handshake message, and locally The upgrade policy column unit 205 selects the upgrade policy unit 205 responsible for the upgrade of the user equipment 101, and sends the version number and the information of the user equipment 101 to the upgrade policy unit 205, and then the upgrade policy unit 205 determines whether the user equipment 101 is upgraded. The user equipment 101 sends a notification that the download has been started to the network management server 102, and the notification is transmitted to the upgrade policy unit 205 by the receiving unit in the network management server 102, or is transmitted via the selection unit 202. The upgrade policy unit 205 is given.
对于某些业务, 用户在启动用户设备 101 时立刻使用的可能性较大, 如 基于 IP的语音传输(Voice over IP, VOIP )业务, 那么就需要限制或禁止支 持 VOIP业务的用户设备 101在启动时升级。  For some services, the user is more likely to use the user equipment 101 immediately, such as voice over IP (VOIP) service, then the user equipment 101 supporting the VOIP service needs to be restricted or disabled. Upgrade when.
参见图 6,本实施例中用户设备 101在启动时进行升级设备的方法流程如 下:  Referring to FIG. 6, the method for upgrading the device by the user equipment 101 at the time of startup is as follows:
步骤 601 : 用户设备 101在启动时向网管服务器 102发送握手报文, 该报 文包括版本号。  Step 601: The user equipment 101 sends a handshake message to the network management server 102 at startup, and the message includes a version number.
步骤 602: 网管服务器 102从收到的握手报文中提取出版本号,从本地的 升级策略服务器 103列表中选择负责该用户设备 101升级的升级策略服务器 103 , 将版本号和用户设备 101的信息发送给升级策略服务器 103。  Step 602: The network management server 102 extracts the version number from the received handshake message, selects the upgrade policy server 103 responsible for the upgrade of the user equipment 101 from the list of the local upgrade policy server 103, and sets the version number and the information of the user equipment 101. Sent to the upgrade policy server 103.
步骤 603:升级策略服务器 103将收到的版本号与本地的最新版本号进行 比较, 若比较结果一致, 则结束升级流程, 可进一步向用户设备 101 发送如 "已是最新版本" 的通知, 否则继续步骤 604。  Step 603: The upgrade policy server 103 compares the received version number with the latest version number of the locality. If the comparison result is consistent, the upgrade process is ended, and the notification that the "already the latest version" is further sent to the user device 101, otherwise Proceed to step 604.
步骤 604:升级策略服务器 103判断该用户设备 101是否属于允许启动时 升级的设备。 升级策略服务器 103 中存有允许启动时升级的设备类型列表或 者存有禁止启动时升级的设备类型列表。 升级策略服务器 103 可根据版本号 或者用户设备 101的信息获知用户设备 101的类型, 判断用户设备 101的类 型是否属于设备类型列表所记载的类型即可判断出该用户设备 101 是否属于 允许启动时升级的设备。 若是, 则继续步骤 605, 否则结束升级流程, 可进一 步向用户设备 101发送如 "暂时无法升级" 的通知, 用户设备 101收到该通 知后, 可以在启动完成后定期向网管服务器 102发送带有版本号的握手报文。  Step 604: The upgrade policy server 103 determines whether the user equipment 101 belongs to a device that is allowed to be upgraded at startup. The upgrade policy server 103 contains a list of device types that are allowed to be upgraded at startup or a list of device types that are prohibited from being upgraded at startup. The upgrade policy server 103 can learn the type of the user device 101 according to the version number or the information of the user device 101, and determine whether the type of the user device 101 belongs to the type described in the device type list, and can determine whether the user device 101 belongs to the upgrade when the device is allowed to be started. device of. If yes, proceed to step 605. Otherwise, the upgrade process is terminated, and the notification of "temporarily unable to upgrade" may be further sent to the user equipment 101. After receiving the notification, the user equipment 101 may periodically send the network management server 102 with the notification after the startup is completed. The handshake number of the version number.
步骤 605:升级策略服务器 103从本地的文件服务器 104列表中查询存有 最新版本文件的文件服务器 104, 从中选择一个文件服务器 104, 并将该文件 服务器 104的信息和最新版本信息发送给用户设备 101。  Step 605: The upgrade policy server 103 queries the file server 104 storing the latest version file from the local file server 104 list, selects a file server 104 from the file server 104, and sends the information and the latest version information of the file server 104 to the user device 101. .
步骤 606:用户设备 101根据收到的文件服务器 104的信息与该文件服务 器 104建立连接, 并根据收到的最新版本号和文件服务器 104的信息下载最 新版本文件。 Step 606: The user equipment 101 according to the received information of the file server 104 and the file service The device 104 establishes a connection and downloads the latest version file based on the latest version number received and the information of the file server 104.
上述流程中, 步骤 603和步骤 604的顺序可以互换。  In the above process, the order of step 603 and step 604 can be interchanged.
各用户设备 101通常在上午 6点到 9点启动, 应用本实施例, 禁止部分 用户设备 101在启动时升级, 也可以减轻文件服务器 104的负载, 并且緩解 网络带宽的占用, 实现提高升级的成功率。  Each of the user equipments 101 is usually started at 6 am to 9 am. In this embodiment, part of the user equipment 101 is prohibited from being upgraded at the time of startup, and the load of the file server 104 is also alleviated, and the occupation of the network bandwidth is alleviated, thereby improving the success of the upgrade. rate.
大多数用户可能在某固定时间段内使用某业务, 如经常从晚上 7点至 11 点使用网络电视 ( IPTV, Internet Protocol Television )业务, 那么就需要限制 或禁止支持 IPTV业务的用户设备 101 在该时间段内进行设备升级或者关于 IPTV业务的升级。 或者, 例如各用户设备 101从早 9点到晚 11点被频繁使 用, (通常将该时间段称为忙时), 网络资源占用较多, 此时网络侧可能无法 提供足够的资源用于用户设备 101 的升级, 那么就需要限制或禁止用户设备 101在该时间段内进行设备升级。  Most users may use a certain service for a fixed period of time. For example, if IPTV (Internet Protocol Television) service is frequently used from 7:00 to 11:00, the user equipment 101 supporting the IPTV service needs to be restricted or prohibited. Upgrade the device or upgrade the IPTV service during the time period. Or, for example, each user equipment 101 is frequently used from 9:00 am to 11:00 pm (usually referred to as busy time), and network resources are occupied more. At this time, the network side may not provide sufficient resources for the user. The upgrade of the device 101 requires that the user device 101 be restricted or prohibited from performing device upgrades during the time period.
参见图 7 ,本实施例中使用户设备 101在闲时进行升级设备的方法流程如 下:  Referring to FIG. 7, in the embodiment, the method for the user equipment 101 to upgrade the device during idle time is as follows:
步骤 701 :用户设备 101在启动时或者定期向网管服务器 102发送握手报 文, 该 ^艮文包括版本号。  Step 701: The user equipment 101 sends a handshake message to the network management server 102 at startup or periodically, and the message includes the version number.
步骤 702: 网管服务器 102从收到的握手报文中提取出版本号,从本地的 升级策略服务器 103列表中选择负责该用户设备 101升级的升级策略服务器 103 , 将版本号和用户设备 101的信息发送给升级策略服务器 103。  Step 702: The network management server 102 extracts the version number from the received handshake message, selects the upgrade policy server 103 responsible for the user equipment 101 upgrade from the list of the local upgrade policy server 103, and sets the version number and the information of the user equipment 101. Sent to the upgrade policy server 103.
步骤 703:升级策略服务器 103将收到的版本号与本地的最新版本号进行 比较, 若比较结果一致, 则结束升级流程, 可进一步向用户设备 101 发送如 "已是最新版本" 的通知, 否则继续步骤 704。  Step 703: The upgrade policy server 103 compares the received version number with the latest version number of the locality. If the comparison result is consistent, the upgrade process is ended, and the notification that the "already the latest version" is further sent to the user equipment 101, otherwise Proceed to step 704.
步骤 704: 升级策略服务器 103 判断当前时间是否属于允许该用户设备 101升级的时间段, 若是, 则继续步骤 705 , 否则结束升级流程, 可进一步向 用户设备 101 发送如 "暂时无法升级" 的通知。 可以根据设备类型、 厂商、 产品型号等因素为各用户设备 101 设定不同的允许升级的时间段, 例如, 规 定 A厂商的用户设备 101在 8点到 10点间升级,Β厂商的用户设备 101在 10 点到 12点间升级, 也可以实现均衡文件服务器 104的负载, 緩解对网络带宽 的占用。 Step 704: The upgrade policy server 103 determines whether the current time belongs to the time period for allowing the user equipment 101 to be upgraded. If yes, proceed to step 705. Otherwise, the upgrade process is ended, and the notification of "temporarily unable to upgrade" may be further sent to the user equipment 101. Can be based on device type, manufacturer, The product model and other factors set different time periods for each user equipment 101 to allow the upgrade. For example, the user equipment 101 of the manufacturer A is specified to be upgraded between 8:00 and 10:00, and the user equipment 101 of the manufacturer is between 10:00 and 12:00. The upgrade can also balance the load of the file server 104, and alleviate the occupation of the network bandwidth.
步骤 705:升级策略服务器 103从本地的文件服务器 104列表中查询存有 最新版本文件的文件服务器 104 , 从中选择一个文件服务器 104 , 并将该文件 服务器 104的信息和最新版本信息发送给用户设备 101。  Step 705: The upgrade policy server 103 queries the file server 104 storing the latest version file from the local file server 104 list, selects a file server 104 from the file server 104, and sends the information and the latest version information of the file server 104 to the user device 101. .
步骤 706:用户设备 101根据收到的文件服务器 104的信息与该文件服务 器 104建立连接, 并根据收到的最新版本号和文件服务器 104的信息下载最 新版本文件。  Step 706: The user equipment 101 establishes a connection with the file server 104 according to the received information of the file server 104, and downloads the latest version file according to the latest version number received and the information of the file server 104.
上述流程中, 步骤 703和步骤 704的顺序可以互换。  In the above process, the order of step 703 and step 704 can be interchanged.
参见图 8Α, 本实施例中将上述三种方法结合的一种较佳的升级设备的方 法流程如下:  Referring to FIG. 8A, the method for a preferred upgrade device combining the above three methods in this embodiment is as follows:
步骤 801 :用户设备 101在启动时或者定期向网管服务器 102发送握手报 文, 该 ^艮文包括版本号。  Step 801: The user equipment 101 sends a handshake message to the network management server 102 at startup or periodically, and the message includes the version number.
步骤 802: 网管服务器 102从收到的握手报文中提取出版本号,从本地的 升级策略服务器 103列表中选择负责该用户设备 101升级的升级策略服务器 103 , 将版本号和用户设备 101的信息发送给升级策略服务器 103。  Step 802: The network management server 102 extracts the version number from the received handshake message, selects the upgrade policy server 103 responsible for the user equipment 101 upgrade from the list of the local upgrade policy server 103, and sets the version number and the information of the user equipment 101. Sent to the upgrade policy server 103.
步骤 803:升级策略服务器 103将收到的版本号与本地的最新版本号进行 比较, 若比较结果一致, 则结束升级流程, 可进一步向用户设备 101 发送如 "已是最新版本" 的通知, 否则继续步骤 804。  Step 803: The upgrade policy server 103 compares the received version number with the latest version number of the locality. If the comparison result is consistent, the upgrade process is ended, and the notification that the "already the latest version" is further sent to the user device 101, otherwise Continue to step 804.
步骤 804:升级策略服务器 103收到用户设备 101在启动时发送的版本号 时, 判断该用户设备 101 是否属于允许启动时升级的设备, 若是, 则继续步 骤 805 ,否则结束升级流程,可进一步向用户设备 101发送如 "暂时无法升级" 的通知。  Step 804: When the upgrade policy server 103 receives the version number sent by the user equipment 101 at the time of startup, it is determined whether the user equipment 101 belongs to the device that is allowed to be upgraded, and if yes, proceed to step 805; otherwise, the upgrade process is terminated, and the The user device 101 sends a notification such as "temporarily unable to upgrade".
步骤 805: 升级策略服务器 103 判断当前时间是否属于允许该用户设备 101升级的时间段, 若是, 则继续步骤 806, 否则结束升级流程, 可进一步向 用户设备 101发送如 "暂时无法升级" 的通知。 Step 805: The upgrade policy server 103 determines whether the current time belongs to the user equipment. The time period of the 101 upgrade, if yes, proceed to step 806, otherwise the upgrade process is terminated, and the notification of "temporarily unable to upgrade" may be further sent to the user equipment 101.
步骤 806:升级策略服务器 103从本地的文件服务器 104列表中查询存有 最新版本文件的文件服务器 104 , 从中选择负载率较低的文件服务器 104 , 并 将该文件服务器 104的信息和最新版本号发送给用户设备 101。升级策略服务 器 103发现所有的文件服务器 104所承载的用户设备数量均达到门限值时, 结束升级流程, 可进一步向用户设备 101发送如 "暂时无法升级" 的通知。  Step 806: The upgrade policy server 103 queries the file server 104 storing the latest version file from the local file server 104 list, selects the file server 104 with a lower load rate, and sends the information of the file server 104 and the latest version number. User equipment 101 is provided. When the upgrade policy server 103 finds that the number of user equipments carried by all the file servers 104 reaches the threshold, the upgrade process is terminated, and the notification of "temporarily unable to upgrade" can be further sent to the user equipment 101.
步骤 807:用户设备 101根据收到的文件服务器 104的信息与该文件服务 器 104建立连接, 并根据收到的最新版本号和文件服务器 104的信息下载最 新版本文件, 同时通知升级策略服务器 103已开始升级。  Step 807: The user equipment 101 establishes a connection with the file server 104 according to the received information of the file server 104, and downloads the latest version file according to the latest version number received and the information of the file server 104, and notifies that the upgrade policy server 103 has started. upgrade.
用户设备 101可以在收到文件服务器 104的信息时, 判断自身是否有正 在运行的业务, 例如通话业务等, 若有, 则暂停升级, 可以在业务结束后继 续升级流程, 提示用户可以升级, 否则, 提示用户可以升级, 或者直接与文 件服务器 104建立连接, 继续升级流程。 如果用户确认可以升级或者在一定 时间内用户未取消升级, 则启动升级, 否则结束流程, 或者在一段时间后再 次提示用户可以升级。  When receiving the information of the file server 104, the user equipment 101 may determine whether it has a running service, such as a call service, and if so, suspend the upgrade, and may continue the upgrade process after the service ends, prompting the user to upgrade, otherwise The user is prompted to upgrade, or directly establish a connection with the file server 104 to continue the upgrade process. If the user confirms that the upgrade is possible or the user does not cancel the upgrade within a certain period of time, the upgrade is started. Otherwise, the process ends, or the user is prompted to upgrade again after a period of time.
步骤 808: 升级策略服务器 103收到已开始升级的通知后, 将选择的文件 服务器 104所承载的用户设备数量加 1。  Step 808: After receiving the notification that the upgrade has been started, the upgrade policy server 103 increases the number of user equipments carried by the selected file server 104 by one.
步骤 809: 用户设备 101在下载完毕后, 通知升级策略服务器 103已下载 完成, 同时根据下载的最新版本文件进行升级。 用户设备 101 在升级完成后 进行重启, 新版本文件生效。  Step 809: After the download is completed, the user equipment 101 notifies the upgrade policy server 103 that the download is completed, and upgrades according to the latest version file downloaded. User device 101 restarts after the upgrade is complete, and the new version file takes effect.
步骤 810: 升级策略服务器 103收到已下载完成的通知后, 将选择的文件 服务器 104所承载的用户设备数量减 1。  Step 810: After receiving the notification that the download is completed, the upgrade policy server 103 decrements the number of user equipments carried by the selected file server 104 by one.
上述流程中, 步骤 803、 步骤 804和步骤 805之间的顺序可以互换。 上述实施例介绍了升级策略服务器 103作为一个独立实体作升级策略时 升级设备的实现方式, 下面简要介绍由网管服务器 102作升级策略时升级设 备的实现方式, 参见图 8B所示。 In the above process, the order between step 803, step 804 and step 805 can be interchanged. The foregoing embodiment describes how to upgrade the device when the upgrade policy server 103 is used as an independent entity for the upgrade policy. The following describes the upgrade when the network management server 102 is used as the upgrade policy. The implementation of the backup, see Figure 8B.
步骤 811 :用户设备 101在启动时或者定期向网管服务器 102发送握手报 文, 该 ^艮文包括版本号。  Step 811: The user equipment 101 sends a handshake message to the network management server 102 at startup or periodically, and the message includes the version number.
步骤 812: 网管服务器 102从收到的握手报文中提取出版本号。  Step 812: The network management server 102 extracts the version number from the received handshake message.
步骤 813: 网管服务器 102将版本号与本地的最新版本号进行比较, 若比 较结果一致, 则结束升级流程, 可进一步向用户设备 101 发送如 "已是最新 版本" 的通知, 否则继续步骤 804。  Step 813: The network management server 102 compares the version number with the latest version number of the locality. If the comparison result is consistent, the upgrade process is terminated, and the notification that the "already the latest version" is further sent to the user equipment 101, otherwise the process proceeds to step 804.
步骤 814: 网管服务器 102收到用户设备 101在启动时发送的版本号时, 判断该用户设备 101是否属于允许启动时升级的设备,若是,则继续步骤 815 , 否则结束升级流程, 可进一步向用户设备 101 发送如 "暂时无法升级" 的通 知。  Step 814: When receiving the version number sent by the user equipment 101 at the time of startup, the network management server 102 determines whether the user equipment 101 belongs to the device that is allowed to be upgraded at startup, and if yes, proceeds to step 815; otherwise, the upgrade process is terminated, and the user may further proceed to the user. The device 101 sends a notification such as "temporarily unable to upgrade".
步骤 815: 网管服务器 102判断当前时间是否属于允许该用户设备 101升 级的时间段, 若是, 则继续步骤 816, 否则结束升级流程, 可进一步向用户设 备 101发送如 "暂时无法升级" 的通知。  Step 815: The network management server 102 determines whether the current time belongs to a time period for allowing the user equipment 101 to be upgraded. If yes, the process proceeds to step 816. Otherwise, the upgrade process is terminated, and the notification that the user device 101 is temporarily unable to upgrade may be further sent.
步骤 816: 网管服务器 102从本地的文件服务器 104列表中查询存有最新 版本文件的文件服务器 104 , 从中选择负载率较低的文件服务器 104, 并将该 文件服务器 104 的信息和最新版本号发送给用户设备 101。 升级策略服务器 103发现所有的文件服务器 104所承载的用户设备数量均达到门限值时,结束 升级流程, 可进一步向用户设备 101发送如 "暂时无法升级" 的通知。  Step 816: The network management server 102 queries the file server 104 storing the latest version file from the local file server 104 list, selects the file server 104 with a lower load rate, and sends the information and the latest version number of the file server 104 to the file server 104. User equipment 101. When the upgrade policy server 103 finds that the number of user equipments carried by all the file servers 104 reaches the threshold, the upgrade process is terminated, and the notification of "temporarily unable to upgrade" can be further sent to the user equipment 101.
步骤 817:用户设备 101根据收到的文件服务器 104的信息与该文件服务 器 104建立连接, 并根据收到的最新版本号和文件服务器 104的信息下载最 新版本文件, 同时通知升级策略服务器 103已开始升级。  Step 817: The user equipment 101 establishes a connection with the file server 104 according to the received information of the file server 104, and downloads the latest version file according to the latest version number received and the information of the file server 104, and notifies that the upgrade policy server 103 has started. upgrade.
用户设备 101可以在收到文件服务器 104的信息时, 判断自身是否有正 在运行的业务, 例如通话业务等, 若有, 则暂停升级, 可以在业务结束后继 续升级流程, 提示用户可以升级, 否则, 提示用户可以升级, 或者直接与文 件服务器 104建立连接, 继续升级流程。 如果用户确认可以升级或者在一定 时间内用户未取消升级, 则启动升级, 否则结束流程, 或者在一段时间后再 次提示用户可以升级。 When receiving the information of the file server 104, the user equipment 101 may determine whether it has a running service, such as a call service, and if so, suspend the upgrade, and may continue the upgrade process after the service ends, prompting the user to upgrade, otherwise The user is prompted to upgrade, or directly establish a connection with the file server 104 to continue the upgrade process. If the user confirms that it can be upgraded or is certain If the user does not cancel the upgrade within the time, the upgrade is started. Otherwise, the process ends, or the user is prompted to upgrade again after a period of time.
步骤 818: 网管服务器 102收到已开始升级的通知后, 将选择的文件服务 器 104所承载的用户设备数量加 1。  Step 818: After receiving the notification that the upgrade has been started, the network management server 102 increases the number of user equipments carried by the selected file server 104 by one.
步骤 819:用户设备 101在下载完毕后,通知网管服务器 102已下载完成, 同时根据下载的最新版本文件进行升级。 用户设备 101 在升级完成后进行重 启, 新版本文件生效。  Step 819: After the downloading is completed, the user equipment 101 notifies the network management server 102 that the download is completed, and upgrades according to the latest version file downloaded. User device 101 restarts after the upgrade is complete, and the new version file takes effect.
步骤 820: 网管服务器 102收到已下载完成的通知后, 将选择的文件服务 器 104所承载的用户设备数量减 1。  Step 820: After receiving the notification that the download is completed, the network management server 102 reduces the number of user equipments carried by the selected file server 104 by one.
参见图 9,本实施例中在用户设备 101中内嵌升级策略的升级设备的方法 流程如下:  Referring to FIG. 9, the method for upgrading an upgrade device in the user equipment 101 in this embodiment is as follows:
步骤 901 :用户设备 101在启动时或者定期查询本地的配置文件中的文件 服务器 104列表, 从中随机选择文件服务器 104。  Step 901: The user equipment 101 queries the list of file servers 104 in the local configuration file at startup or periodically, and randomly selects the file server 104 therefrom.
步骤 902: 用户设备 101进一步从配置文件中获得选择的文件服务器 104 的信息, 根据该信息连接到文件服务器 104, 下载包含最新版本号的文件。  Step 902: The user equipment 101 further obtains the information of the selected file server 104 from the configuration file, and according to the information, connects to the file server 104 to download the file containing the latest version number.
步骤 903: 用户设备 101将本地的版本号与收到的最新版本号进行比较, 若比较结果一致, 则结束升级流程, 否则继续步骤 904。  Step 903: The user equipment 101 compares the local version number with the latest version number received. If the comparison result is consistent, the upgrade process ends, otherwise step 904 is continued.
步骤 904:用户设备 101根据本地的配置信息判断自身是否属于允许启动 时升级的设备, 若是, 则继续步骤 905 , 否则结束升级流程。  Step 904: The user equipment 101 determines, according to the local configuration information, whether it belongs to the device that is allowed to be upgraded at startup, and if yes, proceeds to step 905; otherwise, the upgrade process ends.
步骤 905:用户设备 101判断当前时间是否属于本地配置信息记载的允许 升级的时间段, 若是, 则继续步骤 906, 否则结束升级流程; 或者判断当前时 间是否属于本地配置信息记载的禁止升级的时间段, 若是, 则结束升级流程, 否则继续步骤 906。  Step 905: The user equipment 101 determines whether the current time belongs to the time period allowed for the upgrade described in the local configuration information, and if yes, proceeds to step 906, otherwise, the upgrade process is ended; or whether the current time belongs to the time period for which the upgrade is prohibited in the local configuration information. If yes, the upgrade process is ended, otherwise step 906 is continued.
步骤 906: 用户设备 101从选择的文件服务器 104下载最新版本文件, 并 进行升级。  Step 906: The user device 101 downloads the latest version file from the selected file server 104 and performs an upgrade.
用户设备 101 可以在判断出允许在启动时升级和当前为允许升级的时间 时查询配置文件, 并随机选择文件服务器 104。 The user equipment 101 can determine the time allowed to be upgraded at startup and currently allowed to be upgraded. The configuration file is queried and the file server 104 is randomly selected.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步 骤, 是可以通过程序指令相关硬件完成的。 实施例对应的软件可以存储在一 个计算机可存储读取的介质中, 如 R0M/RAM、 磁碟、 光盘等。  One of ordinary skill in the art will appreciate that all or part of the steps in implementing the above-described embodiments can be accomplished by program-related hardware. The software corresponding to the embodiment can be stored in a computer readable storage medium such as ROM/RAM, disk, optical disk, and the like.
本实施例中网络侧在决定用户设备需要升级后, 从保存有最新版本文件 的文件服务器中选择承载的用户设备数量未达到预设的门限值的文件服务 器, 使用户设备从该文件服务器下载最新版本文件。 实现均衡文件服务器的 负载, 避免文件服务器超载而导致瘫痪。 并且, 本实施例中将文件服务器承 载的用户设备数量与门限值作比, 选择比值最小的文件服务器, 提供了一种 较佳的均衡文件服务器负载的方法。 本实施例中还为用户设备划分了升级的 时间段, 即可提升升级的成功率, 均衡文件服务器的负载, 又可以避免耽误 用户使用正常业务, 增强用户体验。 本实施例中进一步限制用户设备在启动 时升级, 避免耽误用户使用正常业务, 增强用户体验。  In this embodiment, after determining that the user equipment needs to be upgraded, the network side selects, from the file server that stores the latest version file, the file server that does not reach the preset threshold, so that the user equipment downloads from the file server. The latest version of the file. Achieve a balanced file server load, avoiding file server overload and causing embarrassment. Moreover, in this embodiment, the number of user equipments carried by the file server is compared with a threshold value, and the file server with the smallest ratio is selected, thereby providing a better method for balancing the file server load. In this embodiment, the user equipment is divided into upgraded time segments, which can improve the success rate of the upgrade, balance the load of the file server, and avoid delays in using the normal service and enhance the user experience. In this embodiment, the user equipment is further restricted from being upgraded at startup, thereby avoiding delays in using the normal service and enhancing the user experience.
本实施例实现了在用户设备中内嵌升级策略的升级设备的方法, 由用户 设备随机选择文件服务器, 也可达到均衡文件服务器负载的目的, 并且不需 要网络侧做升级决定, 减轻了网络侧的负担。 本发明实施例还提供了一种分 布式的网络结构, 在通信系统中增加负责升级策略的服务器, 便于网络结构 的扩展。 发明的精神和范围。 这样, 倘若对本发明的这些修改和变型属于本发明权利 要求及其等同技术的范围之内, 则本发明也意图包含这些改动和变型在内。  This embodiment implements a method for upgrading an upgraded device by embedding an upgrade policy in a user equipment. The user equipment randomly selects a file server, and the load of the file server is balanced, and the network side is not required to perform an upgrade decision, thereby reducing the network side. The burden. The embodiment of the invention further provides a distributed network structure, in which a server responsible for the upgrade policy is added in the communication system, which facilitates the expansion of the network structure. The spirit and scope of the invention. Therefore, it is intended that the present invention cover the modifications and variations of the invention as claimed.

Claims

权 利 要求 书 Claim
1、 一种升级设备的方法, 应用于系统侧, 其特征在于, 包括: A method for upgrading a device, applied to a system side, characterized in that:
接收发送方设备的版本信息;  Receiving version information of the sender device;
比较接收到的发送方设备的版本信息与本地的最新版本信息, 在确定发送 方设备的版本低于所述最新版本的情况下, 查找存储有最新版本文件的至少一 个文件服务器;  Comparing the received version information of the sender device with the latest version information of the local device, and in the case of determining that the version of the sender device is lower than the latest version, searching for at least one file server storing the latest version file;
根据预先设置的升级策略, 从所述至少一个文件服务器中选择承载的设备 数量未达到预设的门限值的文件服务器, 并将选择的文件服务器的信息和最新 版本信息返回给发送方设备, 所述发送方设备用于根据收到的文件服务器的信 息和最新版本信息从相应的文件服务器下载最新版本文件, 并进行升级。  And selecting, according to the preset upgrade policy, a file server that does not reach a preset threshold from the at least one file server, and returns information of the selected file server and latest version information to the sender device, The sender device is configured to download the latest version file from the corresponding file server according to the received file server information and the latest version information, and perform an upgrade.
2、 如权利要求 1所述的升级设备的方法, 其特征在于, 比较接收到的发送 方设备的版本信息与本地的最新版本信息的步骤为:  2. The method of upgrading a device according to claim 1, wherein the step of comparing the received version information of the sender device with the latest version information of the local device is:
由网管服务器将所述发送方设备的版本信息与本地的最新版本信息进行比 较 或者  Comparing the version information of the sender device with the latest version information of the local device by the network management server or
网管服务器将接收到的发送方设备的版本信息发送给与该发送方设备对应 的升级策略服务器, 由升级策略服务器将所述发送方设备的版本信息与本地的 最新版本信息进行比较。  The network management server sends the received version information of the sender device to the upgrade policy server corresponding to the sender device, and the upgrade policy server compares the version information of the sender device with the latest version information of the local device.
3、 如权利要求 1所述的升级设备的方法, 其特征在于, 在所述查找存储有 最新版本文件的至少一个文件服务器的步骤前, 进一步包括步骤:  3. The method of upgrading a device according to claim 1, wherein before the step of searching for at least one file server storing the latest version file, the method further comprises the steps of:
确定当前允许所述发送方设备升级。  It is determined that the sender device is currently allowed to be upgraded.
4、 如权利要求 3所述的升级设备的方法, 其特征在于, 所述确定当前允许 所述发送方设备升级的步骤包括:  The method for upgrading a device according to claim 3, wherein the determining the current permission to upgrade the sender device comprises:
当接收到所述发送方设备在启动时发送版本信息时, 确定该发送方设备的 类型属于允许在启动时升级的设备类型; 和 /或  When receiving the sender device to send version information at startup, determining that the type of the sender device belongs to a device type that is allowed to be upgraded at startup; and/or
确定在当前时间段内允许所述用户设备升级。 It is determined that the user equipment is allowed to be upgraded during the current time period.
5、 如权利要求 1所述的升级设备的方法, 其特征在于, 所述从所述至少一 个文件服务器中选择承载的设备数量未达到预设的门限值的文件服务器的步骤 包括: The method of upgrading a device according to claim 1, wherein the step of selecting a file server that does not reach a preset threshold from the at least one file server comprises:
从承载的设备数量未达到预设的门限值的文件服务器中随机选择一个文件 服务器; 或者  Randomly select a file server from a file server whose number of devices that do not reach the preset threshold; or
从承载的设备数量未达到预设的门限值的文件服务器中选择承载的设备数 量与门限值的比值最小的一个文件服务器。  Select a file server with the smallest ratio of the number of devices to the threshold from the file server whose number of devices is not up to the preset threshold.
6、 如权利要求 1至 5中任一项所述的升级设备的方法, 其特征在于, 所述 方法还包括:  The method of upgrading a device according to any one of claims 1 to 5, wherein the method further comprises:
在收到所述发送方设备发送的开始升级的通知, 或者在收到所述发送方设 备发送的下载结束的通知时更新所述选择的文件服务器所承载的设备数量。  The number of devices carried by the selected file server is updated when receiving the notification of starting the upgrade sent by the sender device or receiving the notification of the end of the download sent by the sender device.
7、 一种升级设备的方法, 应用于设备侧, 其特征在于, 包括:  7. A method for upgrading a device, which is applied to a device side, and is characterized by:
从本地的配置信息中随机选择文件服务器的标识, 并从该标识所对应的文 件服务器获得最新版本信息;  Randomly selecting the identifier of the file server from the local configuration information, and obtaining the latest version information from the file server corresponding to the identifier;
将最新版本信息与本地的版本信息进行比较, 并在确定本地的版本低于所 述最新版本时, 根据最新版本信息从所述文件服务器获得最新版本文件, 进行 升级。  The latest version information is compared with the local version information, and when it is determined that the local version is lower than the latest version, the latest version file is obtained from the file server according to the latest version information, and the upgrade is performed.
8、 如权利要求 7所述的升级设备的方法, 其特征在于,  8. The method of upgrading a device according to claim 7, wherein:
在所述从本地的配置信息中随机选择文件服务器的标识步骤前, 还包括: 判断当前是否允许升级, 并在判断结果为是时随机选择文件服务器;  Before the step of randomly selecting the identifier of the file server from the local configuration information, the method further includes: determining whether the upgrade is currently allowed, and randomly selecting the file server when the determination result is yes;
或者, 在确定本地的版本低于所述最新版本的情况下, 进一步包括: 判断当前是否允许升级, 以及在判断结果为是时从所述文件服务器获得最 新版本文件。  Alternatively, in a case where it is determined that the local version is lower than the latest version, the method further includes: determining whether the upgrade is currently permitted, and obtaining the latest version file from the file server when the determination result is YES.
9、 如权利要求 8所述的升级设备的方法, 其特征在于, 所述判断当前是否 允许升级的步骤包括:  The method for upgrading an apparatus according to claim 8, wherein the determining whether the upgrade is currently allowed comprises:
在启动时判断自身是否属于允许在启动时升级的设备类型; 和 /或 判断在当前时间段内是否允许升级。 Determine at startup whether it is a device type that is allowed to be upgraded at startup; and/or Determine if the upgrade is allowed within the current time period.
10、 一种升级策略服务器, 其特征在于, 包括:  10. An upgrade policy server, comprising:
接收单元( 301 ), 用于接收用户设备的版本信息;  a receiving unit (301), configured to receive version information of the user equipment;
策略单元(302 ), 用于将接收到的用户设备的版本信息与本地的最新版本 信息进行比较, 并在确定用户设备的版本低于所述最新版本的情况下查找存储 有最新版本文件的至少一个文件服务器, 从所述至少一个文件服务器中选择承 载的设备数量未达到预设的门限值的文件服务器;  The policy unit (302) is configured to compare the received version information of the user equipment with the latest version information of the local device, and search for at least the latest version file if the version of the user equipment is lower than the latest version. a file server, selecting, from the at least one file server, a file server that does not reach a preset threshold value;
发送单元(304 ), 用于将选择的文件服务器的信息和最新版本信息发送给 所述用户设备。  The sending unit (304) is configured to send the information of the selected file server and the latest version information to the user equipment.
11、 一种网管服务器, 包括管理单元(206 ), 所述管理单元(206 )用于管 理和维护网络中的设备, 其特征在于, 所述网管服务器还包括:  A network management server, comprising: a management unit (206), wherein the management unit (206) is configured to manage and maintain devices in the network, and the network management server further includes:
接收单元(201 ), 用于接收用户设备发送的版本信息;  a receiving unit (201), configured to receive version information sent by the user equipment;
升级策略单元( 205 ), 用于将接收到的用户设备的版本信息与本地的最新 版本信息进行比较, 并在确定用户设备的版本低于所述最新版本的情况下, 查 找存储有最新版本文件的至少一个文件服务器, 从所述至少一个文件服务器中 选择承载的设备数量未达到预设的门限值的文件服务器;  The upgrade policy unit (205) is configured to compare the received version information of the user equipment with the latest version information of the local device, and find that the latest version file is stored if it is determined that the version of the user equipment is lower than the latest version. At least one file server, selecting, from the at least one file server, a file server that does not reach a preset threshold value;
发送单元(204 ), 用于将选择的文件服务器的信息和最新版本信息发送给 所述用户设备。  The sending unit (204) is configured to send the information of the selected file server and the latest version information to the user equipment.
12、如权利要求 11所述的网管服务器,其特征在于,所述升级策略单元(205 ) 包括:  The network management server according to claim 11, wherein the upgrade policy unit (205) comprises:
比较模块, 用于将接收到的用户设备的版本信息与本地的最新版本信息进 行比较, 确定用户设备的版本是否低于所述最新版本;  a comparison module, configured to compare the received version information of the user equipment with the latest version information of the local device, and determine whether the version of the user equipment is lower than the latest version;
查找模块, 用于在所述比较模块确定用户设备的版本低于所述最新版本的 情况下, 查找存储有最新版本文件的至少一个文件服务器, 从所述至少一个文 件服务器中选择承载的设备数量未达到预设的门限值的文件服务器。  a searching module, configured to: when the comparing module determines that the version of the user equipment is lower than the latest version, search for at least one file server storing the latest version file, and select the number of devices to be carried from the at least one file server A file server that does not reach the preset threshold.
13、如权利要求 12所述的网管服务器 ,其特征在于,所述升级策略单元( 205 ) 还包括: 判断模块, 用于判断当前是否允许所述发送方设备升级, 并在当前允 许所述发送方设备升级时, 通知所述查找模块。 13. The network management server of claim 12, wherein said upgrade policy unit (205) The method further includes: a determining module, configured to determine whether the sender device is currently allowed to be upgraded, and notify the searching module when the sender device is currently allowed to upgrade.
14、 如权利要求 11所述的网管服务器, 其特征在于, 所述接收单元(201 ), 还用于接收所述用户设备发送的开始升级的通知, 以及接收所述用户设备发送 的下载结束的通知;  The network management server according to claim 11, wherein the receiving unit (201) is further configured to receive a notification of starting the upgrade sent by the user equipment, and receiving the end of the download sent by the user equipment. Notice;
所述升级策略单元(205 )还包括: 计数模块, 用于在获知所述用户设备开 始升级和下载结束时, 更新所述选择的文件服务器所承载的设备数量。  The upgrade policy unit (205) further includes: a counting module, configured to update the number of devices carried by the selected file server when it is learned that the user equipment starts upgrading and downloading ends.
15、 一种用户设备, 其特征在于, 包括:  15. A user equipment, comprising:
获取单元, 用于根据从本地的配置信息中随机选择文件服务器的标识, 从 所述选择的文件服务器获得最新版本信息;  An obtaining unit, configured to obtain the latest version information from the selected file server according to the identifier of the file server randomly selected from the local configuration information;
比较单元, 用于将获得的最新版本信息与本地的版本信息进行比较, 在确 定用户设备的版本低于所述最新版本的情况下, 通知所述获取单元从所述文件 服务器获得最新版本文件;  a comparing unit, configured to compare the obtained latest version information with the local version information, and notify the obtaining unit to obtain the latest version file from the file server, if it is determined that the version of the user device is lower than the latest version;
处理单元, 用于根据最新版本文件进行升级。  Processing unit, used to upgrade according to the latest version file.
16、 一种通信系统, 其特征在于, 包括:  16. A communication system, comprising:
用户设备(101 ), 用于发送版本信息, 以及根据接收到的文件服务器的信 息和最新版本信息从相应的文件服务器获得最新版本文件, 并进行升级;  The user equipment (101) is configured to send version information, and obtain the latest version file from the corresponding file server according to the received information of the file server and the latest version information, and perform an upgrade;
服务器, 用于将接收到的所述用户设备的版本信息与本地的最新版本信息 进行比较, 并在确定所述第一设备的版本低于所述最新版本的情况下查找存储 有最新版本文件的至少一个文件服务器, 从所述至少一个文件服务器中选择承 载的第一设备数量未达到预设的门限值的文件服务器, 并将选择的文件服务器 的信息和最新版本信息发送给所述用户设备;  a server, configured to compare the received version information of the user equipment with the latest version information of the local device, and search for the latest version file if the version of the first device is determined to be lower than the latest version. And at least one file server, selecting, from the at least one file server, a file server that does not reach a preset threshold value, and sending the selected file server information and the latest version information to the user equipment ;
至少一个文件服务器(104 ), 用于存储所述最新版本文件。  At least one file server (104) for storing the latest version file.
17、 如权利要求 16所述的通信系统, 其特征在于, 所述服务器为网管服务 17. The communication system according to claim 16, wherein the server is a network management service
H; 或者 H; or
所述服务器为升级策略服务器 (103), 则所述通信系统还包括: 网管服务器 (102), 用于接收所述用户设备发送的版本信息, 并将所述版本 信息和所述用户设备的信息发送给所述升级策略服务器。 The server is an upgrade policy server (103), and the communication system further includes: The network management server (102) is configured to receive version information sent by the user equipment, and send the version information and information about the user equipment to the upgrade policy server.
18、如权利要求 17所述的通信系统,其特征在于,所述升级策略服务器 (103) 为多个;  The communication system according to claim 17, wherein said upgrade policy server (103) is plural;
所述网管服务器 (102), 进一步用于根据所述版本信息和 /或所述用户设备的 信息选择负责该用户设备升级的升级策略服务器, 并将该版本信息和所述用户 设备的信息发送给相应的升级策略服务器。  The network management server (102) is further configured to: according to the version information and/or the information about the user equipment, select an upgrade policy server that is responsible for the user equipment upgrade, and send the version information and the information about the user equipment to The corresponding upgrade policy server.
PCT/CN2008/071204 2007-06-29 2008-06-05 Methods, apparatus and systems for updating equipment WO2009003385A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200710123533.9 2007-06-29
CNA2007101235339A CN101335641A (en) 2007-06-29 2007-06-29 Method, apparatus and system for updating apparatus

Publications (1)

Publication Number Publication Date
WO2009003385A1 true WO2009003385A1 (en) 2009-01-08

Family

ID=40197976

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/071204 WO2009003385A1 (en) 2007-06-29 2008-06-05 Methods, apparatus and systems for updating equipment

Country Status (2)

Country Link
CN (1) CN101335641A (en)
WO (1) WO2009003385A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103825937A (en) * 2013-12-19 2014-05-28 深圳市炬力北方微电子有限公司 Method, device and system for controlling data updating of embedded equipment
CN110221855A (en) * 2019-06-20 2019-09-10 河南蜻蜓云智能科技有限公司 A kind of method that app cooperates with update and off-line operation with server
CN115174392A (en) * 2022-09-07 2022-10-11 武汉长光科技有限公司 Upgrading method of optical network unit ONU, server and storage medium

Families Citing this family (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719937B (en) * 2009-11-30 2012-10-24 中兴通讯股份有限公司 Method and system for updating terminal device
CN102098559A (en) * 2009-12-11 2011-06-15 康佳集团股份有限公司 Set-top box software upgrading system and method
CN102064966B (en) * 2010-12-29 2016-04-13 北京世纪互联宽带数据中心有限公司 A kind of collocation method, server, equipment and system
CN102905173A (en) * 2012-10-16 2013-01-30 青岛海信信芯科技有限公司 Method and system for upgrading software of televisions or set-top boxes
CN104063239B (en) * 2013-03-22 2019-01-15 腾讯科技(深圳)有限公司 Application program update method and server, the client of mobile terminal
CN104579723A (en) * 2013-10-16 2015-04-29 宇宙互联有限公司 Gateway configuration management system and method
CN104954409A (en) * 2014-03-31 2015-09-30 杭州迪普科技有限公司 AP upgrading method and device thereof
CN105101197A (en) * 2014-05-07 2015-11-25 中兴通讯股份有限公司 User contract-signing information response and request method and device
CN104850422B (en) * 2014-05-21 2019-07-23 北京宝沃汽车有限公司 A kind of method and system of long-range update terminal device program
CN105323106B (en) * 2014-08-04 2020-09-22 中兴通讯股份有限公司 Software upgrading management method, device and system
KR101943989B1 (en) * 2015-06-05 2019-01-30 삼성전자주식회사 Method, server and terminal for transmitting and receiving data
CN106487602B (en) * 2015-08-24 2019-12-27 腾讯科技(深圳)有限公司 Application program release version monitoring method and monitoring device
CN105225037A (en) * 2015-09-14 2016-01-06 中国联合网络通信集团有限公司 A kind of assets management method and the asset management system
CN105187262A (en) * 2015-10-27 2015-12-23 上海斐讯数据通信技术有限公司 Router upgrading method and system
CN105357056A (en) * 2015-12-07 2016-02-24 成都广达新网科技股份有限公司 Strategy-based EOC central office end equipment upgrading method
CN105677428A (en) * 2016-01-12 2016-06-15 北京小米移动软件有限公司 Upgrading method and device for terminal and terminal
CN106101835A (en) * 2016-07-05 2016-11-09 青岛海信电器股份有限公司 Intelligent television upgrade control method and device
CN107589952A (en) * 2016-07-06 2018-01-16 中兴通讯股份有限公司 Intelligent upgrade method, device and system
CN106775852A (en) * 2016-12-05 2017-05-31 云鸟(上海)能源科技有限公司 A kind of method that embedded Linux Charge Management terminal is upgraded by wireless communication module
CN107734010B (en) * 2017-09-28 2020-10-23 航天科技控股集团股份有限公司 Upgrading system and upgrading method based on recorder management
CN108616391A (en) * 2018-04-11 2018-10-02 杭州嘉楠耘智信息科技有限公司 Server end carries out the method and system of device firmware upgrade
CN111181752B (en) * 2018-11-12 2023-01-24 中兴通讯股份有限公司 Narrowband device upgrading method, mobile terminal and readable storage medium
CN111258597A (en) * 2018-11-30 2020-06-09 玲珑视界科技(北京)有限公司 Method and system for unified upgrade of intelligent terminal
CN110399341B (en) * 2019-07-06 2022-12-06 深圳市山水原创动漫文化有限公司 Method and system for storing and calling animation reference file
CN112947952A (en) * 2019-11-26 2021-06-11 中盈优创资讯科技有限公司 Communication equipment version management method and device
CN112486733B (en) * 2020-12-11 2023-08-18 Oppo广东移动通信有限公司 System restoration method, device, terminal and storage medium
CN114666665B (en) * 2020-12-23 2023-08-01 深圳Tcl新技术有限公司 Certificate authentication method, storage medium and television

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6202207B1 (en) * 1998-01-28 2001-03-13 International Business Machines Corporation Method and a mechanism for synchronized updating of interoperating software
EP1178402A1 (en) * 2000-08-03 2002-02-06 Hsing Tech Enterprises Co., Ltd. Method and apparatus for actively updating program file(s) of a client computer
US6918113B2 (en) * 2000-11-06 2005-07-12 Endeavors Technology, Inc. Client installation and execution system for streamed applications
CN1658574A (en) * 2005-03-23 2005-08-24 港湾网络有限公司 Automatic update method and system for network equipment
CN1964429A (en) * 2006-11-17 2007-05-16 华为技术有限公司 A management method, system and device to update distributed set top box

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6202207B1 (en) * 1998-01-28 2001-03-13 International Business Machines Corporation Method and a mechanism for synchronized updating of interoperating software
EP1178402A1 (en) * 2000-08-03 2002-02-06 Hsing Tech Enterprises Co., Ltd. Method and apparatus for actively updating program file(s) of a client computer
US6918113B2 (en) * 2000-11-06 2005-07-12 Endeavors Technology, Inc. Client installation and execution system for streamed applications
CN1658574A (en) * 2005-03-23 2005-08-24 港湾网络有限公司 Automatic update method and system for network equipment
CN1964429A (en) * 2006-11-17 2007-05-16 华为技术有限公司 A management method, system and device to update distributed set top box

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103825937A (en) * 2013-12-19 2014-05-28 深圳市炬力北方微电子有限公司 Method, device and system for controlling data updating of embedded equipment
CN110221855A (en) * 2019-06-20 2019-09-10 河南蜻蜓云智能科技有限公司 A kind of method that app cooperates with update and off-line operation with server
CN115174392A (en) * 2022-09-07 2022-10-11 武汉长光科技有限公司 Upgrading method of optical network unit ONU, server and storage medium
CN115174392B (en) * 2022-09-07 2023-01-31 武汉长光科技有限公司 Upgrading method of optical network unit ONU, server and storage medium

Also Published As

Publication number Publication date
CN101335641A (en) 2008-12-31

Similar Documents

Publication Publication Date Title
WO2009003385A1 (en) Methods, apparatus and systems for updating equipment
KR100620054B1 (en) System and method of managing device for device managing technology
JP5175025B2 (en) System and method for handshaking between a wireless device and a server
JP5426499B2 (en) Terminal device settings
EP1969476B1 (en) Peer distribution point feature for system management server
JP5074424B2 (en) Dependency notification
US7974613B1 (en) Device capability determination for a mobile device
JP5678014B2 (en) Apparatus and method for network identification of open market wireless devices
WO2007085157A1 (en) Method for performing predetermined task, method for performing management task, and terminal equipment
WO2007048340A1 (en) Method and device for obtaining software usage frequency and upgrading software in device management
JP2009524370A (en) COMMUNICATION TERMINAL DEVICE, COMMUNICATION TERMINAL, AND METHOD FOR MANAGING COMMUNICATION SYSTEM
AU2004209191A1 (en) Mobile telephony application platform
CN111556488A (en) OTA (over the air) upgrading method and system for terminal equipment
WO2007025428A1 (en) Method, system and terminal device of software component parameter configuration
KR20080015834A (en) Methods and apparatus for simultaneously hosting multiple service providers on a network
JP2020532204A (en) Related devices in traffic offload methods and roaming scenarios
WO2011082684A1 (en) Data configuration method and apparatus
US20060199568A1 (en) Method for providing a search service using a mobile communication terminal and mobile communication terminal and server therefor
US9603191B2 (en) Apparatus and method for providing access to internet resources in a wireless communications network
CN112732456A (en) Micro-service calling method and device, electronic equipment and storage medium
WO2007012244A1 (en) A method and device for downloading media object at designated time
CN111107611B (en) Method and device for selecting user plane function
WO2010118702A1 (en) Terminal for device management and method for initiating management session thereof
WO2019238060A1 (en) Data transmission method and apparatus
WO2012155814A1 (en) Implementation method and system for configuring route to base station in operation maintenance center

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 08757615

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 08757615

Country of ref document: EP

Kind code of ref document: A1