CN105740032A - Network device system upgrading method and device - Google Patents
Network device system upgrading method and device Download PDFInfo
- Publication number
- CN105740032A CN105740032A CN201610141238.5A CN201610141238A CN105740032A CN 105740032 A CN105740032 A CN 105740032A CN 201610141238 A CN201610141238 A CN 201610141238A CN 105740032 A CN105740032 A CN 105740032A
- Authority
- CN
- China
- Prior art keywords
- value
- new version
- network equipment
- data segment
- storage device
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 238000012546 transfer Methods 0.000 claims description 8
- KKIMDKMETPPURN-UHFFFAOYSA-N 1-(3-(trifluoromethyl)phenyl)piperazine Chemical compound FC(F)(F)C1=CC=CC(N2CCNCC2)=C1 KKIMDKMETPPURN-UHFFFAOYSA-N 0.000 claims description 7
- 238000012217 deletion Methods 0.000 claims description 3
- 230000037430 deletion Effects 0.000 claims description 3
- 230000006870 function Effects 0.000 description 10
- 238000004891 communication Methods 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
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)
- Stored Programmes (AREA)
Abstract
本发明涉及一种网络设备系统升级方法及装置。该方法包括:S11、获取预设长度的数据段直接写入存储设备,并获取该预设长度的数据段的MD5值以及新版本软件的MD5值;S12、继续获取数据段并直接写入存储设备,同时对MD5值进行更新;该数据段的长度为所述预设长度;S13、重复所述步骤S12直至所述新版本软件写入到所述存储设备;S14、对比所述步骤S13中最后一次更新的MD5值与步骤S11中新版本软件的MD5值是否一致;若是则所述网络设备的系统升级成功。该装置用于实现本发明提供的网络设备系统升级方法。本发明可以在网络设备的内存不足时继续进行系统升级。
The invention relates to a method and device for upgrading a network equipment system. The method includes: S11, obtaining a data segment of a preset length and directly writing it into a storage device, and obtaining the MD5 value of the data segment of the preset length and the MD5 value of the new version software; S12, continuing to obtain the data segment and directly writing it into the storage device device, update the MD5 value at the same time; the length of the data segment is the preset length; S13, repeat the step S12 until the new version software is written into the storage device; S14, compare the step S13 Whether the last updated MD5 value is consistent with the MD5 value of the new version software in step S11; if so, the system upgrade of the network device is successful. The device is used to realize the network equipment system upgrading method provided by the present invention. The invention can continue to upgrade the system when the memory of the network equipment is insufficient.
Description
技术领域 technical field
本发明涉及通信网络技术领域,具体涉及一种网络设备系统升级方法及装置。 The invention relates to the technical field of communication networks, in particular to a method and device for upgrading a network equipment system.
背景技术 Background technique
网络设备是通信网络中常用的物理实体,为保障该网络设备的正常运行,通常在网络设备中安装操作系统或者应用软件。当通信网络进行升级时,也需要对网络设备进行操作系统或者应用软件升级。常用的网络设备都具有系统升级功能,以便采用新版本的操作系统或者应用软件替换旧版本的软件。 A network device is a commonly used physical entity in a communication network. In order to ensure the normal operation of the network device, an operating system or application software is usually installed in the network device. When the communication network is upgraded, it is also necessary to upgrade the operating system or application software of the network equipment. Commonly used network devices have a system upgrade function, so that a new version of the operating system or application software can be used to replace the old version of the software.
随着通信需求的增加,整个通信网络的压力比较大,此时为保证通信网络的正常工作,网络设备需要消耗掉较多的内存。实际应用中,在系统升级时,需要保证通信网络或者某个网络设备正常工作的情况下进行系统升级。但是系统升级时内存消耗较多,可能会由于无法申请到内存而导致升级失败的问题。 With the increase of communication requirements, the pressure on the entire communication network is relatively high. At this time, in order to ensure the normal operation of the communication network, network devices need to consume more memory. In practical applications, when the system is upgraded, it is necessary to ensure that the communication network or a certain network device is working normally. However, the system consumes a lot of memory during the upgrade, and the upgrade may fail due to the inability to apply for memory.
发明内容 Contents of the invention
针对现有技术中的缺陷,本发明提供一种网络设备系统升级方法及装置,用于解决现有技术中网络设备内存消耗较多而导致系统升级失败的问题。 Aiming at the defects in the prior art, the present invention provides a method and device for upgrading the network equipment system, which are used to solve the problem in the prior art that the system upgrade fails due to the high memory consumption of the network equipment.
第一方面,本发明提供了一种网络设备系统升级方法,所述方法包括: In a first aspect, the present invention provides a method for upgrading a network equipment system, the method comprising:
S11、获取预设长度的数据段直接写入存储设备,并获取该预设长度的数据段的MD5值以及新版本软件的MD5值; S11, obtaining the data segment of the preset length and directly writing it into the storage device, and obtaining the MD5 value of the data segment of the preset length and the MD5 value of the new version of the software;
S12、继续获取数据段并直接写入存储设备,同时对MD5值进行更新;该数据段的长度为所述预设长度; S12. Continue to obtain the data segment and directly write it into the storage device, and update the MD5 value at the same time; the length of the data segment is the preset length;
S13、重复所述步骤S12直至所述新版本软件写入到所述存储设备; S13. Repeat the step S12 until the new version of the software is written into the storage device;
S14、对比所述步骤S13中最后一次更新的MD5值与步骤S11中新版本软件的MD5值是否一致;若是则所述网络设备的系统升级成功。 S14, comparing whether the last updated MD5 value in step S13 is consistent with the MD5 value of the new version software in step S11; if so, the system upgrade of the network device is successful.
可选地,当最后一次更新的MD5值与步骤S11中新版本软件的MD5值不一致时,所述步骤S14之后包括: Optionally, when the last updated MD5 value is inconsistent with the MD5 value of the new version software in step S11, after said step S14 includes:
将所述存储设备中存储的所有数据段删除。 All data segments stored in the storage device are deleted.
可选地,所述方法采用简单文件传输协议TFTP协议或者文件传输协议FTP实现。 Optionally, the method is implemented by using the Trivial File Transfer Protocol TFTP protocol or the File Transfer Protocol FTP.
可选地,所述步骤S11之前,所述方法还包括: Optionally, before the step S11, the method further includes:
利用MD5初始化算法生成新版本软件的MD5值。 Use the MD5 initialization algorithm to generate the MD5 value of the new version of the software.
可选地,所述S12中对MD5值进行更新包括: Optionally, updating the MD5 value in S12 includes:
获取包括本次所获取的数据段的所有数据段; Obtain all data segments including the data segment obtained this time;
在所述所有数据段的基础上利用MD5更新算法生成MD5值。 The MD5 value is generated by using the MD5 update algorithm on the basis of all the data segments.
第二方面,本发明实施例还提供了一种网络设备系统升级装置,所述装置包括: In the second aspect, an embodiment of the present invention also provides a device for upgrading a network device system, the device comprising:
第一数据获取模块,用于获取预设长度的数据段直接写入存储设备,并获取该预设长度的数据段的MD5值以及新版本软件的MD5值; The first data acquisition module is used to obtain the data segment of the preset length and directly write it into the storage device, and obtain the MD5 value of the data segment of the preset length and the MD5 value of the new version of the software;
第二数据获取模块,用于执行以下步骤: The second data acquisition module is configured to perform the following steps:
S12、继续获取数据段并直接写入存储设备,同时对MD5值进行更新;该数据段的长度为所述预设长度; S12. Continue to obtain the data segment and directly write it into the storage device, and update the MD5 value at the same time; the length of the data segment is the preset length;
S13、重复所述步骤S12直至所述新版本软件写入到所述存储设备; S13. Repeat the step S12 until the new version of the software is written into the storage device;
对比模块,用于对比所述第二数据获取模块中最后一次更新的MD5值与第一数据获取模块中新版本软件的MD5值是否一致;若是则所述网络设备的系统升级成功。 The comparison module is used to compare whether the last updated MD5 value in the second data acquisition module is consistent with the MD5 value of the new version software in the first data acquisition module; if so, the system upgrade of the network device is successful.
可选地,当所述第二数据获取模块中最后一次更新的MD5值与第一数据获取模块中新版本软件的MD5值不一致时,所述装置还包括: Optionally, when the last updated MD5 value in the second data acquisition module is inconsistent with the MD5 value of the new version software in the first data acquisition module, the device further includes:
数据删除模块,用于将所述存储设备中存储的所有数据段删除。 A data deletion module, configured to delete all data segments stored in the storage device.
可选地,所述装置采用简单文件传输协议TFTP协议或者文件传输协议FTP实现。 Optionally, the device is implemented by using a simple file transfer protocol TFTP protocol or a file transfer protocol FTP.
可选地,所述装置还包括初始化模块,用于利用MD5初始化算法生成新版本软件的MD5值。 Optionally, the device further includes an initialization module, configured to use an MD5 initialization algorithm to generate an MD5 value of the new version of the software.
可选地,所述第二数据获取模块采用以下步骤实现对MD5值进行更新,包括: Optionally, the second data acquisition module adopts the following steps to update the MD5 value, including:
获取包括本次所获取的数据段的所有数据段; Obtain all data segments including the data segment obtained this time;
在所述所有数据段的基础上利用MD5更新算法生成MD5值。 The MD5 value is generated by using the MD5 update algorithm on the basis of all the data segments.
由上述技术方案可知,本发明通过将新版本软件分成多个数据段的方式直接写入存储设备,中间无需申请网络设备的内存,可以避免网络设备内存消耗过多,而导致系统升级失败的情况。并且,本发明实施例中,还利用MD5值对保存在存储设备中的新版本软件进行验证,以确定系统软件传输过程中的正确性,进一步保证系统升级的成功率。 It can be seen from the above technical solution that the present invention divides the new version software into multiple data segments and directly writes it into the storage device without applying for the memory of the network device in the middle, which can avoid the situation that the system upgrade fails due to excessive memory consumption of the network device . Moreover, in the embodiment of the present invention, the MD5 value is also used to verify the new version of the software stored in the storage device, so as to determine the correctness of the system software in the transmission process and further ensure the success rate of the system upgrade.
附图说明 Description of drawings
通过参考附图会更加清楚的理解本发明的特征和优点,附图是示意性的而不应理解为对本发明进行任何限制,在附图中: The features and advantages of the present invention will be more clearly understood by referring to the accompanying drawings, which are schematic and should not be construed as limiting the invention in any way. In the accompanying drawings:
图1是本发明实施例提供的一种网络设备系统升级方法流程图; Fig. 1 is a flow chart of a method for upgrading a network device system provided by an embodiment of the present invention;
图2是本发明实施例提供的一种网络设备系统升级装置框图; FIG. 2 is a block diagram of an apparatus for upgrading a network equipment system provided by an embodiment of the present invention;
图3是本发明实施例提供的一种网络设备系统升级装置框图。 Fig. 3 is a block diagram of an apparatus for upgrading a network equipment system according to an embodiment of the present invention.
具体实施方式 detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。 In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
第一方面,本发明实施例提供了一种网络设备系统升级方法,如图1所示,包括: In a first aspect, an embodiment of the present invention provides a method for upgrading a network device system, as shown in FIG. 1 , including:
S11、获取预设长度的数据段直接写入存储设备,并获取该预设长度的数据段的MD5值以及新版本软件的MD5值; S11, obtaining the data segment of the preset length and directly writing it into the storage device, and obtaining the MD5 value of the data segment of the preset length and the MD5 value of the new version of the software;
S12、继续获取数据段并直接写入存储设备,同时对MD5值进行更新;该数据段的长度为所述预设长度; S12. Continue to obtain the data segment and directly write it into the storage device, and update the MD5 value at the same time; the length of the data segment is the preset length;
S13、重复所述步骤S12直至所述新版本软件写入到所述存储设备; S13. Repeat the step S12 until the new version of the software is written into the storage device;
S14、对比所述步骤S13中最后一次更新的MD5值与步骤S11中新版本软件的MD5值是否一致;若是则所述网络设备的系统升级成功。 S14, comparing whether the last updated MD5 value in step S13 is consistent with the MD5 value of the new version software in step S11; if so, the system upgrade of the network device is successful.
需要说明的是,本发明实施例中预设长度是指预设字节数。例如预设长度可以为256字节。 It should be noted that the preset length in this embodiment of the present invention refers to the preset number of bytes. For example, the preset length may be 256 bytes.
需要说明的是,本发明实施例中数据段是指,具有预设长度的数据,且数据来自新版本软件,即有效数据的片段。 It should be noted that the data segment in the embodiment of the present invention refers to data with a preset length, and the data comes from a new version of software, that is, a segment of valid data.
需要说明的是,本发明实施例中新版本软件是指,为该网络设备准备的能够替代当前版本的操作系统软件正常工作的软件。 It should be noted that the new version software in this embodiment of the present invention refers to the software prepared for the network device that can replace the operating system software of the current version and work normally.
需要说明的是,本发明实施例中MD5值采用现有技术中常用消息摘要算法MD5生成。为体现每个MD5的不同作用,本发明实施例中采用MD5初始化算法生成新版本软件的MD5值。在对MD5值进行更新的过程中,采用MD5更新算法生成更新后的MD5值。由于消息摘要算法MD5是现有技术,本发明在此不再赘述。 It should be noted that the MD5 value in the embodiment of the present invention is generated by using the MD5 message digest algorithm commonly used in the prior art. In order to reflect the different functions of each MD5, the MD5 initialization algorithm is used in the embodiment of the present invention to generate the MD5 value of the new version software. In the process of updating the MD5 value, an MD5 update algorithm is used to generate an updated MD5 value. Since the message digest algorithm MD5 is a prior art, the present invention will not repeat it here.
下面结合实施例对本发明实施例提供的网络设备系统升级方法作进一步说明。 The method for upgrading the network device system provided by the embodiment of the present invention will be further described below in conjunction with the embodiments.
首先,介绍S11、获取预设长度的数据段直接写入存储设备,并获取该预设长度的数据段的MD5值以及新版本软件的MD5值的步骤。 Firstly, the steps of S11, obtaining the data segment of the preset length and directly writing it into the storage device, and obtaining the MD5 value of the data segment of the preset length and the MD5 value of the new version software are introduced.
实际应用中,新版本软件包括软件信息头和应用软件程序,信息头里面写明了软件的一些属性信息。即新版本软件中应用软件的MD5值就在属性信息里面。因此,新版本软件的MD5值来自属性信息。 In actual application, the new version of software includes a software information header and an application software program, and some attribute information of the software is written in the information header. That is, the MD5 value of the application software in the new version software is in the attribute information. Therefore, the MD5 value of the new version software comes from the attribute information.
优选地,上述MD5值采用MD5初始化算法生成。例如,该MD5初始化算法可以是MD5_Init函数。当然本领域技术人员也可以采用能够生成MD5值的其他函数以生成MD5值,本发明不作限定。 Preferably, the above MD5 value is generated using an MD5 initialization algorithm. For example, the MD5 initialization algorithm may be an MD5_Init function. Of course, those skilled in the art may also use other functions capable of generating the MD5 value to generate the MD5 value, which is not limited in the present invention.
其次,介绍S12、继续获取数据段并直接写入存储设备,同时对MD5值进行更新;该数据段的长度为所述预设长度的步骤。 Next, introduce S12, continue to obtain the data segment and directly write it into the storage device, and update the MD5 value at the same time; the length of the data segment is the step of the preset length.
继续从新版本软件中获取数据段,此时需要将该数据段直接保存到存储设备中。这样做可以避免向网络设备申请内存空间,不会影响网络设备的正常工作。 Continue to obtain the data segment from the new version of the software. At this time, the data segment needs to be directly saved to the storage device. Doing so can avoid applying for memory space to the network device, and will not affect the normal work of the network device.
在获取数据段后,此时需要对MD5值进行更新,以确定所获取的数据段是否正确。其中,对MD5值进行更新包括: After the data segment is obtained, the MD5 value needs to be updated at this time to determine whether the obtained data segment is correct. Among them, updating the MD5 value includes:
S121、获取包括本次所获取的数据段的所有数据段; S121. Obtain all data segments including the data segment obtained this time;
S122、在所述所有数据段的基础上利用MD5更新算法生成MD5值。 S122. Generate an MD5 value using an MD5 update algorithm on the basis of all the data segments.
需要说明的是,在更新时是在存储设备中与该新版本软件相关的所有数据段的基础上利用MD5更新算法生成MD5值。 It should be noted that the MD5 value is generated by using the MD5 update algorithm on the basis of all data segments related to the new version of the software in the storage device during the update.
本发明实施例中,MD5更新算法可以是MD5_Update函数。当然,当然本领域技术人员也可以采用能够更新MD5值的其他函数以生成MD5值,本发明不作限定。 In the embodiment of the present invention, the MD5 update algorithm may be an MD5_Update function. Of course, those skilled in the art may also use other functions capable of updating the MD5 value to generate the MD5 value, which is not limited in the present invention.
再次,介绍S13、重复所述步骤S12直至所述新版本软件写入到所述存储设备的步骤。 Again, S13 is introduced, the step of repeating the step S12 until the new version software is written into the storage device.
本步骤的主要内容与步骤2的内容相同,在此不再赘述。 The main content of this step is the same as that of step 2, and will not be repeated here.
最后,介绍S14、对比所述步骤S13中最后一次更新的MD5值与步骤S11中新版本软件的MD5值是否一致;若是则所述网络设备的系统升级成功。 Finally, introduce S14, compare whether the last updated MD5 value in the step S13 is consistent with the MD5 value of the new version software in the step S11; if so, the system upgrade of the network device is successful.
当将新版本软件保存到存储设备后,如果数据段出现缺失,则新版本软件是不能使用的。因此还需要对其进行验证。此时将步骤S13中最后一次更新的MD5值与步骤S11中新版本软件的MD5值进行比较。如果一致,则说明所获取的新版本软件是正确的,可以使用。即该网络设备的系统升级功能。 After the new version of the software is saved to the storage device, if the data segment is missing, the new version of the software cannot be used. So it still needs to be verified. At this time, compare the last updated MD5 value in step S13 with the MD5 value of the new version software in step S11. If they are consistent, it means that the acquired new version software is correct and can be used. That is, the system upgrade function of the network device.
实际应用中,最后一次更新的MD5值还可以采用MD5_Final函数实现。 In practical applications, the last updated MD5 value can also be realized by using the MD5_Final function.
如图2所示,本发明实施例还提供了一种网络设备系统升级方法,图2中步骤S21、S22、S23以及S24与图1中的S11、S12、S13以及S14相同,且步骤S241与步骤S14相同,在此不再赘述。图2包括:S242、步骤S23中最后一次更新的MD5值与步骤S21中新版本软件的MD5值不一致时,将所述存储设备中存储的所有数据段删除。 As shown in Figure 2, the embodiment of the present invention also provides a method for upgrading the network equipment system, steps S21, S22, S23 and S24 in Figure 2 are the same as S11, S12, S13 and S14 in Figure 1, and step S241 is the same as Step S14 is the same and will not be repeated here. Fig. 2 includes: S242, when the last updated MD5 value in step S23 is inconsistent with the MD5 value of the new version software in step S21, delete all data segments stored in the storage device.
本发明实施例通过将存储设备中的数据段删除,不占用存储设备的空间,减少对存储设备的影响。 In the embodiment of the present invention, by deleting the data segment in the storage device, the space of the storage device is not occupied, and the impact on the storage device is reduced.
第二方面,本发明实施例还提供了一种网络设备系统升级装置,如图3所示,所述装置包括: In the second aspect, the embodiment of the present invention also provides an apparatus for upgrading a network equipment system. As shown in FIG. 3 , the apparatus includes:
第一数据获取模块M11,用于获取预设长度的数据段直接写入存储设备,并获取该预设长度的数据段的MD5值以及新版本软件的MD5值; The first data obtaining module M11 is used to obtain the data segment of the preset length and directly write it into the storage device, and obtain the MD5 value of the data segment of the preset length and the MD5 value of the new version of the software;
第二数据获取模块M12,用于执行以下步骤: The second data acquisition module M12 is configured to perform the following steps:
S12、继续获取数据段并直接写入存储设备,同时对MD5值进行更新;该数据段的长度为所述预设长度; S12. Continue to obtain the data segment and directly write it into the storage device, and update the MD5 value at the same time; the length of the data segment is the preset length;
S13、重复所述步骤S12直至所述新版本软件写入到所述存储设备; S13. Repeat the step S12 until the new version of the software is written into the storage device;
对比模块M13,用于对比所述第二数据获取模块中最后一次更新的MD5值与第一数据获取模块中新版本软件的MD5值是否一致;若是则所述网络设备的系统升级成功。 The comparison module M13 is used to compare whether the last updated MD5 value in the second data acquisition module is consistent with the MD5 value of the new version software in the first data acquisition module; if so, the system upgrade of the network device is successful.
可选地,当所述第二数据获取模块中最后一次更新的MD5值与第一数据获取模块中新版本软件的MD5值不一致时,所述装置还包括: Optionally, when the last updated MD5 value in the second data acquisition module is inconsistent with the MD5 value of the new version software in the first data acquisition module, the device further includes:
数据删除模块,用于将所述存储设备中存储的所有数据段删除。 A data deletion module, configured to delete all data segments stored in the storage device.
可选地,所述装置采用简单文件传输协议TFTP协议或者文件传输协议FTP实现。 Optionally, the device is implemented by using a simple file transfer protocol TFTP protocol or a file transfer protocol FTP.
可选地,所述装置还包括初始化模块,用于利用MD5初始化算法生成新版本软件的MD5值。 Optionally, the device further includes an initialization module, configured to use an MD5 initialization algorithm to generate an MD5 value of the new version of the software.
可选地,所述第二数据获取模块M12采用以下步骤实现对MD5值进行更新,包括: Optionally, the second data acquisition module M12 adopts the following steps to update the MD5 value, including:
获取包括本次所获取的数据段的所有数据段; Obtain all data segments including the data segment obtained this time;
在所述所有数据段的基础上利用MD5更新算法生成MD5值。 The MD5 value is generated by using the MD5 update algorithm on the basis of all the data segments.
由上可以看出,本发明实施例提供的网络设备系统升级装置基于上文所述的网络设备系统升级方法实现,因而可以解决同样的技术问题,并取得相同的技术效果,在此不再一一赘述。 It can be seen from the above that the network equipment system upgrade device provided by the embodiment of the present invention is implemented based on the network equipment system upgrade method described above, so it can solve the same technical problem and achieve the same technical effect. A repeat.
综上所述,本发明实施例提供的网络设备系统升级方法及装置,通过将新版本软件分成多个数据段的方式直接写入存储设备,中间无需申请网络设备的内存,可以避免网络设备内存消耗过多,而导致系统升级失败的情况。并且,本发明实施例中,还利用MD5值对保存在存储设备中的操作系统软件与新版本软件进行比较,以确定系统软件传输过程中的正确性,进一步保证系统升级的成功率。 To sum up, the network device system upgrade method and device provided by the embodiments of the present invention can directly write the new version software into the storage device by dividing the new version software into multiple data segments, and there is no need to apply for the memory of the network device in the middle, which can avoid network device memory The system upgrade fails due to excessive consumption. Moreover, in the embodiment of the present invention, the MD5 value is also used to compare the operating system software stored in the storage device with the new version software, so as to determine the correctness of the system software transmission process and further ensure the success rate of the system upgrade.
应当注意的是,在本实施例公开的装置的各个部件中,根据其要实现的功能而对其中的部件进行了逻辑划分,但是,本发明不受限于此,可以根据需要对各个部件进行重新划分或者组合,例如,可以将一些部件组合为单个部件,或者可以将一些部件进一步分解为更多的子部件。 It should be noted that among the various components of the device disclosed in this embodiment, the components are logically divided according to the functions to be realized, but the present invention is not limited thereto, and each component can be divided as required Redivision or combination, for example, some components may be combined into a single component, or some components may be further broken down into more subcomponents.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的系统中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。 The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the system according to the embodiments of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
应该注意的是,上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。 It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
以上实施方式仅适于说明本发明,而并非对本发明的限制,有关技术领域的普通技术人员,在不脱离本发明的精神和范围的情况下,还可以做出各种变化和变型,因此所有等同的技术方案也属于本发明的范畴,本发明的专利保护范围应由权利要求限定。 The above embodiments are only suitable for illustrating the present invention, rather than limiting the present invention. Those of ordinary skill in the relevant technical fields can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, all Equivalent technical solutions also belong to the category of the present invention, and the scope of patent protection of the present invention should be defined by the claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610141238.5A CN105740032A (en) | 2016-03-10 | 2016-03-10 | Network device system upgrading method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610141238.5A CN105740032A (en) | 2016-03-10 | 2016-03-10 | Network device system upgrading method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105740032A true CN105740032A (en) | 2016-07-06 |
Family
ID=56251650
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610141238.5A Pending CN105740032A (en) | 2016-03-10 | 2016-03-10 | Network device system upgrading method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105740032A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108228218A (en) * | 2018-01-31 | 2018-06-29 | 青岛海信移动通信技术股份有限公司 | A kind of electric terminal method for upgrading system and device |
CN108845824A (en) * | 2018-07-10 | 2018-11-20 | 平安科技(深圳)有限公司 | Using update method and device and computer readable storage medium |
CN113726554A (en) * | 2021-07-31 | 2021-11-30 | 新华三技术有限公司成都分公司 | Method for restoring network equipment version and network equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101547184A (en) * | 2008-03-24 | 2009-09-30 | 突触计算机系统(上海)有限公司 | Method and device for authenticating data block transmitted in network |
CN102184113A (en) * | 2011-05-12 | 2011-09-14 | 深圳市锘特达科技发展有限公司 | Software upgrade method for implanted medical equipment |
CN103019785A (en) * | 2012-12-11 | 2013-04-03 | 北京奇虎科技有限公司 | Method and device for processing program upgrading |
-
2016
- 2016-03-10 CN CN201610141238.5A patent/CN105740032A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101547184A (en) * | 2008-03-24 | 2009-09-30 | 突触计算机系统(上海)有限公司 | Method and device for authenticating data block transmitted in network |
CN102184113A (en) * | 2011-05-12 | 2011-09-14 | 深圳市锘特达科技发展有限公司 | Software upgrade method for implanted medical equipment |
CN103019785A (en) * | 2012-12-11 | 2013-04-03 | 北京奇虎科技有限公司 | Method and device for processing program upgrading |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108228218A (en) * | 2018-01-31 | 2018-06-29 | 青岛海信移动通信技术股份有限公司 | A kind of electric terminal method for upgrading system and device |
CN108845824A (en) * | 2018-07-10 | 2018-11-20 | 平安科技(深圳)有限公司 | Using update method and device and computer readable storage medium |
CN113726554A (en) * | 2021-07-31 | 2021-11-30 | 新华三技术有限公司成都分公司 | Method for restoring network equipment version and network equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103646082A (en) | Method and device for checking files | |
CN106843957A (en) | System firmware upgrade method and device | |
CN105224361B (en) | A kind of method and system upgraded to sqlite3 type embedded databases | |
CN101308471B (en) | Method and device for data restoration | |
US10157000B2 (en) | Data operation method and device | |
CN105786542A (en) | Intelligent device and system update method of the intelligent device | |
CN105786549A (en) | Smart device and upgrading method thereof | |
CN110083379A (en) | A kind of server component upgrade method and relevant apparatus | |
CN105260202A (en) | Client file updating method and system | |
WO2020233045A1 (en) | Plug-in update method and device, server and computer readable storage medium | |
CN103677902A (en) | Method for ensuring safety and success of updating of line-card software in distributed OLT system | |
CN111666087B (en) | Operation rule updating method and device, computer system and readable storage medium | |
CN106302625B (en) | Data update method, device and related system | |
CN105740032A (en) | Network device system upgrading method and device | |
CN106331152B (en) | Method and device for realizing information synchronization between modules | |
CN104361034A (en) | File management method and device based on cloud storage | |
CN104317672A (en) | Method, device and system for repairing system files | |
CN103685471B (en) | Method and system for updating software client sides in monopoly mode | |
CN107908418B (en) | Method for upgrading logic program of fiber channel node card and fiber channel bus equipment | |
CN113806145A (en) | Backup recovery method and device of OpenStack virtualization platform based on Ceph storage | |
CN105704207A (en) | Method for generating unique identifier, terminal and network side | |
CN107894900A (en) | A kind of method and system of MCU upgradings | |
CN115951845B (en) | Disk management method, device, equipment and storage medium | |
WO2020062931A1 (en) | Method for configuring data, and computing device | |
WO2019085365A1 (en) | Increment upgrade method based on eigenvalue table look-up method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |