CN100481779C - Upgrade control method and control device - Google Patents

Upgrade control method and control device Download PDF

Info

Publication number
CN100481779C
CN100481779C CNB2007100653703A CN200710065370A CN100481779C CN 100481779 C CN100481779 C CN 100481779C CN B2007100653703 A CNB2007100653703 A CN B2007100653703A CN 200710065370 A CN200710065370 A CN 200710065370A CN 100481779 C CN100481779 C CN 100481779C
Authority
CN
China
Prior art keywords
opposite end
upgraded
equipment
transmission
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB2007100653703A
Other languages
Chinese (zh)
Other versions
CN101039217A (en
Inventor
董辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CNB2007100653703A priority Critical patent/CN100481779C/en
Publication of CN101039217A publication Critical patent/CN101039217A/en
Application granted granted Critical
Publication of CN100481779C publication Critical patent/CN100481779C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Communication Control (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method of upgrading control, which includes: a device for upgrading receiving upgrading date by the network and the indicating information for indicating current received information is preserved by the device for upgrading when the network transmission is interrupted, the device to upgrade timing sending the information of transmission request to the remote end and the remote end sending response information to the device for upgrading after receiving the information of transmission request, the device for upgrading sending the indicating information to the remote end after receiving the response information sent by the remote end, after receiving the indicating information, the remote end sending the rest upgrading date which is not transmitted to the device for upgrading according to the indicating information. The invention also discloses a device of upgrading control. The invention can recovery the transmission of upgrading date for the device to upgrade when the network transmission of upgrading date is interrupted, avoid the failure upgrade and the palsy of the upgrading device in effect, and largely reduce the occupancy of the time and the resource.

Description

Upgrade control method and control device
Technical field
The present invention relates to upgrade technique, particularly a kind of upgrade control method and control device belong to communication technical field.
Background technology
In the prior art, when treating updating apparatus by network and upgrade,, thereby cause the waste of time and resource if network connects and interrupts and cause upgrade data not transmit finishing, then need to transmit again this upgrade data.
For example, when using file transfer protocol (FTP) (being called for short ftp) to treat updating apparatus to carry out network upgrade, finish, then can cause the upgrade data that transmits imperfect if network problem makes upgrade data not transmit.In the time of network recovery, need carry out the transmission of file again.Especially in the upgrade data data volume that will transmit bigger and network problem appears and before the transmission of upgrade data near under the situation about finishing, transmit upgrade data again and lose time very much and resource.
On the other hand, in the prior art, when the system file for the treatment of updating apparatus carries out online upgrading,, also may cause upgrading failure and equipment to be upgraded paralysis if network connects interruption and can not in time recover upgrading.
Summary of the invention
The purpose of this invention is to provide a kind of upgrade control method and control device, the transmission that can make equipment to be upgraded when the Network Transmission of upgrade data is interrupted, in time recover upgrade data, effectively avoid the paralysis of failure and equipment to be upgraded of upgrading, and can significantly reduce taking time and resource.
For achieving the above object, the invention provides a kind of upgrade control method, comprise: equipment to be upgraded receives upgrade data by network, and when Network Transmission was interrupted, equipment to be upgraded was preserved the indication information of the data volume that is used to indicate the current upgrade data that has received; Equipment to be upgraded periodically sends transfer request message to the opposite end, receives the response to equipment transmission to be upgraded after receiving described transfer request message in the opposite end; Equipment to be upgraded sends to the opposite end with described indication information after receiving receiveing the response that the opposite end sends; After this indication information was received in the opposite end, according to this indication information, the upgrade data that residue is not transmitted was transferred to equipment to be upgraded.
In the technique scheme, described equipment to be upgraded comprises hardware device to be upgraded such as server, terminal, router etc., also comprises the hardware device of storing software program to be upgraded.Described upgrade data comprise make up with forms such as file, software program, parameter informations, be used for data that described equipment to be upgraded is upgraded.
In technique scheme, by when the Network Transmission of upgrade data is interrupted, periodically send transfer request message by equipment to be upgraded to the opposite end, after the transfer request message that equipment to be upgraded sends is received in the opposite end, send and receive the response and transmit data to equipment to be upgraded, thereby make equipment to be upgraded can recover reception in time, the paralysis of effectively avoid upgrading failure and equipment to be upgraded to upgrade data; And, by when the Network Transmission of upgrade data is interrupted, preserve the data volume of the upgrade data that has received by equipment to be upgraded, after receiving receiveing the response that the opposite end sends, the indication information that will comprise this data volume sends to the opposite end, thereby make the opposite end to extract and to the remaining not upgrade data of transmission of device transmission to be upgraded, and need not to transmit again whole upgrade datas, significantly reduced taking time and resource according to this indication information.
For achieving the above object, the present invention also provides a kind of upgrading control device, comprising: receiving element is used for receiving upgrade data by network; Memory cell is used for preserving the indication information of the data volume that is used to indicate the current upgrade data that has received when the Network Transmission of receiving element is interrupted; Request unit, being used for having no progeny periodically in Network Transmission sends transfer request message to the opposite end, and after receiving receiveing the response that the opposite end sends, the described indication information that memory cell is preserved sends to the opposite end.
In the technique scheme, described equipment to be upgraded comprises hardware device to be upgraded such as server, terminal, router etc., also comprises the hardware device of storing software program to be upgraded.Described upgrade data comprise make up with forms such as file, software program, parameter informations, be used for data that described equipment to be upgraded is upgraded.
In the technique scheme, described upgrading control device periodically sends transfer request message to the opposite end by request unit when the Network Transmission of upgrade data is interrupted, after the transfer request message that request unit sends is received in the opposite end, return and receive the response and transmit data, thereby can recover reception in time, the paralysis of effectively avoid upgrading failure and equipment to be upgraded to upgrade data; And, data volume by the memory cell upgrade data that preservation has received when the Network Transmission of upgrade data is interrupted, after receiving receiveing the response that the opposite end sends, the indication information that will comprise this data volume sends to the opposite end, thereby make the opposite end and to transmit the remaining not upgrade data of transmission according to this indication information extraction, and need not to transmit again whole upgrade datas, significantly reduced taking to time and resource.
In sum, when the present invention is interrupted by Network Transmission in the upgrade data transmission course, the data volume of the upgrade data that preservation has in time been transmitted, and periodically send transfer request message to the opposite end, thereby can in time recover the transmission of upgrade data, and, make that the opposite end can be according to the upgrade data that this data volume is extracted and the transmission residue is not transmitted by send described data volume to the opposite end, and need not to transmit again whole upgrade datas, significantly reduced transmission time and shared resource.
Description of drawings
Fig. 1 is the schematic flow sheet of the embodiment one of upgrade control method of the present invention;
Fig. 2 is the networking schematic diagram of the embodiment one of upgrade control method of the present invention;
Fig. 3 is the schematic flow sheet of the embodiment two of upgrade control method of the present invention;
Fig. 4 is the schematic flow sheet of the embodiment three of upgrade control method of the present invention;
Fig. 5 is the schematic flow sheet of the embodiment four of upgrade control method of the present invention;
Fig. 6 is the schematic flow sheet of the embodiment five of upgrade control method of the present invention;
Fig. 7 is the upgrade structural representation of embodiment one of control device of the present invention;
Fig. 8 is the upgrade structural representation of embodiment two of control device of the present invention;
Fig. 9 is the upgrade structural representation of embodiment three of control device of the present invention;
Figure 10 is the upgrade structural representation of embodiment four of control device of the present invention;
Figure 11 is the upgrade structural representation of embodiment five of control device of the present invention;
Figure 12 is the upgrade structural representation of embodiment six of control device of the present invention.
Embodiment
Below in conjunction with drawings and Examples, technical scheme of the present invention is described in further detail.
Fig. 1 is the schematic flow sheet of the embodiment one of upgrade control method of the present invention, this embodiment one may further comprise the steps: in step 1, equipment to be upgraded receives upgrade data by network, when Network Transmission was interrupted, equipment to be upgraded was preserved the indication information of the data volume that is used to indicate the current upgrade data that has received; Then in step 2, equipment to be upgraded periodically sends transfer request message to the opposite end, receives the response to equipment transmission to be upgraded after receiving described transfer request message in the opposite end; Then in step 3, equipment to be upgraded sends to the opposite end with described indication information after receiving receiveing the response that the opposite end sends; In step 4, after this indication information was received in the opposite end, according to this indication information, the upgrade data that residue is not transmitted was transferred to equipment to be upgraded at last.
In the foregoing description one, described equipment to be upgraded comprises hardware device to be upgraded such as server, terminal, router etc., also comprises the hardware device of storing software program to be upgraded.Described upgrade data comprise make up with forms such as file, software program, parameter informations, be used for data that described equipment to be upgraded is upgraded.
Those of ordinary skill in the art is to be understood that; the described indication information that is used to indicate the data volume of upgrade data comprises by the quantity of the transmission quantity of the size of upgrade file or percentage, upgrade software program or percentage, upgrade parameter or the like various this areas common technology means; indicate the data volume of the upgrade data that has transmitted; do not give unnecessary details one by one at this, it all should be within technical solution of the present invention scope required for protection.
In the foregoing description one, by when the Network Transmission of upgrade data is interrupted, periodically send transfer request message by equipment to be upgraded to the opposite end, after the transfer request message that equipment to be upgraded sends is received in the opposite end, send and receive the response and transmit data to equipment to be upgraded, thereby make equipment to be upgraded can recover reception in time, the paralysis of effectively avoid upgrading failure and equipment to be upgraded to upgrade data; And, by when the Network Transmission of upgrade data is interrupted, preserve the data volume of the upgrade data that has received by equipment to be upgraded, after receiving receiveing the response that the opposite end sends, the indication information that will comprise this data volume sends to the opposite end, thereby make the opposite end to extract and to the remaining not upgrade data of transmission of device transmission to be upgraded, and need not to transmit again whole upgrade datas, significantly reduced taking time and resource according to this indication information.
Preferably, in the foregoing description one, under the chronic situation of network disaster recovery, thereby send transfer request message occupied bandwidth resource for fear of the too much number of times of equipment to be upgraded ground, described equipment to be upgraded periodically sends transfer request message to the opposite end and can specifically comprise: equipment to be upgraded periodically sends the transfer request message of preset times at interval to the opposite end according to Preset Time, when equipment to be upgraded after sending the transfer request message of preset times to the opposite end, if do not receive receiveing the response of opposite end transmission, then stop to send transfer request message to the opposite end.
In the foregoing description one, when Network Transmission is interrupted, described equipment to be upgraded can be still sends transfer request message to the equipment of previous transmission upgrade data, after so formerly sending the network disaster recovery of the equipment of upgrade data and equipment room to be upgraded, equipment to be upgraded can continue to receive the not upgrade data of transmission of residue from the equipment of previous transmission upgrade data; In addition, described equipment to be upgraded also can send transfer request message to predefined alternate device, thereby need not to wait for the equipment of previous transmission upgrade data and the network disaster recovery of equipment product to be upgraded, just can directly receive the not upgrade data of transmission of residue from this alternate device.In other words, in the foregoing description one, described equipment to be upgraded periodically sends transfer request message to the opposite end and can specifically comprise: equipment to be upgraded periodically sends transfer request message to the transmitting apparatus of the upgrade data of previous reception; Equipment perhaps to be upgraded periodically sends transfer request message to the alternate device that sets in advance.Wherein, described transmitting apparatus and alternate device all can be server, terminal, router etc. can with the equipment of equipment to be upgraded by transmitted data on network.
For example, as shown in Figure 2, equipment to be upgraded is connected with backup server with the master server that stores upgrade data respectively by network.Equipment to be upgraded is preserved the IP address of backup server in advance, have no progeny in the upgrade data transmission between equipment to be upgraded and master server, equipment to be upgraded sends transfer request message according to the IP address of the backup server of preserving in advance to backup server, continues to receive the not upgrade data of transmission of residue from backup server.
Fig. 3 is the schematic flow sheet of the embodiment two of upgrade control method of the present invention, present embodiment two may further comprise the steps: in step 1, equipment to be upgraded receives upgrade data by network, when Network Transmission was interrupted, equipment to be upgraded was preserved the indication information of the data volume that is used to indicate the current upgrade data that has received; Then in step 20, equipment to be upgraded periodically sends transfer request message to the opposite end; In step 21, the opposite end sends the authentication message that comprises the authentication sign to equipment to be upgraded after receiving described transfer request message then; In step 31, described equipment to be upgraded authenticates the opposite end according to the authentication sign that comprises in this authentication message after receiving this authentication message, passes through then execution in step 32 if authenticate, if authentication is not passed through then finished subsequently; Then in step 32, equipment to be upgraded sends to the opposite end with described indication information; In step 4, after this indication information was received in the opposite end, according to this indication information, the upgrade data that residue is not transmitted was transferred to equipment to be upgraded at last.
The foregoing description two has further increased equipment to be upgraded and has identified the operation that the opposite end is authenticated by the authentication that the opposite end sends on the basis of embodiment one, particularly, the opposite end is after receiving the transfer request message that equipment to be upgraded sends, at first send and comprise receiveing the response of authentication sign to equipment to be upgraded, the authentication that comprises in being receiveed the response according to this by equipment to be upgraded identifies the opposite end is authenticated, judge promptly that also this authentication that comprises in receiveing the response sign and equipment to be upgraded preserves to such an extent that whether consistently identify with the corresponding authentication in this opposite end in advance, if unanimity by the authentication, otherwise by the authentication; After equipment to be upgraded passes through the authentication of opposite end, just carry out follow-up equipment to be upgraded and send indication information, opposite end remain the upgrade data that does not transmit to equipment transmission to be upgraded according to this indication information operation to the opposite end; If equipment to be upgraded to the authentication of opposite end not by do not carry out follow-up operation.By setting up aforesaid operations, make present embodiment two except the technique effect that can reach the foregoing description one and reached, can also further strengthen fail safe, by the authentication of equipment to be upgraded to the opposite end, prevent that the invador from pretending to be this opposite end to carry out network attack or transmission attack message etc., when equipment to be upgraded communicates with a plurality of opposite ends simultaneously, also can avoid the misinformation of data simultaneously.In addition, in the present embodiment two, if authentication is not passed through in the step 31, equipment to be upgraded also can send the authentication failure notification message to the opposite end, is used to indicate the authentication sign of opposite end transmission incorrect, finishes then.
Among the foregoing description one or the embodiment two, when the upgrade data that the opposite end will remain not transmission according to this indication information in step 4 is transferred to equipment to be upgraded, can transmit data by User Datagram Protoco (UDP) (abbreviation UDP) or transmission control protocol (TCP).
For example, Fig. 4 is the schematic flow sheet of the embodiment three of upgrade control method of the present invention, and a kind of execution mode that transmits the upgrade data that residue do not transmit by udp protocol is provided in the present embodiment three.As shown in Figure 4, present embodiment three is with the difference of the foregoing description one, step 4 specifically may further comprise the steps: in step 41, the not upgrade data of transmission of residue is extracted according to this indication information in the opposite end from described upgrade data, select and send to equipment to be upgraded the source udp protocol port and the purpose udp protocol port of opposite end use; In step 42, described source udp protocol port and purpose udp protocol port are used according to udp protocol in the opposite end, send the upgrade data that described residue is not transmitted to equipment to be upgraded then; After equipment to be upgraded is received the source udp protocol port and purpose udp protocol port that described opposite end that the opposite end sends uses, receive the upgrade data that residue that the opposite end sends is not transmitted according to described source udp protocol port and purpose udp protocol port.
And for example, Fig. 5 is the schematic flow sheet of the embodiment four of upgrade control method of the present invention, and the execution mode that transmits the upgrade data that residue do not transmit by udp protocol is provided in the present embodiment four equally.As shown in Figure 5, present embodiment four is with the difference of the foregoing description two, step 4 specifically may further comprise the steps: in step 41, the not upgrade data of transmission of residue is extracted according to this indication information in the opposite end from described upgrade data, select and send to equipment to be upgraded the source udp protocol port and the purpose udp protocol port of opposite end use; In step 42, described source udp protocol port and purpose udp protocol port are used according to udp protocol in the opposite end, send the upgrade data that described residue is not transmitted to equipment to be upgraded then; After equipment to be upgraded is received the source udp protocol port and purpose udp protocol port that described opposite end that the opposite end sends uses, receive the upgrade data that residue that the opposite end sends is not transmitted according to described source udp protocol port and purpose udp protocol port.
Among the foregoing description three and the embodiment four, by adopting udp protocol to transmit the upgrade data that residue is not transmitted, because udp protocol is towards connectionless agreement, thereby need not to wait between equipment to be upgraded and the opposite end establishes a communications link and can transmit data according to described source udp protocol port and purpose udp protocol port by message interaction again.
Preferably, in order further to strengthen the reliability of transmission, among the foregoing description three and the embodiment four, when described opposite end is transferred to equipment to be upgraded at the upgrade data that uses udp protocol will remain not transmission, the opposite end can comprise one and the unique corresponding sequence number of this message in each data message that is transmitted, equipment to be upgraded is replied the sequence number that comprises in the data message of being received to the opposite end after receiving each data message; The opposite end if do not receive the sequence number of device replied to be upgraded, then resends this data message to equipment to be upgraded after sending each data message; The opposite end disconnects after resending this data message of preset times and the communicating to connect of equipment to be upgraded.Transmission reliability when aforesaid operations uses udp protocol to transmit the residue upgrade data by setting up sequence number checking and retransmission mechanism, strengthening avoids losing message.
As indicated above, in the foregoing description, when the upgrade data that the opposite end will remain not transmission according to this indication information in step 4 is transferred to equipment to be upgraded, can transmit data by udp protocol or Transmission Control Protocol, therefore, preferably, among the foregoing description three and the embodiment four, after this indication information is received in described opposite end, the data volume of the upgrade data that the opposite end can not transmitted according to the indicated residue of this indication information, and predetermined strategy, judge and take which kind of agreement to transmit the upgrade data that residue is not transmitted, for example the opposite end can select the higher Transmission Control Protocol of reliability transmit remaining data when the data volume of the upgrade data of transmission surpasses the preset data amount in residue, and residue not the data volume of the upgrade data of transmission to surpass the preset data amount be to select more easily that udp protocol transmits remaining data.In other words, among the foregoing description three and the embodiment four, after this indication information is received in described opposite end, also can comprise: the data volume of the upgrade data that does not transmit in the indicated residue of described indication information the opposite end meets when pre-conditioned, just carries out described opposite end and extracts the not step of the upgrade data of transmission of residue according to this indication information from described upgrade data.
Below in the embodiment five of upgrade control method of the present invention, further provide between a kind of opposite end and the equipment to be upgraded the execution mode that transmits the upgrade data that residue do not transmit by Transmission Control Protocol.Present embodiment five is with the difference of the foregoing description one: in step 1, when described Network Transmission was interrupted, equipment to be upgraded was also preserved the transmission control protocol port numbers of employed equipment to be upgraded in the heading of paid-in last transmission control protocol message and the transmission before; In step 3, when described equipment to be upgraded sends to the opposite end with described indication information, also described heading and transmission control protocol port numbers are sent to the opposite end; In step 4, the upgrade data that described opposite end will remain not transmission according to this indication information is transferred to equipment to be upgraded and specifically comprises: the upgrade data that residue is not transmitted is extracted according to this indication information in the opposite end from described upgrade data, and according to described heading of receiving and host-host protocol port numbers, rebulid with the transmission control protocol of equipment to be upgraded and be connected, connect the upgrade data that the residue extracted to device transmission to be upgraded is not transmitted by the transmission control protocol of setting up then.
Present embodiment five is on the basis of embodiment one, further provide the opposite end to adopt the execution mode of the upgrade data that the transmission residue is not transmitted between Transmission Control Protocol and the equipment to be upgraded, because Transmission Control Protocol is a Connection-oriented Protocol, therefore present embodiment five can also further strengthen the reliability to the transmission of residue upgrade data except the technique effect that can reach embodiment one and reached.
Preferably, in the foregoing description five, after this indication information is received in described opposite end, the data volume of the upgrade data that the opposite end can not transmitted according to the indicated residue of this indication information, and predetermined strategy, judge and take which kind of agreement to transmit the upgrade data that residue is not transmitted, for example the opposite end can select the higher Transmission Control Protocol of reliability transmit remaining data when the data volume of the upgrade data of transmission surpasses the preset data amount in residue, and residue not the data volume of the upgrade data of transmission to surpass the preset data amount be to select more easily that udp protocol transmits remaining data.In other words, in the foregoing description five, after this indication information is received in described opposite end, also can comprise: the data volume of the upgrade data that does not transmit in the indicated residue of described indication information the opposite end meets when pre-conditioned, just carries out described opposite end and extracts the not step of the upgrade data of transmission of residue according to this indication information from described upgrade data.
Further illustrate below by six pairs of upgrade control methods of the present invention of embodiment:
In present embodiment six, when using PC to treat network to have occurred in the process that updating apparatus upgrades when interrupting, preserve the heading of last Transmission Control Protocol message that PC sends, the size and the employed local tcp port number of transmission course of the current upgrade file that has transmitted by equipment to be upgraded via network.Equipment to be upgraded regularly sends the transmission request message to the udp port of PC, be used to survey and PC between network failure whether repair, the form of transmission request message can be as shown in table 1:
Table 1 transmission request message format sample table
The IP protocol header Udp header Data load
Wherein the content of data load part can comprise two bytes, and particular content can be as shown in table 2:
The content sample table of the data load part of table 2 transmission request message
First byte Second byte
0x01 0x00
First byte representation version number wherein, second field is the expression type, the type that comprises is as follows:
0x00: transmission request;
0x01: authentication;
0x02: failure;
0x03: information frame;
0x04: respond.
After the network failure between PC and the equipment to be upgraded is repaired, PC is monitored udp port, udp port to equipment to be upgraded after listening to the transmission request message sends message identifying, the data load part of this message identifying can comprise the prefix and the authentication sign of two bytes, and particular content can be as shown in table 3:
The content sample table of the data load part of table 3 message identifying
First byte Second byte The byte number of authentication sign
0x01 0x01 The authentication sign
After equipment to be upgraded was received this message identifying, the authentication sign included according to this message identifying authenticated described PC, if authentification failure then sends the authentication failure notification message, the particular content of this message can be as shown in table 4:
The content sample table of the data load part of table 4 message identifying
First byte Second byte
0x01 0x02
If authentication is passed through, equipment then to be upgraded sends an information frame to described PC, and the content of the data load part of this frame can be as shown in table 5:
The content sample table of the data load part of table 5 information frame
First byte Second byte 20 bytes Four bytes
0x01 0x03 The Transmission Control Protocol head The size of remaining upgrade file
If equipment to be upgraded and described PC have carried out carrying out the UDP transmission again after the TCP transmission, the UDP transmission has been failed again then, then just no longer comprises the Transmission Control Protocol head part in the data load content of this information frame of follow-up transmission, and example is as shown in table 6:
The content sample table of the data load part of table 6 information frame
First byte Second byte Four bytes
0x01 0x03 The size of upgrade file
After described PC receives this information frame, select to the employed agreement of the remaining upgrade data of device transmission to be upgraded according to predetermined strategy, by selected agreement this information is sent to equipment to be upgraded then, the form of the data division of this Echo Frame is shown in table 7 and table 8:
Table 7 uses the data load content sample table partly of the Echo Frame of Transmission Control Protocol
First byte Second byte A byte
0x01 0x04 0x00
Table 8 uses the data load content sample table partly of the Echo Frame of udp protocol
First byte Second byte A byte Four bytes Four bytes
0x01 0x04 0x01 Source udp port number Purpose udp port number
When using udp protocol certainly, can also adopt more special TFTP agreement to transmit.
If described PC will use TCP to proceed file transfer with equipment to be upgraded, then PC is changed to normal transmission state to local tcp state earlier, and according to the content of described information frame each field of TCP message is filled, begin then to carry out communication with equipment to be upgraded.
If described PC will use UDP to proceed file transfer with equipment to be upgraded, then PC uses included port of described Echo Frame and equipment to be upgraded to carry out communication, carries out the transmission of upgrade file then.When carrying out the udp protocol transmission, PC can partly add a unique sequence number in the beginning of the data message that is transmitted, and for example this sequence number increases progressively since 0.PC is waited for its sequence number of being received of device replied to be upgraded after sending a data message, if do not receive the answer of equipment to be upgraded, PC can retransmit this data message, retransmits three failures and then can disconnect connection.Certainly on equipment to be upgraded, can set in advance continuation and send the number of times that transmission is asked, for example surpass three times and just no longer proceed down to PC.Equipment to be upgraded can also dispose to the other PC that sets in advance and send the transmission request.
Correspondingly, the present invention also provides a kind of upgrading control device, and Fig. 7 is the upgrade structural representation of embodiment one of control device of the present invention, and present embodiment one comprises: receiving element 71 is used for receiving upgrade data by network; Memory cell 72 is used for preserving the indication information of the data volume that is used to indicate the current upgrade data that has received when the Network Transmission of receiving element 71 is interrupted; Request unit 73, being used for having no progeny periodically in Network Transmission sends transfer request message to the opposite end, and after receiving receiveing the response that the opposite end sends, the described indication information that memory cell 72 is preserved sends to the opposite end.
Among the embodiment one of the invention described above upgrading control device, described equipment to be upgraded comprises hardware device to be upgraded such as server, terminal, router etc., also comprises the hardware device of storing software program to be upgraded.Described upgrade data comprise make up with forms such as file, software program, parameter informations, be used for data that described equipment to be upgraded is upgraded.In addition; those of ordinary skill in the art is to be understood that; the described indication information that is used to indicate the data volume of upgrade data comprises by the quantity of the transmission quantity of the size of upgrade file or percentage, upgrade software program or percentage, upgrade parameter or the like various this areas common technology means; indicate the data volume of the upgrade data that has transmitted; do not give unnecessary details one by one at this, it all should be within technical solution of the present invention scope required for protection.
Among the embodiment one of the invention described above upgrading control device, described upgrading control device periodically sends transfer request message to the opposite end by request unit when the Network Transmission of upgrade data is interrupted, after the transfer request message that request unit sends is received in the opposite end, return and receive the response and transmit data, thereby can recover reception in time, the paralysis of effectively avoid upgrading failure and equipment to be upgraded to upgrade data; And, data volume by the memory cell upgrade data that preservation has received when the Network Transmission of upgrade data is interrupted, after receiving receiveing the response that the opposite end sends, the indication information that will comprise this data volume sends to the opposite end, thereby make the opposite end and to transmit the remaining not upgrade data of transmission according to this indication information extraction, and need not to transmit again whole upgrade datas, significantly reduced taking to time and resource.
Preferably, under the chronic situation of network disaster recovery, thereby send transfer request message occupied bandwidth resource for fear of the too much number of times of equipment to be upgraded ground, can control the number of times that request unit sends transfer request message.Particularly, the upgrade structural representation of embodiment two of control device of the present invention as shown in Figure 8, this embodiment two is with the difference of the embodiment one of the invention described above upgrading control device: also comprise request control unit 74, be used for control request unit 73 periodically sends preset times at interval to the opposite end according to Preset Time transfer request message, and after request unit 73 sends the transfer request message of preset times to the opposite end, if do not receive receiveing the response of opposite end transmission, then control request unit 73 stops to send transfer request message to the opposite end.
Among the embodiment one and embodiment two of the invention described above upgrading control device, when Network Transmission is interrupted, described request unit 73 can be still sends transfer request message to the equipment of previous transmission upgrade data, after so formerly sending the network disaster recovery of the equipment of upgrade data and equipment room to be upgraded, equipment to be upgraded can continue to receive the not upgrade data of transmission of residue from the equipment of previous transmission upgrade data; In addition, described request unit 73 also can send transfer request message to predefined alternate device, thereby need not to wait for the equipment of previous transmission upgrade data and the network disaster recovery of equipment product to be upgraded, just can directly receive the not upgrade data of transmission of residue from this alternate device.In other words, the upgrade structural representation of embodiment three of control device of the present invention as shown in Figure 9, this embodiment three is with the difference of the embodiment two of the invention described above upgrading control device: comprise that also the opposite end is provided with unit 75, being used to set in advance also, control request unit 73 sends transfer request message to the transmitting apparatus of the upgrade data of previous reception or default alternate device.Wherein, described transmitting apparatus and alternate device all can be server, terminal, router etc. can with the equipment of described upgrading control device by transmitted data on network.
Figure 10 is the upgrade structural representation of embodiment four of control device of the present invention, present embodiment four is with the difference of the embodiment three of the invention described above upgrading control device: also comprise authentication ' unit 76, be used for after request unit 73 is received the authentication message that comprises the authentication sign of opposite end transmission, according to the authentication that comprises in this authentication message sign the opposite end is authenticated, when authentication by the time control request unit 73 described indication information is sent to the opposite end.Present embodiment four has further increased authentication ' unit 76, the authentication that sends by the opposite end identifies the opposite end is authenticated, thereby can further strengthen fail safe, by the authentication of equipment to be upgraded to the opposite end, prevent that the invador from pretending to be this opposite end to carry out network attack or transmission attack message etc., when equipment to be upgraded communicates with a plurality of opposite ends simultaneously, also can avoid the misinformation of data simultaneously.
Figure 11 is the upgrade structural representation of embodiment five of control device of the present invention, present embodiment five is with the difference of the embodiment four of the invention described above upgrading control device: also comprise receiving control unit 77, be used to control described receiving element 71 after receiving the source user datagram protocol port and purpose User Datagram Protoco (UDP) port that use described opposite end that the opposite end sends, receive the upgrade data that residue that the opposite end sends is not transmitted according to described source user datagram protocol port and purpose User Datagram Protoco (UDP) port.The present embodiment five-way is crossed and is adopted udp protocol to transmit the upgrade data that residue is not transmitted, because udp protocol is towards connectionless agreement, thereby need not to wait between equipment to be upgraded and the opposite end establishes a communications link and can transmit data according to described source udp protocol port and purpose udp protocol port by message interaction again.
Preferably, in order further to strengthen the reliability of transmission, when described opposite end is transferred to the upgrading control device at the upgrade data that uses udp protocol will remain not transmission, the opposite end can comprise one and the unique corresponding sequence number of this message in each data message that is transmitted, equipment to be upgraded is replied the sequence number that comprises in the data message of being received to the opposite end after receiving each data message; The opposite end if do not receive the sequence number of device replied to be upgraded, then resends this data message to equipment to be upgraded after sending each data message; The opposite end disconnects after resending this data message of preset times and the communicating to connect of equipment to be upgraded.Therefore, according to above-mentioned sequence number checking and the retransmission mechanism of setting up, referring to the upgrade structural representation of embodiment six of control device of the present invention shown in Figure 12, present embodiment six is with the difference of the embodiment five of the invention described above upgrading control device: also comprise transmitting element 78, be used for after receiving element 71 receives the data message that comprises sequence number that transmits the opposite end, reply the sequence number that comprises in the data message of being received to the opposite end.Present embodiment six is introduced above-mentioned sequence number checking and retransmission mechanism by setting up transmitting element 78, thereby can strengthen the transmission reliability when using udp protocol to transmit the residue upgrade data, avoids losing message.
Preferably, for realizing that the opposite end is transferred to equipment to be upgraded by the upgrade data that Transmission Control Protocol will remain not transmission, among the embodiment one of the invention described above upgrading control device, described memory cell also can comprise transmission control protocol information stores subelement, is used for preserving when Network Transmission is interrupted the heading and the previous transmission control protocol port numbers of transmitting employed equipment to be upgraded of paid-in last transmission control protocol message; The transmission control protocol information that also can comprise the described request unit transmits subelement, when being used for that in the described request unit described indication information sent to the opposite end, described heading and transmission control protocol port numbers is sent to the opposite end.
Above embodiment is only in order to illustrating technical scheme of the present invention, but not the present invention is made restrictive sense.Although the present invention is had been described in detail with reference to above-mentioned preferred embodiment, those of ordinary skill in the art is to be understood that: it still can make amendment or be equal to replacement technical scheme of the present invention, and this modification or be equal to the spirit and scope that replacement does not break away from technical solution of the present invention.

Claims (16)

1, a kind of upgrade control method is characterized in that, comprising:
Equipment to be upgraded receives upgrade data by network, and when Network Transmission was interrupted, equipment to be upgraded was preserved the indication information of the data volume that is used to indicate the current upgrade data that has received;
Equipment to be upgraded periodically sends transfer request message to the opposite end, receives the response to equipment transmission to be upgraded after receiving described transfer request message in the opposite end;
Equipment to be upgraded sends to the opposite end with described indication information after receiving receiveing the response that the opposite end sends;
After this indication information was received in the opposite end, according to this indication information, the upgrade data that residue is not transmitted was transferred to equipment to be upgraded.
2, method according to claim 1, it is characterized in that, described equipment to be upgraded periodically sends transfer request message to the opposite end and specifically comprises: equipment to be upgraded periodically sends the transfer request message of preset times at interval to the opposite end according to Preset Time, when equipment to be upgraded after sending the transfer request message of preset times to the opposite end, if do not receive receiveing the response of opposite end transmission, then stop to send transfer request message to the opposite end.
3, method according to claim 1 is characterized in that, described equipment to be upgraded periodically sends transfer request message to the opposite end and specifically comprises:
Equipment to be upgraded periodically sends transfer request message to the transmitting apparatus of the upgrade data of previous reception; Perhaps
Equipment to be upgraded periodically sends transfer request message to the alternate device that sets in advance.
4, method according to claim 1 is characterized in that:
Described opposite end sends to receive the response to equipment to be upgraded after receiving described transfer request message and specifically comprises: after the opposite end is receiving described transfer request message, send the authentication message that comprises the authentication sign to equipment to be upgraded;
Described equipment to be upgraded sends to the opposite end with described indication information and specifically comprises after receiving receiveing the response that the opposite end sends: after described equipment to be upgraded is being received this authentication message, according to the authentication that comprises in this authentication message sign the opposite end is authenticated, when authentication by the time described indication information sent to the opposite end.
According to the arbitrary described method of claim 1-4, it is characterized in that 5, the upgrade data that described opposite end will remain not transmission according to this indication information is transferred to equipment to be upgraded and specifically comprises:
The not upgrade data of transmission of residue is extracted according to this indication information in the opposite end from described upgrade data, select and send to equipment to be upgraded the source user datagram protocol port and the purpose User Datagram Protoco (UDP) port of opposite end use;
Described source user datagram protocol port and purpose User Datagram Protoco (UDP) port are used according to User Datagram Protoco (UDP) in the opposite end, send the upgrade data that described residue is not transmitted to equipment to be upgraded;
After equipment to be upgraded is received the source user datagram protocol port and purpose User Datagram Protoco (UDP) port that described opposite end that the opposite end sends uses, receive the upgrade data that residue that the opposite end sends is not transmitted according to described source user datagram protocol port and purpose User Datagram Protoco (UDP) port.
6, method according to claim 5 is characterized in that, described opposite end also comprises when the upgrade data that will remain not transmission is transferred to equipment to be upgraded:
The opposite end comprises one and the unique corresponding sequence number of this message in each data message that is transmitted, equipment to be upgraded is replied the sequence number that comprises in the data message of being received to the opposite end after receiving each data message;
The opposite end if do not receive the sequence number of device replied to be upgraded, then resends this data message to equipment to be upgraded after sending each data message;
The opposite end disconnects after resending this data message of preset times and the communicating to connect of equipment to be upgraded.
7, method according to claim 5, it is characterized in that, also comprise after this indication information is received in described opposite end: the data volume of the upgrade data that does not transmit in the indicated residue of described indication information the opposite end meets when pre-conditioned, just carries out described opposite end and extracts the not step of the upgrade data of transmission of residue according to this indication information from described upgrade data.
8, according to the arbitrary described method of claim 1-4, it is characterized in that:
When described Network Transmission was interrupted, equipment to be upgraded was also preserved the transmission control protocol port numbers of employed equipment to be upgraded in the heading of paid-in last transmission control protocol message and the transmission before;
When described equipment to be upgraded sends to the opposite end with described indication information, also described heading and transmission control protocol port numbers are sent to the opposite end;
The upgrade data that described opposite end will remain not transmission according to this indication information is transferred to equipment to be upgraded and specifically comprises: the upgrade data that residue is not transmitted is extracted according to this indication information in the opposite end from described upgrade data, and according to described heading of receiving and host-host protocol port numbers, rebulid with the transmission control protocol of equipment to be upgraded and be connected, connect the upgrade data that the residue extracted to device transmission to be upgraded is not transmitted by the transmission control protocol of setting up then.
9, method according to claim 8, it is characterized in that, also comprise after this indication information is received in described opposite end: the data volume of the upgrade data that does not transmit in the indicated residue of described indication information the opposite end meets when pre-conditioned, just carries out described opposite end and extracts the not step of the upgrade data of transmission of residue according to this indication information from described upgrade data.
10, a kind of upgrading control device is characterized in that, comprising:
Receiving element is used for receiving upgrade data by network;
Memory cell is used for preserving the indication information of the data volume that is used to indicate the current upgrade data that has received when the Network Transmission of receiving element is interrupted;
Request unit, being used for having no progeny periodically in Network Transmission sends transfer request message to the opposite end, and after receiving receiveing the response that the opposite end sends, the described indication information that memory cell is preserved sends to the opposite end.
11, device according to claim 10, it is characterized in that, also comprise the request control unit, be used for the control request unit periodically sends preset times at interval to the opposite end according to Preset Time transfer request message, and after request unit sends the transfer request message of preset times to the opposite end, if do not receive receiveing the response of opposite end transmission, then the control request unit stops to send transfer request message to the opposite end.
12, device according to claim 10 is characterized in that, comprises that also the opposite end is provided with the unit, and being used to set in advance also, the control request unit sends transfer request message to the transmitting apparatus of the upgrade data of previous reception or default alternate device.
13, device according to claim 10, it is characterized in that, also comprise authentication ' unit, be used for after request unit is received receiveing the response of opposite end transmission, described receiveing the response is the authentication message that comprises the authentication sign, according to the authentication that comprises in this authentication message sign the opposite end is authenticated, when authentication by the time control request unit described indication information is sent to the opposite end.
14, according to the arbitrary described device of claim 10-13, it is characterized in that, also comprise the reception control unit, be used to control described receiving element after receiving the source user datagram protocol port and purpose User Datagram Protoco (UDP) port that use described opposite end that the opposite end sends, receive the upgrade data that residue that the opposite end sends is not transmitted according to described source user datagram protocol port and purpose User Datagram Protoco (UDP) port.
15, device according to claim 14 is characterized in that, also comprises transmitting element, is used for after receiving element receives the data message that comprises sequence number that transmits the opposite end, replys the sequence number that comprises in the data message of being received to the opposite end.
16, according to the arbitrary described device of claim 10-13, it is characterized in that:
Described memory cell also comprises transmission control protocol information stores subelement, is used for preserving when Network Transmission is interrupted the heading and the previous transmission control protocol port numbers of transmitting employed equipment to be upgraded of paid-in last transmission control protocol message;
The transmission control protocol information that also comprises the described request unit transmits subelement, when being used for that in the described request unit described indication information sent to the opposite end, described heading and transmission control protocol port numbers is sent to the opposite end.
CNB2007100653703A 2007-04-12 2007-04-12 Upgrade control method and control device Expired - Fee Related CN100481779C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007100653703A CN100481779C (en) 2007-04-12 2007-04-12 Upgrade control method and control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007100653703A CN100481779C (en) 2007-04-12 2007-04-12 Upgrade control method and control device

Publications (2)

Publication Number Publication Date
CN101039217A CN101039217A (en) 2007-09-19
CN100481779C true CN100481779C (en) 2009-04-22

Family

ID=38889874

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007100653703A Expired - Fee Related CN100481779C (en) 2007-04-12 2007-04-12 Upgrade control method and control device

Country Status (1)

Country Link
CN (1) CN100481779C (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102035866B (en) * 2009-09-24 2014-06-04 腾讯科技(深圳)有限公司 Method and device for downloading data by P2P
JP6216621B2 (en) * 2013-11-14 2017-10-18 株式会社日立製作所 Plant monitoring and control system
CN104883265A (en) * 2014-02-27 2015-09-02 中兴通讯股份有限公司 Backup file data retransmission method, apparatus and system
CN106559736B (en) * 2015-09-28 2019-11-22 展讯通信(上海)有限公司 Bluetooth equipment connects control method and device
CN106533744A (en) * 2016-10-25 2017-03-22 上海斐讯数据通信技术有限公司 Router upgrading method and system based on server upgrading strategy
CN108196857A (en) * 2017-12-07 2018-06-22 山东超越数控电子股份有限公司 A kind of method based on network update UEFI firmwares

Also Published As

Publication number Publication date
CN101039217A (en) 2007-09-19

Similar Documents

Publication Publication Date Title
CN100481779C (en) Upgrade control method and control device
CN101808009B (en) Method and system for upgrading network equipment
CN106330414B (en) Message transmission method and device
CN103873472A (en) Method for automatically having access to network
CN102231658A (en) Safe communication method of internetwork isolation apparatus
CN101453495A (en) Method, system and equipment for preventing authentication address resolution protocol information loss
CN103501288B (en) A kind of method that two-layer switching equipment is realized batch data upgrading
CN103259768A (en) Method, system and device of message authentication
CN101834783A (en) Method and device for forwarding messages and network equipment
CN103685398B (en) Communication connection method for building up and communication system
CN106407065A (en) Password keyboard USB communication abnormality recovery method and system
US20110038369A1 (en) Communication method and apparatus based on user datagram protocol
CN101567891B (en) Source address verification method, device and system
CN107528923B (en) Data transmission method of network adapter and network adapter
CN104580346B (en) Data transmission method and device
CN106559230A (en) A kind of fault handling method, apparatus and system
CN107707689A (en) A kind of DHCP message processing method, Dynamic Host Configuration Protocol server and gateway device
CN101895457A (en) Method for ensuring data transmission integrity in transmission control protocol (TCP) communication process
CN104009961A (en) PPPoE session ID distribution method and equipment thereof
CN104883307A (en) System and method for sharing data file among routers
CN110474953A (en) Terminal control method, apparatus and system based on cloud SIM
CN112188301B (en) Communication method, apparatus, system, terminal, and computer-readable storage medium
CN106685600A (en) Method for messaging among work stations within local area network
CN105045759B (en) Control communication method of financial self-service equipment
CN112532663A (en) Gateway login method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.

CP03 Change of name, title or address
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090422

Termination date: 20200412

CF01 Termination of patent right due to non-payment of annual fee