[go: up one dir, main page]

CN102082730B - Router upgrading method and router - Google Patents

Router upgrading method and router Download PDF

Info

Publication number
CN102082730B
CN102082730B CN201110035021.3A CN201110035021A CN102082730B CN 102082730 B CN102082730 B CN 102082730B CN 201110035021 A CN201110035021 A CN 201110035021A CN 102082730 B CN102082730 B CN 102082730B
Authority
CN
China
Prior art keywords
business
business datum
router
carrying
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110035021.3A
Other languages
Chinese (zh)
Other versions
CN102082730A (en
Inventor
吴铭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Zhongxing Software Co Ltd
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201110035021.3A priority Critical patent/CN102082730B/en
Publication of CN102082730A publication Critical patent/CN102082730A/en
Application granted granted Critical
Publication of CN102082730B publication Critical patent/CN102082730B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种路由器升级方法及路由器,所述方法包括:在待升级的路由器中配置针对升级前后需要进行格式更新的业务数据的修改方式;在升级过程中,路由器在升级程序版本加载完成且业务数据备份完成后,按照所述修改方式对需要进行格式更新的业务数据进行修改。所述路由器中包括:第一装置,用于存储配置的针对升级前后需要进行格式更新的业务数据的修改方式;第二装置,用于在升级过程中,在升级程序版本加载完成且业务数据备份完成后,按照第一装置中存储的所述修改方式对需要进行格式更新的业务数据进行修改。采用本发明后,在路由器完成自动程序升级后,即使新版本程序使用的数据格式与旧版本的不同,也能保证业务不中断,从而平滑切换。

The invention discloses a router upgrading method and a router. The method comprises: configuring in the router to be upgraded a modification method for service data that needs format update before and after upgrading; during the upgrading process, the router finishes loading the upgrading program version And after the backup of the business data is completed, the business data that needs to be updated in format is modified according to the modification method. The router includes: a first device for storing configuration modification methods for service data that needs to be updated in format before and after the upgrade; a second device for, during the upgrade process, when the upgrade program version is loaded and the business data is backed up After completion, modify the service data that needs to be updated in format according to the modification method stored in the first device. After adopting the present invention, even if the data format used by the program of the new version is different from that of the old version after the automatic program upgrade of the router is completed, the service can be guaranteed to be uninterrupted, thereby switching over smoothly.

Description

一种路由器升级方法及路由器A router upgrade method and router

技术领域 technical field

本发明涉及数据通讯领域,尤其涉及一种路由器升级方法及路由器。 The invention relates to the field of data communication, in particular to a router upgrading method and a router.

背景技术 Background technique

随着电信级以太网的发展,各种专用网络、大型网络都大面积的使用了路由器、交换机等数据设备(以下统称为路由器)。 With the development of carrier-class Ethernet, various private networks and large-scale networks use data devices such as routers and switches (hereinafter collectively referred to as routers) on a large scale.

由于业务的不断发展,需要经常对路由器进行升级。而在实际应用中,由于数据业务的复杂性,使得升级并不能完全自动完成,很多时候都需要人工逐台的进行升级以满足新的功能需求。而这些设备有的集中在市区运营商办公大楼中,有的分散在荒郊野外运营商机房里,因此为升级工作带来了很多的不便。 Due to the continuous development of services, routers need to be upgraded frequently. However, in practical applications, due to the complexity of data services, the upgrade cannot be completed automatically. In many cases, it is necessary to manually upgrade one by one to meet new functional requirements. Some of these devices are concentrated in the operator's office building in the urban area, and some are scattered in the operator's computer room in the wilderness, which brings a lot of inconvenience to the upgrade work.

针对这一问题,现有很多业务尝试解决自动完成升级的问题。有的方法是针对某些具体业务,提供一种保护手段以备份数据,使得在业务不中断的前提下能完成程序的自动升级;有的方法是提供一种一比一备份数据的方法,亦保证在不中断业务的前提下完成程序的自动升级。 In response to this problem, many existing businesses try to solve the problem of automatically completing the upgrade. Some methods are to provide a protection method to back up data for certain specific businesses, so that the automatic upgrade of the program can be completed without business interruption; some methods are to provide a one-to-one backup data method, also Ensure that the automatic upgrade of the program is completed without interrupting the business.

但无论采用上述哪种升级方法,都需要备份旧版本程序的数据,以供升级后的新版本程序使用,从而使业务能平滑切换。 However, no matter which of the above upgrade methods is adopted, the data of the old version of the program needs to be backed up for use by the upgraded new version of the program, so that the business can be switched smoothly.

而当新旧版本程序所使用的数据的格式不同时,采用上述两种方法中任意一种进行自动升级后,新版本程序无法使用备份的数据来启动业务,进而导致业务的中断。 However, when the formats of the data used by the old and new versions of the program are different, after the automatic upgrade is performed by any of the above two methods, the new version of the program cannot use the backed up data to start the business, resulting in interruption of the business.

发明内容 Contents of the invention

本发明提供了一种路由器升级方法及路由器,以避免路由器完成自动程序升级后,因新版本使用的业务数据格式发生变化导致的业务中断。 The invention provides a router upgrading method and the router, so as to avoid service interruption caused by the change of the service data format used in the new version after the router completes automatic program upgrading.

为解决上述问题,本发明提供了一种路由器升级方法,包括: In order to solve the above problems, the present invention provides a router upgrading method, comprising:

在待升级的路由器中配置针对升级前后需要进行格式更新的业务数据的修改方式; Configure the modification method for the service data that needs to be updated in format before and after the upgrade in the router to be upgraded;

在升级过程中,所述路由器在升级程序版本加载完成且业务数据备份完成后,按照所述修改方式对所述需要进行格式更新的业务数据进行修改。 During the upgrade process, after the upgrade program version is loaded and the service data backup is completed, the router modifies the service data requiring format update according to the modification manner.

进一步地,所述方法还包括: Further, the method also includes:

在所述待升级的路由器中配置各业务的启动顺序; Configuring the startup sequence of each service in the router to be upgraded;

所述按照所述修改方式对所述需要进行格式更新的业务数据进行修改,具体包括: The modification of the business data requiring format update according to the modification method specifically includes:

所述路由器按照所述各业务的启动顺序,依次读取各业务的业务数据,并按照所述修改方式对所述需要进行格式更新的业务数据进行修改。 The router sequentially reads the service data of each service according to the startup sequence of each service, and modifies the service data requiring format update according to the modification method.

进一步地,所述方法还包括: Further, the method also includes:

在进行所述业务数据备份时,所述路由器对所述业务数据所属的业务进行标识。 When backing up the service data, the router identifies the service to which the service data belongs.

进一步地,所述方法还包括: Further, the method also includes:

在进行所述业务数据备份时,所述路由器为各业务中的每条业务数据分配一数据标识信息; When backing up the service data, the router assigns a piece of data identification information to each piece of service data in each service;

所述在待升级的路由器中配置针对需要进行格式更新的业务数据的修改方式,具体包括: The configuration in the router to be upgraded is aimed at modifying the business data that needs to be updated in format, specifically including:

在所述待升级的路由器中配置需要进行格式更新的业务数据的数据标识信息与该业务数据对应的修改方式的对应关系; Configuring the corresponding relationship between the data identification information of the service data that needs to be updated in format and the modification mode corresponding to the service data in the router to be upgraded;

按照所述修改方式对所述需要进行格式更新的业务数据进行修改,具体包括: Modify the business data that needs to be updated in format according to the modification method, specifically including:

所述路由器在读取到业务的业务数据时,判断是否配置有该业务数据的数据标识信息与该业务数据对应的修改方式的对应关系;若是,则根据所述对应关系对该业务数据进行修改;否则,读取本业务的下一条业务数据,直至读取完本业务的所有业务数据为止。 When the router reads the service data of the service, it judges whether there is a corresponding relationship between the data identification information of the service data and the modification mode corresponding to the service data; if so, the service data is modified according to the corresponding relationship ; Otherwise, read the next piece of business data of this business until all the business data of this business is read.

进一步地,  further,

所述修改方式包括:赋值、旧业务数据前/后n字节拷贝到新业务数据前/后n字节、新旧业务数据次序的更换中的任意一种。 The modification method includes any one of: assigning values, copying the first/last n bytes of the old service data to the first/last n bytes of the new service data, and changing the order of the old and new service data.

相应地,本发明还提供了一种路由器,包括: Correspondingly, the present invention also provides a router, including:

第一装置,用于存储配置的针对升级前后需要进行格式更新的业务数据的修改方式; The first device is used to store configuration modification methods for business data that needs to be updated in format before and after the upgrade;

第二装置,用于在所述路由器升级过程中,在升级程序版本加载完成且业务数据备份完成后,按照所述第一装置中存储的所述修改方式对所述需要进行格式更新的业务数据进行修改。 The second device is used to update the format of the service data that needs to be updated according to the modification method stored in the first device after the upgrade program version is loaded and the service data backup is completed during the router upgrade process. to modify.

进一步地, further,

所述第一装置还用于存储配置的各业务的启动顺序; The first device is also used to store the configured starting sequence of each service;

所述第二装置用于所述按照所述第一装置中存储的所述修改方式对所述需要进行格式更新的业务数据进行修改,具体包括: The second device is used to modify the business data that needs to be updated in format according to the modification method stored in the first device, specifically including:

所述第二装置用于按照所述各业务的启动顺序,依次读取各业务的业务数据,并按照所述修改方式对所述需要进行格式更新的业务数据进行修改。 The second device is used to sequentially read the service data of each service according to the startup sequence of each service, and modify the service data requiring format update according to the modification method.

进一步地,所述路由器中还包括:  Further, the router also includes:

第三装置,用于在进行所述业务数据备份时对所述业务数据所属的业务进行标识。 The third means is configured to identify the service to which the service data belongs when performing the backup of the service data.

进一步地,所述路由器中还包括:  Further, the router also includes:

第四装置,用于在进行所述业务数据备份时为各业务中的每条业务数据分配一数据标识信息; The fourth device is used to assign a piece of data identification information to each piece of business data in each business when performing the backup of the business data;

所述第一装置用于保存配置的针对需要进行格式更新的业务数据的修改方式,具体包括: The first device is used to save the configured modification method for the service data that needs to be updated in format, specifically including:

所述第一装置用于保存配置的需要进行格式更新的业务数据的数据标识信息与该业务数据对应的修改方式的对应关系; The first device is used to save the corresponding relationship between the data identification information of the configured business data that needs to be updated in format and the modification method corresponding to the business data;

所述第二装置用于按照所述修改方式对所述需要进行格式更新的业务数据进行格式修改,具体包括: The second device is used to modify the format of the service data requiring format update according to the modification method, specifically including:

所述第二装置用于在读取到业务的业务数据时,判断所述第一装置中是否保存有该业务数据的数据标识信息与该业务数据对应的修改方式的对应关系;若是,则根据所述对应关系对该业务数据进行修改;否则,读取本业务的下一条业务数据,直至读取完本业务的所有业务数据为止。 The second device is used to judge whether the correspondence between the data identification information of the business data and the modification method corresponding to the business data is saved in the first device when the business data of the business is read; if so, according to The corresponding relationship modifies the service data; otherwise, read the next piece of service data of the service until all the service data of the service are read.

进一步地,  further,

所述修改方式包括:赋值、旧业务数据前/后n字节拷贝到新业务数据前/后n字节、新旧业务数据次序的更换中的任意一种。 The modification method includes any one of: assigning values, copying the first/last n bytes of the old service data to the first/last n bytes of the new service data, and changing the order of the old and new service data.

采用本发明后,在路由器完成自动程序升级后,即使新版本程序使用的业务数据格式与旧版本的不同,也能保证业务不中断,从而平滑切换。 After adopting the present invention, after the router completes the automatic program upgrade, even if the service data format used by the new version program is different from that of the old version, the service can be guaranteed to be uninterrupted, thereby smooth switching.

附图说明 Description of drawings

图1 为本发明实施例中路由器升级方法流程图。 Fig. 1 is a flow chart of a router upgrading method in an embodiment of the present invention.

具体实施方式 Detailed ways

下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。 Embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.

在本实施例中,如图1所示,路由器升级方法,包括以下步骤: In this embodiment, as shown in Figure 1, the router upgrade method includes the following steps:

步骤10、在待升级的路由器中配置针对升级前后需要进行格式更新的业务数据的修改方式; Step 10, configure in the router to be upgraded the modification method for the service data that needs to be updated in format before and after the upgrade;

步骤20、在升级过程中,上述路由器在升级程序版本加载完成且业务数据备份完成后,按照上述修改方式对需要进行格式更新的业务数据进行修改。 Step 20. During the upgrade process, after the upgrade program version is loaded and the service data backup is completed, the above-mentioned router modifies the service data that needs to be updated in format according to the above-mentioned modification method.

在本发明的另一实施例中,在进行升级前,还可以在待升级的路由器中配置各业务的启动顺序;则在步骤20中,在进行业务数据的修改时,路由器可以按照上述各业务的启动顺序,依次读取各业务的业务数据,并对需要进行格式更新的业务数据按照上述配置的修改方式进行修改;在读取完该业务的所有业务数据后,启动该业务。 In another embodiment of the present invention, before upgrading, the startup sequence of each service can also be configured in the router to be upgraded; then in step 20, when modifying service data, the router can follow the According to the start-up sequence, read the business data of each business in turn, and modify the business data that needs to be updated in the format according to the modification method of the above configuration; after reading all the business data of the business, start the business.

在另一实施例中,在进行业务数据备份时,路由器还可以为各业务数据所属的业务进行标识;相应地,在路由器中配置各业务的启动顺序可以但不限于是配置各业务对应的业务标识信息的顺序;路由器按照业务标识信息的顺序,依次读取对应业务的业务数据。 In another embodiment, when backing up business data, the router can also identify the business to which each business data belongs; correspondingly, the startup sequence of configuring each business in the router can be, but not limited to, configuring the business corresponding to each business The order of the identification information; the router reads the service data of the corresponding service sequentially according to the order of the service identification information.

在另一实施例中,在进行业务数据备份时,还可以为各业务中的每条业务数据分配一数据标识信息;相应地,在待升级的路由器中配置需要进行格式更新的业务数据的修改方式是指:在待升级的路由器中配置需要进行格式更新的业务数据的数据标识信息与该业务数据对应的修改方式的对应关系;在进行业务数据修改时,路由器在读取到某业务的业务数据时,判断是否配置有该业务数据的数据标识信息与该业务数据对应的修改方式的对应关系;若是,则根据该对应关系对该业务数据进行修改;否则,直接读取本业务的下一条业务数据,直至读取完本业务的所有业务数据为止。 In another embodiment, when backing up business data, it is also possible to assign a piece of data identification information to each piece of business data in each business; correspondingly, configure the modification of the business data that needs to be updated in the format in the router to be upgraded The method refers to: configure the corresponding relationship between the data identification information of the service data that needs to be updated in the format and the modification method corresponding to the service data in the router to be upgraded; when modifying the service data, the router reads the service data, determine whether there is a corresponding relationship between the data identification information of the business data and the corresponding modification method of the business data; if so, modify the business data according to the corresponding relationship; otherwise, directly read the next article of this business Business data, until all the business data of this business is read.

在本发明的另一实施例中,路由器中包括: In another embodiment of the present invention, the router includes:

第一装置,用于存储配置的针对升级前后需要进行格式更新的业务数据的修改方式; The first device is used to store configuration modification methods for business data that needs to be updated in format before and after the upgrade;

第二装置,用于在所述路由器升级过程中,在升级程序版本加载完成且业务数据备份完成后,按照所述第一装置中存储的所述修改方式对所述需要进行格式更新的业务数据进行修改。 The second device is used to update the format of the service data that needs to be updated according to the modification method stored in the first device after the upgrade program version is loaded and the service data backup is completed during the router upgrade process. to modify.

较优地, Preferably,

所述第一装置还用于存储配置的各业务的启动顺序; The first device is also used to store the configured starting sequence of each service;

所述第二装置用于所述按照所述第一装置中存储的所述修改方式对所述需要进行格式更新的业务数据进行修改,具体包括: The second device is used to modify the business data that needs to be updated in format according to the modification method stored in the first device, specifically including:

所述第二装置用于按照所述各业务的启动顺序,依次读取各业务的业务数据,并按照所述修改方式对所述需要进行格式更新的业务数据进行修改。 The second device is used to sequentially read the service data of each service according to the startup sequence of each service, and modify the service data requiring format update according to the modification method.

较优地,所述路由器中还可包括: Preferably, the router may also include:

第三装置,用于在进行所述业务数据备份时对所述业务数据所属的业务进行标识。 The third means is configured to identify the service to which the service data belongs when performing the backup of the service data.

较优地,所述路由器中还可包括: Preferably, the router may also include:

第四装置,用于在进行所述业务数据备份时为各业务中的每条业务数据分配一数据标识信息; The fourth device is used to assign a piece of data identification information to each piece of business data in each business when performing the backup of the business data;

所述第一装置用于保存配置的针对需要进行格式更新的业务数据的修改方式,具体包括: The first device is used to save the configured modification method for the service data that needs to be updated in format, specifically including:

所述第一装置用于保存配置的需要进行格式更新的业务数据的数据标识信息与该业务数据对应的修改方式的对应关系; The first device is used to save the corresponding relationship between the data identification information of the configured business data that needs to be updated in format and the modification method corresponding to the business data;

所述第二装置用于按照所述修改方式对所述需要进行格式更新的业务数据进行修改,具体包括: The second device is used to modify the service data requiring format update according to the modification method, specifically including:

所述第二装置用于在读取到业务的业务数据时,判断所述第一装置中是否保存有该业务数据的数据标识信息与该业务数据对应的修改方式的对应关系;若是,则根据所述对应关系对该业务数据进行修改;否则,读取本业务的下一条业务数据,直至读取完本业务的所有业务数据为止。 The second device is used to judge whether the correspondence between the data identification information of the business data and the modification method corresponding to the business data is saved in the first device when the business data of the business is read; if so, according to The corresponding relationship modifies the service data; otherwise, read the next piece of service data of the service until all the service data of the service are read.

较优地, Preferably,

所述修改方式包括:赋值、旧业务数据前/后n字节拷贝到新业务数据前/后n字节、新旧业务数据次序的更换中的任意一种。 The modification method includes any one of: assigning values, copying the first/last n bytes of the old service data to the first/last n bytes of the new service data, and changing the order of the old and new service data.

下面用几个示例对业务数据的修改方式进行说明。 The following uses several examples to illustrate how to modify business data.

假设在路由器中预先配置了针对业务1中5个业务数据(数据a~数据e)各自对应的修改方式(当然,也可以对其中2个以上的数据配置相同的修改方式)。备份后的业务数据、原业务数据格式、新业务数据格式以及修改方式分别为: Assume that the corresponding modification methods for the five service data (data a~data e) in service 1 are pre-configured in the router (of course, the same modification method can also be configured for more than two of the data). The backed up business data, original business data format, new business data format and modification methods are as follows:

业务1 数据a Business 1 Data a

{ {

    1, 1,

  2 2

}; };

对应的原数据格式为: The corresponding original data format is:

{ {

    Int(4字节)data1, Int (4 bytes) data1,

  Int(4字节)data2 Int (4 bytes) data2

}; };

修改方式为: The modification method is:

新data1 = 旧data1 new data1 = old data1

新data2 = 旧data2 new data2 = old data2

新data3 = 0 new data3 = 0

则新数据格式为: Then the new data format is:

{ {

    Int(4字节) data1, Int (4 bytes) data1,

  Int(4字节) data2, Int (4 bytes) data2,

Int(4字节) data3 Int (4 bytes) data3

}; };

业务1数据b Business 1 data b

{ {

    4, 4,

  5, 5,

  6 6

}; };

对应的原数据格式为: The corresponding original data format is:

{ {

         Int(4字节) data1, Int (4 bytes) data1,

         Int(4字节) data2, Int (4 bytes) data2,

Int(4字节) data3 Int (4 bytes) data3

}; };

修改方式为: The modification method is:

新data1 = 旧data1 new data1 = old data1

新data2 = 旧data2 new data2 = old data2

则新数据格式为: Then the new data format is:

{ {

         Int(4字节) data1, Int (4 bytes) data1,

         Int(4字节) data2, Int (4 bytes) data2,

}; };

业务1 数据c Business 1 Data c

{0x01,0x00, 0x5e, 0x01, 0x01, 0x01} {0x01, 0x00, 0x5e, 0x01, 0x01, 0x01}

对应的原数据格式为: The corresponding original data format is:

    Char(6字节) data1 Char (6 bytes) data1

修改方式为:拷贝旧data1后4个字节到新data1; The modification method is: copy the last 4 bytes of old data1 to new data1;

则新数据格式为: Then the new data format is:

    Int(4字节) data1 Int (4 bytes) data1

业务1数据d business 1 data d

    0x01020304, 0x01020304,

对应的原数据格式为: The corresponding original data format is:

int(4字节) data1, int (4 bytes) data1,

修改方式为:拷贝旧data1前4个字节到新data1后四个字节; The modification method is: copy the first 4 bytes of the old data1 to the last four bytes of the new data1;

则新数据格式为: Then the new data format is:

Char(6字节) data1 Char (6 bytes) data1

业务1数据e Business 1 data e

{ {

0x01010101, 0x01010101,

0x02020202 0x02020202

}; };

对应的原数据格式为: The corresponding original data format is:

{ {

Int(4字节) data1, Int (4 bytes) data1,

Int(4字节) data2 Int (4 bytes) data2

} }

修改方式为: The modification method is:

新data1 = 旧data2 new data1 = old data2

新data2 = 旧data1 new data2 = old data1

则新数据格式为: Then the new data format is:

{ {

Int(4字节) data1, Int (4 bytes) data1,

Int(4字节) data2 Int (4 bytes) data2

} }

通过上述例子可以看出:在路由器中备份的业务数据和配置的修改方式中,对各业务数据的格式的描述应当以类型、长度来定义字段。 From the above example, it can be seen that in the service data backed up in the router and the modification method of the configuration, the description of the format of each service data should define fields with type and length.

另一方面,修改方式中定义了几种操作,赋值,旧数据前/后n字节拷贝新数据前/后n字节,新旧数据次序的更换等等;路由器应当能识别并按以上示例中方式执行这些操作。 On the other hand, several operations are defined in the modification method, such as assignment, copying the first/last n bytes of the old data to the first/last n bytes of the new data, changing the order of the old and new data, etc.; way to perform these operations.

本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本发明不限制于任何特定形式的硬件和软件的结合。 Those skilled in the art can understand that all or part of the steps in the above method can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, and the like. Optionally, all or part of the steps in the foregoing embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiments may be implemented in the form of hardware, or may be implemented in the form of software function modules. The present invention is not limited to any specific combination of hardware and software.

以上所述仅为本发明的优选实施例而已,并非用于限定本发明的保护范围。根据本发明的发明内容,还可有其他多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员当可根据本发明作出各种相应的改变和变形,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. According to the content of the present invention, there can also be other various embodiments. Those skilled in the art can make various corresponding changes and deformations according to the present invention without departing from the spirit and essence of the present invention. Within the spirit and principles of the present invention, any modifications, equivalent replacements, improvements, etc., shall be included within the protection scope of the present invention.

Claims (8)

1. a router upgrade method, comprising:
In router to be upgraded, configuration pin is to the alter mode needing the business datum of carrying out form renewal before and after upgrading;
In escalation process, described router, after ROMPaq version has loaded and business datum has backed up, is modified to the described business datum of carrying out form renewal that needs according to described alter mode;
When carrying out the backup of described business datum, described router is that the every bar business datum in each business distributes a data identification information;
Described in router to be upgraded configuration pin to the alter mode needing the business datum of carrying out form renewal, specifically comprise:
In described router to be upgraded, configuration needs the corresponding relation of the alter mode that the data identification information of the business datum of carrying out form renewal is corresponding with this business datum;
According to described alter mode, the described business datum of carrying out form renewal that needs is modified, specifically comprises:
Described router, when reading the business datum of business, judges whether to be configured with the corresponding relation of the data identification information of this business datum alter mode corresponding with this business datum; If so, then according to described corresponding relation, this business datum is modified; Otherwise, read next business datum of this business, till all business datums having read this business.
2. the method for claim 1, is characterized in that, described method also comprises:
The boot sequence of each business is configured in described router to be upgraded;
Describedly according to described alter mode, the described business datum of carrying out form renewal that needs to be modified, specifically comprises:
Described router, according to the boot sequence of described each business, reads the business datum of each business successively, and modifies to the described business datum of carrying out form renewal that needs according to described alter mode.
3. method as claimed in claim 2, it is characterized in that, described method also comprises:
When carrying out the backup of described business datum, described router identifies the business belonging to described business datum.
4., as the method in claims 1 to 3 as described in any one, it is characterized in that,
Described alter mode comprises: assignment, old service data front/rear n byte copy in the replacing of new business data front/rear n byte, new and old business datum order any one.
5. a router, comprising:
First device, for the alter mode needing the business datum of carrying out form renewal for upgrading front and back of stored configuration;
Second device, in escalation process, after ROMPaq version has loaded and business datum has backed up, has modified to the described business datum of carrying out form renewal that needs according to the described alter mode stored in described first device;
4th device, for being that every bar business datum in each business distributes a data identification information when carrying out the backup of described business datum;
Described first device for preserve configuration for the alter mode needing the business datum of carrying out form renewal, specifically comprise:
Described first device is for preserving the corresponding relation needing the alter mode that the data identification information of the business datum of carrying out form renewal is corresponding with this business datum of configuration;
Described second device is used for modifying to the described business datum of carrying out form renewal that needs according to described alter mode, specifically comprises:
Described second device is used for when reading the business datum of business, judges whether to preserve in described first device the corresponding relation of the data identification information of this business datum alter mode corresponding with this business datum; If so, then according to described corresponding relation, this business datum is modified; Otherwise, read next business datum of this business, till all business datums having read this business.
6. router as claimed in claim 5, is characterized in that,
Described first device is also for the boot sequence of each business of stored configuration;
Described second device is used for the described described alter mode according to storing in described first device and modifies to the described business datum of carrying out form renewal that needs, and specifically comprises:
Described second device is used for the boot sequence according to described each business, reads the business datum of each business successively, and modifies to the described business datum of carrying out form renewal that needs according to described alter mode.
7. router as claimed in claim 6, is characterized in that, also comprise:
3rd device, for identifying the business belonging to described business datum when carrying out the backup of described business datum.
8., as the router in claim 5 ~ 7 as described in any one, it is characterized in that,
Described alter mode comprises: assignment, old service data front/rear n byte copy in the replacing of new business data front/rear n byte, new and old business datum order any one.
CN201110035021.3A 2011-02-09 2011-02-09 Router upgrading method and router Active CN102082730B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110035021.3A CN102082730B (en) 2011-02-09 2011-02-09 Router upgrading method and router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110035021.3A CN102082730B (en) 2011-02-09 2011-02-09 Router upgrading method and router

Publications (2)

Publication Number Publication Date
CN102082730A CN102082730A (en) 2011-06-01
CN102082730B true CN102082730B (en) 2014-12-31

Family

ID=44088486

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110035021.3A Active CN102082730B (en) 2011-02-09 2011-02-09 Router upgrading method and router

Country Status (1)

Country Link
CN (1) CN102082730B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102420754B (en) * 2011-11-28 2018-06-01 中兴通讯股份有限公司 A kind of method and system of configuration of routers conversion
CN103581008B (en) * 2012-08-07 2017-04-12 杭州华三通信技术有限公司 Router and software upgrading method thereof
CN106855809A (en) * 2013-07-22 2017-06-16 上海联影医疗科技有限公司 A kind of dynamic configuration device of magnetic resonance control system
CN105320528A (en) * 2014-06-30 2016-02-10 广东九联科技股份有限公司 Router with automatic system updating function and method for automatically updating system
CN105760389A (en) * 2014-12-17 2016-07-13 中兴通讯股份有限公司 Equipment upgrading method and transport network equipment
CN104901840A (en) * 2015-07-01 2015-09-09 冯旋宇 Data updating method of router and router
WO2017000284A1 (en) * 2015-07-01 2017-01-05 冯旋宇 Router data update method and router
CN105141463B (en) * 2015-09-21 2018-04-06 上海斐讯数据通信技术有限公司 Router remote update system and method based on server policy
CN108429676A (en) * 2018-05-02 2018-08-21 四川斐讯信息技术有限公司 A kind of the data backup restoration method and data backup system of router
CN114389949B (en) * 2022-01-20 2024-04-12 网宿科技股份有限公司 Router upgrade method, electronic device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1652512A (en) * 2004-02-04 2005-08-10 华为技术有限公司 Device upgrade method
CN1786908A (en) * 2004-12-11 2006-06-14 鸿富锦精密工业(深圳)有限公司 Active software renewing apparatus and method thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6535924B1 (en) * 2001-09-05 2003-03-18 Pluris, Inc. Method and apparatus for performing a software upgrade of a router while the router is online
CN101277222B (en) * 2008-05-07 2010-12-08 中兴通讯股份有限公司 Method for upgrading base station

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1652512A (en) * 2004-02-04 2005-08-10 华为技术有限公司 Device upgrade method
CN1786908A (en) * 2004-12-11 2006-06-14 鸿富锦精密工业(深圳)有限公司 Active software renewing apparatus and method thereof

Also Published As

Publication number Publication date
CN102082730A (en) 2011-06-01

Similar Documents

Publication Publication Date Title
CN102082730B (en) Router upgrading method and router
US9207929B2 (en) Integrated system and firmware update method
JP5346253B2 (en) Firmware update system, information device, and program
JP5113700B2 (en) Firmware update apparatus and method
US10007499B2 (en) Decoupled installation of data management systems
CN103744709B (en) patch loading method and device
US7334157B1 (en) Restore of data to a computer system having different hardware
CN103677884B (en) Flash subarea list file is generated and its data updating method, device
CN100487701C (en) Online updating control method and device of embedded database
CN102436383A (en) Firmware program processing method and equipment
CN109002330A (en) A kind of method, device and equipment identifying UEFI OS startup item
CN108319492A (en) Reset the method, apparatus and system of physical machine
CN104503790B (en) The management method and system of a kind of application version, intelligent terminal
US20160112342A1 (en) Machine providing method, machine providing system and computer-readable recording medium having stored therein machine providing program
CN111949287B (en) Software upgrading method and device
CN104239091A (en) File cleaning method and device and terminal
CN106487941A (en) A kind of method and apparatus of collocating medium access control address
CN102098190A (en) Automatic development test system and method of Web project
US8892499B2 (en) Life cycle management of rule sets
US11176089B2 (en) Systems and methods for implementing dynamic file systems
US10027535B1 (en) Systems and methods for managing device configurations at various levels of abstraction
US20100223442A1 (en) Computer system and data erasing method
CN117439867A (en) A cluster upgrade fault handling method, device, equipment and storage medium
CN113032141B (en) AI platform resource switching method, system and medium
CN107562440A (en) A kind of eeprom method for updating edition and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20170502

Address after: 430223 East Lake Wuhan New Technology Development Zone Hua Hua Road, Optics Valley Industrial Park, ZTE building, building No. 3, building

Patentee after: WUHAN ZHONGXING SOFTWARE CO., LTD.

Address before: 518057 Nanshan District Guangdong high tech Industrial Park, South Road, science and technology, ZTE building, Ministry of Justice

Patentee before: ZTE Corporation