WO2014180245A1 - 云终端升级处理方法及装置 - Google Patents

云终端升级处理方法及装置 Download PDF

Info

Publication number
WO2014180245A1
WO2014180245A1 PCT/CN2014/075848 CN2014075848W WO2014180245A1 WO 2014180245 A1 WO2014180245 A1 WO 2014180245A1 CN 2014075848 W CN2014075848 W CN 2014075848W WO 2014180245 A1 WO2014180245 A1 WO 2014180245A1
Authority
WO
WIPO (PCT)
Prior art keywords
multicast
upgrade
information
cloud
server
Prior art date
Application number
PCT/CN2014/075848
Other languages
English (en)
French (fr)
Inventor
朱国龙
胡泊
严承
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2014180245A1 publication Critical patent/WO2014180245A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/20Support for services
    • H04L49/201Multicast operation; Broadcast operation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1895Arrangements for providing special services to substations for broadcast or conference, e.g. multicast for short real-time information, e.g. alarms, notifications, alerts, updates
    • 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/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • 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/08Configuration management of networks or network elements
    • H04L41/0895Configuration of virtualised networks or elements, e.g. virtualised network function or OpenFlow elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Definitions

  • the present invention relates to the field of communications, and in particular to a cloud terminal upgrade processing method and apparatus.
  • Cloud terminal products can be used not only in the desktop cloud, but also in the basic office of the communications industry, government and enterprise industries, and the financial industry. It can satisfy the learning and leisure of professionals and home users.
  • people's needs are constantly changing, and the functional requirements of cloud terminals are also higher. How to better maintain cloud terminals and perform remote and rapid upgrades of cloud terminal system images will be a primary solution. problem.
  • the upgrade method adopted for the similar products of the cloud terminal is mainly a hypertext transfer protocol (http) or a method in which the cloud terminal is mounted to the nfs server.
  • http hypertext transfer protocol
  • the network management server sets the upgrade server address to the terminal. After the terminal starts, it determines whether the upgrade is required. If the upgrade is required, the upgrade image file is downloaded from the server using the http method.
  • the server is upgraded to the nfs server.
  • the image name, the address of the nfs server, and the image file directory of the cloud terminal network management server are sent to the terminal.
  • the terminal is mounted to the nfs server and the file of the upgrade image is copied to implement the upgrade.
  • the present invention provides a cloud terminal upgrade processing method and apparatus, to at least solve the related art, and has the problems of slow upgrade speed and low upgrade efficiency.
  • a cloud terminal upgrade processing method including: the multicast server receives a multicast upgrade parameter and an upgrade image file information that are sent by the network management server to upgrade at least two cloud terminals; The broadcast server determines, according to the multicast upgrade parameter and the upgrade image file information, the The port information and the image partition information of the multicast upgrade are performed by the two cloud terminals. The multicast server performs multicast upgrade on the at least two cloud terminals according to the determined port information and the mirror partition information.
  • the multicast server performs multicast upgrade on the at least two cloud terminals according to the determined port information and the mirror partition information, including: the multicast server according to the determined port information and the The mirroring partition information is used to determine whether all the cloud terminals in the at least two cloud terminals have joined the multicast group for performing the round-up multicast upgrade; if the determination result is no, the multicast server will be the at least two A cloud terminal that has not joined this round of multicast upgrades in a cloud terminal joins the multicast group of the next round of multicast upgrade.
  • the method further includes: the multicast server receiving the network management server The detection information for detecting the multicast status of the multicast upgrade of the at least two cloud terminals is sent; the multicast server determines whether the multicast status is normal according to the detection information; the multicast server is If the determination result is yes, the multicast address for performing multicast upgrade on the at least two cloud terminals is sent to the network management server.
  • a cloud terminal upgrade processing method including: a network management server sends, to a multicast server, multicast upgrade parameters and upgrade image file information for upgrading at least two cloud terminals; Obtaining, by the multicast server, port information and mirroring partition information for performing multicast upgrade on the at least two cloud terminals according to the multicast upgrade parameter and the upgrade image file information; the network management server determines the The port information and the image partition information are sent to the at least two cloud terminals, wherein the at least two cloud terminals perform multicast upgrade according to the port information and the mirror partition information.
  • the method further includes: sending, by the network management server, the stop to the multicast server The multicast upgrade stop information of the multicast upgrade is performed by the at least two cloud terminals, where the multicast server stops performing multicast upgrade on the at least two cloud terminals according to the multicast upgrade stop information.
  • a cloud terminal upgrade processing method including: a cloud terminal acquiring port information and image partition information for performing multicast upgrade on at least two cloud terminals, wherein the port information and the The mirroring partition information is determined by the multicast server according to the multicast upgrade parameter sent by the network management server and the upgrade image file information.
  • the cloud terminal performs multicast upgrade according to the port information and the mirror partition information.
  • the performing, by the cloud terminal, the multicast upgrade according to the port information and the image partition information includes: determining, by the cloud terminal, whether the image partition information meets the cloud terminal partition upgrade requirement; In the case, the cloud terminal joins the upgrade multicast according to the port information to perform multicast upgrade.
  • a cloud terminal upgrade processing apparatus which is applied to a multicast server, and includes: a first receiving module, configured to receive a group that upgrades at least two cloud terminals sent by a network management server The upgrade parameter and the upgrade image file information; the determining module is configured to determine, according to the multicast upgrade parameter and the upgrade image file information, port information and mirror partition information for performing multicast upgrade on the at least two cloud terminals; An upgrade module is configured to perform multicast upgrade on the at least two cloud terminals according to the determined port information and the mirror partition information.
  • the determining module includes: a first determining unit, configured to determine, according to the determined port information and the mirror partition information, whether all cloud terminals in the at least two cloud terminals are added to perform the round group
  • the multicast group that is upgraded is added to the joining unit, and is set to add the cloud terminal that does not join the round multicast upgrade to the next round in the case that the judgment result of the determining unit is negative.
  • Multicast group for multicast upgrade the device further includes: a second receiving module, configured to receive detection information that is sent by the network management server to detect a multicast state of multicast upgrade of the at least two cloud terminals; And determining, according to the detection information, whether the multicast status is normal.
  • the first sending module is configured to: when the determination result is yes, send a multicast address that performs multicast upgrade on the at least two cloud terminals.
  • a cloud terminal upgrade processing apparatus is provided, which is applied to a network management server, and includes: a second sending module, configured to send, to a multicast server, a multicast upgrade parameter for upgrading at least two cloud terminals And the upgrade image file information; the obtaining module is configured to obtain, by the multicast server, the port information and the mirror partition for performing multicast upgrade on the at least two cloud terminals according to the multicast upgrade parameter and the upgrade image file information.
  • the third sending module is configured to send the determined port information and the mirroring partition information to the at least two cloud terminals, where the at least two cloud terminals are based on the port information and the mirroring
  • the partition information is multicast upgraded.
  • the device further includes: a fourth sending module, configured to send, to the multicast server, multicast upgrade stop information for stopping multicast upgrade of the at least two cloud terminals, where the multicast server And performing multicast upgrade on the at least two cloud terminals according to the multicast upgrade stop information.
  • a cloud terminal upgrade processing apparatus is provided, which is applied to a cloud terminal, and includes: a third receiving module, configured to acquire port information and mirror partition information for performing multicast upgrade on at least two cloud terminals.
  • the port information and the mirror partition information are determined by the multicast server according to the multicast upgrade parameter and the upgrade image file information sent by the network management server; the second upgrade module is configured to use the port information and the mirror partition.
  • the information is multicast upgraded.
  • the second upgrading module includes: a second determining unit, configured to determine whether the mirroring partition information meets the cloud terminal partitioning upgrade requirement; and the upgrading unit is configured to, when the determination result is yes, The cloud terminal joins the upgrade multicast according to the port information to perform multicast upgrade.
  • the multicast server receives the multicast upgrade parameter and the upgrade image file information that are sent by the network management server to upgrade the at least two cloud terminals, and the multicast server uses the multicast upgrade parameter and the upgrade image according to the multicast server.
  • the file information is used to determine the port information and the image partition information for performing multicast upgrade on the at least two cloud terminals.
  • the multicast server performs the at least two cloud terminals according to the determined port information and the mirror partition information.
  • the multicast upgrade solves the problem that the upgrade speed is slow and the upgrade efficiency is low in the related technologies, thereby achieving the effect of improving the upgrade speed and the upgrade efficiency.
  • FIG. 2 is a flowchart of a cloud terminal upgrade processing method according to an embodiment of the present invention
  • FIG. 4 is a structural block diagram of a cloud terminal upgrade processing apparatus 1 according to an embodiment of the present invention
  • FIG. 5 is a cloud terminal upgrade processing apparatus according to an embodiment of the present invention.
  • FIG. 6 is a block diagram showing a preferred structure of a cloud terminal upgrade processing apparatus according to an embodiment of the present invention
  • FIG. 7 is a structural block diagram of a cloud terminal upgrade processing apparatus according to an embodiment of the present invention
  • FIG. 8 is a schematic diagram of a cloud according to an embodiment of the present invention.
  • FIG. 9 is a block diagram showing a structure of a cloud terminal upgrade processing apparatus according to an embodiment of the present invention
  • FIG. 9 is a second diagram of a cloud terminal upgrade processing apparatus according to an embodiment of the present invention.
  • FIG. 10 is a flow diagram of an nfs upgrade in accordance with an embodiment of the present invention
  • 11 is a schematic structural diagram of a network management server, a multicast server, and a terminal according to an embodiment of the present invention
  • FIG. 12 is a multicast flow chart according to an embodiment of the present invention
  • FIG. 13 is a diagram for detecting and stopping multicast according to an embodiment of the present invention.
  • Service Flowchart Figure 14 is a timing diagram of multicast upgrade in accordance with an embodiment of the present invention.
  • FIG. 1 is a flowchart of a cloud terminal upgrade processing method according to an embodiment of the present invention.
  • the process includes the following steps: Step S102, a group
  • the multicast server receives the multicast upgrade parameter and the upgrade image file information that are sent by the network management server to upgrade the at least two cloud terminals.
  • Step S104 The multicast server determines, according to the multicast upgrade parameter and the upgrade image file information, the at least two cloud terminals.
  • the port information and the mirror partition information of the multicast upgrade are performed.
  • Step S106 The multicast server performs multicast upgrade on the at least two cloud terminals according to the determined port information and the mirror partition information.
  • the multicast server upgrades the at least two cloud terminals through the multicast server.
  • the cloud terminals are upgraded one by one when upgrading the cloud terminal, and the bandwidth requirement of the server is high, and the upgrade is performed at the same time. If there are too many terminals, the server may be abnormal.
  • the cloud terminals are upgraded in batches, which not only saves bandwidth, but also better serves the cloud terminals, effectively improving the upgrade speed.
  • multiple processing methods can be used. For example, the following processing modes can be adopted: The multicast server determines the port information and the mirror partition.
  • the information is determined whether all the cloud terminals in the at least two cloud terminals are added to the multicast group for performing the round-up multicast upgrade; if the judgment result is no, the multicast server does not join the round at least two cloud terminals.
  • the cloud terminal that is upgraded by multicast is added to the multicast group of the next round of multicast upgrade.
  • the method further includes: the multicast server receiving the multicast of the at least two cloud terminals delivered by the network management server The detected information of the upgraded multicast status is detected; the multicast server determines the multicast status based on the detected information.
  • FIG. 2 is a flowchart of a cloud terminal upgrade processing method 2 according to an embodiment of the present invention. As shown in FIG. 2, the process includes the following steps: Step S202 And sending, to the multicast server, the multicast upgrade parameter and the upgrade image file information for upgrading the at least two cloud terminals. Step S204: The network management server obtains the multicast server, and determines, according to the multicast upgrade parameter and the upgrade image file information, the at least two clouds. The port information and the mirror partition information of the multicast upgrade are performed by the terminal.
  • step S206 the network management server sends the determined port information and the image partition information to the at least two cloud terminals, where the at least two cloud terminals perform the port information and the mirror partition information.
  • Multicast upgrade Preferably, after the network management server sends the determined port information and the image partition information to the at least two cloud terminals, the method further includes: the network management server sends a multicast upgrade stop to the multicast server to stop the multicast upgrade of the at least two cloud terminals. The multicast server stops multicasting the at least two cloud terminals according to the multicast upgrade stop information.
  • a cloud terminal upgrade processing method is also provided.
  • FIG. 3 is a flowchart of a cloud terminal upgrade processing method 3 according to an embodiment of the present invention. As shown in FIG.
  • Step S302 The cloud terminal obtains the port information and the image partition information of the multicast upgrade of the at least two cloud terminals, where the port information and the mirror partition information are determined by the multicast server according to the multicast upgrade parameter and the upgrade image file information sent by the network management server; Step S304, the cloud terminal performs multicast upgrade according to the port information and the mirror partition information.
  • the cloud terminal performs the multicast upgrade according to the port information and the image partition information.
  • the cloud terminal determines whether the image partition information meets the cloud terminal partition upgrade requirement. If the judgment result is yes, the cloud terminal joins the upgrade group according to the port information. Broadcast for multicast upgrade.
  • FIG. 4 is a structural block diagram of a cloud terminal upgrade processing apparatus 1 according to an embodiment of the present invention. As shown in FIG. 4, the apparatus is applied to a multicast server, and includes a first receiving module 42, a determining module 44, and a first upgrading module 46. The device will be described below.
  • the first receiving module 42 is configured to receive the multicast upgrade parameter and the upgrade image file information that are sent by the network management server to upgrade the at least two cloud terminals.
  • the determining module 44 is connected to the first receiving module 42 and configured as a group according to the group.
  • the broadcast upgrade parameter and the upgrade image file information determine port information and mirror partition information for performing multicast upgrade on at least two cloud terminals;
  • the first upgrade module 46 is connected to the determining module 44, and is configured to determine the port information and the mirror partition according to the determined
  • the information is multicast upgraded to at least two cloud terminals.
  • FIG. 5 is a block diagram of a preferred structure of the determining module 44 in the cloud terminal upgrade processing apparatus according to the embodiment of the present invention. As shown in FIG.
  • the determining module 44 includes: a determining unit 52 and a joining unit 54, and the determining module is as follows. 44 for explanation.
  • the determining unit 52 is configured to determine, according to the determined port information and the mirror partition information, whether all the cloud terminals in the at least two cloud terminals are added to the multicast group for performing the round multicast upgrade; the adding unit 54 is connected to the determining unit. 52. Set, in the case that the judgment result of the judging unit is no, add the cloud terminal that does not join the round multicast upgrade in the at least two cloud terminals to the multicast group of the next round of multicast upgrade.
  • FIG. 6 is a block diagram of a preferred structure of a cloud terminal upgrade processing apparatus according to an embodiment of the present invention. As shown in FIG.
  • the preferred structure includes a second receiving module 62 and a determining module, in addition to all the modules shown in FIG. 64 and the first transmitting module 66, the preferred structure will be described below.
  • the second receiving module 62 is connected to the first upgrading module 46, and is configured to receive detection information that is sent by the network management server to detect the multicast status of the multicast upgrade of the at least two cloud terminals, and the determining module 64 is connected to The second receiving module 62 is configured to determine whether the multicast status is normal according to the detection information.
  • the first sending module 66 is connected to the determining module 64, and is configured to, if the determination result is yes, at least two cloud terminals.
  • the multicast address for multicast upgrade is sent to the NMS server.
  • FIG. 7 is a structural block diagram of a cloud terminal upgrade processing apparatus 2 according to an embodiment of the present invention.
  • the apparatus is applied to a network management server, and the structure includes a second sending module 72, an obtaining module 74, and a third sending module 76.
  • the second sending module 72 is configured to send the multicast upgrade parameter and the upgrade image file information for upgrading the at least two cloud terminals to the multicast server.
  • the obtaining module 74 is connected to the second sending module 72, and configured to obtain the multicast.
  • the server determines the port information and the image partition information for performing multicast upgrade on the at least two cloud terminals according to the multicast upgrade parameter and the upgrade image file information.
  • the third sending module 76 is connected to the obtaining module 74, and is set to The determined port information and the image partition information are sent to at least two cloud terminals, wherein at least two cloud terminals perform multicast upgrade according to the port information and the mirror partition information.
  • FIG. 8 is a block diagram of a preferred structure of a cloud terminal upgrade processing apparatus 2 according to an embodiment of the present invention. As shown in FIG. 8, the apparatus includes a fourth sending module 82, in addition to all the modules shown in FIG. The device is described.
  • the fourth sending module 82 is connected to the third sending module 76, and is configured to send, to the multicast server, multicast upgrade stop information for stopping multicast upgrade of at least two cloud terminals, where the multicast server is upgraded according to multicast The stop message stops multicasting at least two cloud terminals.
  • FIG. 9 is a structural block diagram of a cloud terminal upgrade processing apparatus 3 according to an embodiment of the present invention. As shown in FIG. 9, the apparatus is applied to a cloud terminal, and the structure includes a third receiving module 92 and a second upgrading module 94. The device is described.
  • the third receiving module 92 is configured to obtain port information and mirror partition information for performing multicast upgrade on at least two cloud terminals, where the port information and the mirror partition information are multicast upgrade parameters and upgrades sent by the multicast server according to the network management server.
  • the image file information is determined;
  • the second upgrade module 94 is connected to the third receiving module 92, and is configured to perform multicast upgrade according to the port information and the mirror partition information.
  • FIG. 9a is a block diagram of a preferred structure of a second upgrade module 94 of the cloud terminal upgrade processing apparatus 3 according to an embodiment of the present invention. As shown in FIG. 9a, the second upgrade module 94 includes a second judging unit 9a2 and an upgrade unit 9a4. Face the module for explanation.
  • the second judging module 9a2 is configured to determine whether the mirror partition information satisfies the cloud terminal partition upgrade requirement; the upgrading unit 9a4 is connected to the second judging module 9a2, and is set to be based on the port information when the judgment result is yes. Adding the upgraded multicast to perform the multicast upgrade. In order to better maintain the cloud terminal, save the network bandwidth, and improve the upgrade speed.
  • a cloud terminal centralized management software is used to implement the cloud terminal system by using the multicast technology. A method of mirroring remote and fast upgrades. Through this method, the technical problem that the conventional upgrade method requires high bandwidth and server performance is solved.
  • the method includes the following steps:
  • the network management server extracts the latest system image version, and the operating system upgrade task is newly created on the network management server to perform batch upgrade of the terminal.
  • the nfs or multicast upgrade can be selected during the construction task, and the image version to be upgraded is selected.
  • FIG. 10 is a flowchart of an nfs upgrade according to an embodiment of the present invention. As shown in FIG. 10, when the nfs mode is selected for upgrade, the nfs server and the upgrade image file information are first sent to the terminal, and the terminal is sent. Mount the image to the nfs server to copy the mirror partition information first, and check whether the partition information meets the upgrade requirements. If yes, copy the image upgrade file and complete the upgrade.
  • the steps to upgrade with nfs can be as follows:
  • S 1002 Set the path of the nfs server ip and the image file stored in the nfs server and the image file name to the cloud terminal; S 1004, the cloud terminal determines whether the nfs is connectable, and when the judgment result is no, the message is reported to the network management, and the upgrade is ended. ;
  • the cloud terminal starts normally and enters the upgrade system; after the cloud terminal is normally booted into the upgrade system, it is mounted on the nfs server for upgrade;
  • the cloud terminal reports the message to the NMS, and the upgrade ends. If you choose to upgrade the multicast mode, you need to configure the multicast upgrade parameters.
  • the network management server sends the multicast parameters and the upgrade image file to be upgraded to the multicast server.
  • the multicast server starts the multicast program based on the multicast parameters. When the program is started, the multicast server sends a message to the network management server.
  • the network management server then sends the multicast parameter information and the image file information to the terminal for multicast upgrade.
  • the above-mentioned combination of the multicast upgrade and the nfs upgrade ensures the integrity of the cloud terminal upgrade function.
  • the terminal In the multicast upgrade, after the network management server delivers the multicast parameters and the upgrade image file information to the terminal, the terminal first arrives at the group. The broadcast server downloads the image file partition information. If the system upgrade is not met, the terminal reports the message as the network management server. The network management server records the reason why the terminal cannot be upgraded. If the upgrade is required, the terminal reboots into the upgraded system and joins the multicast group. If the multicast initiation policy for transmitting data is satisfied, the multicast transmission data is started. After the data is sent, the terminal restarts and enters the normal system. upgrade.
  • FIG. 11 is a schematic structural diagram of a network management server, a multicast server, and a terminal according to an embodiment of the present invention. As shown in FIG.
  • the overall architecture diagram of the system includes: a network management server, an NFS/multicast server, and a cloud terminal.
  • the network management server and the NFS/multicast server can be deployed on the same server. They can also be deployed separately if the network management server and the NFS/multicast server can communicate.
  • the network management server mainly includes a first communication module 1102 and a first tr069 module 1104.
  • the first communication module 1102 is mainly responsible for communicating with the multicast server, including the transmission of multicast parameters, the detection of the status of the multicast service, and the closing of the multicast service.
  • the first tr069 module 1104 is responsible for interacting with the cloud terminal, and the network management server sends the parameters to the terminal, and the terminal reports the processing of the network management information.
  • the NFS/multicast server mainly includes a second communication module 1106, a first http module 1108, a first multicast module 1110, and the like.
  • the second communication module 1106 is responsible for interacting with the network management server, and mainly includes returning the multicast status.
  • the first http module 1108 provides a mirror recovery partition file and a multicast port information file for downloading the terminal, so that the cloud terminal obtains the partition information to determine whether the image file is consistent with the partition information of the terminal.
  • the first multicast module 1110 is responsible for the terminal joining the multicast group, verifying the multicast data, determining whether the terminal times out, and transmitting the multicast data.
  • the cloud terminal is a terminal that needs to be upgraded, and mainly includes a second tr069 module 1112 and a second multicast module 1114.
  • the second tr069 module 1112 is mainly responsible for interacting with the network management system, including returning the parameter settings sent by the network management system to the network management server, whether the image file partition information is consistent with the terminal, the terminal upgrade result report, and the terminal status report.
  • the second multicast module 1114 is mainly responsible for joining the multicast group set by the network management server, and receiving multicast data.
  • FIG. 12 is a flow chart of a multicast according to an embodiment of the present invention. As shown in FIG.
  • a network configuration server or a terminal of a new system is selected in the network management server, and the system image of the terminal is extracted. Upload the new system image to the nfs server and record it to the network management server.
  • the multicast upgrade is started again.
  • the multicast upgrade process is as follows:
  • S1202 Synchronize the multicast parameters configured on the network management server and the upgraded image file information to the multicast server;
  • the multicast server After receiving the multicast parameter, the multicast server obtains the number of mirrored partitions from the image file directory, searches for the number of available multicast ports according to the number of partitions, and newly writes the port information file in the directory;
  • S1206 Start the multicast service according to the obtained port information, and copy the mirror partition information and the file of the multicast port to the directory where the http service is downloaded, and return to the network management server to prompt the multicast startup service to succeed;
  • S1208 If the network management server receives the multicast service startup success message, the parameter, such as the multicast address, and the file http address of the downloaded image partition information and the port information are sent to the cloud terminal.
  • the cloud terminal After receiving the message, the cloud terminal first determines whether the multicast server is connectable; S1214, if it can connect, downloads the file of the mirror partition information and the port information;
  • the multicast server cannot be connected.
  • the information is returned to the NMS to end the upgrade.
  • S1220 If the current cloud terminal is upgraded, the cloud terminal parses the multicast port information and records the cloud terminal, and restarts the cloud terminal to enter the upgrade system.
  • S1222 If the current cloud terminal upgrade request is not met, the information is returned to the network management, and the upgrade is terminated. ;
  • S1224 The terminal receives the discovery packet sent by the multicast server, and joins the multicast group.
  • the multicast server detects whether the multicast start sending data policy is satisfied, and if the policy is met, starts sending data;
  • FIG. 13 is a flowchart of detecting and stopping a multicast service according to an embodiment of the present invention. As shown in FIG.
  • S1302 The network management server sends a message for detecting the multicast service; after receiving the message for detecting the multicast service, the multicast server detects the multicast status.
  • FIG. 14 is a timing diagram of multicast upgrade according to an embodiment of the present invention. As shown in FIG. 14, the timing diagram of the multicast upgrade is as follows:
  • the network management client establishes a system upgrade task in the task management; when the S1404 and the network management server schedule the task, if the task is a multicast upgrade, the multicast upgrade parameter is transmitted to the multicast server.
  • the parameters include: upgrade file, multicast port, multicast address, multicast server NIC, duplex mode, transmission rate limit, minimum number of connections, minimum waiting time, maximum waiting time, hop count, retransmission hello packet interval time parameters, Discard the receiver after sending a number of REQACKs;
  • the multicast server receives the multicast parameter, and according to the parameter of the incoming upgrade file (actually a directory), parses the partition information of the upgrade file into the corresponding file directory, and detects the port number required for the multicast upgrade according to the number of partitions (putting the client).
  • the multicast port parameter configured on the end is detected as the starting value, and the available port is detected and written to the port file *.port under the multicast upgrade folder.
  • the multicast service is started according to the incoming parameters, and the startup fails successfully.
  • the logo is returned to the network management server, and the partition information and the port file of the upgrade file are copied to the http server directory. If the multicast service fails, the task is directly returned in the task scheduling of the network management server. S1408. If the multicast service is successfully started, Enter the action unit of the system upgrade task;
  • S1410 The parameter information of the multicast upgrade is sent to the device, and the sending parameters include: a multicast address, a hop count, an http server address, and a multicast identifier.
  • S1412 If the parameter is set to the terminal, the process returns directly to the network management server.
  • S1416 If the setting parameter is successful, the terminal initiates an http request; S1418, downloading the partition information and the port file; S1420. If the partition information is consistent with the terminal system, the terminal restarts to enter the terminal to upgrade the small system;
  • the upgrade is successful, the terminal restarts into the wes system, and registers with the network management server.
  • modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices.
  • they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the rk utility is as described above, and the cloud terminal upgrade processing method and apparatus provided by the embodiments of the present invention have the following beneficial effects: The problem of slow upgrade speed and low upgrade efficiency in the related art is solved, and the improvement is achieved. Upgrade speed, upgrade efficiency.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明提供了一种云终端升级处理方法及装置,该方法包括:组播服务器接收到网管服务器发送的对至少两个云终端进行升级的组播升级参数及升级镜像文件信息;组播服务器依据组播升级参数以及升级镜像文件信息确定对至少两个云终端进行组播升级的端口信息和镜像分区信息;组播服务器依据确定的端口信息和镜像分区信息对至少两个云终端进行组播升级,通过本发明,解决了在相关技术中,存在升级速度慢,升级效率低的问题,进而达到了提升升级速度,升级效率的效果。

Description

云终端升级处理方法及装置
技术领域 本发明涉及通信领域, 具体而言, 涉及一种云终端升级处理方法及装置。 背景技术 随着云计算及相关技术的快速发展, 满足不同应用场景的云终端产品相继出现。 云终端产品不仅可以配套桌面云使用, 也可单独使用, 可广泛应用到通讯行业、 政企 行业、 金融行业等领域的基本办公, 满足专业人员以及家庭用户的学习及休闲等。 在 云终端广泛使用中, 人们的需求在不断变化, 云终端的功能要求也会更高, 如何能更 好的维护云终端, 并对云终端系统镜像进行远程快速升级,将是一个首要解决的问题。 在相关技术中,针对云终端类似产品采用的升级方式主要是超文本传输协议 (http) 或者云终端挂载到 nfs服务器的方式。 采用 http方式升级, 即网管服务器将升级服务 器地址设置到终端, 终端在启动后判断是否需要升级, 若需要升级, 则采用 http方式 从服务器下载升级镜像文件。 采用挂载到 nfs服务器升级, 即云终端网管服务器将升 级的镜像名称、 nfs服务器的地址和镜像文件目录下发到终端,终端挂载到 nfs服务器, 复制升级镜像的文件, 实现升级。 然而, 不论是采用 http方式升级还是采用挂载 nfs服务器方式升级, 都会存在带 宽问题以及服务器性能问题。 当多个云终端同时需要升级时, 终端同时发起 http连接 或者同时挂载到 nfs服务器, 每个终端都会建立一个连接, 这样, 对服务器的带宽要 求很高。 若同时升级的终端太多, 则极有可能造成服务器异常, 降低升级的速度。 因此, 在相关技术中, 存在升级速度慢, 升级效率低的问题。 发明内容 本发明提供了一种云终端升级处理方法及装置, 以至少解决相关技术中, 存在升 级速度慢, 升级效率低的问题。 根据本发明的一个方面, 提供了一种云终端升级处理方法, 包括: 组播服务器接 收到网管服务器发送的对至少两个云终端进行升级的组播升级参数及升级镜像文件信 息; 所述组播服务器依据所述组播升级参数以及所述升级镜像文件信息确定对所述至 少两个云终端进行组播升级的端口信息和镜像分区信息; 所述组播服务器依据确定的 所述端口信息和所述镜像分区信息对所述至少两个云终端进行组播升级。 优选地, 所述组播服务器依据确定的所述端口信息和所述镜像分区信息对所述至 少两个云终端进行组播升级包括: 所述组播服务器依据确定的所述端口信息和所述镜 像分区信息判断所述至少两个云终端中的所有云终端是否均加入了进行此轮组播升级 的组播组; 在判断结果为否的情况下, 所述组播服务器将所述至少两个云终端中没有 加入此轮组播升级的云终端加入到下一轮组播升级的组播组。 优选地, 在所述组播服务器依据确定的所述端口信息和所述镜像分区信息对所述 至少两个云终端进行组播升级之后, 还包括: 所述组播服务器接收到所述网管服务器 下发的对所述至少两个云终端进行组播升级的组播状态进行检测的检测信息; 所述组 播服务器依据所述检测信息判断所述组播状态是否正常; 所述组播服务器在判断结果 为是的情况下, 将对所述至少两个云终端进行组播升级的组播地址发送给所述网管服 务器。 根据本发明的另一方面, 提供了一种云终端升级处理方法, 包括: 网管服务器向 组播服务器发送对至少两个云终端进行升级的组播升级参数及升级镜像文件信息; 所 述网管服务器获取所述组播服务器依据所述组播升级参数以及所述升级镜像文件信息 确定对所述至少两个云终端进行组播升级的端口信息和镜像分区信息; 所述网管服务 器将确定的所述端口信息和所述镜像分区信息发送给所述至少两个云终端, 其中, 所 述至少两个云终端依据所述端口信息和所述镜像分区信息进行组播升级。 优选地, 在所述网管服务器将确定的所述端口信息和所述镜像分区信息发送给所 述至少两个云终端之后, 还包括: 所述网管服务器向所述组播服务器发送停止对所述 至少两个云终端进行组播升级的组播升级停止信息, 其中, 所述组播服务器依据所述 组播升级停止信息停止对所述至少两个云终端进行组播升级。 根据本发明的另一方面, 提供了一种云终端升级处理方法, 包括: 云终端获取对 至少两个云终端进行组播升级的端口信息和镜像分区信息, 其中, 所述端口信息和所 述镜像分区信息由组播服务器依据网管服务器发送的组播升级参数以及升级镜像文件 信息确定; 所述云终端依据所述端口信息和所述镜像分区信息进行组播升级。 优选地, 所述云终端依据所述端口信息和所述镜像分区信息进行组播升级包括: 所述云终端判断所述镜像分区信息是否满足所述云终端分区升级需求; 在判断结果为 是的情况下, 所述云终端依据所述端口信息加入升级组播进行组播升级。 根据本发明的另一方面,提供了一种云终端升级处理装置,应用于组播服务器中, 包括: 第一接收模块, 设置为接收到网管服务器发送的对至少两个云终端进行升级的 组播升级参数及升级镜像文件信息; 确定模块, 设置为依据所述组播升级参数以及所 述升级镜像文件信息确定对所述至少两个云终端进行组播升级的端口信息和镜像分区 信息; 第一升级模块, 设置为依据确定的所述端口信息和所述镜像分区信息对所述至 少两个云终端进行组播升级。 优选地, 所述确定模块包括: 第一判断单元, 设置为依据确定的所述端口信息和 所述镜像分区信息判断所述至少两个云终端中的所有云终端是否均加入了进行此轮组 播升级的组播组; 加入单元, 设置为在所述判断单元的判断结果为否的情况下, 将所 述至少两个云终端中没有加入此轮组播升级的云终端加入到下一轮组播升级的组播 组。 优选地, 所述装置还包括: 第二接收模块, 设置为接收到所述网管服务器下发的 对所述至少两个云终端进行组播升级的组播状态进行检测的检测信息; 判断模块, 设 置为依据所述检测信息判断所述组播状态是否正常; 第一发送模块, 设置为在判断结 果为是的情况下, 将对所述至少两个云终端进行组播升级的组播地址发送给所述网管 服务器。 根据本发明的还一方面, 提供了一种云终端升级处理装置, 应用于网管服务器, 包括: 第二发送模块, 设置为向组播服务器发送对至少两个云终端进行升级的组播升 级参数及升级镜像文件信息; 获取模块, 设置为获取所述组播服务器依据所述组播升 级参数以及所述升级镜像文件信息确定对所述至少两个云终端进行组播升级的端口信 息和镜像分区信息; 第三发送模块, 设置为将确定的所述端口信息和所述镜像分区信 息发送给所述至少两个云终端, 其中, 所述至少两个云终端依据所述端口信息和所述 镜像分区信息进行组播升级。 优选地, 所述装置还包括: 第四发送模块, 设置为向所述组播服务器发送停止对 所述至少两个云终端进行组播升级的组播升级停止信息, 其中, 所述组播服务器依据 所述组播升级停止信息停止对所述至少两个云终端进行组播升级。 根据本发明的再一方面, 提供了一种云终端升级处理装置, 应用于云终端, 包括: 第三接收模块, 设置为获取对至少两个云终端进行组播升级的端口信息和镜像分区信 息, 其中, 所述端口信息和所述镜像分区信息由组播服务器依据网管服务器发送的组 播升级参数以及升级镜像文件信息确定; 第二升级模块, 设置为依据所述端口信息和 所述镜像分区信息进行组播升级。 优选地, 所述第二升级模块包括: 第二判断单元, 设置为判断所述镜像分区信息 是否满足所述云终端分区升级需求; 升级单元, 设置为在判断结果为是的情况下, 所 述云终端依据所述端口信息加入升级组播进行组播升级。 通过本发明, 采用组播服务器接收到网管服务器发送的对至少两个云终端进行升 级的组播升级参数及升级镜像文件信息; 所述组播服务器依据所述组播升级参数以及 所述升级镜像文件信息确定对所述至少两个云终端进行组播升级的端口信息和镜像分 区信息; 所述组播服务器依据确定的所述端口信息和所述镜像分区信息对所述至少两 个云终端进行组播升级, 解决了在相关技术中, 存在升级速度慢, 升级效率低的问 题, 进而达到了提升升级速度, 升级效率的效果。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中: 图 1是根据本发明实施例的云终端升级处理方法一的流程图; 图 2是根据本发明实施例的云终端升级处理方法二 .的流程图; 图 3是根据本发明实施例的云终端升级处理方法三 :的流程图; 图 4是根据本发明实施例的云终端升级处理装置一的结构框图; 图 5是根据本发明实施例的云终端升级处理装置 -中确定模块 44的优选结构框
图 6是根据本发明实施例的云终端升级处理装置一的优选结构框图; 图 7是根据本发明实施例的云终端升级处理装置二 .的结构框图; 图 8是根据本发明实施例的云终端升级处理装置二 .的优选结构框图; 图 9是根据本发明实施例的云终端升级处理装置三 :的结构框图; 图 9a是根据本发明实施例的云终端升级处理装置 Ξ三中第二升级模块 94的优选结 构框图; 图 10是根据本发明实施例的 nfs升级的流程图; 图 11是根据本发明实施例的网管服务器、 组播服务器、 及终端的架构示意图; 图 12是根据本发明实施例的组播流程图; 图 13是根据本发明实施例的检测并停止组播服务流程图; 图 14是根据本发明实施例的组播升级时序图。 具体实 Ifi^式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 在本实施例中提供了一种云终端升级处理方法, 图 1是根据本发明实施例的云终 端升级处理方法一的流程图, 如图 1所示, 该流程包括如下步骤: 步骤 S102,组播服务器接收到网管服务器发送的对至少两个云终端进行升级的组 播升级参数及升级镜像文件信息; 步骤 S104,组播服务器依据组播升级参数以及升级镜像文件信息确定对至少两个 云终端进行组播升级的端口信息和镜像分区信息; 步骤 S106,组播服务器依据确定的端口信息和镜像分区信息对至少两个云终端进 行组播升级。 通过上述步骤, 通过组播服务器对至少两个云终端进行组播升级, 相对于相关技 术中在对云终端进行升级时采用云终端是一个一个进行升级,对服务器的带宽要求高, 同时升级的终端太多, 可能造成服务器异常的问题, 采用上述方式对云终端进行批量 升级, 不仅节省了带宽, 更好地为云终端服务, 有效地提高了升级速度。 组播服务器依据确定的端口信息和镜像分区信息对至少两个云终端进行组播升级 时, 可以采用多种处理方式, 例如, 可以采用以下处理方式: 组播服务器依据确定的 端口信息和镜像分区信息判断至少两个云终端中的所有云终端是否均加入了进行此轮 组播升级的组播组; 在判断结果为否的情况下, 组播服务器将至少两个云终端中没有 加入此轮组播升级的云终端加入到下一轮组播升级的组播组。 优选地, 在组播服务器依据确定的端口信息和镜像分区信息对至少两个云终端进 行组播升级之后, 还包括: 组播服务器接收到网管服务器下发的对至少两个云终端进 行组播升级的组播状态进行检测的检测信息; 组播服务器依据检测信息判断组播状态 是否正常; 组播服务器在判断结果为是的情况下, 将对至少两个云终端进行组播升级 的组播地址发送给网管服务器。 在本实施例中, 还提供了一种云终端升级处理方法, 图 2是根据本发明实施例的 云终端升级处理方法二的流程图, 如图 2所示, 该流程包括如下步骤: 步骤 S202, 向组播服务器发送对至少两个云终端进行升级的组播升级参数及升级 镜像文件信息; 步骤 S204, 网管服务器获取组播服务器依据组播升级参数以及升级镜像文件信息 确定对至少两个云终端进行组播升级的端口信息和镜像分区信息; 步骤 S206, 网管服务器将确定的端口信息和镜像分区信息发送给至少两个云终 端, 其中, 至少两个云终端依据端口信息和镜像分区信息进行组播升级。 优选地, 在网管服务器将确定的端口信息和镜像分区信息发送给至少两个云终端 之后, 还包括: 网管服务器向组播服务器发送停止对至少两个云终端进行组播升级的 组播升级停止信息, 其中, 组播服务器依据组播升级停止信息停止对至少两个云终端 进行组播升级。 在本实施例中, 还提供了一种云终端升级处理方法, 图 3是根据本发明实施例的 云终端升级处理方法三的流程图, 如图 3所示, 该流程包括如下步骤: 步骤 S302, 云终端获取对至少两个云终端进行组播升级的端口信息和镜像分区信 息, 其中, 端口信息和镜像分区信息由组播服务器依据网管服务器发送的组播升级参 数以及升级镜像文件信息确定; 步骤 S304, 该云终端依据端口信息和镜像分区信息进行组播升级。 优选地, 上述云终端依据端口信息和镜像分区信息进行组播升级包括: 云终端判 断镜像分区信息是否满足云终端分区升级需求; 在判断结果为是的情况下, 云终端依 据端口信息加入升级组播进行组播升级。 在本实施例中还提供了一种云终端升级处理装置, 该装置用于实现上述实施例及 优选实施方式, 已经进行过说明的不再赘述。 如以下所使用的, 术语 "模块"可以实 现预定功能的软件和 /或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实 现, 但是硬件, 或者软件和硬件的组合的实现也是可能并被构想的。 图 4是根据本发明实施例的云终端升级处理装置一的结构框图, 如图 4所示, 该 装置应用于组播服务器中, 包括第一接收模块 42、 确定模块 44和第一升级模块 46, 下面对该装置进行说明。 第一接收模块 42, 设置为接收到网管服务器发送的对至少两个云终端进行升级的 组播升级参数及升级镜像文件信息; 确定模块 44, 连接至上述第一接收模块 42, 设置 为依据组播升级参数以及升级镜像文件信息确定对至少两个云终端进行组播升级的端 口信息和镜像分区信息; 第一升级模块 46, 连接至上述确定模块 44, 设置为依据确定 的端口信息和镜像分区信息对至少两个云终端进行组播升级。 图 5是根据本发明实施例的云终端升级处理装置一中确定模块 44的优选结构框 图, 如图 5所示, 该确定模块 44包括: 判断单元 52和加入单元 54, 下面对该确定模 块 44进行说明。 判断单元 52, 设置为依据确定的端口信息和镜像分区信息判断至少两个云终端中 的所有云终端是否均加入了进行此轮组播升级的组播组; 加入单元 54, 连接至上述判 断单元 52, 设置为在判断单元的判断结果为否的情况下, 将至少两个云终端中没有加 入此轮组播升级的云终端加入到下一轮组播升级的组播组。 图 6是根据本发明实施例的云终端升级处理装置一的优选结构框图,如图 6所示, 该优选结构除包括图 4所示的所有模块外, 还包括第二接收模块 62、 判断模块 64和 第一发送模块 66, 下面对该优选结构进行说明。 第二接收模块 62,连接至上述第一升级模块 46,设置为接收到网管服务器下发的 对至少两个云终端进行组播升级的组播状态进行检测的检测信息; 判断模块 64, 连接 至上述第二接收模块 62, 设置为依据检测信息判断组播状态是否正常; 第一发送模块 66, 连接至上述判断模块 64, 设置为在判断结果为是的情况下, 将对至少两个云终端 进行组播升级的组播地址发送给网管服务器。 图 7是根据本发明实施例的云终端升级处理装置二的结构框图, 如图 7所示, 该 装置应用于网管服务器, 该结构包括第二发送模块 72、 获取模块 74和第三发送模块 76, 下面对该装置进行说明。 第二发送模块 72, 设置为向组播服务器发送对至少两个云终端进行升级的组播升 级参数及升级镜像文件信息; 获取模块 74, 连接至上述第二发送模块 72, 设置为获取 组播服务器依据组播升级参数以及升级镜像文件信息确定对至少两个云终端进行组播 升级的端口信息和镜像分区信息; 第三发送模块 76, 连接至上述获取模块 74, 设置为 将确定的端口信息和镜像分区信息发送给至少两个云终端, 其中, 至少两个云终端依 据端口信息和镜像分区信息进行组播升级。 图 8是根据本发明实施例的云终端升级处理装置二的优选结构框图,如图 8所示, 该装置除包括图 7所示的所有模块外, 还包括第四发送模块 82, 下面以该装置进行说 明。 第四发送模块 82,连接至上述第三发送模块 76,设置为向组播服务器发送停止对 至少两个云终端进行组播升级的组播升级停止信息, 其中, 该组播服务器依据组播升 级停止信息停止对至少两个云终端进行组播升级。 图 9是根据本发明实施例的云终端升级处理装置三的结构框图, 如图 9所示, 该 装置应用于云终端, 该结构包括第三接收模块 92和第二升级模块 94, 下面对该装置 进行说明。 第三接收模块 92, 设置为获取对至少两个云终端进行组播升级的端口信息和镜像 分区信息, 其中, 端口信息和镜像分区信息由组播服务器依据网管服务器发送的组播 升级参数以及升级镜像文件信息确定;第二升级模块 94,连接至上述第三接收模块 92, 设置为依据端口信息和镜像分区信息进行组播升级。 图 9a是根据本发明实施例的云终端升级处理装置三的第二升级模块 94的优选结 构框图, 如图 9a所示, 该第二升级模块 94包括第二判断单元 9a2和升级单元 9a4, 下 面对该模块进行说明。 第二判断模块 9a2, 设置为判断镜像分区信息是否满足云终端分区升级需求; 升 级单元 9a4, 连接至上述第二判断模块 9a2, 设置为在上述判断结果为是的情况下, 云 终端依据端口信息加入升级组播进行组播升级 为了更好的对云终端进行维护, 节省网络带宽, 提高升级速度, 在本实施例中, 提供了一种云终端集中管理软件采用组播技术实现对云终端系统镜像远程且快速升级 的方法。 通过该方法, 解决了常规升级方式对带宽及服务器性能要求高的技术问题。 该方法大致包括以下步骤: 网管服务器提取最新的系统镜像版本, 在网管服务器 新建操作系统升级任务进行终端批量升级, 在建任务时可选择 nfs或组播升级, 并选 择需要升级的镜像版本。 图 10是根据本发明实施例的 nfs升级的流程图, 如图 10所 示, 采用选择 nfs方式升级时, 先将 nfs服务器及升级镜像文件信息下发到终端, 终端 挂载到 nfs服务器先复制镜像分区信息, 检测分区信息是否满足升级要求, 若满足则 复制镜像升级文件, 完成升级。 例如, 采用 nfs升级的步骤可以如下所示:
S 1002、 将 nfs服务器 ip、 镜像文件存放在 nfs服务器的路径及镜像文件名设置到 云终端; S 1004、 云终端判断 nfs是否可连接, 在判断结果为否时, 上报消息到网管, 结束 升级;
S 1006、 在判断 nfs可连接时, 云终端上报升级消息到网管服务器, 并重启进入升 级的系统;
S 1008、 云终端正常启动进入升级系统; S 1010、 云终端正常启动进入升级系统后, 挂载到 nfs服务器上进行升级;
S 1012, 云终端升级成功;
S 1014、 云终端在升级成功后上报消息到网管, 升级结束。 若选择组播方式升级, 需配置组播升级的参数, 网管服务器将组播参数以及需要 升级的升级镜像文件信息发送到组播服务器,组播服务器根据组播参数启动组播程序, 若组播程序启动, 则组播服务器会发送消息到网管服务器, 网管服务器再将组播参数 信息和镜像文件信息下发到终端, 进行组播升级。 上述通过组播升级和 nfs升级相结合的方式来保证云终端升级功能的完整性, 在 该组播升级中, 网管服务器将组播参数及升级镜像文件信息下发到终端后, 终端先到 组播服务器下载镜像文件分区信息, 若不满足系统升级需要, 则终端上报消息当网管 服务器, 网管服务器记录该终端不能升级的原因。 若满足升级需要, 则终端重启进入 升级的系统, 加入到组播组, 若组播启动发送数据的策略已满足, 则开始组播发送数 据, 数据发送完后, 终端重启进入正常的系统, 完成升级。 若在第一次组播策略已满足并开始组播升级时, 在该次需要升级的终端如果已启 动升级系统进入了升级界面, 但没有加入到这一次组播中, 则等待组播服务器当次组 播数据发送完成, 重启组播服务程序, 等待上一轮未加入的终端加入, 并再次发送组 播数据。 以此一轮一轮的发送, 保证终端升级完成。 通过组播对终端升级, 实现了对云终端的远程快速升级, 同时降低了网络带宽及 服务器的性能需求。 图 11是根据本发明实施例的网管服务器、 组播服务器、及终端的架构示意图, 如 图 11所示, 该系统的整体架构图包括: 网管服务器、 NFS/组播服务器、 云终端几个部 分, 网管服务器和 NFS/组播服务器可部署在同一台服务器, 在网管服务器和 NFS/组 播服务器之间可以通信的情况下也可分开部署。 网管服务器主要包括第一通信模块 1102和第一 tr069模块 1104。其中第一通信模 块 1102主要负责与组播服务器进行通信,包括组播参数的传递,组播服务状态的检测, 关闭组播服务等。 第一 tr069模块 1104负责与云终端交互, 包括网管服务器下发参数 到终端, 终端上报到网管信息的处理等。
NFS/组播服务器主要包括第二通信模块 1106, 第一 http模块 1108, 第一组播模 块 1110等几个部分。 第二通信模块 1106负责与网管服务器进行交互, 主要包含将组 播状态的返回等。第一 http模块 1108提供镜像恢复的分区文件和组播端口信息文件等 为终端下载, 以便云终端获取分区信息判断该镜像文件是否与终端的分区信息一致。 第一组播模块 1110负责终端加入组播组, 校验组播数据, 判断终端是否超时丢弃, 组 播数据的发送等。 云终端即是需要升级的终端,主要包括第二 tr069模块 1112和第二组播模块 1114。 第二 tr069模块 1112主要负责与网管进行交互, 包括将网管下发的参数设置情况返回 到网管服务器, 镜像文件分区信息是否与终端一致判断结果、 终端升级结果的上报及 终端状态的上报等。第二组播模块 1114主要负责加入到网管服务器设置的组播组, 接 收组播数据等。 图 12是根据本发明实施例的组播流程图, 如图 12所示, 在组播升级之前, 需在 网管服务器选择一台系统配置好的或者新系统的终端, 提取该终端的系统镜像, 将新 的系统镜像上传到 nfs服务器, 并记录到网管服务器。 再开始组播升级, 组播升级流 程图如下:
S1202、 将在网管服务器配置的组播参数及升级的镜像文件信息同步到组播服务 器;
S1204、组播服务器接收到组播参数后, 从镜像文件目录下获取镜像的分区数, 根 据分区数查找组播可用端口数, 并新写入该目录下的端口信息文件;
S1206、根据获取的端口信息, 启动组播服务, 同时将镜像分区信息和组播使用端 口的文件复制到 http服务下载的目录下, 返回给网管服务器提示组播启动服务成功; S1208、若网管服务器收到组播服务启动成功消息,则将组播地址等参数及下载镜 像分区信息和端口信息的文件 http地址下发到云终端;
S1210、 若网管服务器未收到组播服务启动成功消息, 结束本次升级;
S1212、 云终端收到消息后, 先判断组播服务器是否可连接; S1214、 若可连接, 则去下载镜像分区信息和端口信息的文件;
S1216、 组播服务器不可连接, 返回信息到网管, 结束本次升级;
S1218、 下载到信息后, 判断镜像的分区信息是否满足当前云终端的升级要求;
S1220、若满足当前云终端的升级要求, 则云终端解析组播端口信息并记录, 重启 云终端进入升级系统; S1222、 若不满足当前云终端的升级要求, 返回信息到网管, 结束本次升级;
S1224、 终端接收到组播服务器发送的发现报文, 加入组播组;
S1226、组播服务器检测组播开始发送数据的策略是否满足, 如果满足策略, 则开 始发送数据;
S1228、若在开始发送数据时,仍有终端因为网络延时或组播策略的终端连接数超 过了实际终端数等原因未加入到此轮组播中, 则等待这轮组播数据升级完成后, 组播 服务器重启组播服务, 加入到下轮组播中, 以此循环, 直到所有正常进入升级系统的 终端都完成升级;
S1230、 云终端接收到数据后, 校验数据正确与否;
S1232、 若数据校验有误, 则重启进入下一轮组播升级; S1234、 若数据校验无误, 升级成功。 在组播发送数据的升级过程中,由于网络原因或其它原因导致某一终端网络不通, 组播服务器会等待该终端直到超时丢弃该终端再继续发送数据, 保证升级的完整性。 图 13是根据本发明实施例的检测并停止组播服务流程图, 如图 13所示, 可检测 组播服务是否正在运行并可停止该组播服务, 流程如下: S1302、网管服务器发送检测组播服务的消息;组播服务器接收到检测组播服务的 消息后, 检测组播状态;
S1304、 判断组播服务是否正在运行;
S1306、若组播服务没有运行, 则返回组播服务未启动的消息到网管服务器, 网管 服务器将接收到的信息展示给用户;
S1308、若组播服务在运行,则将正在运行的组播服务的组播地址发送到网管服务 器;
S1310、若网管服务器接收到的是组播地址的消息,则可让用户选择是否停止该组 播服务, 以结束组播; S1312、若选择停止该组播服务,则网管服务器发送停止组播的消息到组播服务器, 以停止组播服务。 图 14是根据本发明实施例的组播升级时序图, 如图 14所示, 该组播升级的时序 图如下:
S1402、 网管客户端在任务管理中建立系统升级的任务; S1404、 网管服务端在调度任务时, 若是组播升级的任务, 则将组播升级参数传递 到组播服务器。 参数包括: 升级文件、 组播端口、 组播地址、 组播服务器网卡、 双工 模式、 传输速率限制、 最小连接数、 最小等待时间、 最大等待时间、 跳数、 重发 hello 包间隔时间参数、 发送多少个 REQACK后丢弃接收机;
S1406、组播服务器接收组播参数,根据传入的升级文件(实际是一个目录)参数, 到相应文件目录解析升级文件的分区信息,根据分区数检测组播升级所需的端口号(把 客户端配置的组播端口参数作为起始值,进行检测), 并将检测可用端口写入组播升级 文件夹下的端口文件 *.port; 根据传入的参数启动组播服务, 将启动成功失败的标识返 回到网管服务器, 同时将升级文件的分区信息及端口文件复制到 http服务器目录; 若启动组播服务失败, 则在网管服务器的任务调度处直接返回; S1408、 若启动组播服务成功, 进入系统升级任务的动作单元;
S1410、将组播升级的参数信息下发到设备, 下发参数包括: 组播地址、跳数、 http 服务器地址及组播标识等; S1412、 参数设置到终端失败, 则直接返回到网管服务器;
S1414、 接受并处理参数设置结果记录入库;
S1416、 若设置参数成功, 终端发起 http请求; S1418、 下载分区信息及端口文件; S1420、 若分区信息与终端系统一致, 则终端重启进入终端升级小系统;
S1422、 加入组播组, 接收组播数据;
S1424、 升级成功、 终端重启进入 wes系统、 注册到网管服务器。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以 将它们存储在存储装置中由计算装置来执行, 并且在某些情况下, 可以以不同于此处 的顺序执行所示出或描述的步骤, 或者将它们分别制作成各个集成电路模块, 或者将 它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限制于任 何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。
: r k实用性 如上所述, 本发明实施例提供的一种云终端升级处理方法及装置具有以下有 益效果: 解决了在相关技术中, 存在升级速度慢, 升级效率低的问题, 进而达到了 提升升级速度, 升级效率的效果。

Claims

权 利 要 求 书
1. 一种云终端升级处理方法, 包括:
组播服务器接收到网管服务器发送的对至少两个云终端进行升级的组播升 级参数及升级镜像文件信息;
所述组播服务器依据所述组播升级参数以及所述升级镜像文件信息确定对 所述至少两个云终端进行组播升级的端口信息和镜像分区信息;
所述组播服务器依据确定的所述端口信息和所述镜像分区信息对所述至少 两个云终端进行组播升级。
2. 根据权利要求 1所述的方法, 其中, 所述组播服务器依据确定的所述端口信息 和所述镜像分区信息对所述至少两个云终端进行组播升级包括:
所述组播服务器依据确定的所述端口信息和所述镜像分区信息判断所述至 少两个云终端中的所有云终端是否均加入了进行此轮组播升级的组播组; 在判断结果为否的情况下, 所述组播服务器将所述至少两个云终端中没有 加入此轮组播升级的云终端加入到下一轮组播升级的组播组。
3. 根据权利要求 1所述的方法, 其中, 在所述组播服务器依据确定的所述端口信 息和所述镜像分区信息对所述至少两个云终端进行组播升级之后, 还包括: 所述组播服务器接收到所述网管服务器下发的对所述至少两个云终端进行 组播升级的组播状态进行检测的检测信息;
所述组播服务器依据所述检测信息判断所述组播状态是否正常; 所述组播服务器在判断结果为是的情况下, 将对所述至少两个云终端进行 组播升级的组播地址发送给所述网管服务器。
4. 一种云终端升级处理方法, 包括:
网管服务器向组播服务器发送对至少两个云终端进行升级的组播升级参数 及升级镜像文件信息;
所述网管服务器获取所述组播服务器依据所述组播升级参数以及所述升级 镜像文件信息确定对所述至少两个云终端进行组播升级的端口信息和镜像分区
I 自 .
H ; 、; 所述网管服务器将确定的所述端口信息和所述镜像分区信息发送给所述至 少两个云终端, 其中, 所述至少两个云终端依据所述端口信息和所述镜像分区 信息进行组播升级。
5. 根据权利要求 4所述的方法, 其中, 在所述网管服务器将确定的所述端口信息 和所述镜像分区信息发送给所述至少两个云终端之后, 还包括:
所述网管服务器向所述组播服务器发送停止对所述至少两个云终端进行组 播升级的组播升级停止信息, 其中, 所述组播服务器依据所述组播升级停止信 息停止对所述至少两个云终端进行组播升级。
6. 一种云终端升级处理方法, 包括:
云终端获取对至少两个云终端进行组播升级的端口信息和镜像分区信息, 其中, 所述端口信息和所述镜像分区信息由组播服务器依据网管服务器发送的 组播升级参数以及升级镜像文件信息确定;
所述云终端依据所述端口信息和所述镜像分区信息进行组播升级。
7. 根据权利要求 6所述的方法, 其中, 所述云终端依据所述端口信息和所述镜像 分区信息进行组播升级包括:
所述云终端判断所述镜像分区信息是否满足所述云终端分区升级需求; 在判断结果为是的情况下, 所述云终端依据所述端口信息加入升级组播进 行组播升级。
8. 一种云终端升级处理装置, 应用于组播服务器中, 包括:
第一接收模块, 设置为接收到网管服务器发送的对至少两个云终端进行升 级的组播升级参数及升级镜像文件信息;
确定模块, 设置为依据所述组播升级参数以及所述升级镜像文件信息确定 对所述至少两个云终端进行组播升级的端口信息和镜像分区信息;
第一升级模块, 设置为依据确定的所述端口信息和所述镜像分区信息对所 述至少两个云终端进行组播升级。
9. 根据权利要求 8所述的装置, 其中, 所述确定模块包括:
第一判断单元, 设置为依据确定的所述端口信息和所述镜像分区信息判断 所述至少两个云终端中的所有云终端是否均加入了进行此轮组播升级的组播 组; 加入单元, 设置为在所述判断单元的判断结果为否的情况下, 将所述至少 两个云终端中没有加入此轮组播升级的云终端加入到下一轮组播升级的组播 组。
10. 根据权利要求 8所述的装置, 其中, 还包括:
第二接收模块, 设置为接收到所述网管服务器下发的对所述至少两个云终 端进行组播升级的组播状态进行检测的检测信息;
判断模块, 设置为依据所述检测信息判断所述组播状态是否正常; 第一发送模块, 设置为在判断结果为是的情况下, 将对所述至少两个云终 端进行组播升级的组播地址发送给所述网管服务器。
11. 一种云终端升级处理装置, 应用于网管服务器, 包括:
第二发送模块, 设置为向组播服务器发送对至少两个云终端进行升级的组 播升级参数及升级镜像文件信息;
获取模块, 设置为获取所述组播服务器依据所述组播升级参数以及所述升 级镜像文件信息确定对所述至少两个云终端进行组播升级的端口信息和镜像分 区信息;
第三发送模块, 设置为将确定的所述端口信息和所述镜像分区信息发送给 所述至少两个云终端, 其中, 所述至少两个云终端依据所述端口信息和所述镜 像分区信息进行组播升级。
12. 根据权利要求 11所述的装置, 其中, 还包括:
第四发送模块, 设置为向所述组播服务器发送停止对所述至少两个云终端 进行组播升级的组播升级停止信息, 其中, 所述组播服务器依据所述组播升级 停止信息停止对所述至少两个云终端进行组播升级。
13. 一种云终端升级处理装置, 应用于云终端, 包括:
第三接收模块, 设置为获取对至少两个云终端进行组播升级的端口信息和 镜像分区信息, 其中, 所述端口信息和所述镜像分区信息由组播服务器依据网 管服务器发送的组播升级参数以及升级镜像文件信息确定;
第二升级模块, 设置为依据所述端口信息和所述镜像分区信息进行组播升 级。
14. 根据权利要求 13所述的装置, 其中, 所述第二升级模块包括: 第二判断单元, 设置为判断所述镜像分区信息是否满足所述云终端分区升 级需求;
升级单元, 设置为在判断结果为是的情况下, 所述云终端依据所述端口信 息加入升级组播进行组播升级。
PCT/CN2014/075848 2013-11-22 2014-04-21 云终端升级处理方法及装置 WO2014180245A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310596783.X 2013-11-22
CN201310596783.XA CN104660639B (zh) 2013-11-22 2013-11-22 云终端升级处理方法及装置

Publications (1)

Publication Number Publication Date
WO2014180245A1 true WO2014180245A1 (zh) 2014-11-13

Family

ID=51866707

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/075848 WO2014180245A1 (zh) 2013-11-22 2014-04-21 云终端升级处理方法及装置

Country Status (2)

Country Link
CN (1) CN104660639B (zh)
WO (1) WO2014180245A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016070566A1 (zh) * 2014-11-06 2016-05-12 中兴通讯股份有限公司 云终端升级方法、系统、网管服务器及代理服务器
CN115277687A (zh) * 2021-04-30 2022-11-01 北京小米移动软件有限公司 资源数据获取方法、资源数据获取装置及存储介质

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107306275A (zh) * 2016-04-18 2017-10-31 中兴通讯股份有限公司 一种组播升级终端系统的方法及网管服务器
CN106059936B (zh) * 2016-08-10 2019-09-27 北京海誉动想科技股份有限公司 云系统组播文件的方法及装置
CN110708345A (zh) * 2018-07-09 2020-01-17 阿里巴巴集团控股有限公司 云盘升级方法、调度方法及云主机、调度装置和系统
CN111817873A (zh) * 2020-05-20 2020-10-23 中国电力科学研究院有限公司 一种基于hplc通讯的能源路由器远程升级方法及系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6665780B1 (en) * 2000-10-06 2003-12-16 Radiant Data Corporation N-way data mirroring systems and methods for using the same
CN101686139A (zh) * 2008-09-22 2010-03-31 深圳华为通信技术有限公司 一种组播升级的方法、装置和系统
CN102255756A (zh) * 2011-07-21 2011-11-23 中兴通讯股份有限公司 一种机顶盒升级方法及其系统
CN102917065A (zh) * 2012-10-23 2013-02-06 浪潮(北京)电子信息产业有限公司 一种节点的搜索方法、云计算节点及云计算管理端

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1658574A (zh) * 2005-03-23 2005-08-24 港湾网络有限公司 网络设备自动更新方法及系统
CN101951369A (zh) * 2010-09-14 2011-01-19 太仓市同维电子有限公司 基于自动发现的终端批量升级方法及其系统
CN102945175A (zh) * 2012-11-09 2013-02-27 杭州易和网络有限公司 一种基于云计算环境的终端软件在线升级系统及其方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6665780B1 (en) * 2000-10-06 2003-12-16 Radiant Data Corporation N-way data mirroring systems and methods for using the same
CN101686139A (zh) * 2008-09-22 2010-03-31 深圳华为通信技术有限公司 一种组播升级的方法、装置和系统
CN102255756A (zh) * 2011-07-21 2011-11-23 中兴通讯股份有限公司 一种机顶盒升级方法及其系统
CN102917065A (zh) * 2012-10-23 2013-02-06 浪潮(北京)电子信息产业有限公司 一种节点的搜索方法、云计算节点及云计算管理端

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016070566A1 (zh) * 2014-11-06 2016-05-12 中兴通讯股份有限公司 云终端升级方法、系统、网管服务器及代理服务器
CN115277687A (zh) * 2021-04-30 2022-11-01 北京小米移动软件有限公司 资源数据获取方法、资源数据获取装置及存储介质
CN115277687B (zh) * 2021-04-30 2024-02-23 北京小米移动软件有限公司 资源数据获取方法、资源数据获取装置及存储介质

Also Published As

Publication number Publication date
CN104660639B (zh) 2020-03-27
CN104660639A (zh) 2015-05-27

Similar Documents

Publication Publication Date Title
WO2014180245A1 (zh) 云终端升级处理方法及装置
CN108848163B (zh) Tws耳机的升级方法及tws耳机
US10027781B2 (en) TCP link configuration method, apparatus, and device
US7903546B2 (en) Detecting unavailable network connections
CN108833542B (zh) Tws耳机的升级方法及tws耳机
WO2017096931A1 (zh) 传屏软件的传输方法、传屏方法、设备及数据传输系统
WO2019006808A1 (zh) 一种处理长连接建立请求的方法和装置
WO2016000138A1 (zh) 一种数据传输方法、终端和服务器
WO2015139390A1 (zh) 组播数据处理方法、装置、系统、发送设备及接收客户端
CN111711680A (zh) 基于udp协议的文件断点续传方法及装置
EP4221233A1 (en) Data download method and apparatus, computer device and storage medium
WO2016070566A1 (zh) 云终端升级方法、系统、网管服务器及代理服务器
CN104077152A (zh) 一种嵌入式系统批量升级的方法及装置
CN110213320B (zh) 通信连接的方法、装置、电子设备及计算机可读存储介质
JP6994110B2 (ja) データ配信方法及び配信サーバ
CN111385068A (zh) 数据传输方法、装置、电子设备及通信系统
CN106657076B (zh) 一种网络命名空间的tcp服务实现方法及装置
JP2020537454A5 (zh)
WO2013163847A1 (zh) 单pdp双栈串行拨号方法和系统
CN102546659B (zh) 面向远过程调用的持久tcp连接方法
CN107528788B (zh) 实现网络设备之间自动堆叠的方法和装置
US20140143315A1 (en) Communication device and communication method
CN112217735A (zh) 信息同步方法与负载均衡系统
CN112131014A (zh) 决策引擎系统及其业务处理方法
CN107294877B (zh) 一种tcp流重组方法和装置

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: 14795248

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: 14795248

Country of ref document: EP

Kind code of ref document: A1