CN108900317B - Method for batch upgrading of multiple network devices in Ethernet broadcast mode - Google Patents

Method for batch upgrading of multiple network devices in Ethernet broadcast mode Download PDF

Info

Publication number
CN108900317B
CN108900317B CN201810446177.2A CN201810446177A CN108900317B CN 108900317 B CN108900317 B CN 108900317B CN 201810446177 A CN201810446177 A CN 201810446177A CN 108900317 B CN108900317 B CN 108900317B
Authority
CN
China
Prior art keywords
package
file
value
content
upgrading
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.)
Active
Application number
CN201810446177.2A
Other languages
Chinese (zh)
Other versions
CN108900317A (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.)
Shenzhen Chima Communication Technology Co ltd
Original Assignee
Shenzhen Chima Communication Technology 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 Shenzhen Chima Communication Technology Co ltd filed Critical Shenzhen Chima Communication Technology Co ltd
Priority to CN201810446177.2A priority Critical patent/CN108900317B/en
Publication of CN108900317A publication Critical patent/CN108900317A/en
Application granted granted Critical
Publication of CN108900317B publication Critical patent/CN108900317B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Abstract

The invention discloses a method for upgrading a plurality of network devices in batches by an Ethernet broadcasting mode, wherein a packet sending program is communicated with the network devices to be upgraded through a switching device, one packet sending program or a plurality of packet sending programs simultaneously send packets to the switching device, a plurality of devices to be upgraded are connected to the switching device, and if more devices are required to be upgraded, one or a plurality of switching devices can be connected to the switching device to increase the number of the devices to be upgraded.

Description

Method for batch upgrading of multiple network devices in Ethernet broadcast mode
Technical Field
The invention belongs to the field of network communication, and particularly relates to a method for upgrading multiple network devices in batches in an Ethernet broadcasting mode.
Background
With the development of network communication technology, network devices are more and more widely applied to the study, work and life of people, and the functional requirements of people on the network devices are more and more different. With the same network device, different functional requirements lead to the network device needing to upgrade different software versions to meet the diversified requirements of people for the network device. When a large amount of equipment needs to be upgraded in production, only one network equipment can be upgraded at one time in the prior art, and other network equipment can be upgraded after the upgrading is finished. Therefore, the upgrading method has very low efficiency, and especially when the equipment manufacturer or the operator needs to upgrade the network equipment in batches, the defects of the single method for upgrading the network equipment become more obvious.
The present invention has been made in view of this situation.
Disclosure of Invention
The technical problem to be solved by the present invention is to overcome the defects of the prior art, and to provide a method for upgrading a plurality of network devices in batches by an ethernet broadcast manner, wherein a packet sending program communicates with the network devices to be upgraded through a switching device, one packet sending program or a plurality of packet sending programs simultaneously send packets to a switch device, a plurality of devices to be upgraded are connected to the switch, and if more devices are to be upgraded, one or more switches can be connected to the switch to increase the number of upgraded devices.
In order to solve the technical problems, the invention adopts the technical scheme that:
a method for upgrading a plurality of network devices in batches in an Ethernet broadcasting mode comprises the following steps:
step 1, a package sending program monitors equipment registration information, searches an upgrade file corresponding to the equipment type in a version library according to the equipment registration information and starts to send the upgrade file;
step 2, when the upgrade file starts to be sent, a package sending program divides the upgrade file into a plurality of Ethernet broadcast packages carrying the feature codes of the method and the equipment type, and obtains the MD5 value of the upgrade file and the total number of the divided packages of the upgrade file, wherein the Ethernet broadcast packages comprise a start package and a plurality of content packages;
step 3, the packet sending program circularly and sequentially sends a start packet and a plurality of content packets to a multi-port switch;
step 4, connecting the device to be upgraded to the multi-port switch, starting the package receiving program in the device to be upgraded, receiving the start package first, dropping the received Ethernet broadcast package in the mode before the start package is not received, confirming whether the current version number is consistent with the file version number in the start package after the start package is received, dropping all content packages subsequently if the current version number is consistent with the file version number in the start package, receiving the content packages out of order until the content packages with all sequence numbers are received if the current version number is inconsistent with the file version number, combining the content packages into a file, calculating the MD5 value of the file, upgrading the file if the MD5 value of the file is consistent with the MD5 value of the file in the start package, and not upgrading the file and deleting the file if the MD5 value is inconsistent with the file.
Further, the longest content of each of the ethernet broadcast packets describing the file is 1000 bytes.
Further, the file to be filled in the start packet is divided into the total number of packets, the file name, the file version number, and the MD5 value of the file, and the packet sequence number, the packet length, and the MD5 value of the packet content to be filled in the content packet.
Further, the step 4 further includes the following steps: when receiving the content package, the MD5 value of the content package is also calculated, if the MD5 value is consistent with the MD5 value in the start package, the content package is received, and if the MD5 value is not consistent with the MD5 value, the content package is dropped.
Further, the step 1 further comprises: the process requirement of the package sending program can increase the characteristic of simultaneously upgrading a plurality of devices in batches, each device can register the type of the device with the package sending program, and the package sending program can search the upgrading file of the device type from the version library according to the device type and start the process of upgrading the device type.
Further, the step 2 further comprises: the process of the package sending program requires that the package sending program is added and carried out at the same time, and the switch is added to add the network which is upgraded at the same time and carry out the upgrading at the same time.
After the technical scheme is adopted, compared with the prior art, the invention has the following beneficial effects.
The invention sends the package procedure to communicate with upgraded network equipment through the switching equipment, a package procedure or a plurality of package procedures send packages to the switching equipment at the same time, connect a plurality of equipment needing to be upgraded to the switch, if more equipment needs to be upgraded, one or a plurality of switches can be connected on the switch to increase and upgrade more equipment, and improve the upgrading efficiency of the network equipment.
The following describes embodiments of the present invention in further detail with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention to its proper form. It is obvious that the drawings in the following description are only some embodiments and that for a person skilled in the art, other drawings can also be derived from them without inventive effort. In the drawings:
FIG. 1 is a network diagram of an embodiment of the present invention.
It should be noted that the drawings and the description are not intended to limit the scope of the inventive concept in any way, but to illustrate it by a person skilled in the art with reference to specific embodiments.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and the following embodiments are used for illustrating the present invention and are not intended to limit the scope of the present invention.
Example one
As shown in fig. 1, in the method for batch upgrading multiple network devices by using an ethernet broadcast manner in this embodiment, an ethernet two-layer packet is used as a packet carrier, that is, only an ethernet header is included in a packet, and a destination address of the ethernet header is a broadcast MAC: and the packet type in the Ethernet header is a self-defined packet type: 0xFF11, wherein the data packet header is a data packet header defined by itself, and the data packet header has the following parameters:
1 > The signature of this method.
2 > The type of device upgraded.
3 > Packet types, which can be classified into
Starting a package: this package type transmits the upgrade file name, version number, package total.
The MD5 value for this document, this MD5 value was used to teach the integrity of this document.
Content package: this packet is the packet content of a file that is divided into a plurality of ethernet packets.
Registering a package: the user device registers the device type with the packaging program.
4 > Packet sequence number. An upgrade file is divided into a plurality of ethernet packets, each occupying a fixed packet sequence number.
5 > The packet content length.
6 > The MD5 value for the package contents, this MD5 value is used to teach the package integrity.
This approach has one packetizer program and one packetizer program. And the package sending program divides the upgrading file of the equipment into a plurality of Ethernet broadcast packages according to the packet header according to the equipment type in the registration package in the network and sends the Ethernet broadcast packages.
And the packaging program is arranged in each device with the function, and when a start packet of the device type is not received, a registration packet of the device type is regularly sent to register the device, the packet sending program is informed of the requirement of batch upgrading of the device, the packaging program can monitor the mode feature code packet at the same time, and a plurality of Ethernet broadcast packets belonging to the device are assembled into a finished upgrading file to be upgraded for the device according to the requirement.
The package issuing program consists of a version library, a registration function and a package issuing function.
The registration function monitors and processes a registration request from the network equipment, and once the network equipment has the registration request, the registration function searches the version library for the upgrade version of the equipment type and sends the upgrade version to the packet sending function to send the upgrade packet of the equipment in a fragmentation mode.
The package receiving program is built in the network device. The packet receiving program also has two functions, a registration function and a packet receiving and packaging function.
The method comprises the following specific steps:
step 1, a packet sending program monitors equipment registration information, searches an upgrade file corresponding to the equipment type in a version library according to the equipment registration information and starts to send the upgrade file.
And 2, when the upgrade file of the equipment type is started to be transmitted, the package transmitting program divides the upgrade file into a plurality of Ethernet broadcast packages carrying the feature codes of the method and the equipment type. And acquiring the MD5 value of the file, and acquiring the total number of the divided packages of the file. The upgrade file is sequentially divided, and the longest content of each package recording the file is 1000 bytes.
And 3, a packet sending program circularly and sequentially sends the start packet and a plurality of content packets to a multi-port switch. It can be that several package-sending programs are simultaneously sent to a multi-port exchanger, so that it can raise the speed of equipment upgrade, and the required filling file in the starting package can be divided into total number of data package, file name, file version number and file MD5 value. The packet sequence number, packet length, and MD5 value of the packet content that needs to be filled in the content packet.
And 4, connecting the equipment to be upgraded to the multi-port switch, wherein the packet receiving program in the equipment starts to work, the starting packet needs to be received first, and the received Ethernet broadcast packet in the mode is discarded before the starting packet is not received. After receiving the start package, confirming whether the current version number of the file in the start package is consistent or not, if so, subsequently discarding all content packages, if not, receiving the content packages out of order until receiving the content packages with all sequence numbers, then combining the content packages into a file, calculating the MD5 value of the file, if the MD5 value is consistent, if the MD5 value of the file in the start package is consistent, upgrading the file, and if not, not upgrading the file, and deleting the file. When receiving the content package, the MD5 value of the content package is also calculated, if the MD5 value is consistent with the MD5 value in the start package, the content package is received, and if the MD5 value is not consistent with the MD5 value, the content package is dropped.
If more devices need to be upgraded, one or more switches may be connected to the switch to add more devices to the upgrade. The step 1 may further include a process requirement of the package sending program, which may increase the characteristic of batch upgrade to multiple devices at the same time, each device may register the type of the device with the package sending program, and the package sending program may search the upgrade file of the device type from the version library according to the device type and start the process of upgrading the device type, which may increase switches, so as to increase the number of networks that may be upgraded at the same time. Step 2, the process requirement of the package sending program can be increased to increase the upgrading speed, and the switch can be increased to increase the number of networks which can be upgraded simultaneously.
The method of the invention is characterized in that a packet sending program communicates with the upgraded network equipment through the switching equipment, one packet sending program or a plurality of packet sending programs simultaneously send packets to the switch equipment, a plurality of equipment needing to be upgraded are connected to the switch, if more equipment needs to be upgraded, one or a plurality of switches can be connected to the switch to increase the upgrading of more equipment.
Although the present invention has been described with reference to a preferred embodiment, it should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (6)

1. A method for upgrading a plurality of network devices in batches in an Ethernet broadcasting mode is characterized by comprising the following steps:
step 1, a package sending program monitors equipment registration information, searches an upgrade file corresponding to the equipment type in a version library according to the equipment registration information and starts to send the upgrade file;
step 2, when the upgrade file starts to be sent, a package sending program divides the upgrade file into a plurality of Ethernet broadcast packages carrying feature codes of an upgrade method and the equipment type, and obtains the MD5 value of the upgrade file and the total number of the divided packages of the upgrade file, wherein the Ethernet broadcast packages comprise a start package and a plurality of content packages;
step 3, the packet sending program circularly and sequentially sends a start packet and a plurality of content packets to a multi-port switch;
step 4, connecting the device to be upgraded to the multi-port switch, starting the package receiving program in the device to be upgraded, receiving the start package first, dropping the received Ethernet broadcast package in the mode before the start package is not received, confirming whether the current version number is consistent with the file version number in the start package after the start package is received, dropping all content packages subsequently if the current version number is consistent with the file version number in the start package, receiving the content packages out of order until the content packages with all sequence numbers are received if the current version number is inconsistent with the file version number, combining the content packages into a file, calculating the MD5 value of the file, upgrading the file if the MD5 value of the file is consistent with the MD5 value of the file in the start package, and not upgrading the file and deleting the file if the MD5 value is inconsistent with the file.
2. The method according to claim 1, wherein the longest file content of each of the ethernet broadcast packets is 1000 bytes.
3. The method as claimed in claim 1, wherein the files to be filled in the start package are divided into the total number of data packages, file name, file version number, and MD5 value, and the content package is filled with the sequence number of the divided data packages, package length, and MD5 value of package content.
4. The method according to claim 1, wherein the step 4 further comprises the following steps: when receiving the content package, the MD5 value of the content package is also calculated, if the MD5 value is consistent with the MD5 value in the start package, the content package is received, and if the MD5 value is not consistent with the MD5 value, the content package is dropped.
5. The method according to claim 1, wherein the step 1 further comprises: the process requirement of the package sending program can increase the characteristic of simultaneously upgrading a plurality of devices in batches, each device can register the type of the device with the package sending program, and the package sending program can search the upgrading file of the device type from the version library according to the device type and start the process of upgrading the device type.
6. The method according to claim 1, wherein the step 2 further comprises: the process of the package sending program requires that the package sending program is added and carried out at the same time, and the switch is added to add the network which is upgraded at the same time and carry out the upgrading at the same time.
CN201810446177.2A 2018-05-11 2018-05-11 Method for batch upgrading of multiple network devices in Ethernet broadcast mode Active CN108900317B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810446177.2A CN108900317B (en) 2018-05-11 2018-05-11 Method for batch upgrading of multiple network devices in Ethernet broadcast mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810446177.2A CN108900317B (en) 2018-05-11 2018-05-11 Method for batch upgrading of multiple network devices in Ethernet broadcast mode

Publications (2)

Publication Number Publication Date
CN108900317A CN108900317A (en) 2018-11-27
CN108900317B true CN108900317B (en) 2022-08-16

Family

ID=64342696

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810446177.2A Active CN108900317B (en) 2018-05-11 2018-05-11 Method for batch upgrading of multiple network devices in Ethernet broadcast mode

Country Status (1)

Country Link
CN (1) CN108900317B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109981342A (en) * 2019-02-15 2019-07-05 广州市高科通信技术股份有限公司 A kind of method and system of batch processing network device operation order
CN111147314A (en) * 2019-12-30 2020-05-12 深圳市丰润达科技有限公司 Switch upgrading method, device and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102064955B (en) * 2009-11-17 2014-01-01 中兴通讯股份有限公司 Method and system for remotely upgrading optical network unit
CN101860456A (en) * 2010-06-29 2010-10-13 中兴通讯股份有限公司 Method and system for updating software of optical network units (ONUs) in Ethernet passive optical network
US9081643B2 (en) * 2012-09-21 2015-07-14 Silver Sring Networks, Inc. System and method for efficiently updating firmware for nodes in a mesh network
CN103139012B (en) * 2012-12-03 2016-06-08 深圳市共进电子股份有限公司 A kind of Ethernet interface method of testing and the network equipment
CN104320281A (en) * 2014-10-31 2015-01-28 杭州华三通信技术有限公司 Optical network unit (ONU) version upgrading method and device
CN106559301A (en) * 2015-09-29 2017-04-05 中兴通讯股份有限公司 Embedded device batch upgrading method and system
CN105471651B (en) * 2015-12-04 2019-03-08 烽火通信科技股份有限公司 VLAN synchronous method, local switch and distant-end switch in a kind of double layer network

Also Published As

Publication number Publication date
CN108900317A (en) 2018-11-27

Similar Documents

Publication Publication Date Title
CN108965484B (en) Internet of things data transmission method, system and terminal
EP2608585B1 (en) Method, device and system for triggering terminal operation
CN111083161A (en) Data transmission processing method and device and Internet of things equipment
CN102771164B (en) Methods and apparatus providing intelligent radio selection for legacy and non-legacy applications
WO2015143794A1 (en) Creating and upgrading methods, server, terminal, upgrading system, and storage media
EP2571224A1 (en) Method for processing messages on m2m platform and m2m platform system
CN103973421A (en) File transmitting method and device
EP2429225A1 (en) Method for provisioning parameters of terminal, system thereof, and terminal management device
CN111343218A (en) Data sending and receiving method based on heartbeat message, storage medium and processor
CN108900317B (en) Method for batch upgrading of multiple network devices in Ethernet broadcast mode
CN105119749A (en) Local batch upgrading method and system for home gateway
CN111245776A (en) Vehicle-mounted data transmission method, device, equipment and storage medium
CN111142905A (en) OTA (over-the-air) upgrading method, OTA server and OTA upgrading system
WO2021088813A1 (en) Packet encapsulating method and apparatus, and packet decapsulating method and apparatus
CN114584582A (en) In-vehicle message processing method and device, vehicle-mounted terminal and storage medium
WO2015117522A1 (en) Parameter configuration data processing method and device, and parameter configuration method and device
CN112737995B (en) Method, device and equipment for processing Ethernet frame and storage medium
WO2024022022A1 (en) Multi-network card fusion communication method and communication system
CN111884938B (en) Router information acquisition method and device
US20060280174A1 (en) Method and system for establishing a data link layer protocol on a physical layer port connection
CN113950088B (en) Base station monitoring analysis method, device, system, electronic device and storage medium
EP3672189A1 (en) Data transmission method, device and system
CN109067922A (en) A kind of data transmission method and device
CN112148333B (en) Block chain server firmware updating system
CN111885564B (en) Data transmission method, equipment upgrading method and computer readable storage 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
DD01 Delivery of document by public notice

Addressee: SHENZHEN CHIMA COMMUNICATION TECHNOLOGY Co.,Ltd.

Document name: Notification of Passing Examination on Formalities

DD01 Delivery of document by public notice
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A Method for Batch Upgrading Multiple Network Devices through Ethernet Broadcasting

Effective date of registration: 20230612

Granted publication date: 20220816

Pledgee: Shenzhen Rural Commercial Bank Co.,Ltd. Henggang Sub branch

Pledgor: SHENZHEN CHIMA COMMUNICATION TECHNOLOGY CO.,LTD.

Registration number: Y2023980043621

PE01 Entry into force of the registration of the contract for pledge of patent right