WO2007009289A1 - A method for configuring router device in both online and offline - Google Patents

A method for configuring router device in both online and offline Download PDF

Info

Publication number
WO2007009289A1
WO2007009289A1 PCT/CN2005/001050 CN2005001050W WO2007009289A1 WO 2007009289 A1 WO2007009289 A1 WO 2007009289A1 CN 2005001050 W CN2005001050 W CN 2005001050W WO 2007009289 A1 WO2007009289 A1 WO 2007009289A1
Authority
WO
WIPO (PCT)
Prior art keywords
configuration
data
online
offline
protocol stack
Prior art date
Application number
PCT/CN2005/001050
Other languages
French (fr)
Chinese (zh)
Inventor
Youquan He
Changjiang Yang
Original Assignee
Zte Corporation
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 Corporation filed Critical Zte Corporation
Priority to CNB2005800487628A priority Critical patent/CN100549981C/en
Priority to PCT/CN2005/001050 priority patent/WO2007009289A1/en
Publication of WO2007009289A1 publication Critical patent/WO2007009289A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/60Router architectures

Definitions

  • the present invention relates to the field of telecommunications technology, and in particular, to a method for realizing online and offline hybrid configuration of a device having a routing function by using a real-time memory database. Background technique
  • the device with the routing function is simply referred to as a router, and generally adopts an online configuration mode, that is, directly using the human-machine command.
  • the router is configured and waits for the response from the router to determine whether the setting is successful.
  • the configuration is as shown in the dotted line in Figure 1.
  • the prior art also has an offline configuration mode, as shown in the solid line frame in FIG. 1, which utilizes an in-memory database for caching, so that the protocol stack is acquired in the database when needed, and the way of changing the database is to notify the protocol stack.
  • the specific process is that the interface (client) performs configuration data, and after the client performs the necessary legality check, it is stored in the commercial database, and a large amount of data can be stored in the commercial database.
  • the configuration of the running router needs to be changed, the data in the commercial database is taken out by the adaptation/transfer process and transmitted to the in-memory database of the router, and the in-memory database discovers that the data changes, such as data addition, deletion, modification, etc.
  • the processing process of the protocol stack is notified, and the protocol stack processing process re-acquires the corresponding data from the in-memory database for checking and verifying, and then returns the status field of the table for labeling.
  • the advantage of this method is that it can be separated from the running board during configuration, reducing maintenance costs. Summary of the invention
  • the object of the present invention is to provide a method for performing on-line and off-line hybrid configuration of a routing device, and adopting a new configuration mode, which combines the advantages of the two existing technologies, so that the configuration can be performed on a board that is out of operation.
  • Conditions can also be configured on-site using an online method to further reduce the difficulty of engineering and maintenance personnel and further increase the corresponding speed of processing problems.
  • a method for online and offline hybrid configuration of a routing device which adopts a separate online configuration table and an offline configuration table in a real-time in-memory database to simultaneously support online and offline configuration, and completely and independently save offline configuration data and online configuration.
  • Data further includes:
  • protocol stack obtains data from the real-time in-memory database at power-on, and the rules of online data prioritization or off-line data prioritization are performed in order, and are validated by setting the status bits of the online or offline configuration table.
  • the method further includes the step of: the real-time in-memory database process loading data on the physical medium or the commercial database into the memory, including storing an online configuration table or an offline configuration. In the table, all status bits in the offline configuration table associated with the routing configuration are initialized to an invalid state; f
  • the database interface process obtains the data from the offline configuration table and returns the data to the protocol stack, and the protocol stack is verified by the legality check and written into the data area of the protocol stack to determine whether it conflicts with the online data, and passes The database interface returns the status of the table record and completes the power-on.
  • the method further includes: the online configuration process is -a2), the online configuration process uses the client to directly interact with the protocol stack process, and the protocol stack process receives the message sent by the client, and determines whether Compliance with the rules, whether it conflicts with the configuration in its own data area;
  • the online configuration process directly returns the configuration failure; otherwise, the data is written into the protocol data area, and the interface of the calling database is written to the online memory database.
  • the configuration table it is stored on the physical medium.
  • the method wherein the method further includes an offline configuration change process as
  • the real-time in-memory database after receiving the data sent from the adaptation/transmission process, inserts the data into an offline configuration table of the real-time memory database on the board and responds to the adaptation/transmission process;
  • the protocol stack process processes the message immediately after receiving the message, determines whether it conflicts with the online data, and satisfies the configuration rule. If the set configuration information can take effect, write back the real-time memory database, and put the record into effect. Sign; if it does not work, set the non-validation flag and the reason.
  • the method wherein the data change of the real-time in-memory database adopts a table-level change notification, which is to send a notification message to the protocol stack process after the entire table synchronization is completed, and the protocol stack process receives the notification message. Go to the real-time in-memory database and go to the offline configuration table to read the records in turn, and check whether the configuration can take effect, and then return the record whether the record is valid.
  • the method for performing the online and offline hybrid configuration on the routing device according to the present invention can be configured offline while the online data is configured by the protocol stack, and the two configuration modes do not interfere with each other, so that the rear personnel can be allowed to be opened at the beginning of the deployment. It can be configured at home according to the opening requirements of the administrator to avoid misconfiguration of the on-site staff. It can also be configured on-line by on-site personnel as needed, so that faults can be resolved more quickly and reduced in later maintenance. Traveling to the equipment site reduces maintenance costs.
  • FIG. 1 is a flow chart showing the simultaneous support of the online and offline configuration modes
  • FIG. 2 is a schematic diagram of a power processing process of a protocol stack of the method of the present invention
  • FIG. 3 is a schematic diagram of an online configuration process of the method of the present invention.
  • the method for performing online and offline hybrid configuration of a routing device simultaneously supports an online and offline configuration scheme using a real-time in-memory database, and completely independent of the offline configuration data and the online configuration data by using a separate table, and It is agreed that the protocol stack acquires data from the database at power-on, using online data prioritization or offline data prioritization rules in order. Since the data of the online configuration and the data of the offline configuration are stored in different tables, the configuration data between the two does not interfere with each other in the database, and the method of the present invention cannot modify the offline configured data in an online manner, nor can it be offline.
  • the way to modify online data offline configuration data can only be changed offline, online configuration data can only be modified online.
  • the order of effectiveness between the two configuration data is achieved through the convention of the rules, so that online and offline can exist at the same time.
  • the offline configuration When the online configuration data has been validated, that is, stored in the online table, then the offline configuration will not take effect, but the offline table will have this record, but the status bit is invalid; when this online data is available
  • the protocol stack can obtain offline data from the offline data table to make the data take effect, and reset the state; similarly, a certain data configured offline is valid in the data area of the protocol stack, that is, the corresponding record in the offline data table.
  • the status bit is set to the active state by the protocol stack, then the data will not be configured successfully online, and there will be no such record in the online table. Unless the data is deleted offline first, the data can be configured online.
  • the protocol stack data area in the figure refers to a board with routing function.
  • the internal part of the solid line frame shown in Figure 1 is a schematic diagram of the offline configuration.
  • the client such as IP, MAC (Media Access Control) required to implement the RTP (Real Time Transport Protocol) and SCTP (Stream Control Transmission Protocol) functions.
  • the data is checked by the client, and the data is verified by the client. If the data is legal, it is stored in the commercial database. The configuration does not care whether the program of the board runs. After the data configuration is completed, the data in the commercial database is taken out by the adaptation/transfer process to be synchronized to the in-memory database on the board.
  • the management and maintenance process of the in-memory database writes the configuration to the data area of the protocol stack through the message exchange with the protocol stack process, so that the configuration takes effect.
  • the inside part of the dotted line shown in Figure 1 is a schematic diagram of the online configuration. Since the data of the online configuration needs to be stored on the physical medium, the configured data is written to the online table of the in-memory database after the data area of the protocol stack is valid.
  • the storage mechanism of the in-memory database is used to store on the physical medium. It should be noted that the online data can be directly stored on the physical medium without passing through the database, and the processing is slightly changed, and is known to those skilled in the art, and thus does not affect the design idea of the invention.
  • the protocol stack process on the board and the inter-process process message interaction mainly have the following parts -
  • Figure 2 is a schematic diagram of the power-on processing flow of the protocol stack.
  • the in-memory database management process on the board is powered on earlier than the protocol stack process.
  • the database process loads the data on the physical medium or the commercial database into the memory in some manner, including storing the online configuration table and the offline configuration table. Medium, all offline related to routing configuration
  • the status bits in the table are initialized to an invalid state.
  • the protocol stack process is powered on, the online configuration information is obtained from the database. Since the online data is completely in accordance with the rules, the data is considered to be correct, and after a simple verification, it can be directly placed in the data area of the protocol stack.
  • the database interface process obtains the data from the offline related table and returns it to the protocol stack.
  • the protocol stack is processed, and the legality is verified and written into the data area of the protocol stack, and it is necessary to determine whether it conflicts with the online data. And the status is recorded back to the table through the database interface, and the power is turned on.
  • the database interface is an interface of an in-memory database.
  • the protocol stack process When the protocol stack process receives a peripheral board, it refers to the board in a system other than the router. After registering (powering on or deleting) the notification message, go to the database to query the record status of the offline configuration table corresponding to the board. After the judgment process, the status of the table is recorded, and the routing function of the board is implemented. This part is primarily related to offline configuration and is well known in the art and is not shown in the figure.
  • the online configuration uses the interface (client) to directly interact with the protocol stack process. After receiving the message sent by the interface (client), the protocol stack process determines whether it meets the rules and whether it conflicts with the configuration in its own data area. Or directly return configuration failure in the conflict with the configuration in the data area; otherwise, the data is written into the protocol stack data area, and then the interface of the calling database is written into the online table of the database, and then stored on the physical medium. Due to the principle of online priority, online configuration is basically independent of offline.
  • the in-memory database on the board After receiving the data sent from the adaptation/transmission process, the in-memory database on the board inserts the data into the offline configuration related two-dimensional relation table of the memory database on the board and responds to the adaptation/transmission process.
  • a configuration change message is sent to the protocol stack process, as shown in FIG.
  • Data changes to the database can take the form of two notifications: a table record level change notification and a table level change notification.
  • the so-called table record level notification form is that the table in the in-memory database detects that the record has changed, and immediately sends the changed record to the protocol stack process.
  • the protocol stack process processes the message immediately after receiving the message, and determines whether it is in conflict with the online data. Configure rules. If the protocol stack finds that the configured configuration information can be valid, it writes back the database and puts the record on the valid flag. If it does not take effect, it sets the invalidation flag and the reason.
  • This configuration change mode is called the record-level configuration change mode.
  • the table-level change notification is to send a notification message to the protocol stack after the synchronization of the entire table is completed.
  • the protocol stack After receiving the notification message, the protocol stack goes to the database to read the records in turn, and checks whether the configuration can take effect, and then resets them in turn. A flag that records whether it is in effect.
  • both methods are used.
  • the configuration of the IP uses a record-level configuration to change the message flow, and for the static route, the table-level record is used to change the configuration process.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A method for configuring router device in both online and offline manner adopts setting up two independent configuration tables, one for the online and the other for the offline, in the realtime in-memory database to support both of the online and offline configuration concurrently to use the realtime in-memory database and to store the online and offline configuration data independently. The method contains: defining the protocol-stack data retrieves data from the in-memory database in the order of online-data-first or offline-data-first, and marking one of the two tables valid by setting a status bit on the table.

Description

一种对路由设备进行在线和离线混合配置的方法 技术领域  Method for online and offline hybrid configuration of routing devices
本发明涉及电信技术领域, 具体地说, 是一种利用内存实时数据库来实现对具有路 由功能的设备同时进行在线、 离线混合配置的方法。 背景技术  The present invention relates to the field of telecommunications technology, and in particular, to a method for realizing online and offline hybrid configuration of a device having a routing function by using a real-time memory database. Background technique
在现有技术的对具有路由功能的设备的配置中, 为说明方便, 此后将 "具有路由功 能的设备"简称为路由器, 一般采用一种叫在线的配置方式, 也就是利用人机命令直接 对路由器进行配置, 并等待路由器的应答以判断是否设置成功, 采用如图 1虚线框内流 程的配置方式。  In the configuration of the device with routing function in the prior art, for convenience of description, the device with the routing function is simply referred to as a router, and generally adopts an online configuration mode, that is, directly using the human-machine command. The router is configured and waits for the response from the router to determine whether the setting is successful. The configuration is as shown in the dotted line in Figure 1.
该方式已由思科(Cisco)公司申请了专利, 美国专利号为 US6704752, 此专利的处 理流程是: 用户输入命令, 处理子系统在收到在线配置的命令后, 将命令转换成数据库 表中的记录形式准备插入数据库, 如果数据库不容许操作则直接返回给用户, 否则就进 行验证。 如果验证不通过就报告错误消息, 验证通过就插入到数据库中; 如果其他子系 统需要数据库表配置改变的消息, 数据库也可以提供。  This method has been patented by Cisco. The US patent number is US6704752. The processing flow of this patent is: The user inputs the command, and the processing subsystem converts the command into a database table after receiving the online configuration command. The record form is ready to be inserted into the database. If the database does not allow the operation, it is returned directly to the user, otherwise it is verified. If the error message is reported if the verification fails, the verification is inserted into the database; if other subsystems need the database table configuration change message, the database can also provide.
该技术的优点是操作人员能立即知道设置的命令是否成功。但这种方式存在的缺点 也非常明显, 具体包括:  The advantage of this technology is that the operator can immediately know if the set command is successful. However, the shortcomings of this approach are also very obvious, including:
1)必须在路由器运行的情况下才能进行设置。  1) It must be set when the router is running.
2) ¾准备配置的单板也必须在运行的情况下才能配置。  2) The boards to be configured must also be configured to run.
3)不同的路由器设置一般来说是不同的,特别是开局时的工程人员和后期的维护人 员必须熟悉这些配置方法,增加了这些工程人员和维护人员的难度,因而很难满 足工程开局的需要。  3) Different router settings are generally different. In particular, engineers and post-maintenance personnel at the start of the process must be familiar with these configuration methods, which increases the difficulty of these engineers and maintenance personnel, and thus is difficult to meet the needs of the project start-up. .
另外, 现有技术还有一种离线配置方式, 如图 1中实线框内的流程, 其利用内存数 据库进行缓存,做到协议栈需要时即到数据库中获取,更改数据库即通知协议栈的方式。 具体的过程是界面(客户端)进行配置数据, 在客户端进行必要的合法性检査后存入商 用数据库中, 在商用数据库中可以存入大量的数据。在需要对运行的路由器进行配置更 改时, 通过适配 /传送进程将商用数据库中的数据取出, 传送到路由器的内存数据库中, 内存数据库发现数据发生变化,如数据增加、删除、修改等,就通知协议栈的处理进程, 协议栈处理进程从内存数据库中重新获取对应数据进行检查和校验,然后回置表的状态 字段进行标示。 该种方式的优点是配置时可以脱离运行的单板, 减少维护成本。 发明内容 In addition, the prior art also has an offline configuration mode, as shown in the solid line frame in FIG. 1, which utilizes an in-memory database for caching, so that the protocol stack is acquired in the database when needed, and the way of changing the database is to notify the protocol stack. . The specific process is that the interface (client) performs configuration data, and after the client performs the necessary legality check, it is stored in the commercial database, and a large amount of data can be stored in the commercial database. When the configuration of the running router needs to be changed, the data in the commercial database is taken out by the adaptation/transfer process and transmitted to the in-memory database of the router, and the in-memory database discovers that the data changes, such as data addition, deletion, modification, etc. The processing process of the protocol stack is notified, and the protocol stack processing process re-acquires the corresponding data from the in-memory database for checking and verifying, and then returns the status field of the table for labeling. The advantage of this method is that it can be separated from the running board during configuration, reducing maintenance costs. Summary of the invention
本发明的目的在于提供一种对路由设备进行在线和离线混合配置的方法,采用新的 配置方式, 融合现有技术两种方案的优点, 做到在配置时既可以在脱离运行的单板的条 件也可以在现场利用在线的方式进行配置, 从而进一步减轻工程人员和维护人员的难 度, 进一步增加处理问题的相应速度。  The object of the present invention is to provide a method for performing on-line and off-line hybrid configuration of a routing device, and adopting a new configuration mode, which combines the advantages of the two existing technologies, so that the configuration can be performed on a board that is out of operation. Conditions can also be configured on-site using an online method to further reduce the difficulty of engineering and maintenance personnel and further increase the corresponding speed of processing problems.
本发明的技术方案如下: '  The technical solution of the present invention is as follows: '
一种对路由设备进行在线和离线混合配置的方法,采用在实时内存数据库中设置分 离的在线配置表和离线配置表, 实现同时支持在线、 离线配置, 并完全独立的保存离线 配置数据和在线配置数据; 所述方法还包括:  A method for online and offline hybrid configuration of a routing device, which adopts a separate online configuration table and an offline configuration table in a real-time in-memory database to simultaneously support online and offline configuration, and completely and independently save offline configuration data and online configuration. Data; the method further includes:
约定在上电时协议栈从所述实时内存数据库中获取数据釆用在线数据优先或者离 线数据优先的规则按序进行, 并通过置对应在线或离线配置表的状态位使之有效。  It is agreed that the protocol stack obtains data from the real-time in-memory database at power-on, and the rules of online data prioritization or off-line data prioritization are performed in order, and are validated by setting the status bits of the online or offline configuration table.
所述的方法, 其中, 所述方法还包括上电流程的步骤为- al ) 、 所述实时内存数据库进程将物理介质上或商用数据库上的数据加载到内存, 包括存储在线配置表或离线配置表中,所有与路由配置相关的离线配置表中的状态位都 初始化为无效状态; f The method further includes the step of: the real-time in-memory database process loading data on the physical medium or the commercial database into the memory, including storing an online configuration table or an offline configuration. In the table, all status bits in the offline configuration table associated with the routing configuration are initialized to an invalid state; f
bl ) 、 在协议栈进程上电时先从所述实时内存数据库中获取在线的配置信息, 经过 简单校验后放入协议栈的数据区中;  Bl), when the protocol stack process is powered on, obtain online configuration information from the real-time memory database, and after simple verification, put into the data area of the protocol stack;
cl ) 、 获取离线配置表的信息, 数据库接口进程从离线配置表中获得数据返回给协 议栈, 协议栈经合法性校验后写入协议栈的数据区, 判断是否与在线数据冲突, 并通过 数据库接口回置表记录状态, 完成上电。  Cl), obtaining the information of the offline configuration table, the database interface process obtains the data from the offline configuration table and returns the data to the protocol stack, and the protocol stack is verified by the legality check and written into the data area of the protocol stack to determine whether it conflicts with the online data, and passes The database interface returns the status of the table record and completes the power-on.
所述的方法, 其中, 所述方法还包括在线配置流程为- a2)、在线配置流程利用客户端直接同协议栈进程交互,所述协议栈进程收到客户端 发来的消息后, 判断是否符合规则, 是否与自己数据区中的配置冲突;  The method further includes: the online configuration process is -a2), the online configuration process uses the client to directly interact with the protocol stack process, and the protocol stack process receives the message sent by the client, and determines whether Compliance with the rules, whether it conflicts with the configuration in its own data area;
b2)、如果不符合规则或与自己数据区中的配置冲突所述在线配置流程就直接返回配 置失败; 否则将数据写入协议桟数据区, 调用数据库的接口写入所述实时内存数据库的 在线配置表中, 进而存入物理介质上。  B2) If the rules are not met or conflict with the configuration in the data area, the online configuration process directly returns the configuration failure; otherwise, the data is written into the protocol data area, and the interface of the calling database is written to the online memory database. In the configuration table, it is stored on the physical medium.
所述的方法, 其中, 所述方法还包括离线配置更改流程为  The method, wherein the method further includes an offline configuration change process as
a3)、 所述实时内存数据库在收到从适配 /传送进程发来的数据后, 将数据插入单板 上的实时内存数据库的离线配置表中并应答适配 /传送进程;  A3), after receiving the data sent from the adaptation/transmission process, the real-time in-memory database inserts the data into an offline configuration table of the real-time memory database on the board and responds to the adaptation/transmission process;
b3)、当发现所述离线配置表中的数据发生改变时,就发配置更改消息到协议栈进程。 所述的方法, 其中, 所述实时内存数据库的数据通过表记录级更改通知进行更改, 其包括以下步骤: B3), when it is found that the data in the offline configuration table changes, a configuration change message is sent to the protocol stack process. The method, wherein the data of the real-time in-memory database is changed by a table record level change notification, which includes the following steps:
c31 )、在内存数据库中的表检测到记录发生改变, 就立即将改变后的记录发给所述 协议栈进程;  C31), when the table in the in-memory database detects that the record has changed, immediately sends the changed record to the protocol stack process;
d31 )、所述协议栈进程收到消息后立即处理, 判断是否与在线数据冲突, 是否满足 配置规则, 如果所设置的配置信息可以生效就回写所述实时内存数据库, 将该记录置上 生效标志; 如果不能生效就置上不生效标志及原因。  D31), the protocol stack process processes the message immediately after receiving the message, determines whether it conflicts with the online data, and satisfies the configuration rule. If the set configuration information can take effect, write back the real-time memory database, and put the record into effect. Sign; if it does not work, set the non-validation flag and the reason.
所述的方法, 其中, 所述实时内存数据库的数据更改采用表级更改通知, 其是在整 张表同步完成后发通知消息给所述协议栈进程,所述协议栈进程收到通知消息后到所述 实时内存数据库中依次到离线配置表中读取记录, 并检査配置是否可以生效, 依次回置 记录是否生效的标志。  The method, wherein the data change of the real-time in-memory database adopts a table-level change notification, which is to send a notification message to the protocol stack process after the entire table synchronization is completed, and the protocol stack process receives the notification message. Go to the real-time in-memory database and go to the offline configuration table to read the records in turn, and check whether the configuration can take effect, and then return the record whether the record is valid.
本发明所述对路由设备进行在线和离线混合配置的方法, 由于采用协议栈在配置在 线数据的同时也可以进行离线配置, 两种配置方式互不干扰, 做到在开局时既可以让后 方人员可以根据局方的开局要求在家中完成配置, 避免现场开局人员的配置错误; 也可 以让现场人员根据需要利用在线方式进行配置, 从而可更快速的解决出现的故障, 同时 在后期维护中能够减少到设备现场的出差人员, 减少了维护成本。 附图说明  The method for performing the online and offline hybrid configuration on the routing device according to the present invention can be configured offline while the online data is configured by the protocol stack, and the two configuration modes do not interfere with each other, so that the rear personnel can be allowed to be opened at the beginning of the deployment. It can be configured at home according to the opening requirements of the administrator to avoid misconfiguration of the on-site staff. It can also be configured on-line by on-site personnel as needed, so that faults can be resolved more quickly and reduced in later maintenance. Traveling to the equipment site reduces maintenance costs. DRAWINGS
下面结合附图将通过具体实施例更具体的描述本发明方法的具体原理与应用,其中- 图 1示出的是同时支持在线、 离线配置方式的流程图;  The specific principles and applications of the method of the present invention will be described in more detail below with reference to the accompanying drawings, wherein - FIG. 1 is a flow chart showing the simultaneous support of the online and offline configuration modes;
图 2是本发明方法的协议栈上电处理流程示意图;  2 is a schematic diagram of a power processing process of a protocol stack of the method of the present invention;
图 3是本发明方法的在线配置流程示意图;  3 is a schematic diagram of an online configuration process of the method of the present invention;
图 4是本发明方法的离线配置流程示意图;  4 is a schematic diagram of an offline configuration process of the method of the present invention;
所示本发明方法的各流程图中采用的是在线数据优先的原则。 具体实施方式  The principles of online data prioritization are employed in the various flow charts of the method of the invention shown. detailed description
通过以下参考附图的详细描述将对本发明有更全面的理解, 本发明的益处将更明显。 本发明所述的对路由设备进行在线和离线混合配置的方法, 同时支持在线、离线配置 方案利用实时内存数据库, 通过将离线配置数据和在线配置数据通过分离表的形式做到 完全的独立, 并且约定在上电时协议栈从数据库获取数据釆用在线数据优先或者离线数 据优先的规则按序进行的方式。 由于在线配置的数据和离线配置的数据存储在不同的表中,因而两者之间的配置数据 在数据库中互不干扰, 本发明方法不能通过在线的方式修改离线配置的数据, 也不能通 过离线的方式修改在线的数据, 离线配置的数据只能通过离线方式更改, 在线配置的数 据只能通过在线方式修改。 通过规则的约定实现两种配置数据间的生效次序, 使得在线 和离线可以同时存在。 The benefits of the present invention will be more apparent from the following detailed description of the invention. The method for performing online and offline hybrid configuration of a routing device according to the present invention simultaneously supports an online and offline configuration scheme using a real-time in-memory database, and completely independent of the offline configuration data and the online configuration data by using a separate table, and It is agreed that the protocol stack acquires data from the database at power-on, using online data prioritization or offline data prioritization rules in order. Since the data of the online configuration and the data of the offline configuration are stored in different tables, the configuration data between the two does not interfere with each other in the database, and the method of the present invention cannot modify the offline configured data in an online manner, nor can it be offline. The way to modify online data, offline configuration data can only be changed offline, online configuration data can only be modified online. The order of effectiveness between the two configuration data is achieved through the convention of the rules, so that online and offline can exist at the same time.
当在线方式配置的数据已经生效,也就是存储到在线表中,那么再通过离线配置此数 据就不会生效, 但离线表中会有此记录, 只是状态位是无效状态; 当将此在线数据删除 后, 协议栈可以从离线数据表中获取离线数据从而使此数据生效, 并回置状态; 同理离 线配置的某一数据已经在协议栈数据区中生效, 也就是离线数据表中对应记录的状态位 被协议栈置上有效状态, 那么在线就不会配置成功此数据, 在线表中就不会有此记录, 除非先离线删除此数据, 那么通过在线的方式才可以配置此数据。  When the online configuration data has been validated, that is, stored in the online table, then the offline configuration will not take effect, but the offline table will have this record, but the status bit is invalid; when this online data is available After the deletion, the protocol stack can obtain offline data from the offline data table to make the data take effect, and reset the state; similarly, a certain data configured offline is valid in the data area of the protocol stack, that is, the corresponding record in the offline data table. The status bit is set to the active state by the protocol stack, then the data will not be configured successfully online, and there will be no such record in the online table. Unless the data is deleted offline first, the data can be configured online.
如图 1〜图 4所示是中兴通讯公司采用的离线、 在线配置的一个应用例子流程图, 用以说明本发明的具体应用过程, 图中的协议栈数据区是指具有路由功能的单板上的协 议栈进程的数据区。  As shown in FIG. 1 to FIG. 4, a flow chart of an application example of offline and online configuration adopted by ZTE Corporation is used to illustrate the specific application process of the present invention. The protocol stack data area in the figure refers to a board with routing function. The data area of the protocol stack process.
如图 1所示的实线框内部分是离线配置的流程示意图。 首先根据在界面即客户端上 进行配置,比如实现 RTP (Real- time Transport Protocol,实时传输协议)、 SCTP (Stream Control Transmission Protocol, 流控制传输协议)功能所需要配置的 IP、 MAC (Media Access Control, 媒体接入控制)和静态路由等数据, 客户端对数据的合法性进行校验, 如果合法则存入商用数据库中, 在配置中不关心单板的程序是否运行。 当数据配置完成 后, 利用适配 /传送进程将商用数据库中的数据取出来同步到单板上的内存数据库中。 内存数据库的管理维护进程通过与协议栈进程的消息交换, 将配置写入协议栈数据区, 使配置生效。如图 1所示的虚线框内部分是在线配置的流程示意图, 由于在线配置的数 据需要存储到物理介质上,所以在配置的数据在协议栈的数据区生效后要写入内存数据 库的在线表中, 利用内存数据库的存储机制存储到物理介质上。 需要说明的是, 在线数 据可以不通过数据库而直接存储到物理介质上, 在处理上稍加变化, 且为本领域技术人 员所了解, 因此不影响该发明的设计思路。  The internal part of the solid line frame shown in Figure 1 is a schematic diagram of the offline configuration. First, it is configured according to the interface, that is, the client, such as IP, MAC (Media Access Control) required to implement the RTP (Real Time Transport Protocol) and SCTP (Stream Control Transmission Protocol) functions. The data is checked by the client, and the data is verified by the client. If the data is legal, it is stored in the commercial database. The configuration does not care whether the program of the board runs. After the data configuration is completed, the data in the commercial database is taken out by the adaptation/transfer process to be synchronized to the in-memory database on the board. The management and maintenance process of the in-memory database writes the configuration to the data area of the protocol stack through the message exchange with the protocol stack process, so that the configuration takes effect. The inside part of the dotted line shown in Figure 1 is a schematic diagram of the online configuration. Since the data of the online configuration needs to be stored on the physical medium, the configured data is written to the online table of the in-memory database after the data area of the protocol stack is valid. The storage mechanism of the in-memory database is used to store on the physical medium. It should be noted that the online data can be directly stored on the physical medium without passing through the database, and the processing is slightly changed, and is known to those skilled in the art, and thus does not affect the design idea of the invention.
所述单板上的协议栈进程与数据库进程间消息交互主要有以下几个部分- The protocol stack process on the board and the inter-process process message interaction mainly have the following parts -
1、 上电流程。 1. Power-on process.
如图 2所示是协议栈上电处理流程示意图。 一般来说单板上的内存数据库管理进程 要比协议栈进程先上电,数据库进程将物理介质上或商用数据库上的数据通过某种方式 加载到内存, 包括存储在线配置的表以及离线配置表中, 此时所有与路由配置相关离线 表中的状态位都初始化为无效状态。在协议栈进程上电时先从数据库获取在线的配置信 息, 由于在线的数据是完全符合规则的, 所以认为数据是正确的, 经过简单的校验后就 可以直接放入协议栈的数据区中; 然后获取离线配置表的信息, 数据库接口进程从离线 相关表中获得数据返回给协议栈, 协议栈经处理, 合法性校验后写入协议栈的数据区, 需要判断是否与在线数据冲突, 并通过数据库接口回置表记录状态, 完成上电。所述数 据库接口为内存数据库的接口。 Figure 2 is a schematic diagram of the power-on processing flow of the protocol stack. Generally, the in-memory database management process on the board is powered on earlier than the protocol stack process. The database process loads the data on the physical medium or the commercial database into the memory in some manner, including storing the online configuration table and the offline configuration table. Medium, all offline related to routing configuration The status bits in the table are initialized to an invalid state. When the protocol stack process is powered on, the online configuration information is obtained from the database. Since the online data is completely in accordance with the rules, the data is considered to be correct, and after a simple verification, it can be directly placed in the data area of the protocol stack. Then, the information of the offline configuration table is obtained, and the database interface process obtains the data from the offline related table and returns it to the protocol stack. The protocol stack is processed, and the legality is verified and written into the data area of the protocol stack, and it is necessary to determine whether it conflicts with the online data. And the status is recorded back to the table through the database interface, and the power is turned on. The database interface is an interface of an in-memory database.
当协议栈进程收到有外围单板, 指在一个系统中除路由器以外的单板, 注册(上电 或删除)通知消息后, 到数据库中査询单板对应的离线配置表的记录状态, 经过判断处 理后回置表记录状态, 实现单板的路由功能。这一部分主要是与离线配置相关, 为现有 技术所公知, 在图中没有表示。  When the protocol stack process receives a peripheral board, it refers to the board in a system other than the router. After registering (powering on or deleting) the notification message, go to the database to query the record status of the offline configuration table corresponding to the board. After the judgment process, the status of the table is recorded, and the routing function of the board is implemented. This part is primarily related to offline configuration and is well known in the art and is not shown in the figure.
2、 在线配置流程  2, online configuration process
在线配置利用界面 (客户端)直接同协议栈进程交互, 协议栈进程收到界面 (客户 端)发来的消息后, 判断是否符合规则, 是否与自己数据区中的配置冲突, 如果不符合 规则或与自己数据区中的配置冲突就直接返回配置失败; 否则将数据写入协议栈数据 区, 然后调用数据库的接口写入数据库的在线表中, 进而存入物理介质上。 由于采用在 线优先的原则, 在线配置时基本上与离线无关。  The online configuration uses the interface (client) to directly interact with the protocol stack process. After receiving the message sent by the interface (client), the protocol stack process determines whether it meets the rules and whether it conflicts with the configuration in its own data area. Or directly return configuration failure in the conflict with the configuration in the data area; otherwise, the data is written into the protocol stack data area, and then the interface of the calling database is written into the online table of the database, and then stored on the physical medium. Due to the principle of online priority, online configuration is basically independent of offline.
3、 离线配置更改流程。  3. Offline configuration change process.
单板上的内存数据库在收到从适配 /传送进程发来的数据后,将数据插入单板上的内 存数据库的离线配置相关的二维关系表中并应答适配 /传送进程。 当发现二维关系表中 的数据发生改变就发配置更改消息到协议栈进程, 参见图 4所示。  After receiving the data sent from the adaptation/transmission process, the in-memory database on the board inserts the data into the offline configuration related two-dimensional relation table of the memory database on the board and responds to the adaptation/transmission process. When the data in the two-dimensional relation table is found to change, a configuration change message is sent to the protocol stack process, as shown in FIG.
数据库的数据更改可以采用两种通知形式: 即表记录级更改通知和表级更改通知。 所谓表记录级通知形式就是内存数据库中的表检测到记录发生改变,就立即将改变后的 记录发给协议栈进程, 协议栈进程收到消息后立即处理, 判断是否与在线数据冲突, 是 否满足配置规则。如果协议栈发现所设置的配置信息可以生效就回写数据库, 将该记录 置上生效标志; 如果不能生效就置上不生效标志和原因; 该配置更改方式称为记录级配 置更改方式。而表级更改通知则是整张表同步完成后发通知消息给协议栈, 协议栈收到 通知消息后到数据库中依次到表中读取记录, 并检査配置是否可以生效, 然后依次回置 记录是否生效的标志。 在实际中两种方式都釆用了, 比如对 IP的配置采用记录级配置 更改消息流程, 对静态路由则采用表级记录更改配置流程。  Data changes to the database can take the form of two notifications: a table record level change notification and a table level change notification. The so-called table record level notification form is that the table in the in-memory database detects that the record has changed, and immediately sends the changed record to the protocol stack process. The protocol stack process processes the message immediately after receiving the message, and determines whether it is in conflict with the online data. Configure rules. If the protocol stack finds that the configured configuration information can be valid, it writes back the database and puts the record on the valid flag. If it does not take effect, it sets the invalidation flag and the reason. This configuration change mode is called the record-level configuration change mode. The table-level change notification is to send a notification message to the protocol stack after the synchronization of the entire table is completed. After receiving the notification message, the protocol stack goes to the database to read the records in turn, and checks whether the configuration can take effect, and then resets them in turn. A flag that records whether it is in effect. In practice, both methods are used. For example, the configuration of the IP uses a record-level configuration to change the message flow, and for the static route, the table-level record is used to change the configuration process.
尽管已经说明和描述了本发明的优选实施例, 本领域的一般技术人员应该理解可以 在不超出本发明范围的情况下, 实施各种改变、 变型和部件的同体替换。 因此本发明不 受限于所公开的实现本发明的具体实施例,本发明包括落在所附权利要求之内的所有实 施例。 While the preferred embodiment of the present invention has been shown and described, it will be understood that the various modifications, variations and variations of the components may be practiced without departing from the scope of the invention. Therefore the invention does not The invention is intended to be limited to the specific embodiments of the invention disclosed herein.

Claims

权利要求 Rights request
1、 一种对路由设备进行在线和离线混合配置的方法, 采用在一实时内存数据库 中设置分离的在线配置表和离线配置表, 实现同时支持在线、离线配置和利用所述实时 内存数据库, 并完全独立的保存离线配置数据和在线配置数据; 所述方法还包括- 约定在上电时协议栈从所述实时内存数据库中获取数据采用在线数据优先或者离 线数据优先的规则按序进行, 并通过置对应在线或离线配置表的状态位使之有效。 A method for performing online and offline hybrid configuration on a routing device, which uses a separate online configuration table and an offline configuration table in a real-time in-memory database to simultaneously support online and offline configuration and utilize the real-time in-memory database, and The offline configuration data and the online configuration data are completely and independently saved; the method further includes: agreeing that, when the power is on, the protocol stack obtains data from the real-time in-memory database, and adopts an online data priority or an offline data priority rule in sequence, and passes Set the status bit corresponding to the online or offline configuration table to make it valid.
2、 根据权利要求 1所述的方法, 其特征在于, 所述方法还包括上电流程的步骤 为:  2. The method according to claim 1, wherein the method further comprises the step of powering up:
al ) 、 所述实时内存数据库进程将物理介质上或商用数据库上的数据加载到内存, 包括存储在线配置表或离线配置表中,所有与路由配置相关的离线配置表中的状态位都 初始化为无效状态;  Al), the real-time in-memory database process loads data on a physical medium or a commercial database into the memory, including storing an online configuration table or an offline configuration table, and all status bits in the offline configuration table related to the routing configuration are initialized to Invalid state
bl ) 、 在协议栈进程上电时先从所述实时内存数据库中获取在线的配置信息, 经过 简单校验后放入协议栈的数据区中;  Bl), when the protocol stack process is powered on, obtain online configuration information from the real-time memory database, and after simple verification, put into the data area of the protocol stack;
cl ) 、 获取离线配置表的信息, 数据库接口进程从离线配置表中获得数据返回给协 议栈, 协议栈经合法性校验后写入协议栈的数据区, 判断是否与在线数据冲突, 并通过 数据库接口回置表记录状态, 完成上电。  Cl), obtaining the information of the offline configuration table, the database interface process obtains the data from the offline configuration table and returns the data to the protocol stack, and the protocol stack is verified by the legality check and written into the data area of the protocol stack to determine whether it conflicts with the online data, and passes The database interface returns the status of the table record and completes the power-on.
3、 根据权利要求 1所述的方法,其特征在于,所述方法还包括在线配置流程为: a2)、在线配置流程利用客户端直接同协议栈进程交互,所述协议栈进程收到客户端 发来的消息后, 判断是否符合规则, 是否与自己数据区中的配置冲突;  The method according to claim 1, wherein the method further comprises: the online configuration process is: a2), the online configuration process uses the client to directly interact with the protocol stack process, and the protocol stack process receives the client. After the sent message, it is judged whether it conforms to the rule, whether it conflicts with the configuration in its own data area;
b2)、如果不符合规则或与自己数据区中的配置冲突所述在线配置流程就直接返回配 置失败; 否则将数据写入协议栈数据区, 调用数据库的接口写入所述实时内存数据库的 在线配置表中, 进而存入物理介质上。  B2) If the rules are not met or conflict with the configuration in the data area, the online configuration process directly returns the configuration failure; otherwise, the data is written into the protocol stack data area, and the interface of the calling database is written to the online real-time memory database. In the configuration table, it is stored on the physical medium.
4、 根据权利要求 1所述的方法, 其特征在于, 所述方法还包括离线配置更改流 程为  4. The method according to claim 1, wherein the method further comprises an offline configuration change process as
a3)、 所述实时内存数据库在收到从适配 /传送进程发来的数据后, 将数据插入单板 上的实时内存数据库的离线配置表中并应答适配 /传送进程;  A3), after receiving the data sent from the adaptation/transmission process, the real-time in-memory database inserts the data into an offline configuration table of the real-time memory database on the board and responds to the adaptation/transmission process;
b3)、当发现所述离线配置表中的数据发生改变时,就发配置更改消息到协议栈进程。 B3), when it is found that the data in the offline configuration table changes, a configuration change message is sent to the protocol stack process.
5、 根据权利要求 4所述的方法, 其特征在于, 所述实时内存数据库的数据通过 表记录级更改通知进行更改, 其包括以下步骤- c31 )、在内存数据库中的表检测到记录发生改变, 就立即将改变后的记录发给所述 协议栈进程; 5. The method according to claim 4, wherein the data of the real-time in-memory database is changed by a table record-level change notification, which includes the following steps - c31), and the table in the in-memory database detects that the record has changed. Immediately send the changed record to the stated Protocol stack process;
d31)、所述协议栈进程收到消息后立即处理, 判断是否与在线数据冲突, 是否满足 配置规则, 如果所设置的配置信息可以生效就回写所述实时内存数据库, 将该记录置上 生效标志; 如果不能生效就置上不生效标志及原因。  D31), the protocol stack process processes the message immediately after receiving the message, determines whether it conflicts with the online data, and satisfies the configuration rule. If the set configuration information can take effect, write back the real-time memory database, and put the record into effect. Sign; if it does not work, set the non-validation flag and the reason.
6、 根据权利要求 4所述的方法, 其特征在于, 所述实时内存数据库的数据更改采 用表级更改通知, 其是在整张表同步完成后发通知消息给所述协议栈进程, 所述协议栈 进程收到通知消息后到所述实时内存数据库中依次到离线配置表中读取记录,并检査配 置是否可以生效, 依次回置记录是否生效的标志。  The method according to claim 4, wherein the data change of the real-time in-memory database adopts a table-level change notification, which is to send a notification message to the protocol stack process after the entire table synchronization is completed, After receiving the notification message, the protocol stack process goes to the offline real-time memory database to sequentially read the record in the offline configuration table, and checks whether the configuration can take effect, and sequentially returns whether the record is valid or not.
δ δ
PCT/CN2005/001050 2005-07-15 2005-07-15 A method for configuring router device in both online and offline WO2007009289A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CNB2005800487628A CN100549981C (en) 2005-07-15 2005-07-15 A kind of route equipment is carried out the online and method off-line mixed configuration
PCT/CN2005/001050 WO2007009289A1 (en) 2005-07-15 2005-07-15 A method for configuring router device in both online and offline

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2005/001050 WO2007009289A1 (en) 2005-07-15 2005-07-15 A method for configuring router device in both online and offline

Publications (1)

Publication Number Publication Date
WO2007009289A1 true WO2007009289A1 (en) 2007-01-25

Family

ID=37668422

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2005/001050 WO2007009289A1 (en) 2005-07-15 2005-07-15 A method for configuring router device in both online and offline

Country Status (2)

Country Link
CN (1) CN100549981C (en)
WO (1) WO2007009289A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3640809A4 (en) * 2017-06-12 2021-03-24 Audio-Technica Corporation Signal processing apparatus

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102056331B (en) * 2009-11-04 2015-08-12 中兴通讯股份有限公司 A kind of support terminal is in the method for LTE-HRPD system interoperation and terminal
CN105653253B (en) * 2014-12-02 2020-04-24 中兴通讯股份有限公司 Centralized configuration method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1336770A (en) * 2000-09-15 2002-02-20 深圳市中兴通讯股份有限公司 Operation and maintenance of router and storage and explanation of configuration command
WO2004001620A1 (en) * 2002-06-21 2003-12-31 International Business Machines Corporation Method and structure for autoconfiguration of overlay networks by automatic selection of a network designated router
CN1635752A (en) * 2003-12-29 2005-07-06 华为技术有限公司 A method of multiple multicast protocol communication realized on interface of network routing device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1336770A (en) * 2000-09-15 2002-02-20 深圳市中兴通讯股份有限公司 Operation and maintenance of router and storage and explanation of configuration command
WO2004001620A1 (en) * 2002-06-21 2003-12-31 International Business Machines Corporation Method and structure for autoconfiguration of overlay networks by automatic selection of a network designated router
CN1635752A (en) * 2003-12-29 2005-07-06 华为技术有限公司 A method of multiple multicast protocol communication realized on interface of network routing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3640809A4 (en) * 2017-06-12 2021-03-24 Audio-Technica Corporation Signal processing apparatus

Also Published As

Publication number Publication date
CN100549981C (en) 2009-10-14
CN101133399A (en) 2008-02-27

Similar Documents

Publication Publication Date Title
US8156207B2 (en) Method and apparatus for remotely configuring network devices
JP2004199420A (en) Computer system, magnetic disk device, and method for controlling disk cache
US8676760B2 (en) Maintaining data integrity in data servers across data centers
JP4410190B2 (en) PCI-Express communication system
US7673106B2 (en) Computer system, management method and storage network system
TWI237171B (en) Tree based memory structure
WO2007101375A1 (en) Virtual network storage system, network storage device and virtual method
WO2018137327A1 (en) Data transmission method for host and standby devices, control node, and database system
JP2005267327A (en) Storage system
JP2004213125A (en) High-availability disk controller and failure processing method therefor, and high-availability disk subsystem
US11070979B2 (en) Constructing a scalable storage device, and scaled storage device
JP2007164394A (en) Storage changeover system, storage changeover method, management server, management method and management program
JPH0916492A (en) Computer system, peripheral equipment characteristic supply method and computer usable medium
CN101483540A (en) Master-slave switching method in high class data communication equipment
CN113783765B (en) Method, system, equipment and medium for realizing intercommunication between cloud internal network and cloud external network
JP4653965B2 (en) I / O interface module management method
US6785840B1 (en) Call processor system and methods
WO2016078362A1 (en) Method and device for upgrade board by board in dual master control isolation
JP2007065751A (en) Storage system and storage control method
WO2020232859A1 (en) Distributed storage system, data writing method, device, and storage medium
CN101196823B (en) Method, system and equipment for on-line software upgrade in open application structure
WO2007009289A1 (en) A method for configuring router device in both online and offline
US6356985B1 (en) Computer in multi-cluster system
CN102571603A (en) Ethernet port controlling apparatus and method thereof
CN103004157A (en) Interface register method and device for network device to join cluster system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 200580048762.8

Country of ref document: CN

NENP Non-entry into the national phase

Ref country code: DE

WWW Wipo information: withdrawn in national office

Country of ref document: DE

122 Ep: pct application non-entry in european phase

Ref document number: 05766964

Country of ref document: EP

Kind code of ref document: A1