CN116094926A - Equipment batch upgrading method and system - Google Patents

Equipment batch upgrading method and system Download PDF

Info

Publication number
CN116094926A
CN116094926A CN202310042357.5A CN202310042357A CN116094926A CN 116094926 A CN116094926 A CN 116094926A CN 202310042357 A CN202310042357 A CN 202310042357A CN 116094926 A CN116094926 A CN 116094926A
Authority
CN
China
Prior art keywords
upgrade
upgrading
equipment
image
server
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
CN202310042357.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.)
Wuhan Maiwei Communications Co ltd
Original Assignee
Wuhan Maiwei Communications 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 Wuhan Maiwei Communications Co ltd filed Critical Wuhan Maiwei Communications Co ltd
Priority to CN202310042357.5A priority Critical patent/CN116094926A/en
Publication of CN116094926A publication Critical patent/CN116094926A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a batch upgrading method and a batch upgrading system for equipment, wherein the batch upgrading method comprises the following steps: s1: the service end sends the broadcast of the upgrading equipment to the local area network; s2: the equipment end analyzes the received broadcast packet and judges whether the received broadcast packet meets upgrading conditions; s3: if the upgrading conditions are met, the equipment end obtains an upgrading image from the server end through the TFTP; s4: and after the equipment end is upgraded, sending a message of successful upgrading to the server end. The service end (PC end) sends the broadcast of the upgrading device to the local area network, and the device end (client end) analyzes the received broadcast packet, so that the devices in the network are upgraded in batches, the network section of the devices is not required to be known, and the upgrading efficiency is improved.

Description

Equipment batch upgrading method and system
Technical Field
The invention relates to the technical field of equipment upgrading, in particular to a method and a system for upgrading equipment in batches.
Background
With the rapid development of network communication technology, network devices have been integrated into our work and life, in different environments, the demands of the devices are different, in order to meet various demands, the devices need to be upgraded, and the upgrading of the devices is performed one by one, a few of the devices can accept the upgrading process, but in the production and industrial environments, a large number of devices need to be upgraded, and in such a scene, one upgrading is time-consuming, labor-consuming and very low in efficiency, and a tool is needed to upgrade the devices in batches, so that the upgrading efficiency is improved.
For example, CN104182261a discloses a method for upgrading firmware in online batch, in the running process of a computer system, an IPMI command is sent to an IP segment of a certain BMC in batch at a remote end, after the BMC receives the IPMI command, ramfs is mounted in the system, a firmware image to be upgraded is received from a tftp server, after the receiving is completed, the firmware image in ramfs is updated to the whole false storage device, but the server end sends an IP segment, and needs to know what network segment the device is in, so that the upgrading efficiency is lower.
Disclosure of Invention
In view of the above, the invention provides a method and a system for upgrading equipment in batches, which are used for solving the problems that the network segment of the equipment needs to be known and the upgrading efficiency is low when the existing equipment is upgraded in batches.
The technical scheme of the invention is realized as follows: in one aspect, the invention provides a method for upgrading equipment in batches, which comprises the following steps:
s1: the service end sends the broadcast of the upgrading equipment to the local area network;
s2: the equipment end analyzes the received broadcast packet and judges whether the received broadcast packet meets upgrading conditions;
s3: if the upgrading conditions are met, the equipment end obtains an upgrading image from the server end through the TFTP;
s4: and after the equipment end is upgraded, sending a message of successful upgrading to the server end.
On the basis of the above technical solution, preferably, in step S1, broadcasting the carrying information includes:
the upgrade feature code, the model of the device to be upgraded, the name of the upgrade image, the size of the upgrade image, and the MD5 value of the upgrade image.
On the basis of the above technical solution, preferably, the step S2 specifically includes the following steps:
the equipment end analyzes the received broadcast packet and judges whether the received broadcast packet meets upgrading conditions or not through upgrading feature codes;
if the upgrade feature code is not identified, filtering the information;
if the upgrading feature code is identified, judging whether the upgrading condition is met or not by comparing the information in the package.
On the basis of the above technical solution, preferably, if the upgrade feature code is identified, judging whether the upgrade feature code meets the upgrade condition by comparing the information in the package, specifically including the following steps:
judging whether the model of the equipment to be upgraded is consistent with the equipment, whether the name of the upgrade image is correct, and whether the size of the upgrade image is consistent with the model;
if one or more items do not accord with the information, filtering the information;
if both are met, step S3 is entered.
On the basis of the above technical solution, preferably, the step S3 specifically includes the following steps:
when the upgrade condition is met, the equipment end obtains an upgrade image from the server end, the IP of the server end and the name of the upgrade image are analyzed through the broadcast received in the step S2, and the tftp command is used for obtaining the upgrade image from the server end.
On the basis of the above technical solution, preferably, the step S3 further includes the following steps:
if the tftp command is used for acquiring the upgrade image from the server, the upgrade image is acquired again, and if the upgrade image is not acquired successfully after 3 times, an upgrade failure message is sent to the server.
On the basis of the above technical solution, preferably, after the upgrade failure message is sent to the server, the method further includes the following steps:
if the service end receives the upgrade failure message, the service end clicks on the upgrade again, and the upgrade image file is actively sent to the equipment end, so that the equipment end performs the upgrade again.
On the basis of the above technical solution, preferably, before step S4, the method further includes the following steps:
the device side verifies the MD5 value of the upgrade image.
On the basis of the above technical solution, preferably, the device side checks the MD5 value of the upgrade image, and specifically includes the following steps:
and the equipment end compares the MD5 value of the upgrade image carried in the previous broadcast with the MD5 value calculated by the upgrade image file obtained in practice, and if the MD5 value is consistent with the MD5 value, the step S4 is entered.
In another aspect, the present invention provides a system employing the device batch upgrade method as described above, wherein the system includes:
the server side is used for sending the broadcast of the upgrading equipment to the local area network;
the equipment end is used for analyzing the received broadcast packet and judging whether the received broadcast packet meets the upgrading conditions or not; if the upgrading conditions are met, the equipment end obtains an upgrading image from the server end through the TFTP; after the upgrade is finished, a message of successful upgrade is sent to the server.
Compared with the prior art, the equipment batch upgrading method and system have the following beneficial effects:
(1) The service end (PC end) sends the broadcast of the upgrading device to the local area network, and the device end (client end) analyzes the received broadcast packet, so that the devices in the network are upgraded in batches, the network section of the devices is not required to be known, and the upgrading efficiency is improved;
(2) Analyzing the broadcast packet, and specifically judging whether the equipment end accords with the upgrading conditions or not through the information in the packet; the equipment in the network is upgraded one by one, the equipment is optimized to be upgraded in batches, and equipment with different models can be upgraded in batches through upgrading feature codes and the models of the equipment to be upgraded;
(3) If the upgrade fails, the upgrade can be carried out again by clicking on the service end in a manual mode, and the upgrade image file is actively sent to the equipment end, so that the equipment end carries out the upgrade again.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for upgrading equipment in batches according to the invention;
FIG. 2 is a block diagram of a batch upgrade system of the apparatus of the present invention;
FIG. 3 is a schematic diagram of a batch upgrade system of the apparatus of the present invention.
Detailed Description
The following description of the embodiments of the present invention will clearly and fully describe the technical aspects of the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, are intended to fall within the scope of the present invention.
Example 1
As shown in FIG. 1, the equipment batch upgrading method of the invention comprises the following steps:
s1: the service end sends the broadcast of the upgrading equipment to the local area network;
s2: the equipment end analyzes the received broadcast packet and judges whether the received broadcast packet meets upgrading conditions;
s3: if the upgrading conditions are met, the equipment end obtains an upgrading image from the server end through the TFTP;
s4: and after the equipment end is upgraded, sending a message of successful upgrading to the server end.
According to the method, the service end (PC end) sends the broadcast of the upgrading equipment to the local area network, the equipment end (client end) analyzes the received broadcast packet, and then the equipment in the network is upgraded in batches, so that the network section of the equipment is not required to be known, and the upgrading efficiency is improved.
In the step S1, the broadcasting carrying information includes:
upgrade feature code (e.g., 0 xaaa), model number of the device to be upgraded, upgrade image name, size of upgrade image, MD5 value of upgrade image, etc.
And sending three broadcasts to inform the equipment to be upgraded in the local area network, and receiving the information to indicate that the equipment is to be upgraded, and judging whether the equipment meets the upgrading conditions or not through the information carried by the broadcasts.
The step S2 specifically includes the following steps:
the equipment end analyzes the received broadcast packet and judges whether the received broadcast packet meets upgrading conditions or not through upgrading feature codes;
if the upgrade feature code is not identified, filtering the information;
if the upgrading feature code is identified, judging whether the upgrading condition is met or not by comparing the information in the package.
If the upgrading feature code is identified, judging whether the upgrading feature code meets upgrading conditions or not by comparing the information in the package, and specifically comprising the following steps:
judging whether the model of the equipment to be upgraded is consistent with the equipment, whether the name of the upgrade image is correct, whether the size of the upgrade image is consistent with the size of the upgrade image, and the like;
if one or more items do not accord with the information, filtering the information;
if both are met, step S3 is entered.
Analyzing the broadcast packet, and specifically judging whether the equipment end accords with the upgrading conditions or not through the information in the packet; the equipment in the network is upgraded one by one, the equipment is optimized to be upgraded in batches, and equipment with different models can be upgraded in batches through upgrading feature codes and the models of the equipment to be upgraded.
The step S3 specifically includes the following steps:
when the upgrade condition is met, the equipment end obtains an upgrade image from the server end, the IP of the server end and the name of the upgrade image are analyzed through the broadcast received in the step S2, and the tftp command is used for obtaining the upgrade image from the server end.
If the upgrade condition is met, the equipment side can pass the command: the tftp-p-l file name IP obtains the upgrade image file.
Wherein, the step S3 further includes the following steps:
if the tftp command is used for acquiring the upgrade image from the server, the upgrade image is acquired again, and if the upgrade image is not acquired successfully after 3 times, an upgrade failure message is sent to the server.
After the upgrade failure message is sent to the server, the method further comprises the following steps:
if the service end receives the upgrade failure message, the service end clicks on the upgrade again, and the upgrade image file is actively sent to the equipment end, so that the equipment end performs the upgrade again.
Generally, if the upgrade fails, the upgrade can be manually performed at the service end point to perform the upgrade again, and the upgrade image file is actively sent to the device end, so that the device end performs the upgrade again.
Wherein, before the step S4, the method further comprises the following steps:
the device side verifies the MD5 value of the upgrade image.
The verification of the MD5 value is performed to ensure that the upgrade image is correct.
MD5 action:
1. preventing tampering. 1) For example, an electronic document is sent, before sending, the output result a of MD5 is obtained, and then after the counterpart receives the electronic document, the counterpart also obtains the output result b of MD5. If a is the same as b, the middle part is not tampered; 2) For example, providing file downloading, in order to prevent lawbreakers from adding Trojan horse in an installation program, MD5 output results obtained by installing the file can be published on a website; 3) The SVN also uses MD5 after detecting whether the file was modified after CheckOut.
2. Preventing direct visibility of the plaintext. At present, many websites store the MD5 value of the user password when the database stores the user password, so that even if a lawbreaker obtains the MD5 value of the user password of the database, the user password cannot be known. For example, in the UNIX system, the user's password is encrypted by MD5 (or other similar algorithm) and stored in the file system, when the user logs in, the system calculates the password input by the user as MD5 value, and then compares the MD5 value with the MD5 value stored in the file system to determine whether the input password is correct. Through the steps, the system can determine the legality of the user logging in the system under the condition that the clear code of the user password is not known, so that the user password can be prevented from being known by the user with the authority of the system administrator, and the difficulty in cracking the password is increased to a certain extent.
3. Preventing repudiation (digital signature). This requires a third party certification authority. For example, user a writes a file, the certification authority generates and records digest information on the file by using the MD5 algorithm, and if user a later says that the file is not written by him, the authority only needs to regenerate the digest information on the file, and then compares the digest information recorded in the album with the digest information recorded in the album, and if the digest information is the same, the digest information is proved to be written by user a, which is called a digital signature.
The device side checks the MD5 value of the upgrade image, and specifically includes the following steps:
and the equipment end compares the MD5 value of the upgrade image carried in the previous broadcast with the MD5 value calculated by the upgrade image file obtained in practice, and if the MD5 value is consistent with the MD5 value, the step S4 is entered.
Algorithm principle of MD 5:
a brief description of the MD5 algorithm may be: MD5 processes the incoming information in 512-bit packets, each packet is divided into 16 32-bit sub-packets, after a series of processing, the output of the algorithm consists of four 32-bit packets, and after concatenating the four 32-bit packets, a 128-bit hash value is generated. The algorithm is common and mature, and is equivalent to a tool, and can be directly called.
In this way, the method in this embodiment sends the broadcast of the upgrade device to the lan through the server (PC), and the device (client) parses the received broadcast packet, so as to upgrade the devices in the network in batches, without knowing what network segment the device is in, thereby improving the upgrade efficiency.
Example two
As shown in fig. 2-3, a system is provided that employs the device batch upgrade method as described in example one, wherein the system comprises:
the server side is used for sending the broadcast of the upgrading equipment to the local area network;
the equipment end is used for analyzing the received broadcast packet and judging whether the received broadcast packet meets the upgrading conditions or not; if the upgrading conditions are met, the equipment end obtains an upgrading image from the server end through the TFTP; after the upgrade is finished, a message of successful upgrade is sent to the server.
In this way, the system in this embodiment transmits the broadcast of the upgrade device to the lan through the server (PC), and the device (client) parses the received broadcast packet, so as to upgrade the devices in the network in batches, without knowing what network segment the device is in, thereby improving the upgrade efficiency.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, alternatives, and improvements that fall within the spirit and scope of the invention.

Claims (10)

1. A batch upgrading method for equipment is characterized in that: the method comprises the following steps:
s1: the service end sends the broadcast of the upgrading equipment to the local area network;
s2: the equipment end analyzes the received broadcast packet and judges whether the received broadcast packet meets upgrading conditions;
s3: if the upgrading conditions are met, the equipment end obtains an upgrading image from the server end through the TFTP;
s4: and after the equipment end is upgraded, sending a message of successful upgrading to the server end.
2. The apparatus batch upgrade method of claim 1, wherein: in the step S1, the broadcast carrying information includes:
the upgrade feature code, the model of the device to be upgraded, the name of the upgrade image, the size of the upgrade image, and the MD5 value of the upgrade image.
3. The apparatus batch upgrade method of claim 2, wherein: the step S2 specifically comprises the following steps:
the equipment end analyzes the received broadcast packet and judges whether the received broadcast packet meets upgrading conditions or not through upgrading feature codes;
if the upgrade feature code is not identified, filtering the information;
if the upgrading feature code is identified, judging whether the upgrading condition is met or not by comparing the information in the package.
4. The apparatus batch upgrade method of claim 3, wherein: if the upgrading feature code is identified, judging whether the upgrading feature code meets upgrading conditions or not by comparing the information in the package, and specifically comprising the following steps:
judging whether the model of the equipment to be upgraded is consistent with the equipment, whether the name of the upgrade image is correct, and whether the size of the upgrade image is consistent with the model;
if one or more items do not accord with the information, filtering the information;
if both are met, step S3 is entered.
5. The apparatus batch upgrade method of claim 2, wherein: the step S3 specifically comprises the following steps:
when the upgrade condition is met, the equipment end obtains an upgrade image from the server end, the IP of the server end and the name of the upgrade image are analyzed through the broadcast received in the step S2, and the tftp command is used for obtaining the upgrade image from the server end.
6. The device batch upgrade method of claim 5, wherein: the step S3 further includes the following steps:
if the tftp command is used for acquiring the upgrade image from the server, the upgrade image is acquired again, and if the upgrade image is not acquired successfully after 3 times, an upgrade failure message is sent to the server.
7. The device batch upgrade method of claim 6, wherein: after the upgrade failure message is sent to the server, the method further comprises the following steps:
if the service end receives the upgrade failure message, the service end clicks on the upgrade again, and the upgrade image file is actively sent to the equipment end, so that the equipment end performs the upgrade again.
8. The apparatus batch upgrade method of claim 2, wherein: before the step S4, the method further includes the following steps:
the device side verifies the MD5 value of the upgrade image.
9. The device batch upgrade method of claim 8, wherein: the device side checks the MD5 value of the upgrade image, and specifically includes the following steps:
and the equipment end compares the MD5 value of the upgrade image carried in the previous broadcast with the MD5 value calculated by the upgrade image file obtained in practice, and if the MD5 value is consistent with the MD5 value, the step S4 is entered.
10. A system employing the device batch upgrade method of any one of claims 1-9, wherein: the system comprises:
the server side is used for sending the broadcast of the upgrading equipment to the local area network;
the equipment end is used for analyzing the received broadcast packet and judging whether the received broadcast packet meets the upgrading conditions or not; if the upgrading conditions are met, the equipment end obtains an upgrading image from the server end through the TFTP; after the upgrade is finished, a message of successful upgrade is sent to the server.
CN202310042357.5A 2023-01-11 2023-01-11 Equipment batch upgrading method and system Pending CN116094926A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310042357.5A CN116094926A (en) 2023-01-11 2023-01-11 Equipment batch upgrading method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310042357.5A CN116094926A (en) 2023-01-11 2023-01-11 Equipment batch upgrading method and system

Publications (1)

Publication Number Publication Date
CN116094926A true CN116094926A (en) 2023-05-09

Family

ID=86186562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310042357.5A Pending CN116094926A (en) 2023-01-11 2023-01-11 Equipment batch upgrading method and system

Country Status (1)

Country Link
CN (1) CN116094926A (en)

Similar Documents

Publication Publication Date Title
CN113342371B (en) Internet of things equipment upgrading system
CN113259392B (en) Network security attack and defense method, device and storage medium
CN113746638B (en) NFT storage method, NFT restoration method, computer device, and storage medium
CN110881051A (en) Security risk event processing method, device, equipment and storage medium
CN111130798A (en) Request authentication method and related equipment
JP6887108B2 (en) Fraud detection electronic control unit, electronic control unit, in-vehicle network system, fraud detection method and computer program
CN112087475B (en) Message pushing method and device for cloud platform component application and message server
CN113163012B (en) Internet of things equipment management method and device based on block chain
CN112398861B (en) Encryption system and method for sensitive data in web configuration system
WO2021078062A1 (en) Ssl certificate verification method, apparatus and device, and computer storage medium
CN113162885B (en) Safety protection method and device for industrial control system
CN115118504B (en) Knowledge base updating method and device, electronic equipment and storage medium
CN116094926A (en) Equipment batch upgrading method and system
CN107623679B (en) Data marking processing method and device and storage medium
CN111767200B (en) Method, device and computer equipment for processing service based on service log
CN111835504A (en) Identification code generation method and server
CN109587180B (en) Method for establishing connection, client and server
CN113395161A (en) Verification method, verification device, electronic equipment and storage medium
CN110995658A (en) Gateway protection method, device, computer equipment and storage medium
CN111522563A (en) Block chain-based terminal upgrade protection system and method
CN115374488B (en) Vehicle-mounted terminal program checking method and device
CN115277053B (en) Data processing method and system based on SaaS and Pass platform
CN111698299B (en) Session object replication method, device, distributed micro-service architecture and medium
CN117632858B (en) File format verification method, system, equipment and medium based on distributed network
CN110569646B (en) File recognition method and medium

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