WO2017190547A1 - Method for upgrading apparatus, device, and configuration point - Google Patents

Method for upgrading apparatus, device, and configuration point Download PDF

Info

Publication number
WO2017190547A1
WO2017190547A1 PCT/CN2017/075777 CN2017075777W WO2017190547A1 WO 2017190547 A1 WO2017190547 A1 WO 2017190547A1 CN 2017075777 W CN2017075777 W CN 2017075777W WO 2017190547 A1 WO2017190547 A1 WO 2017190547A1
Authority
WO
WIPO (PCT)
Prior art keywords
upgraded
file
server
version information
version
Prior art date
Application number
PCT/CN2017/075777
Other languages
French (fr)
Chinese (zh)
Inventor
陈锦威
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017190547A1 publication Critical patent/WO2017190547A1/en

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • 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]

Definitions

  • the present application relates to, but is not limited to, the field of communication technologies, and in particular, to a method, an apparatus, and a configuration point device for upgrading a device.
  • the Software Defined Network decouples the control plane from the forwarding plane through a standardized Southbound Interface (SBI).
  • OpenFlow OF
  • OF-Config is a configuration protocol for OpenFlow.
  • the OpenFlow Configuration Point OFLS
  • OpenFlow Controller OpenFlow Controller
  • an operator's network may contain devices from multiple vendors. As shown in Figure 2, there are three vendors in the network: C, F, and Z. Because OpenFlow and OF-Config are standardized, operators can The device is configured and managed by a common controller and configuration point tool. However, the device management functions of each manufacturer also need to manage the device through a proprietary interface using the network management software provided by the manufacturer. For example, you need to upgrade the devices on the network. You need to use the network management system of the C manufacturer to upgrade the equipment of the C manufacturer, the network management system of the Z manufacturer to upgrade the equipment of the Z manufacturer, and the network management system of the F manufacturer to upgrade the equipment of the F manufacturer.
  • the technical problem to be solved by the present application is to provide a method, a device, and a configuration point device for upgrading a device, and to solve the problem that an existing device upgrade needs to be upgraded by a specific manufacturer network management.
  • an embodiment of the present invention provides a method for upgrading a device, where the method includes:
  • the address of the server to be upgraded is sent to the device to be upgraded, and the device to be upgraded is updated according to the address of the server.
  • the step of obtaining the version information of the file to be upgraded and the version information of the device to be upgraded for upgrading the device to be upgraded includes:
  • the address of the server to be upgraded is sent to the device to be upgraded according to the version information of the file to be upgraded and the device to be upgraded, and the device to be upgraded is updated according to the address of the server. Steps, including:
  • the file to be upgraded is sent to the device to be upgraded.
  • the address of the server and indicates that the device to be upgraded is upgraded by obtaining the file to be upgraded from the server according to the address of the server.
  • the address of the server storing the file to be upgraded is sent to the device to be upgraded, and includes:
  • the name of the file to be upgraded includes at least the manufacturer information, the device model, and the version number.
  • the obtained version information includes at least the manufacturer information, the device model, and the version number.
  • an embodiment of the present invention provides an apparatus for upgrading a device, where the apparatus includes:
  • the obtaining module is configured to obtain version information of the file to be upgraded for the device to be upgraded and version information of the device to be upgraded;
  • the processing module is configured to send, according to the version information of the file to be upgraded and the version information of the device to be upgraded, the address of the server that stores the file to be upgraded, and the device to be upgraded to obtain the file to be upgraded from the server according to the address of the server. Upgrade.
  • the acquisition module includes:
  • the first obtaining unit is configured to verify the file to be upgraded, and obtain version information of the file to be upgraded according to the file to be upgraded;
  • the second obtaining unit is configured to obtain the neighboring device upgraded by the file to be upgraded and the version information of the neighboring device, and obtain the version information of the file to be upgraded according to the version information of the neighboring device.
  • the processing module includes:
  • the first processing unit is configured to: when the manufacturer information and the device model of the file to be upgraded are the same as the manufacturer information and the device model of the device to be upgraded, and the version number of the device to be upgraded is lower than the version number of the file to be upgraded, The address of the server that stores the file to be upgraded is delivered, and the device to be upgraded is upgraded by obtaining the file to be upgraded from the server according to the address of the server.
  • the processing module further includes:
  • the second processing unit is configured to send the user information for logging in to the server to be upgraded, and the name of the file to be upgraded.
  • the name of the file to be upgraded includes at least the manufacturer information, the device model, and the version number.
  • the obtained version information includes at least the manufacturer information, the device model, and the version number.
  • an embodiment of the present invention provides a configuration point device, where the configuration point device includes the device upgrade device described above.
  • an embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, the method for implementing the device upgrade when the computer executable instructions are executed by a processor.
  • the device obtains the version information of the file to be upgraded and the version of the device to be upgraded.
  • the file to be upgraded is sent to the device to be upgraded according to the version information of the file to be upgraded and the version information of the device to be upgraded.
  • the address of the server and indicates that the device to be upgraded is upgraded from the server to obtain the file to be upgraded according to the address of the server; thus, the problem that the existing device upgrade needs to be upgraded by the specific manufacturer network management can be solved, thereby realizing the white box of the device. Reduce network operation and maintenance costs.
  • FIG. 1 is a schematic diagram showing the relationship between OF-Config and OpenFlow
  • FIG. 2 is a schematic diagram of a scenario of device networking of different manufacturers
  • FIG. 3 is a schematic flowchart diagram of a method for upgrading a device according to an embodiment of the present invention
  • FIG. 4 is a diagram showing an example of a structure of a query version information structure in an embodiment of the present invention.
  • FIG. 5 shows an example of the structure of an upgrade version message structure in the embodiment of the present invention
  • FIG. 6 shows an example of a structure for obtaining upgrade result information in an embodiment of the present invention
  • FIG. 7 is a schematic flowchart diagram of a method for upgrading a device according to a first embodiment of the present invention.
  • FIG. 8 is a schematic flowchart diagram of a method for upgrading a device according to a second embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of an apparatus for upgrading a device according to an embodiment of the present invention.
  • the extended OF-Config protocol implements the method of upgrading the forwarding devices of different vendors to solve the problem that the existing device upgrade needs to be upgraded through the network management of a specific manufacturer, thereby realizing the white box of the device and reducing the network operation and maintenance cost.
  • FIG. 3 it is a schematic flowchart of a method for upgrading a device according to an embodiment of the present invention.
  • the embodiment of the present invention takes a forwarding device in an SDN network as an example.
  • An embodiment of the present invention provides a method for upgrading a device, where the method includes:
  • step 301 the version information of the file to be upgraded and the version information of the device to be upgraded are obtained.
  • the configuration point obtains version information of the device to be upgraded, which is pre-specified by the user, and version information of the file to be upgraded for the upgrade of the device to be upgraded.
  • Step 302 According to the version information of the file to be upgraded and the version information of the device to be upgraded, the address of the server to be upgraded is sent to the device to be upgraded, and the device to be upgraded is updated according to the address of the server. .
  • the server is pre-opened, and the file to be upgraded is placed (stored) on the server.
  • the server may be the server corresponding to the device to be upgraded, or the server corresponding to the neighbor device of the device to be upgraded.
  • the address of the server is delivered to the device to be upgraded, so that the device to be upgraded obtains the file to be upgraded from the server according to the address of the server. Upgrade.
  • the step of obtaining the version information of the file to be upgraded and the version information of the device to be upgraded for the device to be upgraded includes:
  • the obtaining of the version information of the file to be upgraded may be that the configuration point obtains the version information based on the direct query of the file to be upgraded, or obtains the version information of the file to be upgraded based on the neighbor device upgraded by the file to be upgraded.
  • the name of the file to be upgraded is determined by the name of the file to be upgraded, and the version of the file to be upgraded is obtained according to the name of the file to be upgraded.
  • the manner of directly querying the version information of the file to be upgraded may include querying the file header of the file to be upgraded, or querying the configuration file in the upgrade package, and the like.
  • the network pressure can be reduced by obtaining the version information of the neighbor device to obtain the version information of the file to be upgraded.
  • the name of the file to be upgraded includes at least the manufacturer information, the device model, and the version number. That is to say, the naming format defined by the file to be upgraded at least includes information such as manufacturer information, device model number, and version number.
  • the name of the file to be upgraded may also include other information according to actual needs, such as number, release time, and the like.
  • the order of arrangement of information such as manufacturer information, device model number, and version number in the name of the file to be upgraded is not limited.
  • the obtained version information includes at least manufacturer information, a device model, and a version number.
  • the obtaining of the version information of the device to be upgraded may be obtained by extending the OF-Config protocol definition query version information structure.
  • the device version information may be added by using an "OpenFlow Capable Switch” object in the OF-Config.
  • the "id” field and the “config-version” field in the "OpenFlow Capable Switch” object in OF-Config 1.2 are added to the "manufacturer” field indicating the manufacturer information and the "device” indicating the device model.
  • the -type” field and the "cur-version” field indicating the version number.
  • step 302 according to the version information of the file to be upgraded and the version information of the device to be upgraded, the address of the server that stores the file to be upgraded is sent to the device to be upgraded, and the device to be upgraded is obtained from the server according to the address of the server.
  • the steps to upgrade the file include:
  • the file to be upgraded is sent to the device to be upgraded.
  • the address of the server and indicates that the device to be upgraded is upgraded by obtaining the file to be upgraded from the server according to the address of the server.
  • the version information includes the manufacturer information, the device model, and the version number.
  • the configuration point is based on the preset version ratio.
  • the version information of the upgraded file is compared with the version information of the device to be upgraded.
  • the manufacturer information and device model of the file to be upgraded are the same as the manufacturer information and device model of the device to be upgraded.
  • the configuration point sends an upgrade indication to the device to be upgraded, that is, the address of the server that stores the file to be upgraded is sent to the device to be upgraded, and the device to be upgraded obtains the file to be upgraded from the server according to the address of the server. upgrade.
  • the default version comparison rule is: comparing the to-be-upgraded file with the manufacturer information of the device to be upgraded. If the information is not consistent, the version of the file to be upgraded is deemed to be unavailable, the upgrade fails, and the method flow is ended.
  • Device model compare the file to be upgraded and the device model to be upgraded. If they are inconsistent, the version of the file to be upgraded is considered unavailable.
  • the upgrade fails.
  • the method is terminated. If they are consistent, the version numbers of the two are compared. If the version number of the file to be upgraded is lower than or equal to the version number of the device to be upgraded, the version of the file to be upgraded is considered unavailable, the upgrade fails, and the method flow is ended. If the version number is higher than the version number of the device to be upgraded, the version of the file to be upgraded is considered to be a valid version.
  • the address of the server storing the file to be upgraded is sent to the device to be upgraded, and includes:
  • the user information and the name of the file to be upgraded are sent to the device to be upgraded, and the device to be upgraded is logged in to the server according to the user information, and the corresponding information is obtained from the server according to the address of the server.
  • the name of the file to be upgraded, so that the file to be upgraded is upgraded.
  • the user information includes a preset user and a password.
  • the server may be a File Transfer Protocol (FTP) server.
  • FTP File Transfer Protocol
  • the upgrade point is sent to the device to be upgraded
  • the upgrade version message object "Update Version” may be extended on the basis of the original OF-Config protocol to indicate that the device to be upgraded is upgraded.
  • the "Update Version” object includes a field indicating an address of the FTP server. Ftp-addr", the field “ftp-user” indicating the FTP server user, the field “ftp-pwd” indicating the FTP server password, and The field “filename” indicating the name of the file to be upgraded.
  • the device stores the address of the server to be upgraded, and indicates that the device to be upgraded obtains the file to be upgraded from the server according to the address of the server.
  • the method may further include: obtaining upgrade result information of the device to be upgraded.
  • the upgrade result information of the device to be upgraded may be obtained by receiving the upgrade result information sent by the device to be upgraded.
  • the obtained upgrade result information includes an error message, which indicates that the upgrade of the device to be upgraded fails, and the file to be upgraded cannot be obtained, the file to be upgraded fails, and the device is saved. Insufficient space, etc., is not specifically limited here.
  • the configuration point obtains the upgrade result information of the device to be upgraded, and the object of the OF-Config protocol is updated to obtain the upgrade result information of the device to be upgraded.
  • FIG. 6 is relative to FIG. 5, and the field "state” is added in the "Update Version” object to represent the upgrade result information of the device to be upgraded.
  • the device upgrade method provided by the embodiment of the present invention obtains the version information of the file to be upgraded and the version information of the device to be upgraded, and the version information of the device to be upgraded and the version information of the device to be upgraded.
  • the device to be upgraded delivers the address of the server where the file to be upgraded is stored, and indicates that the device to be upgraded obtains the file to be upgraded from the server according to the address of the server, and the device upgrade can be implemented through the network management of the specific manufacturer.
  • the problem is to realize the white box of the device and reduce the network operation and maintenance cost.
  • FIG. 9 is a schematic structural diagram of an apparatus for upgrading a device according to an embodiment of the present invention.
  • An embodiment of the present invention provides an apparatus for upgrading a device, where the apparatus may include: an obtaining module 910 and a processing module 920.
  • the obtaining module 910 is configured to obtain version information of the file to be upgraded for the device to be upgraded and version information of the device to be upgraded;
  • the processing module 920 is configured to send the address of the server that stores the file to be upgraded to the device to be upgraded according to the version information of the file to be upgraded and the version information of the device to be upgraded, and instruct the device to be upgraded to obtain an upgrade from the server according to the address of the server.
  • the file is upgraded.
  • the obtaining module 910 may include: a first acquiring unit or a second acquiring unit.
  • the first obtaining unit is configured to verify the file to be upgraded, and obtain version information of the file to be upgraded according to the file to be upgraded;
  • the second obtaining unit is configured to obtain the neighboring device upgraded by the file to be upgraded and the version information of the neighboring device, and obtain the version information of the file to be upgraded according to the version information of the neighboring device.
  • the processing module 920 can include: a first processing unit.
  • the first processing unit is configured to: when the manufacturer information and the device model of the file to be upgraded are the same as the manufacturer information and the device model of the device to be upgraded, and the version number of the device to be upgraded is lower than the version number of the file to be upgraded, The address of the server that stores the file to be upgraded is delivered, and the device to be upgraded is upgraded by obtaining the file to be upgraded from the server according to the address of the server.
  • the processing module 920 may further include: a second processing unit.
  • the second processing unit is configured to send the user information for logging in to the server to be upgraded, and the name of the file to be upgraded.
  • the name of the file to be upgraded includes at least the manufacturer information, the device model, and the version number.
  • the obtained version information includes at least the manufacturer information, the device model, and the version number.
  • the device may further include: a result obtaining module.
  • the result obtaining module is set to obtain the upgrade result information of the device to be upgraded.
  • the apparatus for upgrading the device provided by the foregoing embodiment is the same as the method for upgrading the device provided by the embodiment.
  • the device for upgrading the device obtained by the embodiment of the present invention obtains the version information of the file to be upgraded and the version information of the device to be upgraded, and the version information of the device to be upgraded and the version information of the device to be upgraded.
  • the device to be upgraded delivers the address of the server where the file to be upgraded is stored, and indicates that the device to be upgraded obtains the file to be upgraded from the server according to the address of the server, and the device upgrade can be implemented through the network management of the specific manufacturer.
  • the problem is to realize the white box of the device and reduce the network operation and maintenance cost.
  • the embodiment of the invention further provides a configuration point device, which includes the device upgrade device described above.
  • the device of the above-mentioned device upgrade has the foregoing technical effects. Therefore, the configuration point device of the device with the device upgrade should also have the corresponding technical effect.
  • the specific implementation process is similar to the above embodiment, and details are not described herein.
  • FIG. 7 is a schematic flowchart of a method for upgrading a device according to a first embodiment of the present invention
  • a forwarding device in an SDN network is taken as an example.
  • the configuration point is based on a direct query of the file to be upgraded to obtain version information, and the device to be upgraded acquires the file to be upgraded through a dedicated FTP server.
  • the specific steps of the method for device upgrade provided by the first specific implementation example are as follows:
  • step 701 the FTP server is prepared.
  • the user has the FTP server corresponding to the device to be upgraded.
  • the address of the FTP server is 10.9.9.9:21
  • the FTP server user is FTP
  • the FTP server password is FTP.
  • step 702 the upgrade information is set.
  • the file to be upgraded is placed in the root directory of the FTP server in advance.
  • the name of the file to be upgraded is “Z_SDN8000_V1.3.rar”, where Z is the manufacturer information, SDN8000 is the device model, and V1.3 is the version model.
  • the user specifies the address of the FTP server and the file to be upgraded for the device to be upgraded in advance at the configuration point.
  • step 703 it is verified whether the naming is valid.
  • the configuration point verifies whether the name of the file to be upgraded meets the naming format requirement. If the naming is valid, that is, the name of the file to be upgraded meets the naming format requirement, step 704 is performed, otherwise step 710 is performed.
  • Step 704 Query the version information of the device to be upgraded.
  • the configuration point queries the version information of the device to be upgraded through the OF-Config extended query version message "OpenFlow Capable Switch"; wherein the "manufacturer” field indicates the manufacturer information, the “device-type” field indicates the device model, and " Cur-version” indicates the version number.
  • step 705 it is compared whether the upgrade is possible.
  • the configuration point compares the version information of the upgrade file and the version information of the device to be upgraded according to the version comparison rule to determine whether the upgrade is possible. If the manufacturer information and the device model are the same, and the version of the file to be upgraded is updated, it is determined that the upgrade can be performed, and step 706 is performed; otherwise, it is determined that the upgrade cannot be performed, and step 710 is performed.
  • step 706 an upgrade instruction is sent.
  • the configuration point is extended by OF-Config.
  • the upgrade version of the update version of the update version sends an upgrade command to the device to be upgraded.
  • the value of the ftp-addr field is 10.8.8.8:21 and the value of the ftp-user field is ftp or ftp-pwd.
  • the value of the field is "ftp” and the value of the "filename” field is "Z_SDN8000_V1.3.rar".
  • step 707 the device upgrade is successful.
  • the device performs the upgrade process normally, send the address of the FTP server, the FTP server user, the FTP server password, and the name of the file to be upgraded to the device to be upgraded.
  • the device to be upgraded is logged in to the FTP server based on the user information, and the file to be upgraded is obtained from the FTP server according to the address of the FTP server 10.8.8.8:21.
  • step 708 If the status of the device to be upgraded cannot be upgraded or the upgrade fails, go to step 709.
  • the prompt is successful.
  • the upgrade success message is returned to the configuration point through the field "state” in the "Update Version” object.
  • Step 709 indicating the reason for the failure.
  • an error message is returned to the configuration point through the field "state" in the "Update Version” object, and the flow is ended.
  • the error information includes that the file to be upgraded cannot be obtained, the file to be upgraded fails to run, and the storage space of the device is insufficient.
  • step 710 the upgrade fails.
  • the process ends.
  • the failure prompt is sent to the configuration point, and the failure prompt includes the name of the file to be upgraded is invalid, the manufacturer information of the file to be upgraded does not match, the model of the file to be upgraded does not match, and the version number of the file to be upgraded is higher than that of the device to be upgraded. The version number is old.
  • FIG. 8 is a schematic flowchart of a method for upgrading a device according to a second embodiment of the present invention
  • a forwarding device in an SDN network is taken as an example.
  • the configuration point obtains the version information of the file to be upgraded based on the neighboring device that is upgraded by the file to be upgraded, and the device to be upgraded obtains the file to be upgraded through the FTP server of the neighboring device.
  • the specific steps of the method for device upgrade provided by the second specific implementation example are as follows:
  • step 801 the neighbor is ready for the FTP server.
  • the user selects the device to be upgraded to obtain the neighboring device to be upgraded, and ensures that the neighboring device is enabled with the corresponding FTP server.
  • the address of the FTP server is 10.9.9.9:21 and the FTP server user is FTP.
  • the FTP server password is "FTP".
  • Step 802 setting upgrade information.
  • the FTP server corresponding to the neighboring device stores the file to be upgraded, that is, the file to be upgraded is placed in the root directory of the FTP server corresponding to the neighboring device.
  • the name of the file to be upgraded is “Z_SDN8000_V1.3.rar”, where Z is the manufacturer. Information, SDN8000 is the device model, V1.3 is the version model.
  • the user specifies the address of the FTP server and the file to be upgraded for the device to be upgraded at the configuration point.
  • Step 803 Query the version information of the device to be upgraded.
  • the configuration point queries the version information of the device to be upgraded through the OF-Config extended query version message "OpenFlow Capable Switch"; wherein the "manufacturer” field indicates the manufacturer information, the “device-type” field indicates the device model, and " Cur-version” indicates the version number.
  • Step 804 Query the version information of the neighbor device. Similarly, the configuration point queries the version information of the neighbor device through the query version message "OpenFlow Capable Switch" extended by the OF-Config, so as to obtain the version information of the file to be upgraded and the name of the file to be upgraded.
  • step 805 it is compared whether the upgrade is possible.
  • the configuration point compares the version information of the upgrade file and the version information of the device to be upgraded according to the version comparison rule to determine whether the upgrade is possible. If the manufacturer information and the device model are the same, and the version of the file to be upgraded is updated, it is determined that the upgrade can be performed, and step 806 is performed; otherwise, it is determined that the upgrade cannot be performed, and step 810 is performed.
  • step 806 an upgrade instruction is sent.
  • the configuration point sends an upgrade command to the device to be upgraded through the upgrade version message "Update Version" extended by the OF-Config; wherein the value of the "ftp-addr” field is "10.8.8.8: 21", "ftp- The value of the user field is ftp, the value of the ftp-pwd field is ftp, and the value of the filename field is Z_SDN8000_V1.3.rar.
  • step 807 it is determined whether the device upgrade is successful.
  • the device performs the upgrade process normally, send the address of the FTP server, the FTP server user, the FTP server password, and the name of the file to be upgraded to the device to be upgraded.
  • the device to be upgraded is logged in to the FTP server based on the user information, and the file to be upgraded is obtained from the FTP server according to the address of the FTP server 10.8.8.8:21.
  • step 808 If the status of the device to be upgraded cannot be upgraded or the upgrade fails, go to step 809.
  • step 808 the prompt is successful.
  • the upgrade success message is returned to the configuration point through the field "state” in the "Update Version” object.
  • step 809 the reason for the failure is indicated.
  • an error message is returned to the configuration point through the field "state” in the "Update Version” object, and the flow is ended.
  • the error information includes that the file to be upgraded cannot be obtained, the file to be upgraded fails to run, and the storage space of the device is insufficient.
  • step 810 the upgrade fails.
  • the process ends.
  • the failure prompt is sent to the configuration point, and the failure prompt includes that the file information of the file to be upgraded does not match, the model of the file to be upgraded does not match, and the version number of the file to be upgraded is older than the version number of the device to be upgraded.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, the technical solution of the present application, or the part contributing to the related art, or the part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including several The instructions are for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, and the like, which can be stored.
  • the medium of the program code includes: a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, and the like, which can be stored.
  • the medium of the program code includes: a U disk, a
  • the embodiment of the present invention provides a method, an apparatus, and a configuration point device for upgrading a device, where the method includes: obtaining version information of a file to be upgraded and a version of the device to be upgraded, which are set to be upgraded; The version information and the version information of the device to be upgraded are delivered to the device to be upgraded, and the device to be upgraded is updated according to the address of the server.
  • the present application obtains the version information of the file to be upgraded and the version information of the device to be upgraded, and the device to be upgraded according to the version information of the file to be upgraded and the version information of the device to be upgraded.
  • the address of the server that stores the file to be upgraded is sent, and the device to be upgraded is upgraded from the server to obtain the file to be upgraded according to the address of the server.

Abstract

A method for upgrading an apparatus, a device, and a configuration point. The method comprises: acquiring version information of an update file upgrading an apparatus to be upgraded, and version information of the apparatus to be upgraded; transmitting, according to the version information of the update file and the version information of the apparatus to be upgraded, and to the apparatus to be upgraded, an address of a server storing the update file; and instructing the apparatus to be upgraded to acquire, according to the address of the server and from the server, the update file to perform upgrade. The method for upgrading an apparatus, the device, and the configuration point provided in the embodiments of the invention can resolve a problem in which a conventional apparatus can only realize upgrade via a vendor-specific network management device, thereby implementing a vendor-independent configuration of an apparatus, reducing network operation costs.

Description

一种设备升级的方法、装置及配置点设备Method, device and configuration point device for equipment upgrade 技术领域Technical field
本申请涉及但不限于通信技术领域,特别是指一种设备升级的方法、装置及配置点设备。The present application relates to, but is not limited to, the field of communication technologies, and in particular, to a method, an apparatus, and a configuration point device for upgrading a device.
背景技术Background technique
软件定义网络(Software Defined Network,简称SDN)通过标准化南向接口(Southbound Interface,简称SBI)将控制面和转发面解耦。其中开放流(OpenFlow,简称OF)是国际标准组织ONF制定的南向接口标准,OpenFlow配置和管理协议(OpenFlow Management and Configuration Protocol,简称OF-Config)是OpenFlow配套的配置协议。如图1,配置点(OpenFlow Configuration Point,简称OFCP)配置好逻辑交换机(OpenFlow Logical Swith,简称OFLS)和控制器(OpenFlow Controller)相关参数后,OpenFlow通道才能工作。通过标准化南向接口OpenFlow和OF-Config后,控制器和转发设备(后文简称设备)之间解耦,各控制器厂家和设备厂家可以实现互联互通、联合组网。The Software Defined Network (SDN) decouples the control plane from the forwarding plane through a standardized Southbound Interface (SBI). OpenFlow (OF) is a southbound interface standard developed by the International Standards Organization (ONF). The OpenFlow Management and Configuration Protocol (OF-Config) is a configuration protocol for OpenFlow. As shown in Figure 1, the OpenFlow Configuration Point (OFCP) configures the parameters of the OpenFlow Logical Swith (OFLS) and the OpenFlow Controller (OpenFlow Controller). After standardizing the southbound interface OpenFlow and OF-Config, the controller and the forwarding device (hereinafter referred to as the device) are decoupled. Each controller manufacturer and device manufacturer can implement interconnection and joint networking.
设备白盒化以后,一个运营商的网络就可能包含多个厂家的设备,如图2,网络中有C、F、Z三个厂家的设备,因为OpenFlow和OF-Config已经标准化,运营商可以用通用的控制器和配置点工具对设备进行配置管理,但是各厂家的设备管理功能还需要用厂家提供的网管软件通过私有的接口对设备进行管理。例如,需要对网络中的设备进行升级,需要用C厂家的网管升级C厂家的设备、Z厂家的网管升级Z厂家的设备、F厂家的网管升级F厂家的设备。同时,网络维护人员需要熟悉C网管、F网管、Z网管、控制器、OFCP这些工具的使用,而且工具的数量会随着同一网络中设备厂家数量增加而增加,那么网络管理维护对于运营商来说成本大、对厂家依赖也没完全解除,实际设备没有真正的白盒化。After the device is white-boxed, an operator's network may contain devices from multiple vendors. As shown in Figure 2, there are three vendors in the network: C, F, and Z. Because OpenFlow and OF-Config are standardized, operators can The device is configured and managed by a common controller and configuration point tool. However, the device management functions of each manufacturer also need to manage the device through a proprietary interface using the network management software provided by the manufacturer. For example, you need to upgrade the devices on the network. You need to use the network management system of the C manufacturer to upgrade the equipment of the C manufacturer, the network management system of the Z manufacturer to upgrade the equipment of the Z manufacturer, and the network management system of the F manufacturer to upgrade the equipment of the F manufacturer. At the same time, network maintenance personnel need to be familiar with the use of tools such as C network management, F network management, Z network management, controller, and OFCP, and the number of tools will increase as the number of equipment manufacturers in the same network increases. Then network management and maintenance are for operators. It is said that the cost is large and the dependence on the manufacturer has not been completely removed. The actual equipment has no real white box.
发明概述Summary of invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求 的保围。The following is an overview of the topics detailed in this document. This summary is not intended to limit the claims Protection.
本申请要解决的技术问题是提供一种设备升级的方法、装置及配置点设备,解决现有的设备升级需要通过特定厂家网管才能实现升级的问题。The technical problem to be solved by the present application is to provide a method, a device, and a configuration point device for upgrading a device, and to solve the problem that an existing device upgrade needs to be upgraded by a specific manufacturer network management.
第一方面,本发明实施例提供一种设备升级的方法,方法包括:In a first aspect, an embodiment of the present invention provides a method for upgrading a device, where the method includes:
获取用于待升级设备升级的待升级文件的版本信息以及待升级设备的版本信息;Obtain the version information of the file to be upgraded and the version information of the device to be upgraded.
根据待升级文件的版本信息和待升级设备的版本信息,向待升级设备下发存储有待升级文件的服务器的地址,并指示待升级设备根据服务器的地址从服务器获取待升级文件进行升级。According to the version information of the file to be upgraded and the version information of the device to be upgraded, the address of the server to be upgraded is sent to the device to be upgraded, and the device to be upgraded is updated according to the address of the server.
其中,获取用于待升级设备升级的待升级文件的版本信息以及待升级设备的版本信息的步骤,包括:The step of obtaining the version information of the file to be upgraded and the version information of the device to be upgraded for upgrading the device to be upgraded includes:
校验待升级文件,并根据待升级文件获取待升级文件的版本信息;或者,Verify the file to be upgraded and obtain the version information of the file to be upgraded according to the file to be upgraded; or
获取通过待升级文件升级的邻居设备以及该邻居设备的版本信息,根据邻居设备的版本信息获取待升级文件的版本信息。Obtain the version information of the neighboring device that is upgraded by the file to be upgraded and the version of the neighboring device.
其中,根据待升级文件的版本信息和待升级设备的版本信息,向待升级设备下发存储有待升级文件的服务器的地址,并指示待升级设备根据服务器的地址从服务器获取待升级文件进行升级的步骤,包括:The address of the server to be upgraded is sent to the device to be upgraded according to the version information of the file to be upgraded and the device to be upgraded, and the device to be upgraded is updated according to the address of the server. Steps, including:
当待升级文件的厂家信息和设备型号与待升级设备的厂家信息和设备型号相同,且待升级设备的版本号低于待升级文件的版本号时,向待升级设备下发存储有待升级文件的服务器的地址,并指示待升级设备根据服务器的地址从服务器获取待升级文件进行升级。If the manufacturer information and the device model of the file to be upgraded are the same as the manufacturer information and device model of the device to be upgraded, and the version number of the device to be upgraded is lower than the version number of the file to be upgraded, the file to be upgraded is sent to the device to be upgraded. The address of the server, and indicates that the device to be upgraded is upgraded by obtaining the file to be upgraded from the server according to the address of the server.
其中,在向待升级设备下发存储有待升级文件的服务器的地址的同时,还包括:The address of the server storing the file to be upgraded is sent to the device to be upgraded, and includes:
向待升级设备下发用于登录服务器的用户信息,以及待升级文件的名称。Send the user information for logging in to the server to the device to be upgraded, and the name of the file to be upgraded.
其中,待升级文件的名称至少包括厂家信息、设备型号以及版本号。The name of the file to be upgraded includes at least the manufacturer information, the device model, and the version number.
其中,获取的版本信息至少包括厂家信息、设备型号以及版本号。The obtained version information includes at least the manufacturer information, the device model, and the version number.
第二方面,本发明的实施例提供一种设备升级的装置,该装置包括: In a second aspect, an embodiment of the present invention provides an apparatus for upgrading a device, where the apparatus includes:
获取模块,设置为获取用于待升级设备升级的待升级文件的版本信息以及待升级设备的版本信息;The obtaining module is configured to obtain version information of the file to be upgraded for the device to be upgraded and version information of the device to be upgraded;
处理模块,设置为根据待升级文件的版本信息和待升级设备的版本信息,向待升级设备下发存储有待升级文件的服务器的地址,并指示待升级设备根据服务器的地址从服务器获取待升级文件进行升级。The processing module is configured to send, according to the version information of the file to be upgraded and the version information of the device to be upgraded, the address of the server that stores the file to be upgraded, and the device to be upgraded to obtain the file to be upgraded from the server according to the address of the server. Upgrade.
其中,获取模块包括:The acquisition module includes:
第一获取单元,设置为校验待升级文件,并根据待升级文件获取待升级文件的版本信息;或者,The first obtaining unit is configured to verify the file to be upgraded, and obtain version information of the file to be upgraded according to the file to be upgraded; or
第二获取单元,设置为获取通过待升级文件升级的邻居设备以及该邻居设备的版本信息,并根据邻居设备的版本信息获取待升级文件的版本信息。The second obtaining unit is configured to obtain the neighboring device upgraded by the file to be upgraded and the version information of the neighboring device, and obtain the version information of the file to be upgraded according to the version information of the neighboring device.
其中,处理模块包括:The processing module includes:
第一处理单元,设置为当待升级文件的厂家信息和设备型号与待升级设备的厂家信息和设备型号相同,且待升级设备的版本号低于待升级文件的版本号时,向待升级设备下发存储有待升级文件的服务器的地址,并指示待升级设备根据服务器的地址从服务器获取待升级文件进行升级。The first processing unit is configured to: when the manufacturer information and the device model of the file to be upgraded are the same as the manufacturer information and the device model of the device to be upgraded, and the version number of the device to be upgraded is lower than the version number of the file to be upgraded, The address of the server that stores the file to be upgraded is delivered, and the device to be upgraded is upgraded by obtaining the file to be upgraded from the server according to the address of the server.
其中,处理模块还包括:The processing module further includes:
第二处理单元,设置为向待升级设备下发用于登录服务器的用户信息,以及待升级文件的名称。The second processing unit is configured to send the user information for logging in to the server to be upgraded, and the name of the file to be upgraded.
其中,待升级文件的名称至少包括厂家信息、设备型号以及版本号。The name of the file to be upgraded includes at least the manufacturer information, the device model, and the version number.
其中,获取的版本信息至少包括厂家信息、设备型号以及版本号。The obtained version information includes at least the manufacturer information, the device model, and the version number.
第三方面,本发明的实施例提供一种配置点设备,该配置点设备包括上述的设备升级的装置。In a third aspect, an embodiment of the present invention provides a configuration point device, where the configuration point device includes the device upgrade device described above.
另一方面,本发明实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现上述设备升级的方法。In another aspect, an embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, the method for implementing the device upgrade when the computer executable instructions are executed by a processor.
本发明的上述技术方案至少包括以下有益效果:The above technical solution of the present invention at least includes the following beneficial effects:
与相关技术相比,本发明实施例提供的设备升级的方法、装置及配置点 设备,通过获取用于待升级设备升级的待升级文件的版本信息以及待升级设备的版本信息;根据待升级文件的版本信息和待升级设备的版本信息,向待升级设备下发存储有待升级文件的服务器的地址,并指示待升级设备根据服务器的地址从服务器获取待升级文件进行升级;这样,可以解决现有的设备升级需要通过特定厂家网管才能实现升级的问题,从而实现设备白盒化,减少网络运维成本。Method, device and configuration point for equipment upgrade provided by embodiments of the present invention compared with related technologies The device obtains the version information of the file to be upgraded and the version of the device to be upgraded. The file to be upgraded is sent to the device to be upgraded according to the version information of the file to be upgraded and the version information of the device to be upgraded. The address of the server, and indicates that the device to be upgraded is upgraded from the server to obtain the file to be upgraded according to the address of the server; thus, the problem that the existing device upgrade needs to be upgraded by the specific manufacturer network management can be solved, thereby realizing the white box of the device. Reduce network operation and maintenance costs.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1表示OF-Config和OpenFlow关系示意图;FIG. 1 is a schematic diagram showing the relationship between OF-Config and OpenFlow;
图2表示不同厂家设备组网的场景示意图;FIG. 2 is a schematic diagram of a scenario of device networking of different manufacturers;
图3表示本发明实施例提供的设备升级的方法的流程示意图;FIG. 3 is a schematic flowchart diagram of a method for upgrading a device according to an embodiment of the present invention;
图4表示本发明实施例中查询版本信息结构的结构示例;4 is a diagram showing an example of a structure of a query version information structure in an embodiment of the present invention;
图5表示本发明实施例中升级版本消息结构的结构示例;FIG. 5 shows an example of the structure of an upgrade version message structure in the embodiment of the present invention;
图6表示本发明实施例中获取升级结果信息的结构示例;FIG. 6 shows an example of a structure for obtaining upgrade result information in an embodiment of the present invention;
图7表示本发明第一具体实施示例提供的设备升级的方法的流程示意图;FIG. 7 is a schematic flowchart diagram of a method for upgrading a device according to a first embodiment of the present invention;
图8表示本发明第二具体实施示例提供的设备升级的方法的流程示意图;FIG. 8 is a schematic flowchart diagram of a method for upgrading a device according to a second embodiment of the present invention;
图9表示本发明实施例提供的设备升级的装置的结构示意图。FIG. 9 is a schematic structural diagram of an apparatus for upgrading a device according to an embodiment of the present invention.
详述Detailed
为使本发明要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。The technical problems, the technical solutions, and the advantages of the present invention will be more clearly described in the following description.
在SDN网络中,经常会出现多厂家的转发设备共同组网的情况,此时,由于不同厂家的转发设备进行版本升级时都需要采用厂家私有的网管和升级方法,给网络运维带来困难,也导致运营商无法完全解除对厂家的依赖,不能达到真正的设备白盒化。为此,本发明实施例基于ONF的现有框架,通过 扩展OF-Config协议实现对不同厂家转发设备进行版本升级的方法,以解决现有的设备升级需要通过特定厂家网管才能实现升级的问题,从而实现设备白盒化,减少网络运维成本。On the SDN network, the device is often connected to the network. In this case, the manufacturer's private network management and upgrade methods are required to upgrade the forwarding devices of different vendors. It also caused the operators to completely undue the dependence on the manufacturers and could not achieve the real white box of equipment. To this end, embodiments of the present invention are based on the existing framework of ONF, The extended OF-Config protocol implements the method of upgrading the forwarding devices of different vendors to solve the problem that the existing device upgrade needs to be upgraded through the network management of a specific manufacturer, thereby realizing the white box of the device and reducing the network operation and maintenance cost.
请参见图3,其示出的是本发明实施例提供的设备升级的方法的流程示意图。本发明实施例以SDN网络中的转发设备为例。本发明实施例提供一种设备升级的方法,该方法包括:Referring to FIG. 3, it is a schematic flowchart of a method for upgrading a device according to an embodiment of the present invention. The embodiment of the present invention takes a forwarding device in an SDN network as an example. An embodiment of the present invention provides a method for upgrading a device, where the method includes:
步骤301,获取用于待升级设备升级的待升级文件的版本信息以及待升级设备的版本信息。In step 301, the version information of the file to be upgraded and the version information of the device to be upgraded are obtained.
这里,配置点获取用户预先指定的待升级设备的版本信息,以及用于该待升级设备升级的待升级文件的版本信息。Here, the configuration point obtains version information of the device to be upgraded, which is pre-specified by the user, and version information of the file to be upgraded for the upgrade of the device to be upgraded.
步骤302,根据待升级文件的版本信息和待升级设备的版本信息,向待升级设备下发存储有待升级文件的服务器的地址,并指示待升级设备根据服务器的地址从服务器获取待升级文件进行升级。Step 302: According to the version information of the file to be upgraded and the version information of the device to be upgraded, the address of the server to be upgraded is sent to the device to be upgraded, and the device to be upgraded is updated according to the address of the server. .
这里,预先开启有服务器,并将待升级文件放置(存储)在服务器上,该服务器可以是待升级设备对应的服务器,也可以是待升级设备的邻居设备对应的服务器。当根据待升级文件的版本信息和待升级设备的版本信息,确定指示待升级设备进行升级时,向待升级设备下发服务器的地址,以使待升级设备根据服务器的地址从服务器获取待升级文件进行升级。Here, the server is pre-opened, and the file to be upgraded is placed (stored) on the server. The server may be the server corresponding to the device to be upgraded, or the server corresponding to the neighbor device of the device to be upgraded. When the device to be upgraded is determined to be upgraded according to the version information of the file to be upgraded and the device to be upgraded, the address of the server is delivered to the device to be upgraded, so that the device to be upgraded obtains the file to be upgraded from the server according to the address of the server. Upgrade.
其中,上述步骤301中,获取用于待升级设备升级的待升级文件的版本信息以及待升级设备的版本信息的步骤,包括:In the foregoing step 301, the step of obtaining the version information of the file to be upgraded and the version information of the device to be upgraded for the device to be upgraded includes:
校验待升级文件,并根据待升级文件获取待升级文件的版本信息;或者,Verify the file to be upgraded and obtain the version information of the file to be upgraded according to the file to be upgraded; or
获取通过待升级文件升级的邻居设备以及该邻居设备的版本信息,根据邻居设备的版本信息获取待升级文件的版本信息。Obtain the version information of the neighboring device that is upgraded by the file to be upgraded and the version of the neighboring device.
这里,对于待升级文件的版本信息的获取可以是配置点基于对待升级文件的直接查询以获取版本信息,或者是基于查询通过待升级文件升级的邻居设备获取待升级文件的版本信息。具体的,可以通过校验待升级文件的名称,以判断该待升级文件的命名格式是否符合要求,并根据该待升级文件的名称获取待升级文件的版本信息;或者通过获取通过待升级文件升级的邻居设备 的版本信息,以此获得待升级文件的版本信息。另外,直接查询待升级文件的版本信息的方式还可以包括查询待升级文件的文件头,或者查询升级包中的配置文件等其他方式,这里仅举例说明。其中,通过获取邻居设备的版本信息以获得待升级文件的版本信息的方式可以减少网络压力。Here, the obtaining of the version information of the file to be upgraded may be that the configuration point obtains the version information based on the direct query of the file to be upgraded, or obtains the version information of the file to be upgraded based on the neighbor device upgraded by the file to be upgraded. Specifically, the name of the file to be upgraded is determined by the name of the file to be upgraded, and the version of the file to be upgraded is obtained according to the name of the file to be upgraded. Neighbor device Version information to obtain version information of the file to be upgraded. In addition, the manner of directly querying the version information of the file to be upgraded may include querying the file header of the file to be upgraded, or querying the configuration file in the upgrade package, and the like. The network pressure can be reduced by obtaining the version information of the neighbor device to obtain the version information of the file to be upgraded.
另外,在本实施例中,待升级文件的名称至少包括厂家信息、设备型号以及版本号。也就是说,该待升级文件定义的命名格式至少包括厂家信息、设备型号以及版本号等信息。其中,该待升级文件的名称还可以包括其他根据实际需要的信息,例如编号、发布时间等。另外,该实施例中,对于该待升级文件的名称中厂家信息、设备型号以及版本号等信息的排布顺序不作限定。In addition, in this embodiment, the name of the file to be upgraded includes at least the manufacturer information, the device model, and the version number. That is to say, the naming format defined by the file to be upgraded at least includes information such as manufacturer information, device model number, and version number. The name of the file to be upgraded may also include other information according to actual needs, such as number, release time, and the like. In addition, in this embodiment, the order of arrangement of information such as manufacturer information, device model number, and version number in the name of the file to be upgraded is not limited.
在本实施例中,获取的版本信息至少包括厂家信息、设备型号以及版本号。In this embodiment, the obtained version information includes at least manufacturer information, a device model, and a version number.
在一具体实施例中,对于待升级设备的版本信息的获取可以通过扩展OF-Config协议定义查询版本信息结构来获取。参见图4(其中“OpenFlow Resource”表示开放流资源,且图中的结构关系为本领域技术人员的公知常识),具体可以通过OF-Config中的“OpenFlow Capable Switch”对象增加表示设备版本信息的字段,OF-Config 1.2中“OpenFlow Capable Switch”对象中原有的“id”字段和“config-version”字段等两个字段的基础上增加表示厂家信息的“manufacturer”字段、表示设备型号的“device-type”字段以及表示版本号的“cur-version”字段。In a specific embodiment, the obtaining of the version information of the device to be upgraded may be obtained by extending the OF-Config protocol definition query version information structure. Referring to FIG. 4 (wherein "OpenFlow Resource" represents an open flow resource, and the structural relationship in the figure is common knowledge of those skilled in the art), the device version information may be added by using an "OpenFlow Capable Switch" object in the OF-Config. In the field, the "id" field and the "config-version" field in the "OpenFlow Capable Switch" object in OF-Config 1.2 are added to the "manufacturer" field indicating the manufacturer information and the "device" indicating the device model. The -type" field and the "cur-version" field indicating the version number.
其中,上述步骤302,根据待升级文件的版本信息和待升级设备的版本信息,向待升级设备下发存储有待升级文件的服务器的地址,并指示待升级设备根据服务器的地址从服务器获取待升级文件进行升级的步骤,包括:The foregoing step 302, according to the version information of the file to be upgraded and the version information of the device to be upgraded, the address of the server that stores the file to be upgraded is sent to the device to be upgraded, and the device to be upgraded is obtained from the server according to the address of the server. The steps to upgrade the file include:
当待升级文件的厂家信息和设备型号与待升级设备的厂家信息和设备型号相同,且待升级设备的版本号低于待升级文件的版本号时,向待升级设备下发存储有待升级文件的服务器的地址,并指示待升级设备根据服务器的地址从服务器获取待升级文件进行升级。If the manufacturer information and the device model of the file to be upgraded are the same as the manufacturer information and device model of the device to be upgraded, and the version number of the device to be upgraded is lower than the version number of the file to be upgraded, the file to be upgraded is sent to the device to be upgraded. The address of the server, and indicates that the device to be upgraded is upgraded by obtaining the file to be upgraded from the server according to the address of the server.
这里,该版本信息包括厂家信息、设备型号以及版本号,在获取到待升级文件的版本信息以及待升级设备的版本信息后,配置点根据预设的版本比 较规则对待升级文件的版本信息和待升级设备的版本信息进行比较,当待升级文件的厂家信息和设备型号与待升级设备的厂家信息和设备型号相同,并且待升级设备的版本号低于待升级文件的版本号时,配置点向待升级设备下发升级指示,即向待升级设备下发存储有待升级文件的服务器的地址,并指示待升级设备根据服务器的地址从服务器获取待升级文件进行升级。Here, the version information includes the manufacturer information, the device model, and the version number. After obtaining the version information of the file to be upgraded and the version information of the device to be upgraded, the configuration point is based on the preset version ratio. The version information of the upgraded file is compared with the version information of the device to be upgraded. The manufacturer information and device model of the file to be upgraded are the same as the manufacturer information and device model of the device to be upgraded. When the version number of the file is upgraded, the configuration point sends an upgrade indication to the device to be upgraded, that is, the address of the server that stores the file to be upgraded is sent to the device to be upgraded, and the device to be upgraded obtains the file to be upgraded from the server according to the address of the server. upgrade.
其中,上述预设的版本比较规则为:比较待升级文件和待升级设备的厂家信息,如果不一致则待升级文件的版本视为不可用,升级失败,结束方法流程,如果一致则继续比较两者的设备型号;比较待升级文件和待升级设备的设备型号,如果不一致则待升级文件的版本视为不可用,升级失败,结束方法流程,如果一致则继续比较两者的版本号;比较待升级文件和待升级设备的版本号,如果待升级文件的版本号低于或者等于待升级设备的版本号,则待升级文件的版本视为不可用,升级失败,结束方法流程,如果待升级文件的版本号高于待升级设备的版本号,则待升级文件的版本视为有效版本,此时,配置点向待升级设备下发升级指示。The default version comparison rule is: comparing the to-be-upgraded file with the manufacturer information of the device to be upgraded. If the information is not consistent, the version of the file to be upgraded is deemed to be unavailable, the upgrade fails, and the method flow is ended. Device model; compare the file to be upgraded and the device model to be upgraded. If they are inconsistent, the version of the file to be upgraded is considered unavailable. The upgrade fails. The method is terminated. If they are consistent, the version numbers of the two are compared. If the version number of the file to be upgraded is lower than or equal to the version number of the device to be upgraded, the version of the file to be upgraded is considered unavailable, the upgrade fails, and the method flow is ended. If the version number is higher than the version number of the device to be upgraded, the version of the file to be upgraded is considered to be a valid version.
其中,在向待升级设备下发存储有待升级文件的服务器的地址的同时,还包括:The address of the server storing the file to be upgraded is sent to the device to be upgraded, and includes:
向待升级设备下发用于登录服务器的用户信息,以及待升级文件的名称。Send the user information for logging in to the server to the device to be upgraded, and the name of the file to be upgraded.
这里,在向待升级设备下发服务器的地址的同时,向待升级设备下发用户信息以及待升级文件的名称,以使待升级设备根据用户信息登录服务器,并根据服务器的地址从服务器获取对应名称的待升级文件,从而通过该待升级文件进行升级。其中,该用户信息包括预设的用户和密码。Here, the user information and the name of the file to be upgraded are sent to the device to be upgraded, and the device to be upgraded is logged in to the server according to the user information, and the corresponding information is obtained from the server according to the address of the server. The name of the file to be upgraded, so that the file to be upgraded is upgraded. The user information includes a preset user and a password.
另外,在本发明上述实施例中,服务器可以为文件传输协议(File Transfer Protocol,FTP)服务器。In addition, in the above embodiment of the present invention, the server may be a File Transfer Protocol (FTP) server.
在一具体实施例中,配置点向待升级设备下发的升级指示,可以在原有OF-Config协议的基础上扩展升级版本消息对象“Update Version”,以指示待升级设备进行升级。具体的,参见图5(其中“OpenFlow Resource”表示开放流资源,且图中的结构关系为本领域技术人员的公知常识),该“Update Version”对象中,包括表示FTP服务器的地址的字段“ftp-addr”、表示FTP服务器用户的字段“ftp-user”、表示FTP服务器密码的字段“ftp-pwd”以及 表示待升级文件的名称的字段“filename”。In an embodiment, the upgrade point is sent to the device to be upgraded, and the upgrade version message object "Update Version" may be extended on the basis of the original OF-Config protocol to indicate that the device to be upgraded is upgraded. Specifically, referring to FIG. 5 (where "OpenFlow Resource" indicates an open flow resource, and the structural relationship in the figure is common knowledge of those skilled in the art), the "Update Version" object includes a field indicating an address of the FTP server. Ftp-addr", the field "ftp-user" indicating the FTP server user, the field "ftp-pwd" indicating the FTP server password, and The field "filename" indicating the name of the file to be upgraded.
另外,为方便知悉待升级设备的升级状态,在步骤302,向待升级设备下发存储有待升级文件的服务器的地址,并指示待升级设备根据服务器的地址从服务器获取待升级文件进行升级的步骤之后,上述方法还可以包括:获取待升级设备的升级结果信息。In addition, in order to facilitate the knowledge of the upgrade status of the device to be upgraded, in step 302, the device stores the address of the server to be upgraded, and indicates that the device to be upgraded obtains the file to be upgraded from the server according to the address of the server. The method may further include: obtaining upgrade result information of the device to be upgraded.
这里,可以具体可以通过接收待升级设备发送的升级结果信息,或者通过配置点定时查询获取待升级设备的升级结果信息。另外,当待升级设备如果升级失败,所获取的升级结果信息包括错误信息,该错误信息表示为该待升级设备升级失败的原因,可以包括无法获取待升级文件、待升级文件运行失败以及设备存储空间不足等,这里不作具体限定。Here, the upgrade result information of the device to be upgraded may be obtained by receiving the upgrade result information sent by the device to be upgraded. In addition, if the upgrade of the device to be upgraded fails, the obtained upgrade result information includes an error message, which indicates that the upgrade of the device to be upgraded fails, and the file to be upgraded cannot be obtained, the file to be upgraded fails, and the device is saved. Insufficient space, etc., is not specifically limited here.
在一具体实施例中,配置点获取待升级设备的升级结果信息,可以通过扩展OF-Config协议的对象“Update Version”,以获取待升级设备的升级结果信息。具体的,参见图6,图6相对于图5,在“Update Version”对象中添加字段“state”,以表征待升级设备的升级结果信息。In an embodiment, the configuration point obtains the upgrade result information of the device to be upgraded, and the object of the OF-Config protocol is updated to obtain the upgrade result information of the device to be upgraded. Specifically, referring to FIG. 6, FIG. 6 is relative to FIG. 5, and the field "state" is added in the "Update Version" object to represent the upgrade result information of the device to be upgraded.
本发明实施例提供的设备升级的方法,通过获取用于待升级设备升级的待升级文件的版本信息以及待升级设备的版本信息;根据待升级文件的版本信息和待升级设备的版本信息,向待升级设备下发存储有待升级文件的服务器的地址,并指示待升级设备根据服务器的地址从服务器获取待升级文件进行升级;这样,可以解决现有的设备升级需要通过特定厂家网管才能实现升级的问题,从而实现设备白盒化,减少网络运维成本。The device upgrade method provided by the embodiment of the present invention obtains the version information of the file to be upgraded and the version information of the device to be upgraded, and the version information of the device to be upgraded and the version information of the device to be upgraded. The device to be upgraded delivers the address of the server where the file to be upgraded is stored, and indicates that the device to be upgraded obtains the file to be upgraded from the server according to the address of the server, and the device upgrade can be implemented through the network management of the specific manufacturer. The problem is to realize the white box of the device and reduce the network operation and maintenance cost.
基于以上方法,本发明实施例还提供了一种用以实现上述方法的装置,参见图9,其示出的是本发明实施例提供的设备升级的装置的结构示意图。本发明实施例提供一种设备升级的装置,该装置可以包括:获取模块910和处理模块920。Based on the above method, the embodiment of the present invention further provides an apparatus for implementing the foregoing method. Referring to FIG. 9, FIG. 9 is a schematic structural diagram of an apparatus for upgrading a device according to an embodiment of the present invention. An embodiment of the present invention provides an apparatus for upgrading a device, where the apparatus may include: an obtaining module 910 and a processing module 920.
获取模块910,设置为获取用于待升级设备升级的待升级文件的版本信息以及待升级设备的版本信息;The obtaining module 910 is configured to obtain version information of the file to be upgraded for the device to be upgraded and version information of the device to be upgraded;
处理模块920,设置为根据待升级文件的版本信息和待升级设备的版本信息,向待升级设备下发存储有待升级文件的服务器的地址,并指示待升级设备根据服务器的地址从服务器获取待升级文件进行升级。 The processing module 920 is configured to send the address of the server that stores the file to be upgraded to the device to be upgraded according to the version information of the file to be upgraded and the version information of the device to be upgraded, and instruct the device to be upgraded to obtain an upgrade from the server according to the address of the server. The file is upgraded.
其中,获取模块910可以包括:第一获取单元或者第二获取单元。The obtaining module 910 may include: a first acquiring unit or a second acquiring unit.
第一获取单元,设置为校验待升级文件,并根据待升级文件获取待升级文件的版本信息;或者,The first obtaining unit is configured to verify the file to be upgraded, and obtain version information of the file to be upgraded according to the file to be upgraded; or
第二获取单元,设置为获取通过待升级文件升级的邻居设备以及该邻居设备的版本信息,并根据邻居设备的版本信息获取待升级文件的版本信息。The second obtaining unit is configured to obtain the neighboring device upgraded by the file to be upgraded and the version information of the neighboring device, and obtain the version information of the file to be upgraded according to the version information of the neighboring device.
其中,处理模块920可以包括:第一处理单元。The processing module 920 can include: a first processing unit.
第一处理单元,设置为当待升级文件的厂家信息和设备型号与待升级设备的厂家信息和设备型号相同,且待升级设备的版本号低于待升级文件的版本号时,向待升级设备下发存储有待升级文件的服务器的地址,并指示待升级设备根据服务器的地址从服务器获取待升级文件进行升级。The first processing unit is configured to: when the manufacturer information and the device model of the file to be upgraded are the same as the manufacturer information and the device model of the device to be upgraded, and the version number of the device to be upgraded is lower than the version number of the file to be upgraded, The address of the server that stores the file to be upgraded is delivered, and the device to be upgraded is upgraded by obtaining the file to be upgraded from the server according to the address of the server.
其中,处理模块920还可以包括:第二处理单元。The processing module 920 may further include: a second processing unit.
第二处理单元,设置为向待升级设备下发用于登录服务器的用户信息,以及待升级文件的名称。The second processing unit is configured to send the user information for logging in to the server to be upgraded, and the name of the file to be upgraded.
其中,待升级文件的名称至少包括厂家信息、设备型号以及版本号。The name of the file to be upgraded includes at least the manufacturer information, the device model, and the version number.
其中,获取的版本信息至少包括厂家信息、设备型号以及版本号。The obtained version information includes at least the manufacturer information, the device model, and the version number.
其中,该装置还可以包括:结果获取模块。The device may further include: a result obtaining module.
结果获取模块,设置为获取待升级设备的升级结果信息。The result obtaining module is set to obtain the upgrade result information of the device to be upgraded.
上述实施例提供的设备升级的装置与实施例提供的设备升级的方法属于同一构思,其具体实现过程详见方法实施例,为避免重复,这里不再赘述。The apparatus for upgrading the device provided by the foregoing embodiment is the same as the method for upgrading the device provided by the embodiment. For the specific implementation process, refer to the method embodiment. To avoid repetition, details are not described herein again.
本发明实施例提供的设备升级的装置,通过获取设置为待升级设备升级的待升级文件的版本信息以及待升级设备的版本信息;根据待升级文件的版本信息和待升级设备的版本信息,向待升级设备下发存储有待升级文件的服务器的地址,并指示待升级设备根据服务器的地址从服务器获取待升级文件进行升级;这样,可以解决现有的设备升级需要通过特定厂家网管才能实现升级的问题,从而实现设备白盒化,减少网络运维成本。The device for upgrading the device provided by the embodiment of the present invention obtains the version information of the file to be upgraded and the version information of the device to be upgraded, and the version information of the device to be upgraded and the version information of the device to be upgraded. The device to be upgraded delivers the address of the server where the file to be upgraded is stored, and indicates that the device to be upgraded obtains the file to be upgraded from the server according to the address of the server, and the device upgrade can be implemented through the network management of the specific manufacturer. The problem is to realize the white box of the device and reduce the network operation and maintenance cost.
本发明实施例还提供一种配置点设备,该配置点设备包括上述的设备升级的装置。 The embodiment of the invention further provides a configuration point device, which includes the device upgrade device described above.
由于上述任一种所述设备升级的装置具有前述技术效果,因此,具有该设备升级的装置的配置点设备也应具备相应的技术效果,其具体实施过程与上述实施例类似,兹不赘述。The device of the above-mentioned device upgrade has the foregoing technical effects. Therefore, the configuration point device of the device with the device upgrade should also have the corresponding technical effect. The specific implementation process is similar to the above embodiment, and details are not described herein.
最后,结合附图,再通过两个具体实施示例对本发明作更为详细的说明。Finally, the present invention will be described in more detail by way of two specific embodiments with reference to the accompanying drawings.
请参见图7,其示出的是本发明第一具体实施示例提供的设备升级的方法的流程示意图,在本发明的第一具体实施示例中,以SDN网络中的转发设备为例。该第一具体实施示例中,配置点基于对待升级文件的直接查询以获取版本信息,并且待升级设备通过专用的FTP服务器获取待升级文件。第一具体实施示例提供的设备升级的方法的具体步骤如下:Referring to FIG. 7, which is a schematic flowchart of a method for upgrading a device according to a first embodiment of the present invention, in a first specific implementation example of the present invention, a forwarding device in an SDN network is taken as an example. In the first specific implementation example, the configuration point is based on a direct query of the file to be upgraded to obtain version information, and the device to be upgraded acquires the file to be upgraded through a dedicated FTP server. The specific steps of the method for device upgrade provided by the first specific implementation example are as follows:
步骤701,准备好FTP服务器。该步骤中,用户预先开启待升级设备对应的FTP服务器,该FTP服务器的地址为“10.9.9.9:21”,FTP服务器用户为“FTP”,FTP服务器密码为“FTP”。In step 701, the FTP server is prepared. In this step, the user has the FTP server corresponding to the device to be upgraded. The address of the FTP server is 10.9.9.9:21, the FTP server user is FTP, and the FTP server password is FTP.
步骤702,设定升级信息。这里,预先将待升级文件放置FTP服务器根目录下,待升级文件的名称为“Z_SDN8000_V1.3.rar”,其中,Z为厂家信息,SDN8000为设备型号,V1.3为版本型号。用户预先在配置点为待升级设备指定该FTP服务器的地址及待升级文件。In step 702, the upgrade information is set. Here, the file to be upgraded is placed in the root directory of the FTP server in advance. The name of the file to be upgraded is “Z_SDN8000_V1.3.rar”, where Z is the manufacturer information, SDN8000 is the device model, and V1.3 is the version model. The user specifies the address of the FTP server and the file to be upgraded for the device to be upgraded in advance at the configuration point.
步骤703,校验命名是否有效。该步骤中,配置点校验待升级文件的名称是否符合命名格式要求。如果命名有效,即待升级文件的名称符合命名格式要求,执行步骤704,否则执行步骤710。In step 703, it is verified whether the naming is valid. In this step, the configuration point verifies whether the name of the file to be upgraded meets the naming format requirement. If the naming is valid, that is, the name of the file to be upgraded meets the naming format requirement, step 704 is performed, otherwise step 710 is performed.
步骤704,查询待升级设备版本信息。这里,结合图6,配置点通过OF-Config扩展的查询版本消息“OpenFlow Capable Switch”查询待升级设备的版本信息;其中“manufacturer”字段表示厂家信息、“device-type”字段表示设备型号、“cur-version”表示版本号。Step 704: Query the version information of the device to be upgraded. Here, in conjunction with FIG. 6, the configuration point queries the version information of the device to be upgraded through the OF-Config extended query version message "OpenFlow Capable Switch"; wherein the "manufacturer" field indicates the manufacturer information, the "device-type" field indicates the device model, and " Cur-version" indicates the version number.
步骤705,比较是否可以升级。这里,配置点根据版本比较规则对待升级文件的版本信息和待升级设备的版本信息进行比较判定是否可以进行升级。如果厂家信息和设备型号相同,且待升级文件版本更新则认为判定可以进行升级,执行步骤706;否则,判定不能升级,执行步骤710。In step 705, it is compared whether the upgrade is possible. Here, the configuration point compares the version information of the upgrade file and the version information of the device to be upgraded according to the version comparison rule to determine whether the upgrade is possible. If the manufacturer information and the device model are the same, and the version of the file to be upgraded is updated, it is determined that the upgrade can be performed, and step 706 is performed; otherwise, it is determined that the upgrade cannot be performed, and step 710 is performed.
步骤706,下发升级指示。这里,结合图6,配置点通过OF-Config扩展 的升级版本消息“Update Version”给待升级设备下发升级命令;其中“ftp-addr”字段值为“10.8.8.8:21”、“ftp-user”字段值为“ftp”、“ftp-pwd”字段值为“ftp”、“filename”字段值为“Z_SDN8000_V1.3.rar”。In step 706, an upgrade instruction is sent. Here, in conjunction with Figure 6, the configuration point is extended by OF-Config. The upgrade version of the update version of the update version sends an upgrade command to the device to be upgraded. The value of the ftp-addr field is 10.8.8.8:21 and the value of the ftp-user field is ftp or ftp-pwd. The value of the field is "ftp" and the value of the "filename" field is "Z_SDN8000_V1.3.rar".
步骤707,设备升级是否成功。这里,如果设备正常执行升级流程,向待升级设备下发FTP服务器的地址、FTP服务器用户、FTP服务器密码以及待升级文件的名称。从而使待升级设备根据用户信息登录FTP服务器,并根据FTP服务器的地址“10.8.8.8:21”从FTP服务器获取对应名称为“Z_SDN8000_V1.3.rar”的待升级文件,从而通过该待升级文件进行升级,升级成功后执行步骤708;如果待升级设备状态不能升级或者升级失败,则执行步骤709。In step 707, the device upgrade is successful. Here, if the device performs the upgrade process normally, send the address of the FTP server, the FTP server user, the FTP server password, and the name of the file to be upgraded to the device to be upgraded. The device to be upgraded is logged in to the FTP server based on the user information, and the file to be upgraded is obtained from the FTP server according to the address of the FTP server 10.8.8.8:21. After the upgrade is successful, go to step 708. If the status of the device to be upgraded cannot be upgraded or the upgrade fails, go to step 709.
步骤708,提示成功。这里,结合图6,通过“Update Version”对象中的字段“state”向配置点返回升级成功消息。At step 708, the prompt is successful. Here, in conjunction with FIG. 6, the upgrade success message is returned to the configuration point through the field "state" in the "Update Version" object.
步骤709,提示失败原因。这里,结合图6,通过“Update Version”对象中的字段“state”向配置点返回错误消息,结束流程。其中,错误信息包括无法获取待升级文件、待升级文件运行失败以及设备存储空间不足等。 Step 709, indicating the reason for the failure. Here, in conjunction with FIG. 6, an error message is returned to the configuration point through the field "state" in the "Update Version" object, and the flow is ended. The error information includes that the file to be upgraded cannot be obtained, the file to be upgraded fails to run, and the storage space of the device is insufficient.
步骤710,提示升级失败。当执行该步骤后,结束流程。其中,该步骤中,通过向配置点发送失败提示,该失败提示包括待升级文件命名无效、待升级文件厂家信息不匹配、待升级文件设备型号不匹配以及待升级文件版本号比待升级设备的版本号旧等。In step 710, the upgrade fails. When this step is performed, the process ends. In this step, the failure prompt is sent to the configuration point, and the failure prompt includes the name of the file to be upgraded is invalid, the manufacturer information of the file to be upgraded does not match, the model of the file to be upgraded does not match, and the version number of the file to be upgraded is higher than that of the device to be upgraded. The version number is old.
请参见图8,其示出的是本发明第二具体实施示例提供的设备升级的方法的流程示意图,在本发明的第二具体实施示例中,以SDN网络中的转发设备为例。该第二具体实施示例中,配置点基于查询通过待升级文件升级的邻居设备获取待升级文件的版本信息,并且待升级设备通过邻居设备的FTP服务器获取待升级文件。第二具体实施示例提供的设备升级的方法的具体步骤如下:Referring to FIG. 8, which is a schematic flowchart of a method for upgrading a device according to a second embodiment of the present invention, in a second specific implementation example of the present invention, a forwarding device in an SDN network is taken as an example. In the second embodiment, the configuration point obtains the version information of the file to be upgraded based on the neighboring device that is upgraded by the file to be upgraded, and the device to be upgraded obtains the file to be upgraded through the FTP server of the neighboring device. The specific steps of the method for device upgrade provided by the second specific implementation example are as follows:
步骤801,邻居准备好FTP服务器。该步骤中,用户预先选定待升级设备获取待升级文件的邻居设备,确保邻居设备开启对应的FTP服务器,该FTP服务器的地址为“10.9.9.9:21”,FTP服务器用户为“FTP”,FTP服务器密码为“FTP”。 In step 801, the neighbor is ready for the FTP server. In this step, the user selects the device to be upgraded to obtain the neighboring device to be upgraded, and ensures that the neighboring device is enabled with the corresponding FTP server. The address of the FTP server is 10.9.9.9:21 and the FTP server user is FTP. The FTP server password is "FTP".
步骤802,设定升级信息。这里,确保邻居设备对应的FTP服务器存储有待升级文件,即待升级文件已经放置在邻居设备对应的FTP服务器根目录下,待升级文件的名称为“Z_SDN8000_V1.3.rar”,其中,Z为厂家信息,SDN8000为设备型号,V1.3为版本型号。同时,用户预先在配置点为待升级设备指定该FTP服务器的地址及待升级文件。 Step 802, setting upgrade information. Here, ensure that the FTP server corresponding to the neighboring device stores the file to be upgraded, that is, the file to be upgraded is placed in the root directory of the FTP server corresponding to the neighboring device. The name of the file to be upgraded is “Z_SDN8000_V1.3.rar”, where Z is the manufacturer. Information, SDN8000 is the device model, V1.3 is the version model. At the same time, the user specifies the address of the FTP server and the file to be upgraded for the device to be upgraded at the configuration point.
步骤803,查询待升级设备的版本信息。这里,结合图6,配置点通过OF-Config扩展的查询版本消息“OpenFlow Capable Switch”查询待升级设备的版本信息;其中“manufacturer”字段表示厂家信息、“device-type”字段表示设备型号、“cur-version”表示版本号。Step 803: Query the version information of the device to be upgraded. Here, in conjunction with FIG. 6, the configuration point queries the version information of the device to be upgraded through the OF-Config extended query version message "OpenFlow Capable Switch"; wherein the "manufacturer" field indicates the manufacturer information, the "device-type" field indicates the device model, and " Cur-version" indicates the version number.
步骤804,查询邻居设备的版本信息。同样的,配置点通过OF-Config扩展的查询版本消息“OpenFlow Capable Switch”查询邻居设备的版本信息,从而获取到待升级文件的版本信息以及待升级文件的名称。Step 804: Query the version information of the neighbor device. Similarly, the configuration point queries the version information of the neighbor device through the query version message "OpenFlow Capable Switch" extended by the OF-Config, so as to obtain the version information of the file to be upgraded and the name of the file to be upgraded.
步骤805,比较是否可以升级。这里,配置点根据版本比较规则对待升级文件的版本信息和待升级设备的版本信息进行比较判定是否可以进行升级。如果厂家信息和设备型号相同,且待升级文件版本更新则认为判定可以进行升级,执行步骤806;否则,判定不能升级,执行步骤810。In step 805, it is compared whether the upgrade is possible. Here, the configuration point compares the version information of the upgrade file and the version information of the device to be upgraded according to the version comparison rule to determine whether the upgrade is possible. If the manufacturer information and the device model are the same, and the version of the file to be upgraded is updated, it is determined that the upgrade can be performed, and step 806 is performed; otherwise, it is determined that the upgrade cannot be performed, and step 810 is performed.
步骤806,下发升级指示。这里,结合图6,配置点通过OF-Config扩展的升级版本消息“Update Version”给待升级设备下发升级命令;其中“ftp-addr”字段值为“10.8.8.8:21”、“ftp-user”字段值为“ftp”、“ftp-pwd”字段值为“ftp”、“filename”字段值为“Z_SDN8000_V1.3.rar”。In step 806, an upgrade instruction is sent. Here, in conjunction with FIG. 6, the configuration point sends an upgrade command to the device to be upgraded through the upgrade version message "Update Version" extended by the OF-Config; wherein the value of the "ftp-addr" field is "10.8.8.8: 21", "ftp- The value of the user field is ftp, the value of the ftp-pwd field is ftp, and the value of the filename field is Z_SDN8000_V1.3.rar.
步骤807,判断设备升级是否成功。这里,如果设备正常执行升级流程,向待升级设备下发FTP服务器的地址、FTP服务器用户、FTP服务器密码以及待升级文件的名称。从而使待升级设备根据用户信息登录FTP服务器,并根据FTP服务器的地址“10.8.8.8:21”从FTP服务器获取对应名称为“Z_SDN8000_V1.3.rar”的待升级文件,从而通过该待升级文件进行升级,升级成功后执行步骤808;如果待升级设备状态不能升级或者升级失败,则执行步骤809。In step 807, it is determined whether the device upgrade is successful. Here, if the device performs the upgrade process normally, send the address of the FTP server, the FTP server user, the FTP server password, and the name of the file to be upgraded to the device to be upgraded. The device to be upgraded is logged in to the FTP server based on the user information, and the file to be upgraded is obtained from the FTP server according to the address of the FTP server 10.8.8.8:21. After the upgrade is successful, go to step 808. If the status of the device to be upgraded cannot be upgraded or the upgrade fails, go to step 809.
步骤808,提示成功。这里,结合图6,通过“Update Version”对象中的字段“state”向配置点返回升级成功消息。 In step 808, the prompt is successful. Here, in conjunction with FIG. 6, the upgrade success message is returned to the configuration point through the field "state" in the "Update Version" object.
步骤809,提示失败原因。这里,结合图6,通过“Update Version”对象中的字段“state”向配置点返回错误消息,结束流程。其中,错误信息包括无法获取待升级文件、待升级文件运行失败以及设备存储空间不足等。In step 809, the reason for the failure is indicated. Here, in conjunction with FIG. 6, an error message is returned to the configuration point through the field "state" in the "Update Version" object, and the flow is ended. The error information includes that the file to be upgraded cannot be obtained, the file to be upgraded fails to run, and the storage space of the device is insufficient.
步骤810,提示升级失败。当执行该步骤后,结束流程。其中,该步骤中,通过向配置点发送失败提示,该失败提示包括待升级文件厂家信息不匹配、待升级文件设备型号不匹配以及待升级文件版本号比待升级设备的版本号旧等。In step 810, the upgrade fails. When this step is performed, the process ends. In this step, the failure prompt is sent to the configuration point, and the failure prompt includes that the file information of the file to be upgraded does not match, the model of the file to be upgraded does not match, and the version number of the file to be upgraded is older than the version number of the device to be upgraded.
对于前述的方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明所必需的。For the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the described action sequence, because according to the present invention, These steps can be performed in other orders or simultaneously. In addition, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the present invention.
需要说明的是,在本发明实施例中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。It should be noted that, in the embodiments of the present invention, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities. There is any such actual relationship or order between operations.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储 程序代码的介质。The functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, the technical solution of the present application, or the part contributing to the related art, or the part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including several The instructions are for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, and the like, which can be stored. The medium of the program code.
以上所述是本申请的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。The above is a preferred embodiment of the present application, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present application. It should be considered as the scope of protection of this application.
工业实用性Industrial applicability
本发明实施例提供了一种设备升级的方法、装置及配置点设备,所述方法包括:获取设置为待升级设备升级的待升级文件的版本信息以及待升级设备的版本信息;根据待升级文件的版本信息和待升级设备的版本信息,向待升级设备下发存储有待升级文件的服务器的地址,并指示待升级设备根据服务器的地址从服务器获取待升级文件进行升级。The embodiment of the present invention provides a method, an apparatus, and a configuration point device for upgrading a device, where the method includes: obtaining version information of a file to be upgraded and a version of the device to be upgraded, which are set to be upgraded; The version information and the version information of the device to be upgraded are delivered to the device to be upgraded, and the device to be upgraded is updated according to the address of the server.
与相关技术相比,本申请通过获取设置为待升级设备升级的待升级文件的版本信息以及待升级设备的版本信息;根据待升级文件的版本信息和待升级设备的版本信息,向待升级设备下发存储有待升级文件的服务器的地址,并指示待升级设备根据服务器的地址从服务器获取待升级文件进行升级;这样,可以解决现有的设备升级需要通过特定厂家网管才能实现升级的问题,从而实现设备白盒化,减少网络运维成本。 Compared with the related technologies, the present application obtains the version information of the file to be upgraded and the version information of the device to be upgraded, and the device to be upgraded according to the version information of the file to be upgraded and the version information of the device to be upgraded. The address of the server that stores the file to be upgraded is sent, and the device to be upgraded is upgraded from the server to obtain the file to be upgraded according to the address of the server. This can solve the problem that the existing device upgrade needs to be upgraded through the network management of a specific manufacturer. Realize white box of equipment and reduce network operation and maintenance costs.

Claims (14)

  1. 一种设备升级的方法,所述方法包括:A method of device upgrade, the method comprising:
    获取用于待升级设备升级的待升级文件的版本信息以及所述待升级设备的版本信息;Obtaining version information of the file to be upgraded for the device to be upgraded and version information of the device to be upgraded;
    根据所述待升级文件的版本信息和所述待升级设备的版本信息,向所述待升级设备下发存储有所述待升级文件的服务器的地址,并指示所述待升级设备根据所述服务器的地址从所述服务器获取所述待升级文件进行升级。Sending, according to the version information of the file to be upgraded and the version information of the to-be-upgraded device, the address of the server storing the file to be upgraded, and indicating the device to be upgraded according to the server The address is obtained from the server to obtain the file to be upgraded for upgrading.
  2. 根据权利要求1所述的方法,其中,所述获取用于待升级设备升级的待升级文件的版本信息以及所述待升级设备的版本信息的步骤,包括:The method of claim 1, wherein the obtaining the version information of the file to be upgraded for the device to be upgraded and the version information of the device to be upgraded comprises:
    校验所述待升级文件,并根据所述待升级文件获取所述待升级文件的版本信息;或者,And verifying the file to be upgraded, and obtaining version information of the file to be upgraded according to the file to be upgraded; or
    获取通过所述待升级文件升级的邻居设备以及该邻居设备的版本信息,根据所述邻居设备的版本信息获取所述待升级文件的版本信息。Obtaining the neighboring device upgraded by the file to be upgraded and the version information of the neighboring device, and obtaining the version information of the file to be upgraded according to the version information of the neighboring device.
  3. 根据权利要求1或2所述的方法,其中,所述根据所述待升级文件的版本信息和所述待升级设备的版本信息,向所述待升级设备下发存储有所述待升级文件的服务器的地址,并指示所述待升级设备根据所述服务器的地址从所述服务器获取所述待升级文件进行升级的步骤,包括:The method according to claim 1 or 2, wherein the downloading the file to be upgraded is sent to the device to be upgraded according to the version information of the file to be upgraded and the version information of the device to be upgraded An address of the server, and indicating that the device to be upgraded acquires the file to be upgraded from the server according to the address of the server, and includes:
    当所述待升级文件的厂家信息和设备型号与所述待升级设备的厂家信息和设备型号相同,且所述待升级设备的版本号低于所述待升级文件的版本号时,向所述待升级设备下发存储有所述待升级文件的服务器的地址,并指示所述待升级设备根据所述服务器的地址从所述服务器获取所述待升级文件进行升级。When the manufacturer information and the device model of the file to be upgraded are the same as the manufacturer information and the device model of the device to be upgraded, and the version number of the device to be upgraded is lower than the version number of the file to be upgraded, The device to be upgraded delivers the address of the server that stores the file to be upgraded, and indicates that the device to be upgraded obtains the file to be upgraded from the server according to the address of the server for upgrading.
  4. 根据权利要求3所述的方法,其中,在向待升级设备下发存储有所述待升级文件的服务器的地址的同时,还包括:The method according to claim 3, wherein, when the address of the server storing the file to be upgraded is delivered to the device to be upgraded, the method further includes:
    向所述待升级设备下发用于登录所述服务器的用户信息,以及所述待升级文件的名称。And sending, to the device to be upgrade, user information for logging in to the server, and a name of the file to be upgraded.
  5. 根据权利要求4所述的方法,其中,所述待升级文件的名称至少包括厂家信息、设备型号以及版本号。 The method according to claim 4, wherein the name of the file to be upgraded includes at least manufacturer information, a device model number, and a version number.
  6. 根据权利要求1所述的方法,其中,获取的版本信息至少包括厂家信息、设备型号以及版本号。The method according to claim 1, wherein the acquired version information includes at least manufacturer information, a device model number, and a version number.
  7. 一种设备升级的装置,所述装置包括:A device for upgrading a device, the device comprising:
    获取模块,设置为获取用于待升级设备升级的待升级文件的版本信息以及所述待升级设备的版本信息;An obtaining module, configured to obtain version information of a file to be upgraded for upgrading the device to be upgraded, and version information of the device to be upgraded;
    处理模块,设置为根据所述待升级文件的版本信息和所述待升级设备的版本信息,向所述待升级设备下发存储有所述待升级文件的服务器的地址,并指示所述待升级设备根据所述服务器的地址从所述服务器获取所述待升级文件进行升级。The processing module is configured to send, according to the version information of the to-be-upgraded file and the version information of the to-be-upgraded device, an address of a server storing the file to be upgraded, and indicate the to-be-upgraded The device acquires the file to be upgraded from the server according to the address of the server for upgrading.
  8. 根据权利要求7所述的装置,其中,所述获取模块包括:The apparatus of claim 7, wherein the obtaining module comprises:
    第一获取单元,设置为校验所述待升级文件,并根据所述待升级文件获取所述待升级文件的版本信息;或者,a first obtaining unit, configured to verify the file to be upgraded, and obtain version information of the file to be upgraded according to the file to be upgraded; or
    第二获取单元,设置为获取通过所述待升级文件升级的邻居设备以及该邻居设备的版本信息,并根据所述邻居设备的版本信息获取所述待升级文件的版本信息。The second obtaining unit is configured to obtain the neighboring device upgraded by the file to be upgraded and the version information of the neighboring device, and obtain the version information of the file to be upgraded according to the version information of the neighboring device.
  9. 根据权利要求7或8所述的装置,其中,所述处理模块包括:The apparatus of claim 7 or 8, wherein the processing module comprises:
    第一处理单元,设置为当所述待升级文件的厂家信息和设备型号与所述待升级设备的厂家信息和设备型号相同,且所述待升级设备的版本号低于所述待升级文件的版本号时,向所述待升级设备下发存储有所述待升级文件的服务器的地址,并指示所述待升级设备根据所述服务器的地址从所述服务器获取所述待升级文件进行升级。a first processing unit, configured to: when the manufacturer information and the device model of the file to be upgraded are the same as the manufacturer information and the device model of the device to be upgraded, and the version number of the device to be upgraded is lower than the file to be upgraded The version of the server to be upgraded is sent to the device to be upgraded, and the device to be upgraded is instructed to obtain the file to be upgraded from the server according to the address of the server for upgrading.
  10. 根据权利要求9所述的装置,其中,所述处理模块还包括:The apparatus of claim 9, wherein the processing module further comprises:
    第二处理单元,设置为向所述待升级设备下发用于登录所述服务器的用户信息,以及所述待升级文件的名称。The second processing unit is configured to send, to the device to be upgrade, user information for logging in to the server, and a name of the file to be upgraded.
  11. 根据权利要求10所述的装置,其中,所述待升级文件的名称至少包括厂家信息、设备型号以及版本号。The device according to claim 10, wherein the name of the file to be upgraded at least includes manufacturer information, a device model number, and a version number.
  12. 根据权利要求7所述的装置,其中,获取的版本信息至少包括厂家信息、设备型号以及版本号。 The apparatus according to claim 7, wherein the acquired version information includes at least manufacturer information, a device model number, and a version number.
  13. 一种配置点设备,所述配置点设备包括如权利要求7至12任一项所述的设备升级的装置。A configuration point device comprising the device upgrade device according to any one of claims 7 to 12.
  14. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现权利要求1至6任一项所述设备升级的方法。 A computer readable storage medium storing computer executable instructions that, when executed by a processor, implement a method of upgrading a device according to any one of claims 1 to 6.
PCT/CN2017/075777 2016-05-06 2017-03-06 Method for upgrading apparatus, device, and configuration point WO2017190547A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610321160.5A CN107347017A (en) 2016-05-06 2016-05-06 The method, apparatus and configuration point device of a kind of device upgrade
CN201610321160.5 2016-05-06

Publications (1)

Publication Number Publication Date
WO2017190547A1 true WO2017190547A1 (en) 2017-11-09

Family

ID=60202682

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/075777 WO2017190547A1 (en) 2016-05-06 2017-03-06 Method for upgrading apparatus, device, and configuration point

Country Status (2)

Country Link
CN (1) CN107347017A (en)
WO (1) WO2017190547A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110795119A (en) * 2019-09-19 2020-02-14 平安科技(深圳)有限公司 Firmware upgrading method and device, computer equipment and storage medium
CN111124457A (en) * 2019-12-27 2020-05-08 合肥美的智能科技有限公司 Upgrading method of controller, main controller and upper computer
CN111722856A (en) * 2019-03-19 2020-09-29 上海汽车集团股份有限公司 Method and device for upgrading firmware in vehicle-mounted microcontroller
CN111756574A (en) * 2020-06-19 2020-10-09 浪潮电子信息产业股份有限公司 Method and device for remotely updating firmware in batch mode and computer readable storage medium
CN112416796A (en) * 2020-12-03 2021-02-26 北京东土科技股份有限公司 Method and device for testing software upgrading
CN113703813A (en) * 2021-09-07 2021-11-26 北京天融信网络安全技术有限公司 Kernel upgrading method, device, equipment and computer readable storage medium
CN115022170A (en) * 2022-05-31 2022-09-06 青岛海信宽带多媒体技术有限公司 Intelligent gateway and area upgrading control method thereof
WO2024082491A1 (en) * 2022-10-20 2024-04-25 杭州粒合信息科技有限公司 Method and system for quickly upgrading fan device, and device and medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108932133A (en) * 2018-07-13 2018-12-04 四川超影科技有限公司 A kind of remote upgrade method based on intelligent inspection robot main body system
CN109271185A (en) * 2018-08-30 2019-01-25 郑州云海信息技术有限公司 A kind of CPLD method for updating edition, device, equipment and storage medium
CN112256294A (en) * 2019-07-22 2021-01-22 中科云谷科技有限公司 Deployment method, cloud platform, system and storage medium of terminal application
CN110377317A (en) * 2019-07-25 2019-10-25 新奥(中国)燃气投资有限公司 A kind of gateway upgrade method and device
WO2021223247A1 (en) * 2020-05-08 2021-11-11 Oppo广东移动通信有限公司 Device upgrading method, smart device, and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478429A (en) * 2009-02-10 2009-07-08 杭州华三通信技术有限公司 Method, system and equipment for version upgrade
CN103580921A (en) * 2013-11-08 2014-02-12 深圳市共进电子股份有限公司 Automatic network equipment upgrading method and automatic network equipment upgrading system
CN104320281A (en) * 2014-10-31 2015-01-28 杭州华三通信技术有限公司 Optical network unit (ONU) version upgrading method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179791A (en) * 2007-12-03 2008-05-14 中兴通讯股份有限公司 Method of updating software edition of mobile terminal
CN101808131B (en) * 2010-03-22 2013-04-24 北京傲天动联技术股份有限公司 Method for automatically upgrading network terminal edition
CN102799454B (en) * 2012-07-13 2018-05-01 中广传播集团有限公司 A kind of terminal software aerial upgrade and the method for loading
CN103116491A (en) * 2012-12-31 2013-05-22 上海顶竹通讯技术有限公司 FemtoCell network base station software version management method
CN103973474A (en) * 2013-02-01 2014-08-06 苏州方位通讯科技有限公司 Network terminal update configuration method
WO2015018323A1 (en) * 2013-08-05 2015-02-12 Huawei Technologies Co., Ltd. Method for packet tunneling through software defined network, method of intelligently controlling flow of a packet through software defined network and system
CN105100021B (en) * 2014-05-20 2021-03-16 西安中兴新软件有限责任公司 Triggering method, device and system for device management session

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478429A (en) * 2009-02-10 2009-07-08 杭州华三通信技术有限公司 Method, system and equipment for version upgrade
CN103580921A (en) * 2013-11-08 2014-02-12 深圳市共进电子股份有限公司 Automatic network equipment upgrading method and automatic network equipment upgrading system
CN104320281A (en) * 2014-10-31 2015-01-28 杭州华三通信技术有限公司 Optical network unit (ONU) version upgrading method and device

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111722856A (en) * 2019-03-19 2020-09-29 上海汽车集团股份有限公司 Method and device for upgrading firmware in vehicle-mounted microcontroller
CN111722856B (en) * 2019-03-19 2024-04-09 上海汽车集团股份有限公司 Method and device for upgrading firmware in vehicle-mounted microcontroller
CN110795119A (en) * 2019-09-19 2020-02-14 平安科技(深圳)有限公司 Firmware upgrading method and device, computer equipment and storage medium
CN111124457A (en) * 2019-12-27 2020-05-08 合肥美的智能科技有限公司 Upgrading method of controller, main controller and upper computer
CN111124457B (en) * 2019-12-27 2024-03-19 合肥美的智能科技有限公司 Controller upgrading method, main controller and upper computer
US11762653B2 (en) 2020-06-19 2023-09-19 Inspur Electronic Information Industry Co., Ltd. Method and apparatus for remotely updating firmware in batches, and computer-readable storage medium
CN111756574B (en) * 2020-06-19 2023-07-25 浪潮电子信息产业股份有限公司 Method, device and computer readable storage medium for remote batch updating firmware
CN111756574A (en) * 2020-06-19 2020-10-09 浪潮电子信息产业股份有限公司 Method and device for remotely updating firmware in batch mode and computer readable storage medium
CN112416796B (en) * 2020-12-03 2023-11-17 北京东土科技股份有限公司 Software upgrading test method and device
CN112416796A (en) * 2020-12-03 2021-02-26 北京东土科技股份有限公司 Method and device for testing software upgrading
CN113703813A (en) * 2021-09-07 2021-11-26 北京天融信网络安全技术有限公司 Kernel upgrading method, device, equipment and computer readable storage medium
CN115022170A (en) * 2022-05-31 2022-09-06 青岛海信宽带多媒体技术有限公司 Intelligent gateway and area upgrading control method thereof
CN115348173A (en) * 2022-05-31 2022-11-15 青岛海信宽带多媒体技术有限公司 Area upgrading control method for household intelligent gateway
WO2024082491A1 (en) * 2022-10-20 2024-04-25 杭州粒合信息科技有限公司 Method and system for quickly upgrading fan device, and device and medium

Also Published As

Publication number Publication date
CN107347017A (en) 2017-11-14

Similar Documents

Publication Publication Date Title
WO2017190547A1 (en) Method for upgrading apparatus, device, and configuration point
US11909744B2 (en) Network verification method and apparatus
US10972362B2 (en) Network service configuration method and network management device
KR100620054B1 (en) System and method of managing device for device managing technology
US9614725B2 (en) Method and network management system for reconfiguring a data network node
US20080114570A1 (en) Method, system and terminal for maintaining capability management object and for managing capability
JP2004005693A (en) Method and apparatus for correcting device remotely monitored by monitoring system
EP2854028A1 (en) Associated plugin management method, device and system
JP2004030642A (en) Method and system for remotely monitoring equipment by creating equipment object regarding equipment to be monitored
JP2005276177A (en) Method, system, and program for checking and repairing network configuration
CN109284140B (en) Configuration method and related equipment
JP4500118B2 (en) Storage device
CN111580833A (en) Application updating method and system, local management agent device and cloud server
KR102045556B1 (en) Apparatus and method for controlling network device based on network service in communication system
US20090207756A1 (en) Network configuration management method
WO2022110645A1 (en) Software upgrade method and device, storage medium and electronic device
CN114270785A (en) Setting device, communication system, setting method, and program
CN112543109A (en) Cloud host creation method, system, server and storage medium
CN111090853B (en) Account management method, system, electronic equipment and storage medium
KR20150088462A (en) Method for linking network device in cloud environment and apparatus therefor
CN110769399B (en) Internet of things equipment connection networking method, internet of things equipment system and information access and transmission method
US10515033B2 (en) Device management system, device manager, relay management device, device management method, and recording medium
US20150195366A1 (en) Switching device, non-transitory computer readable medium and zoning setting method
JP2017130159A (en) Communication control device, communication control method, program, and communication system
JP5771741B2 (en) Communications system

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17792375

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17792375

Country of ref document: EP

Kind code of ref document: A1