CN114697312A - System and method for efficiently and safely upgrading switch software - Google Patents

System and method for efficiently and safely upgrading switch software Download PDF

Info

Publication number
CN114697312A
CN114697312A CN202210224697.5A CN202210224697A CN114697312A CN 114697312 A CN114697312 A CN 114697312A CN 202210224697 A CN202210224697 A CN 202210224697A CN 114697312 A CN114697312 A CN 114697312A
Authority
CN
China
Prior art keywords
file
client
file block
upgrading
received
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210224697.5A
Other languages
Chinese (zh)
Inventor
晏平仲
韩宇宸
赵谦
张宪军
梁志宝
杨瑞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing SAC Automation Co Ltd
Original Assignee
Nanjing SAC Automation 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 Nanjing SAC Automation Co Ltd filed Critical Nanjing SAC Automation Co Ltd
Priority to CN202210224697.5A priority Critical patent/CN114697312A/en
Publication of CN114697312A publication Critical patent/CN114697312A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures

Abstract

The invention discloses a system and a method for efficiently and safely upgrading switch software in the technical field of switches, wherein the method comprises the following steps: reading configuration file initialization related parameters; partitioning files to be upgraded according to the specified size, and numbering the file blocks one by one; judging whether a connection request initiated by a client is received: when the connection request is not received, whether the connection request initiated by the client is received is judged again; starting an independent upgrade request task in response to receiving a connection request; judging whether the network is abnormal or not: in response to the network abnormality, terminating the transmission of the file block to the client; and when the response network returns to normal, starting to transmit from the next file block of the file block number which is successfully transmitted for the last time until the transmission is completed. The invention avoids the retransmission of the file content transmitted before the network exception, thereby achieving the purpose of saving time.

Description

System and method for efficiently and safely upgrading switch software
Technical Field
The invention relates to a system and a method for efficiently and safely upgrading switch software, and belongs to the technical field of switches.
Background
Along with the communication requirement of the intelligent substation, the software version of the switch can be updated irregularly. Engineering service personnel can upgrade and update the field switch equipment software, the upgrading process can be caused by network cable looseness or other reasons, upgrading failure is caused, some software packages are large, upgrading is time-consuming, and upgrading efficiency is low under the condition that a plurality of field equipment are provided. The traditional upgrading mode is based on UDP or TCP socket communication, only file information is contained in the communication process, the file information is sequentially sent and received from the file header, if network abnormality occurs in the midway, the file transmission fails, the part transmitted before is invalidated, and the file transmission needs to be started again from the beginning.
Disclosure of Invention
The invention aims to overcome the defects in the prior art, provides a system and a method for efficiently and safely upgrading switch software, avoids the retransmission of file contents transmitted before network abnormity, and achieves the purpose of saving time.
In order to achieve the purpose, the invention is realized by adopting the following technical scheme:
in a first aspect, the present invention provides a method for efficiently and safely upgrading switch software, including:
reading configuration file initialization related parameters;
partitioning files to be upgraded according to the specified size, and numbering the file blocks one by one;
judging whether a connection request initiated by a client is received:
when the connection request is not received, whether the connection request initiated by the client is received is judged again;
starting an independent upgrade request task in response to receiving a connection request;
judging whether the network is abnormal or not:
in response to the network abnormality, terminating the transmission of the file block to the client;
and when the network returns to normal, starting to transmit from the next file block of the file block number successfully transmitted for the last time until the transmission is completed.
Further, when responding to the connection request, starting an independent upgrade request task, including:
judging whether the connection request is a first upgrading request or not;
when the connection request is a first upgrading request, acquiring a first file block and a serial number, and sending the first file block and the serial number to a client, and judging whether confirmation information is received or not;
and when the connection request is not the first-time upgrading request, acquiring the next file block according to the number fed back by the client, and judging whether the confirmation information is received or not after the next file block is sent to the client.
Further, determining whether the network is abnormal includes: and judging whether confirmation information fed back by the client is received or not within a certain time, wherein the confirmation information is a file block code which is recorded after the client receives the file block and fed back to the server.
Further, determining whether the confirmation information fed back by the client is received within a certain time includes:
in response to that the confirmation information is not received within a certain time, the network is considered to be abnormal, at the moment, the file block number fed back by the last client is recorded, and the upgrading task is quitted;
and in response to the confirmation information received within a certain time, the network is considered to be recovered to be normal, and after the upgrading request initiated by the client is received again, the file is transmitted based on the file block number successfully transmitted for the last time in the upgrading request.
Further, starting transmission from the next file block of the last successfully transmitted file block number, the method includes: calculating the starting position of the next file block according to the serial number of the file block and the size of the file block, namely:
A=(B-1)*C
wherein, A is the initial position of the next file block, B is the current file block number, and C is the file block size.
Further, after the transmission is finished, the client and the server clear all records of the transmission file block.
Further, when the network returns to normal, starting transmission from the next file block of the last successfully transmitted file block number until the transmission is completed, including:
after recording the file block number in the current confirmation information, judging whether the next file block and the number can be obtained or not;
when the next file block and the serial number can be obtained, judging whether the confirmation information is received or not after the file block and the serial number are sent to the client again;
and when the next file block and the serial number cannot be acquired, the client is informed of the end of transmission, the file recording message is cleared, and the operation is ended.
In a second aspect, the present invention provides a system for efficiently and safely upgrading switch software, including:
upgrading the file server module: the method comprises the steps that after the method runs on network equipment and receives an upgrading request initiated by a client, files needing to be upgraded of the client are searched under a specified path; after finding the specified file, obtaining the size of the file, calculating the number of file blocks according to the specified size and numbering the file blocks; reading the whole file into a memory, copying file blocks with specified sizes from the beginning to a sending cache, and sending the file blocks with the file block numbers to a client; after receiving the confirmation of the client, recording the number of the current file block, and continuously transmitting the next file block until the whole file is transmitted; after the whole file is sent, sending transmission completion information to the client, closing the TCP session after receiving the confirmation of the client, and finally clearing the record information of the related file;
upgrading the file client module: the method comprises the steps that the method runs on switch equipment, sends an upgrading request containing a file name to be upgraded to an upgrading file server module, and sequentially receives file block contents; writing the content of the file block into the tail part of the specified file, recording the number of the current file block, and sending confirmation information to the server; when the network is abnormal, closing the TCP session, and storing the number of the last received file block to a record file; when the network is recovered, initiating an upgrading request again, reading the recorded file, sending the file block number to the server, and starting to receive the next file block of the number and record the current file block number until the file transmission is completed; when the information of the transmission completion is received, closing the TCP session and clearing the related file record information;
the upgrade file management module: and the system runs on the switch equipment, calls the upgrade file client module and acquires the feedback information of the client module.
In a third aspect, the present invention provides a device for efficiently and safely upgrading switch software, which includes a processor and a storage medium;
the storage medium is used for storing instructions;
the processor is configured to operate in accordance with the instructions to perform the steps of the method according to any one of the above.
In a fourth aspect, the invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of any of the methods described above.
Compared with the prior art, the invention has the following beneficial effects:
the invention provides a simple and general efficient and safe upgrading method for switch software, which can ensure that the upgrading efficiency is improved under the condition of network abnormality. The method is suitable for software upgrading requirements of all equipment and has certain universality. In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail with reference to the accompanying drawings and specific examples.
Drawings
Fig. 1 is a communication flow chart of a client and a server according to an embodiment of the present invention;
FIG. 2 is a flowchart of an upgrade file server process according to an embodiment of the present invention;
fig. 3 is a flowchart of processing by the upgrade file client according to an embodiment of the present invention.
Detailed Description
The invention is further described below with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present invention is not limited thereby.
The first embodiment is as follows:
in order to ensure that the upgrading efficiency is improved under the condition of network abnormality, the embodiment provides a simple and general efficient and safe upgrading method for the switch software, and the method can prevent the content of the file transmitted before the network abnormality from being transmitted again and only transmit the rest part of the content, so that the purpose of saving time is achieved. The method is suitable for software upgrading requirements of all equipment and has certain universality. In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail with reference to the accompanying drawings and specific examples.
The upgrading method is based on TCP socket communication. After a client (switch equipment) and a server (file server) establish TCP connection, the client initiates an upgrade request, the server divides files to be upgraded into blocks according to the specified size, numbers the file blocks one by one, and sends the file blocks to the client in sequence. After receiving the file blocks, the client records the current file block number and feeds the file block code back to the server, and the server records the current sending block number and transmits the next file block until the transmission of all the file blocks is finished under the normal condition of the network. When the network is abnormal, the client and the server end can stop transmission, and both ends record the number of the last successfully transmitted file block. When the network is recovered, the client sends the upgrade request again, and sends the file block number recorded before to the server, and the server starts to transmit the next file block with the specified number until the transmission is finished. And after the transmission is finished, the client and the server clear all records of the transmission file block, which indicates that the upgrade is successfully finished.
It should be noted that, after a client (a switch device) initiates an upgrade request to a server (an engineering service staff PC), if a network abnormality occurs during a file transmission process, the file transmission may be interrupted, and the upgrade may fail. When the network is recovered to normal, the client side initiates the upgrade request again, and the server side can sequentially send the file blocks which are not transmitted last time to the client side without starting transmission from the beginning, so that the purpose of saving time is achieved.
The method is characterized in that the server side sequentially sends the file blocks which are not transmitted last time to the client side without starting transmission from the beginning, and the method is different from the traditional upgrading method. After the network is recovered, when the server receives the upgrade request, the server calculates the initial position of the next file block according to the file block number, and sequentially sends the initial position of the next file block to the client from the next file block until the transmission of the rest file blocks is finished.
When the network is abnormal, the server and the client respectively record the number of the last successfully transmitted file block, which means that after the server sends the file block, whether the file block is successfully sent or not, the server waits for the confirmation information of the client, if the confirmation information is not received within a certain time, the network is considered to be abnormal, the last file block number is recorded, and the upgrade task is exited. And similarly, when the client does not receive any information of the server within a certain time, the client records the file block number of the last time when the network is considered to be abnormal, and exits the upgrading task.
After network recovery, when the server receives an upgrade request, the server calculates the initial position of the next file block according to the file block number, which means that the upgrade fails due to the last network abnormality. The server can calculate the starting position of the next file block according to the number of the file block and the size of the file block. Namely:
next file block start position ═ (current file block number-1) X file block size
It should be noted that the current file block number is the file block number +1 of the last successful transmission, that is, the file block number of the next file to be transmitted. After the server side sends the file blocks, whether the sending is successful or not, the server side waits for the confirmation information of the client side, namely the server side sends the file blocks to the client side in sequence, the client side sends the serial number of the file block to the server side after receiving the file block every time, and the server side sends the next file block after confirming the serial number, so that each file block is guaranteed to be sent to the client side successfully.
Referring to fig. 1-3, in this example, the method for using file blocking to upgrade the switch software in case of network anomaly is as follows: as shown in fig. 1, after a client (switch device) and a server (engineering service staff PC) establish a connection, the client initiates an upgrade request, and the server divides the upgraded file into blocks and sequentially transmits the blocks to the client, as shown in steps 3 and 4 in fig. 1, after receiving the confirmation information of the current file block, the server transmits the next file block until the file transmission is completed under the condition that the network is normal. When the network is abnormal, the file transmission will be interrupted, for example, fig. 2 and 3 respectively process the abnormality, and after the server side in fig. 2 sends (file block + number) to the client side, the server side will wait for the confirmation information of the client side, and if the confirmation information is received, the number of the file block which is successfully transmitted currently is recorded. If the confirmation information is not received within a certain time, which indicates that the network is abnormal, the task is quitted, and the upgrading request is continuously waited. Although the upgrade fails, part of the file blocks are successfully transmitted, and the server records the current upgrade file, and the record can calculate the starting position of the next file block. In fig. 3, after the client sends the upgrade request, the client sequentially receives the file blocks and the related numbers sent by the server, records the numbers and confirms the file blocks, and when no information is received within a certain time, which indicates that a network anomaly occurs, the number of the file block that was successfully transmitted last time is written into the configuration file, and the program exits. When the client fails to upgrade, the client initiates an upgrade request again when the network recovers, and the file block number stored in the last upgrade failure is sent to the server. In fig. 2, the server determines that the file block number is not the first update according to the received file block number, and transmits the file block number from the next file block until the file transmission is completed or the network exception is encountered again. No matter whether the network is abnormal or not, the content of the file transmitted previously cannot be transmitted repeatedly, and especially for the transmission of large files, under the condition that the network is abnormal, compared with the traditional upgrading mode, the method can save a lot of time.
Example two:
an efficient and safe upgrading system for switch software, which can implement the efficient and safe upgrading method for switch software in the first embodiment, includes: the system comprises an upgrade file server module, an upgrade file client module and an upgrade file management module.
The upgrade file server module runs on a PC (personal computer) of engineering service personnel and serves as a service end of TCP (transmission control protocol) communication, and when an upgrade request initiated by a client (switch equipment) is received, files needing to be upgraded of the client are searched under an appointed path. And when the specified file is found, acquiring the size of the file, calculating the number of blocks into which the file can be divided according to the specified size, and numbering. And reading the whole file into a memory, copying a file block with a specified size from the beginning to a sending cache, sending the file block with the file block number to the client, recording the current file block number after receiving the confirmation of the client, and continuously sending the next file block until the whole file is sent completely. When the same upgrading request is received again, the file content is sent one by one from the next file content according to the file block number recorded last time until the whole file is sent completely, the transmission completion information is sent to the client, the TCP session is closed after the confirmation of the client is received, and finally the recording information of the related file is cleared.
The file upgrading client module runs on the switch equipment and is used as a TCP communication client and responsible for sending a file upgrading request. Firstly, a TCP connection request is sent, after the connection is successful, a file name needing to be upgraded is sent to a server, the contents of file blocks are sequentially received, the contents of the file blocks are written into the tail part of a specified file, the number of the current file block is recorded, confirmation information is sent to the server, the file block is successfully received, and the next file block can be transmitted. When the intermediate network is interrupted and the file block or the signal of the transmission completion is not received within a certain time, the TCP session is closed, and the number of the last received file block is stored in the record file. When the network resumes to initiate the upgrade request again, the recording file is read, the file block number is sent to the server, and the next file block with the number is received and the current file block number is recorded until the file transmission is completed. When the information of the transmission completion is received, the TCP session is closed, and the related file record information is cleared.
The upgrade file management module runs on the switch device, and is mainly used for user operation, calling the upgrade client module, and acquiring feedback information of the client module, such as upgrade failure or success. And the engineering service personnel can conveniently judge whether the upgrading request needs to be initiated again.
Example three:
the embodiment of the invention also provides a device for efficiently and safely upgrading the switch software, which can realize the method for efficiently and safely upgrading the switch software, and comprises a processor and a storage medium;
the storage medium is used for storing instructions;
the processor is configured to operate in accordance with the instructions to perform the steps of the method of:
reading configuration file initialization related parameters;
partitioning files to be upgraded according to the specified size, and numbering the file blocks one by one;
judging whether a connection request initiated by a client is received:
when the connection request is not received, whether the connection request initiated by the client is received is judged again;
starting an independent upgrade request task in response to receiving a connection request;
judging whether the network is abnormal or not:
in response to the network abnormality, terminating the transmission of the file block to the client;
and when the response network returns to normal, starting to transmit from the next file block of the file block number which is successfully transmitted for the last time until the transmission is completed.
Example four:
the embodiment of the present invention further provides a computer-readable storage medium, which can implement the switch software efficient and safe upgrading method described in the first embodiment, where a computer program is stored on the computer program, and when the computer program is executed by a processor, the method implements the following steps:
reading configuration file initialization related parameters;
partitioning files to be upgraded according to the specified size, and numbering the file blocks one by one;
judging whether a connection request initiated by a client is received:
when the connection request is not received, whether the connection request initiated by the client is received is judged again;
starting an independent upgrade request task in response to receiving a connection request;
judging whether the network is abnormal or not:
in response to the network abnormality, terminating the transmission of the file block to the client;
and when the response network returns to normal, starting to transmit from the next file block of the file block number which is successfully transmitted for the last time until the transmission is completed.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method for efficiently and safely upgrading switch software is characterized by comprising the following steps:
reading configuration file initialization related parameters;
partitioning files to be upgraded according to the specified size, and numbering the file blocks one by one;
judging whether a connection request initiated by a client is received:
when the connection request is not received, whether the connection request initiated by the client is received is judged again;
starting an independent upgrade request task in response to receiving a connection request;
judging whether the network is abnormal or not:
in response to the network abnormality, terminating the transmission of the file block to the client;
and when the response network returns to normal, starting to transmit from the next file block of the file block number which is successfully transmitted for the last time until the transmission is completed.
2. The efficient and safe upgrading method for the switch software as claimed in claim 1, wherein the step of starting the independent upgrading request task in response to the connection request comprises the following steps:
judging whether the connection request is a first upgrading request or not;
when the connection request is a first upgrading request, acquiring a first file block and a serial number, and sending the first file block and the serial number to a client, and judging whether confirmation information is received or not;
and when the connection request is not the first-time upgrading request, acquiring the next file block according to the number fed back by the client, and judging whether the confirmation information is received or not after the next file block is sent to the client.
3. The method for efficiently and safely upgrading switch software according to claim 1, wherein the step of judging whether the network is abnormal comprises the following steps: and judging whether confirmation information fed back by the client is received or not within a certain time, wherein the confirmation information is a file block code which is recorded after the client receives the file block and fed back to the server.
4. The method for efficiently and safely upgrading switch software according to claim 3, wherein the step of judging whether the confirmation information fed back by the client is received within a certain time comprises the following steps:
in response to that the confirmation information is not received within a certain time, the network is considered to be abnormal, at the moment, the file block number fed back by the last client is recorded, and the upgrading task is quitted;
and in response to the confirmation information received within a certain time, the network is considered to be recovered to be normal, and after the upgrading request initiated by the client is received again, the file is transmitted based on the file block number successfully transmitted for the last time in the upgrading request.
5. The efficient and safe upgrading method for the switch software as claimed in claim 1, wherein the transmission from the next file block of the file block number of the last successful transmission comprises: calculating the starting position of the next file block according to the serial number of the file block and the size of the file block, namely:
A=(B-1)*C
wherein, A is the initial position of the next file block, B is the current file block number, and C is the file block size.
6. The efficient and safe upgrading method for the switch software as claimed in claim 1, wherein after the transmission is finished, the client and the server completely remove the records of the transmission file blocks.
7. The efficient and safe upgrading method for the switch software as claimed in claim 6, wherein in response to the network recovering to normal, starting transmission from the next file block of the file block number which is successfully transmitted last time until the transmission is completed, the method comprises:
after recording the file block number in the current confirmation information, judging whether the next file block and the number can be obtained;
when the next file block and the serial number can be obtained, judging whether the confirmation information is received or not after the file block and the serial number are sent to the client again;
and when the next file block and the serial number cannot be acquired, the client is informed of the end of transmission, the file recording message is cleared, and the operation is ended.
8. A switch software efficient and safe upgrading system is characterized by comprising:
upgrading the file server module: the method comprises the steps that after the method runs on network equipment and receives an upgrading request initiated by a client, files needing to be upgraded of the client are searched under a specified path; after finding out the specified file, obtaining the size of the file, calculating the number of file blocks according to the specified size and numbering the file blocks; reading the whole file into a memory, copying file blocks with specified sizes from the beginning to a sending cache, and sending the file blocks with the file block numbers to a client; after receiving the confirmation of the client, recording the number of the current file block, and continuously transmitting the next file block until the whole file is transmitted; after the whole file is sent, sending transmission completion information to the client, closing the TCP session after receiving the confirmation of the client, and finally clearing the record information of the related file;
upgrading the file client module: the method comprises the steps of running on switch equipment, sending an upgrade request containing a file name to be upgraded to an upgrade file server module, and receiving file block contents in sequence; writing the content of the file block into the tail part of the specified file, recording the number of the current file block, and sending confirmation information to the server; when the network is abnormal, closing the TCP session, and storing the number of the last received file block to a record file; when the network is recovered, initiating an upgrading request again, reading the recorded file, sending the file block number to the server, and starting to receive the next file block of the number and record the current file block number until the file transmission is completed; when the information of the transmission completion is received, closing the TCP session and clearing the related file record information;
the upgrade file management module: and the system runs on the switch equipment, calls the upgrade file client module and acquires the feedback information of the client module.
9. A switch software high-efficiency safe upgrading device is characterized by comprising a processor and a storage medium;
the storage medium is used for storing instructions;
the processor is configured to operate in accordance with the instructions to perform the steps of the method according to any one of claims 1 to 7.
10. Computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202210224697.5A 2022-03-07 2022-03-07 System and method for efficiently and safely upgrading switch software Pending CN114697312A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210224697.5A CN114697312A (en) 2022-03-07 2022-03-07 System and method for efficiently and safely upgrading switch software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210224697.5A CN114697312A (en) 2022-03-07 2022-03-07 System and method for efficiently and safely upgrading switch software

Publications (1)

Publication Number Publication Date
CN114697312A true CN114697312A (en) 2022-07-01

Family

ID=82137882

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210224697.5A Pending CN114697312A (en) 2022-03-07 2022-03-07 System and method for efficiently and safely upgrading switch software

Country Status (1)

Country Link
CN (1) CN114697312A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109918108A (en) * 2019-03-08 2019-06-21 珠海妙微科技有限公司 A kind of embedded equipment plug-in upgrade method and device
CN110505077A (en) * 2018-05-18 2019-11-26 视联动力信息技术股份有限公司 A kind of method and apparatus of upgrading
CN110784348A (en) * 2019-10-23 2020-02-11 迈普通信技术股份有限公司 Firmware upgrading method and device, electronic equipment and storage medium
CN111147314A (en) * 2019-12-30 2020-05-12 深圳市丰润达科技有限公司 Switch upgrading method, device and storage medium
CN112910679A (en) * 2020-12-31 2021-06-04 上海遨有信息技术有限公司 Multi-level remote upgrading method for power Internet of things
CN113672270A (en) * 2021-08-19 2021-11-19 讯牧信息科技(上海)有限公司 Upgrading method, computer system and remote upgrading device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110505077A (en) * 2018-05-18 2019-11-26 视联动力信息技术股份有限公司 A kind of method and apparatus of upgrading
CN109918108A (en) * 2019-03-08 2019-06-21 珠海妙微科技有限公司 A kind of embedded equipment plug-in upgrade method and device
CN110784348A (en) * 2019-10-23 2020-02-11 迈普通信技术股份有限公司 Firmware upgrading method and device, electronic equipment and storage medium
CN111147314A (en) * 2019-12-30 2020-05-12 深圳市丰润达科技有限公司 Switch upgrading method, device and storage medium
CN112910679A (en) * 2020-12-31 2021-06-04 上海遨有信息技术有限公司 Multi-level remote upgrading method for power Internet of things
CN113672270A (en) * 2021-08-19 2021-11-19 讯牧信息科技(上海)有限公司 Upgrading method, computer system and remote upgrading device

Similar Documents

Publication Publication Date Title
CN105183515B (en) The method and device of holder firmware upgrade
CN109769001B (en) Internet of things data transmission method and system
CN111190747A (en) Message loss detection method and device for message queue
AU7684598A (en) Automatic regeneration of user data from a network
KR20000052929A (en) Regeneration agent for back-up software
CN112968815B (en) Method for realizing continuous transmission in broken network
CN102438042B (en) Dynamic parameter synchronizing method and system of multipoint access device
CN111857772A (en) Method and equipment for remote transmission and dynamic loading of terminal edge application program
CN103856511A (en) Data packet upload method, client terminal, nodes, information server and system
CN101252487B (en) Method for processing safety warning and safety policy equipment
EP3171565B1 (en) Methods, devices and system for netconf hello packets interaction
CN111880947B (en) Data transmission method and device
CN114697312A (en) System and method for efficiently and safely upgrading switch software
JP2001022627A (en) System and method for synchronizing data bases between plural devices
CN106598599B (en) A kind of execution method and apparatus of program
CN114217932A (en) Third-party docking exception handling method and system
CN113127435A (en) Intelligent synchronization method and system for files of main and standby systems
JPH0879370A (en) Operation system for exchange
JP2015057685A (en) Monitoring system
JP2776442B2 (en) Compound computer system
CN105045759B (en) Control communication method of financial self-service equipment
CN114666217B (en) One-key upgrading method and system based on easy mesh
JPH11288408A (en) Distributed processing system and method for preserving fault analysis information
CN109116756B (en) Equipment building method and system
JPH10222324A (en) Network system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination