WO2016095491A1 - Equipment upgrading method and transport network equipment - Google Patents

Equipment upgrading method and transport network equipment Download PDF

Info

Publication number
WO2016095491A1
WO2016095491A1 PCT/CN2015/083090 CN2015083090W WO2016095491A1 WO 2016095491 A1 WO2016095491 A1 WO 2016095491A1 CN 2015083090 W CN2015083090 W CN 2015083090W WO 2016095491 A1 WO2016095491 A1 WO 2016095491A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
loading mode
text
database
format
Prior art date
Application number
PCT/CN2015/083090
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 WO2016095491A1 publication Critical patent/WO2016095491A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Definitions

  • This document relates to the technical field of equipment upgrade, and in particular to a method for equipment upgrade and a transport network device.
  • Transport networks such as Packet Transport Network (PTN) and Optical Transport Network (OTN) are developed in response to the development trend of telecom services IP, with multi-service support, easy expansion, manageability and differentiation. Features such as quality of service.
  • the packet delivery platforms introduced by the industry are generally divided into: management layer, adaptation layer, control layer and transport layer.
  • a recovery method is called database loading. That is, the configuration data is stored in a permanent storage medium in the form of a database file. After being powered on, it is reloaded and sent to the control layer and the transport layer.
  • Features are safe, storage stable, and fast loading.
  • the biggest drawback of the database is the compatibility issue. For example, if the original data structure is changed or expanded in the new requirements after the upgrade, the data cannot be recovered correctly.
  • the technical problem to be solved by the present invention is to provide a device upgrade method and a transport network device, so as to implement normal loading of data to a database of the upgraded transport network device, and improve database compatibility in the transport network device.
  • a method for upgrading a device is applied to a transport network device, and the method includes:
  • the method further includes: outputting the second data in the text format for the user to modify;
  • the step of converting the second data into the third data in the database format comprises: converting the second data in the modified text format into the third data in the database format.
  • the step of setting the data loading mode from the database loading mode to the text loading mode includes:
  • the step of converting the first data of the database format in the database into the second data in the text format includes:
  • the method further includes:
  • the display text instruction is executed to display the conversion result.
  • the method further includes:
  • the method further includes: storing an identifier bit of the data loading mode;
  • the step of determining that the data loading mode is the text loading mode comprises: determining, according to the stored identifier of the data loading mode, that the data loading mode is the text loading mode.
  • a transport network device comprising: a data conversion module and a data storage module; wherein
  • the data conversion module is configured to: convert the first data of the database format in the data storage module into the second data in the text format after modifying the data loading mode from the database loading mode to the text loading mode; After the device upgrade succeeds and restarts, determining that the current data loading mode is the text loading mode; converting the second data in the text format into the third data in the database format, and loading the third data into the upgraded data.
  • the storage module converts the first data of the database format in the data storage module into the second data in the text format after modifying the data loading mode from the database loading mode to the text loading mode; After the device upgrade succeeds and restarts, determining that the current data loading mode is the text loading mode; converting the second data in the text format into the third data in the database format, and loading the third data into the upgraded data.
  • the data storage module is configured to: save the second data and the third data.
  • the data conversion module is further configured to:
  • the data conversion module is further configured to modify the data loading mode from the database loading mode to the text loading mode as follows:
  • the data conversion module is configured to convert the first data in the database format in the database into the second data in the text format as follows:
  • the data conversion module is further configured to: after converting the first data into the second data, receive a display text instruction input by a user, execute the display text instruction, and display a conversion result.
  • the data conversion module is further configured to: after loading the third data into the upgraded data storage module, set the data loading mode to the database loading mode;
  • the data storage module is further configured to: store an identifier bit of a data loading manner corresponding to the third data.
  • the data storage module is further configured to: store the identifier of the data loading mode corresponding to the second data while saving the second data;
  • the data storage module is configured to determine the current data loading mode as the text loading mode according to the identifier bit of the stored data loading mode of the second data, and determine that the data loading mode is the text loading mode.
  • a computer program comprising program instructions that, when executed by a transport network device, cause the transport network device to perform any of the above methods for device upgrade.
  • the transport network device converts the first data in the database format in the database into the second data in the text format, and saves the second data, and then, in the transport network device After the software and/or hardware corresponding to the service is successfully upgraded, determine the number According to the loading mode, the text is loaded, and then the second data is converted into the third data in the database format, and the third data is loaded into the upgraded database. That is, first, the transport network device converts the data in the database format in the database into a text format and saves it, and then determines the data loading after the transport network device completes the software and/or hardware upgrade for one or more services.
  • the mode is text loading mode. At this time, the data in the text format is converted back to the database format, so that the data can be normally loaded into the database of the upgraded transport network device, and the compatibility of the database in the transport network device is improved.
  • FIG. 1 is a schematic structural diagram of a transport network device according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of a method for upgrading a device according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a method for a PTN device to upgrade a pipeline mode on a service tunnel according to an embodiment of the present invention.
  • An embodiment of the present invention provides a method for upgrading a device, where the method is applied to a transport network device, and the transport network device may be a PTN device or an OTN device, and of course, may also be another transport network device, and the present invention does not specifically limited.
  • the transport network device includes: a data conversion module 11, a database 12, and a storage module 13.
  • the transport network device further includes: management Layer, adaptation layer, control layer and transport layer.
  • the management layer is mainly provided to device users to access devices.
  • the mainstream access methods include: network management platform mode and command line interface (CLI) control mode.
  • the network management platform provides visual management of the device networking environment, device configuration, and device-related functions. This mode is visually usable, easy to operate, and easy to manage.
  • the CLI control mode is non-visual, only Provide text command input to configure, this method has fast execution command Speed, does not require multiple data conversion features.
  • the adaptation layer is used to convert data in the multi-terminal access mode into a unified format and send the data to the control layer and the transport layer.
  • the control layer includes a protocol stack of a packet transfer platform, an operating system, a file system, and the like.
  • the transport layer refers to the physical layer of the device and is responsible for the specific photoelectric signal conversion.
  • FIG. 2 is a schematic flowchart of a method for upgrading a device according to an embodiment of the present invention. Referring to FIG. 2, the method includes:
  • S201 Convert the first data in the database format in the database to the second data in the text format, and save the second data;
  • the data loading mode of the transport network device may be a text loading manner or a database loading manner, that is, a data loading manner in the related art.
  • the data loading mode of the transport network device is a text loading mode
  • the user inputs a text generating instruction to the transport network device before performing a software/hardware upgrade for one or more services (hereinafter referred to as a transport network device upgrade).
  • the adaptation layer forwards the instruction to the data conversion module, and the data conversion module receives the generated text instruction, and then executes the generated text instruction, and first converts the first data of the database format (DB) in the database into a text format (TXT).
  • DB database format
  • TXT text format
  • the second data and the second data is saved in the storage module.
  • a storage module in the transport network device may store an identifier of the data loading mode to indicate the data loading mode used in the upgrade.
  • the data loading mode has a flag of "1”, indicating that the text loading mode is used; the data loading mode has a flag of "0", indicating that the database loading mode is used.
  • the data loading mode has a flag of "1”, indicating that the text loading mode is used; the data loading mode has a flag of "0", indicating that the database loading mode is used.
  • the identifier of the data loading mode may be set by default before the factory of the transport network device, or may be set by the user.
  • the user inputs a setting command before the upgrade of the transport network device, and the adaptation layer
  • the instruction is forwarded to the data conversion module, and the data conversion module receives and executes the setting instruction, and sets the data loading mode to the text loading mode.
  • the transport network device starts to upgrade.
  • the data conversion module also needs to be added to the upgraded software package and upgraded with the software package.
  • the transport network device can start to upgrade, and after the upgrade successfully restarts the transport network device, the identifier of the data loading mode in the storage module is read, and the data loading mode is determined as the text loading mode. .
  • the upgrade of the transport network device succeeds in that the software and/or hardware corresponding to the service is successfully upgraded, and the corresponding database upgrade is successful.
  • S203 Convert the second data into the third data in the database format, and load the third data into the upgraded database.
  • the data conversion module converts the second data in the TXT format back to the third data of the DB, and then, according to the data structure and storage mode of the upgraded database, the third data is Load the upgraded database.
  • the data conversion module may set the data loading mode to a database loading mode.
  • the user needs to manually set the data loading mode to the text loading mode, and then sequentially execute S201 to S203; or according to the database loading mode in the related art, after the upgrade of the transport network device Just load the data.
  • the method further includes: outputting the second data for the user to modify; that is, the user can copy the second data, manually modifying the second data for the upgrade, and overwriting the old data in the storage module with the modified second data.
  • S203 may include: converting the modified second data into the third data.
  • the user may also view the conversion result. Then, after the first data is converted into the second data, the user may further input a display text instruction, and the adaptation layer forwards the instruction to the data conversion.
  • the module, the data conversion module receives the display text instruction, executes the instruction, and controls the display module to display the conversion result.
  • the user may further input the display text instruction to view the modified second data.
  • the user may also input a filtering instruction, such as include/exlude/begin string, etc.
  • a filtering instruction such as include/exlude/begin string, etc.
  • the device upgrade method in one or more of the foregoing embodiments will be described below by taking the PTN device as an example for upgrading the pipeline mode on the service tunnel.
  • the pipe mode is configured only on the first node of the tunnel before the PTN device is upgraded.
  • the database is shown in Table 1.
  • the value of the pipe type is 1: uniform; 2: pipe; 3: short pipe.
  • the upgraded software package needs to obtain whether it is the first node or the tail node from the database, so as to decide what configuration to send to the control layer and the transport layer.
  • FIG. 3 is a schematic flowchart of a method for a PTN device to upgrade a pipeline mode on a service tunnel according to an embodiment of the present invention. Referring to FIG. 3, the method includes:
  • S301 Set the data loading mode to a text loading mode according to a setting instruction of the user, and store the data in the NVRAM;
  • NVRAM provides a read and write interface for subsequent reading.
  • S302 Receive a write command, convert the first data in the database format into the second data in the text format, and store the data in the A.txt file;
  • the data conversion module converts the data in the database before the upgrade shown in Table 1.
  • the user can use any text editing tool to modify the tunnel 1 pipe to tunnel 1 pipe source-pe. After modification, overwrite the original A.txt file.
  • S305 Differentiate the first and last nodes of the tunnel according to user requirements, and perform upgrade of the transport network device;
  • the upgraded database is shown in Table 2.
  • the value of the Pipe type is 1: uniform; 2: pipe; 3: short pipe; the value of the Node type is 1: source PE; 2: P ;3:dest PE.
  • the user can configure the pipeline mode at the tail node of the tunnel to meet the latest requirements of the user and achieve the purpose of compatibility upgrade.
  • the transport network device converts the data in the database format in the database into a text format. And saving, and then, after the transport network device completes the software and/or hardware upgrade for one or more services, determining that the data loading mode is a text loading mode, and at this time, converting the data in the text format back to the database format,
  • the data can be loaded normally into the database of the upgraded transport network device, improving the compatibility of the database in the transport network device.
  • an embodiment of the present invention further provides a transport network device that is consistent with the transport network device described in one or more of the above embodiments.
  • the device includes: a data conversion module 11, a database 12, and a storage module 13;
  • the data conversion module 11 is configured to: convert the first data in the database format in the database 13 into the second data in the text format; and further set: after the software and/or hardware corresponding to the service in the transport network device is successfully upgraded, determine The data loading mode is a text loading mode; the second data is converted into the third data in the database format, and the third data is loaded into the upgraded database 12;
  • the storage module 13 is configured to: save the second data.
  • the data conversion module 11 is further configured to: after converting the first data into the second data, output the second data for the user to modify; further configured to: convert the modified second data into the third data.
  • the data conversion module 11 is further configured to: receive a setting instruction input by the user before converting the first data into the second data; and execute the setting instruction to set the data loading mode to the text loading mode.
  • the data conversion module 11 is specifically configured to: receive a generated text instruction input by the user; and execute a generate text instruction to convert the first data into the second data.
  • the data conversion module 11 is further configured to: after converting the first data into the second data, receive a display text instruction input by the user; execute a display text instruction to display the conversion result.
  • the embodiment of the present invention further discloses a transport network device, as shown in FIG. 4, comprising: a data conversion module 401 and a data storage module 402;
  • the data conversion module 401 is configured to: modify the data loading mode from the database loading mode After the text loading mode is performed, the first data in the database format in the data storage module is converted into the second data in the text format; after the upgrade of the transport network device is successful and restarted, determining that the current data loading mode is the text loading Translating the second data in the text format into third data in a database format, and loading the third data into the upgraded data storage module;
  • the data storage module 402 is configured to: save the second data and the third data.
  • the data conversion module 401 is further configured to:
  • the data conversion module 401 is further configured to modify the data loading mode from the database loading mode to the text loading mode as follows:
  • the data conversion module 401 is configured to convert the first data in the database format in the database into the second data in the text format as follows:
  • the data conversion module 401 is further configured to: after converting the first data into the second data, receive a display text instruction input by a user, execute the display text instruction, and display a conversion result.
  • the data conversion module 401 is further configured to: after loading the third data into the upgraded data storage module, set the data loading mode to the database loading mode;
  • the data storage module 402 is further configured to: store an identifier bit of a data loading manner corresponding to the third data.
  • the data storage module 402 is further configured to: save the second data and the third number At the same time, the identifier of the data loading mode corresponding to the second data and the third data is stored;
  • the data storage module 402 is configured to determine that the current data loading mode is the text loading mode according to the identifier bit of the stored data loading mode of the second data, and determine that the data loading mode is the text loading mode.
  • the embodiment of the invention further discloses a computer program, comprising program instructions, when the program instruction is executed by the transport network device, so that the transport network device can perform any of the above device upgrade methods.
  • the embodiment of the invention also discloses a carrier carrying the computer program.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. Instructions are provided for implementation in the flowchart The steps of a process or a plurality of processes and/or block diagrams of a function specified in a block or blocks.
  • the transport network device converts the first data in the database format in the database into the second data in the text format, and saves the second data, and then, in the transport network device
  • the data loading mode is determined to be a text loading mode
  • the second data is converted into the third data in the database format
  • the third data is loaded into the upgraded database. That is, first, the transport network device converts the data in the database format in the database into a text format and saves it, and then determines the data loading after the transport network device completes the software and/or hardware upgrade for one or more services.
  • the mode is text loading mode.
  • the data in the text format is converted back to the database format, so that the data can be normally loaded into the database of the upgraded transport network device, and the compatibility of the database in the transport network device is improved. Therefore, the present invention has strong industrial applicability.

Abstract

An equipment upgrading method, which is applied to a transport network equipment. The method comprises: converting first data of a database format in a database into second data of a text format, and saving the second data (S201); after software and/or hardware corresponding to a service in the transport network equipment is successfully upgraded, determining a data loading way to be a text loading way (S202); and converting the second data into third data of the database format, and loading the third data into the upgraded database (S203). Also disclosed is a transport network equipment.

Description

一种设备升级的方法及传送网设备Method for upgrading equipment and transport network equipment 技术领域Technical field
本文涉及设备升级的技术领域,尤其涉及一种设备升级的方法及传送网设备。This document relates to the technical field of equipment upgrade, and in particular to a method for equipment upgrade and a transport network device.
背景技术Background technique
传送网,如分组传送网(PTN,Packet Transport Network)、光传送网(OTN,Optical Transport Network)是顺应电信业务IP化发展趋势而产生的,具有多业务支持,易扩展,可管理性和区分服务质量等特点。业界推出的分组传送平台一般分为:管理层、适配层、控制层及传送层。Transport networks, such as Packet Transport Network (PTN) and Optical Transport Network (OTN), are developed in response to the development trend of telecom services IP, with multi-service support, easy expansion, manageability and differentiation. Features such as quality of service. The packet delivery platforms introduced by the industry are generally divided into: management layer, adaptation layer, control layer and transport layer.
随着设备功能的不断增加、随着时间推移,设备需要更换版本进行维护与升级。但网络运营商通常只想升级软硬件,而并不想改变用户配置数据,尤其是核心网内的设备,用户配置数据高达几十万条。因此,升级后的配置数据恢复是设备提供商需要解决的问题。一种恢复方式称为数据库加载,即配置数据以数据库文件方式存储在永久性存储介质中,上电后重新加载,下发到控制层与传送层。特点是安全、存储稳定、加载速度快。但数据库有一个最大的缺点,就是兼容性问题。比如升级后新需求中对原数据结构进行了更改或者扩展,那么数据无法正确恢复。As device capabilities continue to increase, over time, devices need to be replaced with versions for maintenance and upgrades. However, network operators usually only want to upgrade hardware and software, but do not want to change user configuration data, especially in the core network, user configuration data up to hundreds of thousands. Therefore, the upgraded configuration data recovery is a problem that the device provider needs to solve. A recovery method is called database loading. That is, the configuration data is stored in a permanent storage medium in the form of a database file. After being powered on, it is reloaded and sent to the control layer and the transport layer. Features are safe, storage stable, and fast loading. But the biggest drawback of the database is the compatibility issue. For example, if the original data structure is changed or expanded in the new requirements after the upgrade, the data cannot be recovered correctly.
所以,相关技术中存在传送网设备中数据库兼容性差的技术问题。Therefore, there is a technical problem in the related art that the database compatibility is poor in the transport network device.
发明内容Summary of the invention
有鉴于此,本发明要解决的技术问题是提供一种设备升级的方法及传送网设备,以实现数据正常加载至升级后的传送网设备的数据库,提高传送网设备中数据库的兼容性。In view of this, the technical problem to be solved by the present invention is to provide a device upgrade method and a transport network device, so as to implement normal loading of data to a database of the upgraded transport network device, and improve database compatibility in the transport network device.
为达到上述目的,本发明的技术方案是这样实现的:In order to achieve the above object, the technical solution of the present invention is achieved as follows:
一种设备升级的方法,应用于一传送网设备,所述方法包括:A method for upgrading a device is applied to a transport network device, and the method includes:
将数据加载方式从数据库加载方式修改为文本加载方式; Modify the data loading mode from the database loading mode to the text loading mode;
将数据库中数据库格式的第一数据转换为文本格式的第二数据,并保存所述第二数据;Converting the first data of the database format in the database into the second data in the text format, and saving the second data;
在所述传送网设备升级成功并重启后,确定当前数据加载方式为所述文本加载方式;After the upgrade of the transport network device is successful and restarted, determining that the current data loading mode is the text loading mode;
将所述文本格式的第二数据转换为数据库格式的第三数据,并将所述第三数据载入升级后的数据库中。Converting the second data in the text format to third data in a database format and loading the third data into the upgraded database.
可选地,Optionally,
在所述将数据库中数据库格式的第一数据转换为文本格式的第二数据的步骤之后,所述方法还包括:输出所述文本格式的第二数据,以供用户修改;After the step of converting the first data in the database format in the database to the second data in the text format, the method further includes: outputting the second data in the text format for the user to modify;
相应地,所述将所述第二数据转换为数据库格式的第三数据的步骤包括:将修改后的文本格式的第二数据转换为所述数据库格式的第三数据。Correspondingly, the step of converting the second data into the third data in the database format comprises: converting the second data in the modified text format into the third data in the database format.
可选地,Optionally,
所述将数据加载方式从数据库加载方式设置为文本加载方式的步骤包括:The step of setting the data loading mode from the database loading mode to the text loading mode includes:
接收用户输入的设置指令;Receiving a setting instruction input by a user;
执行所述设置指令,将数据加载方式设置为所述文本加载方式。Execute the setting instruction to set the data loading mode to the text loading mode.
可选地,Optionally,
所述将数据库中数据库格式的第一数据转换为文本格式的第二数据的步骤包括:The step of converting the first data of the database format in the database into the second data in the text format includes:
接收用户输入的生成文本指令;Receiving a generated text instruction input by a user;
执行所述生成文本指令,将所述第一数据转换为所述第二数据。Executing the generating text instruction to convert the first data into the second data.
可选地,Optionally,
在所述将数据库中数据库格式的第一数据转换为文本格式的第二数据的步骤之后,所述方法还包括:After the step of converting the first data in the database format in the database to the second data in the text format, the method further includes:
接收用户输入的显示文本指令;Receiving a display text instruction input by a user;
执行所述显示文本指令,显示转换结果。 The display text instruction is executed to display the conversion result.
可选地,Optionally,
所述将所述第三数据载入升级后的数据库中的步骤之后,该方法还包括:After the step of loading the third data into the upgraded database, the method further includes:
将数据加载方式设置为所述数据库加载方式。Set the data loading mode to the database loading mode.
可选地,Optionally,
所述保存所述第二数据的同时,该方法还包括:存储数据加载方式的标识位;While the saving the second data, the method further includes: storing an identifier bit of the data loading mode;
相应地,所述确定数据加载方式为所述文本加载方式的步骤包括:根据所存储的数据加载方式的标识位,确定数据加载方式为所述文本加载方式。Correspondingly, the step of determining that the data loading mode is the text loading mode comprises: determining, according to the stored identifier of the data loading mode, that the data loading mode is the text loading mode.
一种传送网设备,包括:数据转换模块和数据存储模块;其中,A transport network device, comprising: a data conversion module and a data storage module; wherein
所述数据转换模块设置成:将数据加载方式从数据库加载方式修改为文本加载方式后,将所述数据存储模块中数据库格式的第一数据转换为文本格式的第二数据;在所述传送网设备升级成功并重启后,确定当前数据加载方式为所述文本加载方式;将所述文本格式的第二数据转换为数据库格式的第三数据,并将所述第三数据载入升级后的数据存储模块中;The data conversion module is configured to: convert the first data of the database format in the data storage module into the second data in the text format after modifying the data loading mode from the database loading mode to the text loading mode; After the device upgrade succeeds and restarts, determining that the current data loading mode is the text loading mode; converting the second data in the text format into the third data in the database format, and loading the third data into the upgraded data. In the storage module;
所述数据存储模块设置成:保存所述第二数据和第三数据。The data storage module is configured to: save the second data and the third data.
可选地,Optionally,
所述数据转换模块还设置成:The data conversion module is further configured to:
在将所述数据库格式的第一数据转换为所述文本格式的第二数据之后,输出所述文本格式的第二数据,以供用户修改;After converting the first data of the database format to the second data of the text format, outputting the second data of the text format for modification by a user;
将修改后的文本格式的第二数据转换为所述第三数据。Converting the second data of the modified text format into the third data.
可选地,Optionally,
所述数据转换模块还设置成按照如下方式将数据加载方式从数据库加载方式修改为文本加载方式:The data conversion module is further configured to modify the data loading mode from the database loading mode to the text loading mode as follows:
接收用户输入的设置指令;Receiving a setting instruction input by a user;
执行所述设置指令,将数据加载方式设置为所述文本加载方式。 Execute the setting instruction to set the data loading mode to the text loading mode.
可选地,Optionally,
所述数据转换模块设置成按照如下方式将数据库中数据库格式的第一数据转换为文本格式的第二数据:The data conversion module is configured to convert the first data in the database format in the database into the second data in the text format as follows:
接收用户输入的生成文本指令;Receiving a generated text instruction input by a user;
执行所述生成文本指令,将所述数据库格式的第一数据转换为所述文本格式的第二数据。Executing the generating text instruction to convert the first data of the database format into the second data of the text format.
可选地,Optionally,
所述数据转换模块还设置成:在将所述第一数据转换为所述第二数据之后,接收用户输入的显示文本指令,执行所述显示文本指令,显示转换结果。The data conversion module is further configured to: after converting the first data into the second data, receive a display text instruction input by a user, execute the display text instruction, and display a conversion result.
可选地,Optionally,
所述数据转换模块还设置成:将所述第三数据载入升级后的数据存储模块中之后,将数据加载方式设置为所述数据库加载方式;The data conversion module is further configured to: after loading the third data into the upgraded data storage module, set the data loading mode to the database loading mode;
所述数据存储模块还设置成:存储所述第三数据对应的数据加载方式的标识位。The data storage module is further configured to: store an identifier bit of a data loading manner corresponding to the third data.
可选地,Optionally,
所述数据存储模块还设置成:保存所述第二数据的同时,存储与所述第二数据对应的数据加载方式的标识位;The data storage module is further configured to: store the identifier of the data loading mode corresponding to the second data while saving the second data;
所述数据存储模块设置成按照如下方式确定当前数据加载方式为所述文本加载方式:根据所存储的第二数据的数据加载方式的标识位,确定数据加载方式为所述文本加载方式。The data storage module is configured to determine the current data loading mode as the text loading mode according to the identifier bit of the stored data loading mode of the second data, and determine that the data loading mode is the text loading mode.
一种计算机程序,包括程序指令,当该程序指令被传送网设备执行时,使得该传送网设备可执行上述任意的设备升级的方法。A computer program comprising program instructions that, when executed by a transport network device, cause the transport network device to perform any of the above methods for device upgrade.
本发明实施例所提供的设备升级的方法及传送网设备中,传送网设备将数据库中数据库格式的第一数据转换为文本格式的第二数据,并保存第二数据,然后,在传送网设备中与业务对应的软件和/或硬件升级成功后,确定数 据加载方式为文本加载方式,接着,将第二数据转换为数据库格式的第三数据,并将第三数据载入升级后的数据库。也就是说,首先,传送网设备将数据库中数据库格式的数据转换成文本格式,并保存,然后,当传送网设备完成针对一种或者多种业务的软件和/或硬件升级之后,确定数据加载方式为文本加载方式,此时,将文本格式的数据再次转换回数据库格式,如此,数据就能够正常加载至升级后的传送网设备的数据库,提高传送网设备中数据库的兼容性。In the device upgrade method and the transport network device provided by the embodiment of the present invention, the transport network device converts the first data in the database format in the database into the second data in the text format, and saves the second data, and then, in the transport network device After the software and/or hardware corresponding to the service is successfully upgraded, determine the number According to the loading mode, the text is loaded, and then the second data is converted into the third data in the database format, and the third data is loaded into the upgraded database. That is, first, the transport network device converts the data in the database format in the database into a text format and saves it, and then determines the data loading after the transport network device completes the software and/or hardware upgrade for one or more services. The mode is text loading mode. At this time, the data in the text format is converted back to the database format, so that the data can be normally loaded into the database of the upgraded transport network device, and the compatibility of the database in the transport network device is improved.
附图概述BRIEF abstract
图1为本发明实施例中传送网设备的结构示意图;1 is a schematic structural diagram of a transport network device according to an embodiment of the present invention;
图2为本发明实施例中的设备升级的方法流程示意图;2 is a schematic flowchart of a method for upgrading a device according to an embodiment of the present invention;
图3为本发明实施例中的PTN设备针对业务隧道上配置管道模式的升级的方法流程示意图。FIG. 3 is a schematic flowchart of a method for a PTN device to upgrade a pipeline mode on a service tunnel according to an embodiment of the present invention.
本发明的较佳实施方式Preferred embodiment of the invention
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present invention will be clearly and completely described in the following with reference to the accompanying drawings.
本发明实施例提供了一种设备升级的方法,该方法应用于传送网设备,传送网设备可以为PTN设备,也可以为OTN设备,当然,还可以为其它传送网设备,本发明不做具体限定。An embodiment of the present invention provides a method for upgrading a device, where the method is applied to a transport network device, and the transport network device may be a PTN device or an OTN device, and of course, may also be another transport network device, and the present invention does not specifically limited.
图1为本发明实施例中传送网设备的结构示意图,参照图1所示,该传送网设备包括:数据转换模块11、数据库12及存储模块13;当然,该传送网设备中还包括:管理层、适配层、控制层及传送层。1 is a schematic structural diagram of a transport network device according to an embodiment of the present invention. Referring to FIG. 1, the transport network device includes: a data conversion module 11, a database 12, and a storage module 13. Of course, the transport network device further includes: management Layer, adaptation layer, control layer and transport layer.
其中,管理层主要是提供给设备使用者接入设备的方式,主流的接入方式有:网络管理平台方式、命令行界面(CLI,Command Line Interface)控制方式等。网络管理平台方式对设备组网环境、设备配置及与设备相关的功能提供可视管理,此方式具有可视可用,易操作,易管理的特点;而CLI控制方式是无可视环境的,仅提供文本命令输入来配置,此方式具有执行命令快 速,不需要多次数据转化的特点。这两种主流的接入方式长期共存,用户可根据实际需要进行选择使用。The management layer is mainly provided to device users to access devices. The mainstream access methods include: network management platform mode and command line interface (CLI) control mode. The network management platform provides visual management of the device networking environment, device configuration, and device-related functions. This mode is visually usable, easy to operate, and easy to manage. The CLI control mode is non-visual, only Provide text command input to configure, this method has fast execution command Speed, does not require multiple data conversion features. These two mainstream access methods coexist for a long time, and users can choose to use according to actual needs.
适配层用来将多终端接入方式的数据转化为统一格式的数据发送给控制层、传送层。The adaptation layer is used to convert data in the multi-terminal access mode into a unified format and send the data to the control layer and the transport layer.
控制层包括分组传送平台的协议栈、操作系统,文件系统等。The control layer includes a protocol stack of a packet transfer platform, an operating system, a file system, and the like.
传送层则指的是设备物理层,负责具体的光电信号转换。The transport layer refers to the physical layer of the device and is responsible for the specific photoelectric signal conversion.
下面对该传送网设备进行升级的流程进行详细的说明。The process of upgrading the transport network device will be described in detail below.
图2为本发明实施例中的设备升级的方法流程示意图,参照图2所示,该方法包括:2 is a schematic flowchart of a method for upgrading a device according to an embodiment of the present invention. Referring to FIG. 2, the method includes:
S201:将数据库中数据库格式的第一数据转换为文本格式的第二数据,并保存第二数据;S201: Convert the first data in the database format in the database to the second data in the text format, and save the second data;
具体来说,传送网设备的数据加载方式可以为文本加载方式,也可以为数据库加载方式,即相关技术中的数据加载方式。如果传送网设备的数据加载方式为文本加载方式,那么,用户在需要针对一个或者多个业务进行软/硬件升级(下面简称为传送网设备升级)之前,对传送网设备输入一生成文本指令,适配层将该指令转发给数据转换模块,数据转换模块接收该生成文本指令,然后,执行生成文本指令,可以先将数据库中数据库格式(DB)的第一数据转换为文本格式(TXT)的第二数据,并将第二数据保存在存储模块中。Specifically, the data loading mode of the transport network device may be a text loading manner or a database loading manner, that is, a data loading manner in the related art. If the data loading mode of the transport network device is a text loading mode, the user inputs a text generating instruction to the transport network device before performing a software/hardware upgrade for one or more services (hereinafter referred to as a transport network device upgrade). The adaptation layer forwards the instruction to the data conversion module, and the data conversion module receives the generated text instruction, and then executes the generated text instruction, and first converts the first data of the database format (DB) in the database into a text format (TXT). The second data and the second data is saved in the storage module.
在实际应用中,传送网设备中的存储模块,如非易失性存储器NVRAM中可以存储有数据加载方式的标识位,以表示本次升级所采用的数据加载方式。比如,数据加载方式的标识位为“1”,表示采用文本加载方式;数据加载方式的标识位为“0”,表示采用数据库加载方式,当然,还可以有其它表示方式,以实际应用为准,本发明不作具体限定。In a practical application, a storage module in the transport network device, such as a non-volatile memory NVRAM, may store an identifier of the data loading mode to indicate the data loading mode used in the upgrade. For example, the data loading mode has a flag of "1", indicating that the text loading mode is used; the data loading mode has a flag of "0", indicating that the database loading mode is used. Of course, there are other representation modes, which are subject to actual application. The invention is not specifically limited.
可选地,上述数据加载方式的标识位可以为传送网设备出厂前默认设置的,也可以为用户自行设置的,比如,用户在传送网设备升级之前,输入一设置指令,适配层将该指令转发给数据转换模块,数据转换模块接收并执行该设置指令,将数据加载方式设置为文本加载方式。 Optionally, the identifier of the data loading mode may be set by default before the factory of the transport network device, or may be set by the user. For example, the user inputs a setting command before the upgrade of the transport network device, and the adaptation layer The instruction is forwarded to the data conversion module, and the data conversion module receives and executes the setting instruction, and sets the data loading mode to the text loading mode.
接下来,传送网设备开始升级,此时,数据转换模块也需要添加到升级的软件包中,随软件包一起升级。Next, the transport network device starts to upgrade. At this time, the data conversion module also needs to be added to the upgraded software package and upgraded with the software package.
S202:在传送网设备升级成功后,确定数据加载方式为文本加载方式;S202: After the upgrade of the transport network device is successful, determine that the data loading mode is a text loading mode.
具体来说,当第二数据保存之后,传送网设备就可以开始进行升级,并在升级成功重启传送网设备后,读取存储模块内数据加载方式的标识位,确定数据加载方式为文本加载方式。传送网设备升级成功包括与业务对应的软件和/或硬件升级成功,且相应的数据库升级成功。Specifically, after the second data is saved, the transport network device can start to upgrade, and after the upgrade successfully restarts the transport network device, the identifier of the data loading mode in the storage module is read, and the data loading mode is determined as the text loading mode. . The upgrade of the transport network device succeeds in that the software and/or hardware corresponding to the service is successfully upgraded, and the corresponding database upgrade is successful.
S203:将第二数据转换为数据库格式的第三数据,并将第三数据载入升级后的数据库中。S203: Convert the second data into the third data in the database format, and load the third data into the upgraded database.
具体来说,在确定数据加载方式为文本加载方式后,数据转换模块将TXT格式的第二数据转换回DB的第三数据,然后,按照升级后数据库的数据结构及存储方式,将第三数据载入升级后的数据库。Specifically, after determining that the data loading mode is the text loading mode, the data conversion module converts the second data in the TXT format back to the third data of the DB, and then, according to the data structure and storage mode of the upgraded database, the third data is Load the upgraded database.
可选地,在第三数据完成加载后,数据转换模块可以将数据加载方式设置为数据库加载方式。这样,当传送网设备再次进行升级时,需要用户先手动将数据加载方式设置为文本加载方式,然后在依次执行S201~S203;或者按照相关技术中的数据库加载方式,在传送网设备升级后直接加载数据即可。Optionally, after the third data is completed, the data conversion module may set the data loading mode to a database loading mode. In this way, when the transport network device is upgraded again, the user needs to manually set the data loading mode to the text loading mode, and then sequentially execute S201 to S203; or according to the database loading mode in the related art, after the upgrade of the transport network device Just load the data.
可选地,由于传送网设备升级的时候会根据新的需要同时升级数据库,比如更改数据结构,增加数据条目等,此时,在S201中第一数据转换为第二数据的步骤之后,该方法还包括:输出第二数据,以供用户修改;也就是说,用户可以将第二数据拷出,针对此次升级,人工修改第二数据,并用修改后的第二数据覆盖存储模块中旧数据。那么,相应地,S203可以包括:将修改后的第二数据转换为第三数据。Optionally, when the transport network device is upgraded, the database is upgraded according to the new requirement, for example, changing the data structure, adding data entries, etc., at this time, after the step of converting the first data into the second data in S201, the method The method further includes: outputting the second data for the user to modify; that is, the user can copy the second data, manually modifying the second data for the upgrade, and overwriting the old data in the storage module with the modified second data. . Then, correspondingly, S203 may include: converting the modified second data into the third data.
可选地,为了保证数据的正确性,用户还可以查看转换结果,那么,在在第一数据转换为第二数据之后,用户还可以输入显示文本指令,适配层将该指令转发给数据转换模块,数据转换模块接收该显示文本指令,执行该指令,控制显示模块显示转换结果。Optionally, in order to ensure the correctness of the data, the user may also view the conversion result. Then, after the first data is converted into the second data, the user may further input a display text instruction, and the adaptation layer forwards the instruction to the data conversion. The module, the data conversion module receives the display text instruction, executes the instruction, and controls the display module to display the conversion result.
可选地,在上述修改后的第二数据覆盖旧数据之后,用户还可以输入上述显示文本指令,查看修改后的第二数据。 Optionally, after the modified second data covers the old data, the user may further input the display text instruction to view the modified second data.
可选地,由于完成转换的数据可能有成千上万条,为了方便用户查看,在显示转换结果或者修改后的第二数据之后,用户还可以输入筛选指令,如include/exlude/begin string等,来针对某一业务或者某一软件和/或硬件对第二数据或者修改后的第二数据进行筛选。Optionally, since there may be tens of thousands of data to be converted, in order to facilitate the user to view, after displaying the conversion result or the modified second data, the user may also input a filtering instruction, such as include/exlude/begin string, etc. To filter the second data or the modified second data for a certain service or a certain software and/or hardware.
下面以PTN设备针对业务隧道上配置管道模式的升级为例,对上述一个或者多个实施例中的设备升级方法进行说明。The device upgrade method in one or more of the foregoing embodiments will be described below by taking the PTN device as an example for upgrading the pipeline mode on the service tunnel.
假设,在PTN设备升级前,只支持在隧道首节点配置管道模式,此时,数据库如表1所示,其中,Pipe type的取值为:1:uniform;2:pipe;3:short pipe。Assume that the pipe mode is configured only on the first node of the tunnel before the PTN device is upgraded. The database is shown in Table 1. The value of the pipe type is 1: uniform; 2: pipe; 3: short pipe.
Figure PCTCN2015083090-appb-000001
Figure PCTCN2015083090-appb-000001
表1Table 1
随着用户需求的增加,要求支持在隧道尾节点上配置管道模式。那么升级后的软件包需要从数据库获取当前是首节点还是尾节点,以此来决定向控制层、传送层下发什么配置。As user requirements increase, it is required to support configuring pipe mode on the tunnel tail node. Then, the upgraded software package needs to obtain whether it is the first node or the tail node from the database, so as to decide what configuration to send to the control layer and the transport layer.
图3为本发明实施例中的PTN设备针对业务隧道上配置管道模式的升级的方法流程示意图,参照图3所示,该方法包括:FIG. 3 is a schematic flowchart of a method for a PTN device to upgrade a pipeline mode on a service tunnel according to an embodiment of the present invention. Referring to FIG. 3, the method includes:
S301:根据用户的设置指令,将数据加载方式设置为文本加载方式,并存储在NVRAM中;S301: Set the data loading mode to a text loading mode according to a setting instruction of the user, and store the data in the NVRAM;
其中,NVRAM提供读写接口,以供后续读取。Among them, NVRAM provides a read and write interface for subsequent reading.
S302:接收write命令,将数据库格式的第一数据转换为文本格式的第二数据,并存储在A.txt文件中; S302: Receive a write command, convert the first data in the database format into the second data in the text format, and store the data in the A.txt file;
此时,数据转换模块对表1所示的升级前的数据库中的数据进行转换。At this time, the data conversion module converts the data in the database before the upgrade shown in Table 1.
S303:在完成转换后,接收show命令,显示转换结果;S303: After completing the conversion, receiving a show command, displaying the conversion result;
S304:输出A.txt文件;S304: output an A.txt file;
此时,用户可以使用任意文本编辑工具,将tunnel 1 pipe修改为tunnel 1 pipe source-pe。修改后,覆盖原来的A.txt文件。At this point, the user can use any text editing tool to modify the tunnel 1 pipe to tunnel 1 pipe source-pe. After modification, overwrite the original A.txt file.
S305:按照用户需求,区分隧道首末节点,进行传送网设备升级;S305: Differentiate the first and last nodes of the tunnel according to user requirements, and perform upgrade of the transport network device;
S306:PTN设备重启上电后,读取到当前是TXT加载模式,清空升级后的数据库;S306: After the PTN device is powered on and restarted, the current TXT loading mode is read, and the upgraded database is cleared.
S307:将修改后的A.txt文件中的数据转换为数据库格式;S307: Convert the data in the modified A.txt file into a database format;
S308:将转换后的数据载入升级后的数据库;S308: Loading the converted data into the upgraded database;
此时,升级后的数据库如表2所示,其中,Pipe type的取值为:1:uniform;2:pipe;3:short pipe;Node type的取值为:1:source PE;2:P;3:dest PE。At this time, the upgraded database is shown in Table 2. The value of the Pipe type is 1: uniform; 2: pipe; 3: short pipe; the value of the Node type is 1: source PE; 2: P ;3:dest PE.
Figure PCTCN2015083090-appb-000002
Figure PCTCN2015083090-appb-000002
表2Table 2
S309:在数据加载完成后,将数据加载方式修改为数据库加载方式。S309: After the data loading is completed, modify the data loading mode to the database loading mode.
至此,用户可以在隧道尾节点配置管道模式了,满足用户最新需求,达到了兼容升级的目的。At this point, the user can configure the pipeline mode at the tail node of the tunnel to meet the latest requirements of the user and achieve the purpose of compatibility upgrade.
由上述可知,传送网设备将数据库中数据库格式的数据转换成文本格式, 并保存,然后,当传送网设备完成针对一种或者多种业务的软件和/或硬件升级之后,确定数据加载方式为文本加载方式,此时,将文本格式的数据再次转换回数据库格式,如此,数据就能够正常加载至升级后的传送网设备的数据库,提高传送网设备中数据库的兼容性。As can be seen from the above, the transport network device converts the data in the database format in the database into a text format. And saving, and then, after the transport network device completes the software and/or hardware upgrade for one or more services, determining that the data loading mode is a text loading mode, and at this time, converting the data in the text format back to the database format, The data can be loaded normally into the database of the upgraded transport network device, improving the compatibility of the database in the transport network device.
基于同一发明构思,本发明实施例还提供一种传送网设备,该设备与上述一个或者多个实施例中所述的传送网设备一致。Based on the same inventive concept, an embodiment of the present invention further provides a transport network device that is consistent with the transport network device described in one or more of the above embodiments.
参考图1所示,该设备包括:数据转换模块11、数据库12及存储模块13;其中,Referring to FIG. 1, the device includes: a data conversion module 11, a database 12, and a storage module 13;
数据转换模块11,设置成:将数据库13中数据库格式的第一数据转换为文本格式的第二数据;还设置成:在传送网设备中与业务对应的软件和/或硬件升级成功后,确定数据加载方式为文本加载方式;将第二数据转换为数据库格式的第三数据,并将第三数据载入升级后的数据库12;The data conversion module 11 is configured to: convert the first data in the database format in the database 13 into the second data in the text format; and further set: after the software and/or hardware corresponding to the service in the transport network device is successfully upgraded, determine The data loading mode is a text loading mode; the second data is converted into the third data in the database format, and the third data is loaded into the upgraded database 12;
存储模块13,设置成:保存第二数据。The storage module 13 is configured to: save the second data.
可选地,数据转换模块11,还设置成:在将第一数据转换为第二数据之后,输出第二数据,以供用户修改;还设置成:将修改后的第二数据转换为第三数据。Optionally, the data conversion module 11 is further configured to: after converting the first data into the second data, output the second data for the user to modify; further configured to: convert the modified second data into the third data.
可选地,数据转换模块11,还设置成:在将第一数据转换为第二数据之前,接收用户输入的设置指令;执行设置指令,将数据加载方式设置为文本加载方式。Optionally, the data conversion module 11 is further configured to: receive a setting instruction input by the user before converting the first data into the second data; and execute the setting instruction to set the data loading mode to the text loading mode.
可选地,数据转换模块11,具体设置成:接收用户输入的生成文本指令;执行生成文本指令,将第一数据转换为第二数据。Optionally, the data conversion module 11 is specifically configured to: receive a generated text instruction input by the user; and execute a generate text instruction to convert the first data into the second data.
可选地,该数据转换模块11,还设置成:在将第一数据转换为第二数据之后,接收用户输入的显示文本指令;执行显示文本指令,显示转换结果。Optionally, the data conversion module 11 is further configured to: after converting the first data into the second data, receive a display text instruction input by the user; execute a display text instruction to display the conversion result.
本发明实施例还公开了一种传送网设备,如图4所示,包括:数据转换模块401和数据存储模块402;其中,The embodiment of the present invention further discloses a transport network device, as shown in FIG. 4, comprising: a data conversion module 401 and a data storage module 402;
所述数据转换模块401设置成:将数据加载方式从数据库加载方式修改 为文本加载方式后,将所述数据存储模块中数据库格式的第一数据转换为文本格式的第二数据;在所述传送网设备升级成功并重启后,确定当前数据加载方式为所述文本加载方式;将所述文本格式的第二数据转换为数据库格式的第三数据,并将所述第三数据载入升级后的数据存储模块中;The data conversion module 401 is configured to: modify the data loading mode from the database loading mode After the text loading mode is performed, the first data in the database format in the data storage module is converted into the second data in the text format; after the upgrade of the transport network device is successful and restarted, determining that the current data loading mode is the text loading Translating the second data in the text format into third data in a database format, and loading the third data into the upgraded data storage module;
所述数据存储模块402设置成:保存所述第二数据和第三数据。The data storage module 402 is configured to: save the second data and the third data.
可选地,所述数据转换模块401还设置成:Optionally, the data conversion module 401 is further configured to:
在将所述数据库格式的第一数据转换为所述文本格式的第二数据之后,输出所述文本格式的第二数据,以供用户修改;After converting the first data of the database format to the second data of the text format, outputting the second data of the text format for modification by a user;
将修改后的文本格式的第二数据转换为所述第三数据。Converting the second data of the modified text format into the third data.
可选地,所述数据转换模块401还设置成按照如下方式将数据加载方式从数据库加载方式修改为文本加载方式:Optionally, the data conversion module 401 is further configured to modify the data loading mode from the database loading mode to the text loading mode as follows:
接收用户输入的设置指令;Receiving a setting instruction input by a user;
执行所述设置指令,将数据加载方式设置为所述文本加载方式。Execute the setting instruction to set the data loading mode to the text loading mode.
可选地,所述数据转换模块401设置成按照如下方式将数据库中数据库格式的第一数据转换为文本格式的第二数据:Optionally, the data conversion module 401 is configured to convert the first data in the database format in the database into the second data in the text format as follows:
接收用户输入的生成文本指令;Receiving a generated text instruction input by a user;
执行所述生成文本指令,将所述数据库格式的第一数据转换为所述文本格式的第二数据。Executing the generating text instruction to convert the first data of the database format into the second data of the text format.
可选地,所述数据转换模块401还设置成:在将所述第一数据转换为所述第二数据之后,接收用户输入的显示文本指令,执行所述显示文本指令,显示转换结果。Optionally, the data conversion module 401 is further configured to: after converting the first data into the second data, receive a display text instruction input by a user, execute the display text instruction, and display a conversion result.
所述数据转换模块401还设置成:将所述第三数据载入升级后的数据存储模块中之后,将数据加载方式设置为所述数据库加载方式;The data conversion module 401 is further configured to: after loading the third data into the upgraded data storage module, set the data loading mode to the database loading mode;
所述数据存储模块402还设置成:存储所述第三数据对应的数据加载方式的标识位。The data storage module 402 is further configured to: store an identifier bit of a data loading manner corresponding to the third data.
可选地,所述数据存储模块402还设置成:保存所述第二数据和第三数 据的同时,存储与所述第二数据和第三数据对应的数据加载方式的标识位;Optionally, the data storage module 402 is further configured to: save the second data and the third number At the same time, the identifier of the data loading mode corresponding to the second data and the third data is stored;
所述数据存储模块402设置成按照如下方式确定当前数据加载方式为所述文本加载方式:根据所存储的第二数据的数据加载方式的标识位,确定数据加载方式为所述文本加载方式。The data storage module 402 is configured to determine that the current data loading mode is the text loading mode according to the identifier bit of the stored data loading mode of the second data, and determine that the data loading mode is the text loading mode.
本发明实施例还公开了一种计算机程序,包括程序指令,当该程序指令被传送网设备执行时,使得该传送网设备可执行上述任意的设备升级的方法。The embodiment of the invention further discloses a computer program, comprising program instructions, when the program instruction is executed by the transport network device, so that the transport network device can perform any of the above device upgrade methods.
本发明实施例还公开了一种载有所述的计算机程序的载体。The embodiment of the invention also discloses a carrier carrying the computer program.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图 一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. Instructions are provided for implementation in the flowchart The steps of a process or a plurality of processes and/or block diagrams of a function specified in a block or blocks.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.
工业实用性Industrial applicability
本发明实施例所提供的设备升级的方法及传送网设备中,传送网设备将数据库中数据库格式的第一数据转换为文本格式的第二数据,并保存第二数据,然后,在传送网设备中与业务对应的软件和/或硬件升级成功后,确定数据加载方式为文本加载方式,接着,将第二数据转换为数据库格式的第三数据,并将第三数据载入升级后的数据库。也就是说,首先,传送网设备将数据库中数据库格式的数据转换成文本格式,并保存,然后,当传送网设备完成针对一种或者多种业务的软件和/或硬件升级之后,确定数据加载方式为文本加载方式,此时,将文本格式的数据再次转换回数据库格式,如此,数据就能够正常加载至升级后的传送网设备的数据库,提高传送网设备中数据库的兼容性。因此本发明具有很强的工业实用性。 In the device upgrade method and the transport network device provided by the embodiment of the present invention, the transport network device converts the first data in the database format in the database into the second data in the text format, and saves the second data, and then, in the transport network device After the software and/or hardware corresponding to the service is successfully upgraded, the data loading mode is determined to be a text loading mode, and then the second data is converted into the third data in the database format, and the third data is loaded into the upgraded database. That is, first, the transport network device converts the data in the database format in the database into a text format and saves it, and then determines the data loading after the transport network device completes the software and/or hardware upgrade for one or more services. The mode is text loading mode. At this time, the data in the text format is converted back to the database format, so that the data can be normally loaded into the database of the upgraded transport network device, and the compatibility of the database in the transport network device is improved. Therefore, the present invention has strong industrial applicability.

Claims (15)

  1. 一种设备升级的方法,应用于一传送网设备,所述方法包括:A method for upgrading a device is applied to a transport network device, and the method includes:
    将数据加载方式从数据库加载方式修改为文本加载方式;Modify the data loading mode from the database loading mode to the text loading mode;
    将数据库中数据库格式的第一数据转换为文本格式的第二数据,并保存所述第二数据;Converting the first data of the database format in the database into the second data in the text format, and saving the second data;
    在所述传送网设备升级成功并重启后,确定当前数据加载方式为所述文本加载方式;After the upgrade of the transport network device is successful and restarted, determining that the current data loading mode is the text loading mode;
    将所述文本格式的第二数据转换为数据库格式的第三数据,并将所述第三数据载入升级后的数据库中。Converting the second data in the text format to third data in a database format and loading the third data into the upgraded database.
  2. 根据权利要求1所述的方法,其中,在所述将数据库中数据库格式的第一数据转换为文本格式的第二数据的步骤之后,所述方法还包括:输出所述文本格式的第二数据,以供用户修改;The method of claim 1, wherein after the step of converting the first data in the database format in the database to the second data in the text format, the method further comprises: outputting the second data in the text format For the user to modify;
    相应地,所述将所述第二数据转换为数据库格式的第三数据的步骤包括:将修改后的文本格式的第二数据转换为所述数据库格式的第三数据。Correspondingly, the step of converting the second data into the third data in the database format comprises: converting the second data in the modified text format into the third data in the database format.
  3. 根据权利要求1所述的方法,其中,所述将数据加载方式从数据库加载方式设置为文本加载方式的步骤包括:The method according to claim 1, wherein the step of setting the data loading mode from the database loading mode to the text loading mode comprises:
    接收用户输入的设置指令;Receiving a setting instruction input by a user;
    执行所述设置指令,将数据加载方式设置为所述文本加载方式。Execute the setting instruction to set the data loading mode to the text loading mode.
  4. 根据权利要求1所述的方法,其中,所述将数据库中数据库格式的第一数据转换为文本格式的第二数据的步骤包括:The method of claim 1, wherein the step of converting the first data in the database format in the database to the second data in the text format comprises:
    接收用户输入的生成文本指令;Receiving a generated text instruction input by a user;
    执行所述生成文本指令,将所述第一数据转换为所述第二数据。Executing the generating text instruction to convert the first data into the second data.
  5. 根据权利要求1所述的方法,其中,在所述将数据库中数据库格式的第一数据转换为文本格式的第二数据的步骤之后,所述方法还包括:The method of claim 1, wherein after the step of converting the first data in a database format in the database to the second data in a text format, the method further comprises:
    接收用户输入的显示文本指令; Receiving a display text instruction input by a user;
    执行所述显示文本指令,显示转换结果。The display text instruction is executed to display the conversion result.
  6. 根据权利要求1所述的方法,其中,所述将所述第三数据载入升级后的数据库中的步骤之后,该方法还包括:The method of claim 1, wherein after the step of loading the third data into the upgraded database, the method further comprises:
    将数据加载方式设置为所述数据库加载方式。Set the data loading mode to the database loading mode.
  7. 根据权利要求1所述的方法,其中,The method of claim 1 wherein
    所述保存所述第二数据的同时,该方法还包括:存储数据加载方式的标识位;While the saving the second data, the method further includes: storing an identifier bit of the data loading mode;
    相应地,所述确定数据加载方式为所述文本加载方式的步骤包括:根据所存储的数据加载方式的标识位,确定数据加载方式为所述文本加载方式。Correspondingly, the step of determining that the data loading mode is the text loading mode comprises: determining, according to the stored identifier of the data loading mode, that the data loading mode is the text loading mode.
  8. 一种传送网设备,包括:数据转换模块和数据存储模块;其中,A transport network device, comprising: a data conversion module and a data storage module; wherein
    所述数据转换模块设置成:将数据加载方式从数据库加载方式修改为文本加载方式后,将所述数据存储模块中数据库格式的第一数据转换为文本格式的第二数据;在所述传送网设备升级成功并重启后,确定当前数据加载方式为所述文本加载方式;将所述文本格式的第二数据转换为数据库格式的第三数据,并将所述第三数据载入升级后的数据存储模块中;The data conversion module is configured to: convert the first data of the database format in the data storage module into the second data in the text format after modifying the data loading mode from the database loading mode to the text loading mode; After the device upgrade succeeds and restarts, determining that the current data loading mode is the text loading mode; converting the second data in the text format into the third data in the database format, and loading the third data into the upgraded data. In the storage module;
    所述数据存储模块设置成:保存所述第二数据和第三数据。The data storage module is configured to: save the second data and the third data.
  9. 根据权利要求8所述的传送网设备,其中,所述数据转换模块还设置成:The transport network device according to claim 8, wherein the data conversion module is further configured to:
    在将所述数据库格式的第一数据转换为所述文本格式的第二数据之后,输出所述文本格式的第二数据,以供用户修改;After converting the first data of the database format to the second data of the text format, outputting the second data of the text format for modification by a user;
    将修改后的文本格式的第二数据转换为所述第三数据。Converting the second data of the modified text format into the third data.
  10. 根据权利要求8所述的传送网设备,其中,所述数据转换模块还设置成按照如下方式将数据加载方式从数据库加载方式修改为文本加载方式:The transport network device according to claim 8, wherein the data conversion module is further configured to modify the data loading mode from the database loading mode to the text loading mode as follows:
    接收用户输入的设置指令;Receiving a setting instruction input by a user;
    执行所述设置指令,将数据加载方式设置为所述文本加载方式。 Execute the setting instruction to set the data loading mode to the text loading mode.
  11. 根据权利要求8所述的传送网设备,其中,所述数据转换模块设置成按照如下方式将数据库中数据库格式的第一数据转换为文本格式的第二数据:The transport network device of claim 8, wherein the data conversion module is configured to convert the first data in a database format in the database to the second data in a text format as follows:
    接收用户输入的生成文本指令;Receiving a generated text instruction input by a user;
    执行所述生成文本指令,将所述数据库格式的第一数据转换为所述文本格式的第二数据。Executing the generating text instruction to convert the first data of the database format into the second data of the text format.
  12. 根据权利要求8所述的传送网设备,其中The transport network device of claim 8 wherein
    所述数据转换模块还设置成:在将所述第一数据转换为所述第二数据之后,接收用户输入的显示文本指令,执行所述显示文本指令,显示转换结果。The data conversion module is further configured to: after converting the first data into the second data, receive a display text instruction input by a user, execute the display text instruction, and display a conversion result.
  13. 根据权利要求8所述的传送网设备,其中,The transport network device according to claim 8, wherein
    所述数据转换模块还设置成:将所述第三数据载入升级后的数据存储模块中之后,将数据加载方式设置为所述数据库加载方式;The data conversion module is further configured to: after loading the third data into the upgraded data storage module, set the data loading mode to the database loading mode;
    所述数据存储模块还设置成:存储所述第三数据对应的数据加载方式的标识位。The data storage module is further configured to: store an identifier bit of a data loading manner corresponding to the third data.
  14. 根据权利要求8所述的传送网设备,其中,The transport network device according to claim 8, wherein
    所述数据存储模块还设置成:保存所述第二数据的同时,存储与所述第二数据对应的数据加载方式的标识位;The data storage module is further configured to: store the identifier of the data loading mode corresponding to the second data while saving the second data;
    所述数据存储模块设置成按照如下方式确定当前数据加载方式为所述文本加载方式:根据所存储的第二数据的数据加载方式的标识位,确定数据加载方式为所述文本加载方式。The data storage module is configured to determine the current data loading mode as the text loading mode according to the identifier bit of the stored data loading mode of the second data, and determine that the data loading mode is the text loading mode.
  15. 一种计算机程序,包括程序指令,当该程序指令被传送网设备执行时,使得该传送网设备可执行如权利要求1-7中任一项所述的设备升级的方法。 A computer program comprising program instructions that, when executed by a transport network device, cause the transport network device to perform the method of upgrading the device of any of claims 1-7.
PCT/CN2015/083090 2014-12-17 2015-07-01 Equipment upgrading method and transport network equipment WO2016095491A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410789967.2A CN105760389A (en) 2014-12-17 2014-12-17 Equipment upgrading method and transport network equipment
CN201410789967.2 2014-12-17

Publications (1)

Publication Number Publication Date
WO2016095491A1 true WO2016095491A1 (en) 2016-06-23

Family

ID=56125804

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/083090 WO2016095491A1 (en) 2014-12-17 2015-07-01 Equipment upgrading method and transport network equipment

Country Status (2)

Country Link
CN (1) CN105760389A (en)
WO (1) WO2016095491A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111290773A (en) * 2020-03-12 2020-06-16 深圳Tcl新技术有限公司 System upgrading method, device and readable storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109274515A (en) * 2017-07-18 2019-01-25 中兴通讯股份有限公司 Business migration method, relevant device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101571861A (en) * 2008-04-29 2009-11-04 阿里巴巴集团控股有限公司 Method and device for converting data table
CN102006181A (en) * 2010-02-26 2011-04-06 中山大学 Intelligent home appliance on-line upgrade method
CN102147747A (en) * 2010-02-09 2011-08-10 埃森哲环球服务有限公司 Enhanced upgrade path
CN102402559A (en) * 2010-09-16 2012-04-04 中兴通讯股份有限公司 Database upgrade script generating method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020156662A1 (en) * 2001-04-19 2002-10-24 Troy Christensen Presentation system for presenting performance and economic data related to steam plant upgrades
CN101217406B (en) * 2008-01-15 2011-05-11 中兴通讯股份有限公司 Collocation data backup and recovery method
CN102082730B (en) * 2011-02-09 2014-12-31 中兴通讯股份有限公司 Router upgrading method and router

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101571861A (en) * 2008-04-29 2009-11-04 阿里巴巴集团控股有限公司 Method and device for converting data table
CN102147747A (en) * 2010-02-09 2011-08-10 埃森哲环球服务有限公司 Enhanced upgrade path
CN102006181A (en) * 2010-02-26 2011-04-06 中山大学 Intelligent home appliance on-line upgrade method
CN102402559A (en) * 2010-09-16 2012-04-04 中兴通讯股份有限公司 Database upgrade script generating method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111290773A (en) * 2020-03-12 2020-06-16 深圳Tcl新技术有限公司 System upgrading method, device and readable storage medium
CN111290773B (en) * 2020-03-12 2024-01-19 深圳Tcl新技术有限公司 System upgrade method, device and readable storage medium

Also Published As

Publication number Publication date
CN105760389A (en) 2016-07-13

Similar Documents

Publication Publication Date Title
US20230074815A1 (en) Packet edit processing method and related device
WO2018049888A1 (en) Application data migration method and device
US10887190B2 (en) System for simultaneous viewing and editing of multiple network device configurations
WO2019201039A1 (en) Method and system for updating application and application server
WO2014187255A1 (en) Application packaging device and method
KR102288521B1 (en) Apparatus and method for storing data based on blockchain
CN107463418B (en) Configuration file generation method and device for server middleware
WO2017036228A1 (en) Method and apparatus for implementing system upgrading
US9699252B2 (en) Deployment of virtual machine disks from a shared network file system
US20130167148A1 (en) Computing device and virtual machine operation control method
WO2016074412A1 (en) Compatibility administration method based on network configuration protocol, storage medium and device
WO2016095491A1 (en) Equipment upgrading method and transport network equipment
US8285680B2 (en) Individual object restore
EP3361782B1 (en) Routing method, device, nfcc and dh
CN106020855A (en) Multiple CPU system and method for upgrading CPU
CN107609197B (en) A kind of method of data synchronization, data synchronization unit and mobile terminal
WO2016078326A1 (en) Method, apparatus and system for displaying names of virtual machine
CN110912725A (en) Configuration method and configuration device of OpenFlow virtual switch
CN105357056A (en) Strategy-based EOC central office end equipment upgrading method
JP5380895B2 (en) Management program, management method and management apparatus
US10027535B1 (en) Systems and methods for managing device configurations at various levels of abstraction
WO2017036197A1 (en) Method and device for managing network element model
CN111381850A (en) BIOS firmware upgrading method, device, equipment and medium
WO2017096889A1 (en) Method and device for upgrading and downgrading system
JP6317058B2 (en) Information processing apparatus, information processing system, information processing program, and information processing method

Legal Events

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

Ref document number: 15869003

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15869003

Country of ref document: EP

Kind code of ref document: A1