WO2013023464A1 - 配置处理方法、装置及系统 - Google Patents

配置处理方法、装置及系统 Download PDF

Info

Publication number
WO2013023464A1
WO2013023464A1 PCT/CN2012/075136 CN2012075136W WO2013023464A1 WO 2013023464 A1 WO2013023464 A1 WO 2013023464A1 CN 2012075136 W CN2012075136 W CN 2012075136W WO 2013023464 A1 WO2013023464 A1 WO 2013023464A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
rollback
configuration
configuration data
service
Prior art date
Application number
PCT/CN2012/075136
Other languages
English (en)
French (fr)
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 WO2013023464A1 publication Critical patent/WO2013023464A1/zh

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/085Retrieval of network configuration; Tracking network configuration history
    • H04L41/0859Retrieval of network configuration; Tracking network configuration history by keeping history of different configuration generations or by rolling back to previous configuration versions
    • H04L41/0863Retrieval of network configuration; Tracking network configuration history by keeping history of different configuration generations or by rolling back to previous configuration versions by rolling back to previous configuration versions

Definitions

  • FIG. 1 is a schematic structural diagram of an embedded system according to the related art.
  • an embedded system is generally divided into three layers, and is generally composed of a network management system, a main control board, and a service board.
  • 201010220282.8 which can receive and analyze the network management data through the main control board, and then configure the parsed data on the main control board to generate the service board configuration response information.
  • the main control board saves the registration information. If the service board is configured with a response message, the system will respond to the NMS and save the NMS data. If the service board fails to respond, the service board data is restored and the NMS is answered. In this method, when an error occurs, the service that has been successfully configured in this configuration is cleared and restored to the initial state.
  • multi-tasking processing is gradually used in embedded systems. For each service module or task, an independent transaction mechanism is required. Because there are different services, different services correspond to different services. Business boards, that is, each task runs independently.
  • a configuration processing method includes the following steps: sending configuration data corresponding to a service type; determining that the configuration data is failed; acquiring rollback data corresponding to the configuration data, and sending The rollback data, wherein the configuration data and the rollback data of each service type are stored in a memory corresponding to the service type one-to-one.
  • the saving of the configuration data and the rollback data in the memory corresponding to the service type comprises: respectively opening a storage area for the configuration data and the rollback data in the memory And storing the configuration data and the rollback data in corresponding storage areas.
  • the saving of the configuration data and the rollback data in the memory corresponding to the service type comprises: storing the configuration data and the rollback data in the memory, and setting Distinguishing the identification data of the configuration data and the rollback data.
  • the configuration data and the rollback data are stored in the memory corresponding to the service type one by one: when the configuration data and the rollback data are stored, the configuration data and the The rollback data corresponding to the configuration data is stored adjacent to each other, and the storage order of the configuration data is set to be stored in the order of the configured flow.
  • a configuration processing apparatus includes: a first sending module, configured to send configuration data corresponding to a service type; and a determining module, configured to determine that the sending of the configuration data fails; a second sending module, configured to acquire the rollback data corresponding to the configuration data, and send the rollback data, where configuration data and rollback data of each service type are saved in the service type Corresponding memory.
  • the method further includes: a setting module configured to set identification information for distinguishing the configuration data and the rollback data from the configuration data and the rollback data stored in the memory.
  • the setting module is further configured to: when storing the configuration data and the rollback data, set the configuration data and the rollback data corresponding to the configuration data to be adjacently stored, and The order in which the configuration data is stored is set to be stored in the order of the configured processes.
  • a configuration processing system includes a communication module, at least one service module, and a memory corresponding to the at least one service module, wherein the service module is set to Configuring and delivering the service data of the service module, where the service data includes configuration data and rollback data; the communication module is configured to perform communication between the service module and the memory; Set to store the business data.
  • the configuration data and the rollback data stored in the memory are provided with identification information for distinguishing the configuration data and the rollback data.
  • the configuration data and the rollback data corresponding to the configuration data are stored adjacent to each other, and the storage order of the configuration data is set to be The configured process is stored in order.
  • the configuration data and the rollback data of each service type are stored in a memory corresponding to the service type, wherein different service types correspond to different service modules, that is, corresponding
  • the service of the same service board solves the problem that the rollback technology in the prior art is not applicable to the system of the multi-service type, and ensures that the data configuration processes of the service types do not affect each other, and the configuration of the network management system and each service board is ensured.
  • the data is consistent.
  • FIG. 1 is a schematic structural diagram of an embedded system according to the related art
  • FIG. 2 is a flowchart of a configuration processing method according to an embodiment of the present invention
  • FIG. 3 is a configuration of a configuration processing apparatus according to an embodiment of the present invention
  • 4 is a structural block diagram of a configuration processing system according to an embodiment of the present invention
  • FIG. 5 is a structural block diagram of a configuration processing system according to a preferred embodiment of the present invention
  • FIG. 6 is a schematic diagram of a memory data structure according to a preferred embodiment of the present invention.
  • Ethernet Ethernet (Ethernet, hereinafter referred to as ETH) service, Asynchronous Transfer Mode (ATM) service block, and Operation Administration and Maintenance (OAM).
  • ETH Ethernet
  • ATM Asynchronous Transfer Mode
  • OAM Operation Administration and Maintenance
  • the service type corresponds to a different service board, and the main control module needs to send the configuration data of the service type to the corresponding service board.
  • 2 is a flowchart of a configuration processing method according to an embodiment of the present invention. As shown in FIG. 2, the process of the method includes the following steps: Step S202: Send configuration data corresponding to a service type. In step S204, it is determined that the sending of the configuration data fails.
  • step S206 the rollback data corresponding to the configuration data is obtained, and the rollback data is sent, where the configuration data and the rollback data of each service type are saved in one-to-one correspondence with the service type.
  • each service type (required that different service types can correspond to different service modules, that is, services corresponding to different service boards), and configuration data (also referred to as delivered data) and back
  • the roll data is stored in a memory corresponding to the service type, so that in the case that the configuration data fails to be sent, the rollback data corresponding to the configuration data of the service type can be obtained, and the rollback data is sent, and
  • the transmission of other service configurations is affected, so that the tasks (or services) are not affected by each other, and the consistency of the network management configuration and the corresponding service board data is further ensured, and the user experience is improved.
  • the storage area can be separately opened for the configuration data and the rollback data in the memory, and the configuration data and the rollback are performed.
  • the data is stored in the corresponding storage area.
  • the configuration data and the rollback data may be stored in the memory, and configured to distinguish the configuration data from the back.
  • the identification information of the data is rolled, and the identification information is stored corresponding to the corresponding data, so that different types of data can be processed correspondingly.
  • the configuration data and the rollback data are stored, the configuration data and the rollback data corresponding to the configuration data are stored adjacent to each other, and the storage order of the configuration data is set to be stored in the flow sequence according to the configuration. This way, the configuration data and the rollback data stored in order can make the execution of the rollback operation more convenient.
  • a configuration processing device, and a configuration processing system are provided, and the device and the system are used to implement the foregoing embodiments and preferred embodiments thereof. The device and the various modules involved in the system will be described below.
  • FIG. 3 is a structural block diagram of a configuration processing apparatus according to an embodiment of the present invention. As shown in FIG. 3, the structure includes a first sending module 30, a determining module 32, and a second sending module 34. The various modules of the device and their functions are described below.
  • the first sending module 30 is configured to send configuration data corresponding to the service type; the determining module 32 is connected to the first sending module 30, and the module is configured to determine that the sending of the configuration data fails; the second sending module 34 is connected to the determining module 32, where The module is configured to obtain the rollback data corresponding to the configuration data, and send the rollback data, where the configuration data and the rollback data of each service type are stored in a memory corresponding to the service type.
  • the configuration processing apparatus may further include a setting module configured to set identification information for distinguishing the configuration data and the rollback data from the configuration data and the rollback data stored in the memory.
  • the setting module is further configured to set the configuration data and the rollback data corresponding to the configuration data to be adjacently stored when storing the configuration data and the rollback data, and set the storage order of the configuration data to be configured according to the configuration.
  • the order of the processes is stored.
  • 4 is a structural block diagram of a configuration processing system according to an embodiment of the present invention. As shown in FIG. 4, the system includes a communication module 40, a service module 42, and a memory 44 (also referred to as a data memory) corresponding to the service module 42.
  • the system includes at least one service module 42 and a memory 44 corresponding to at least one service module, wherein the service module and the data storage have a one-to-one correspondence, that is, one service module corresponds to one data storage.
  • This memory stores only the data of the service module.
  • the service module 42 is configured to configure and deliver service data of the service module, where the service data includes configuration data and rollback data;
  • the communication module 40 is connected to the service module 42, and the service module 42 is configured to perform the service module and the memory.
  • Inter-communication; memory 44 is coupled to communication module 40, which is arranged to store service data.
  • the configuration data and the rollback data stored in the memory 44 are provided with identification information for distinguishing the configuration data from the rollback data.
  • the configuration data and the rollback data corresponding to the configuration data are stored adjacent to each other, and the storage order of the configuration data is set to be stored in the flow sequence according to the configuration.
  • FIG. 5 is a configuration according to a preferred embodiment of the present invention.
  • a block diagram of a processing system that implements services for configuring data rollback the system including service module 50 (implementing the same functions as service module 42), communication module 52 (implementing the same functions as communication module 40), and data storage 54 (Implement the same function as the memory 44).
  • service module 50 implementing the same functions as service module 42
  • communication module 52 implementing the same functions as communication module 40
  • data storage 54 examplement the same function as the memory 44.
  • the service module 50 in the preferred configuration processing system, the service module 50 is a general term, the module may be any application layer module on the embedded device main control board, for example, a packet transfer network (Packet Transfer Network, referred to as PTN) Ethernet (Ethernet, hereinafter referred to as ETH) service module, Asynchronous Transfer Mode (ATM) service module, and Operation Administration and Maintenance (OAM) module; For example, a Synchronous Digital Hierarchy (SDH) slot module, a protection module, and the like on the main control board of the device.
  • PTN Packet Transfer Network
  • ATM Asynchronous Transfer Mode
  • OFAM Operation Administration and Maintenance
  • SDH Synchronous Digital Hierarchy
  • a common feature of these service modules is that the configuration needs to be sent to each service board through the communication module.
  • the communication module 52 is an inter-board communication module of the embedded device, and is mainly configured to send configuration data of the main control board to each service board to the corresponding service board, and collect data to be reported by each service board. It is handed over to each service module 50 of the application layer for processing.
  • the data memory 54 is configured to store the issued data (also referred to as configuration data) and the rollback data generated by the service module 50.
  • Each service module 50 has a data storage instance object, and each service module calculates the service configuration. At the same time, the generated and rolled data is stored in the data storage owned by the module according to certain rules.
  • a method for implementing configuration data rollback of an embedded system using a data storage may be provided, which may be implemented in accordance with the following steps.
  • the data memory includes cursors and data entries, which in turn include data and data flags.
  • the role of the cursor is to point to the data currently being issued.
  • the role of the data flag is to indicate whether the data is used when it is issued, or when it is rolled back when an exception occurs.
  • the business module populates the data store.
  • the business module can be inserted into the data memory by, but not limited to, inserting the delivered data first and then inserting the rolled back data.
  • the data store provides a method of issuing access. When the configuration is delivered, the communication module obtains the data sent from the memory. At this time, the obtained data is traversed in the order from top to bottom, and then the data is sent one by one.
  • the data store provides a rollback access method. If the business data fails to be sent, the business module triggers the rollback process. At this time, the communication module obtains the rollback data from the memory, and firstly traverses the rollback data in the memory from the bottom to the top, and then delivers the data one by one, thereby implementing the rollback of the service module. If the configuration is related to other service modules, the service module is notified of the rollback after the rollback of the service module is completed.
  • a data storage data structure is provided, and FIG. 6 is a preferred embodiment of the present invention. Schematic diagram of the memory data structure. The preferred embodiment will now be described in conjunction with the data structure.
  • the data store includes a table of cursors and data entries: Struct
  • Data entries in turn include data entries and data flags: Struct
  • the value of the data flag can be Send and Undo.
  • Send indicates that the data is normally sent.
  • Undo indicates that the data is used when it fails to roll back.
  • the business module populates the data structure of Figure 6 in the data store.
  • a storage medium is also provided, the software being stored, including but not limited to an optical disk, a floppy disk, a hard disk, a rewritable memory, and the like.
  • the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device so that they may be stored in the storage device by the computing device, or they may be separately fabricated into respective integrated circuit modules. Alternatively, multiple modules or steps of them can be implemented as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明公开了一种配置处理方法、装置及系统,该方法包括如下步骤:发送业务类型对应的配置数据;确定发送配置数据失败;获取配置数据对应的回滚数据,并发送回滚数据,其中,每个业务类型的配置数据和回滚数据均保存在与业务类型一一对应的存储器中。通过本发明保证了各个业务类型的数据配置过程之间互相不影响,使网管与各业务板的配置数据取得一致。

Description

配置处理方法、 装置及系统 技术领域 本发明涉及通信领域, 具体而言, 涉及一种配置处理方法、 装置及系统。 背景技术 图 1是根据相关技术中的嵌入式系统的结构示意图, 如图 1所示, 嵌入式系统大 多分为三层结构, 一般由网管、 主控板和业务板共同构成。 当嵌入式系统中的网管和 业务板配置出现问题时, 可以采用用户手动重新清空下发配置的方式, 但是这种人工 干预的方式效率比较低, 并且容易出错。 为了解决这个问题, 在中国第 201010220282.8号专利中公开了一种方法, 该方法 可以通过主控板接收网管数据并进行解析, 随后将解析的数据配置到主控板上, 生成 业务板配置应答信息, 主控板保存注册信息, 如果业务板配置应答消息成功则应答网 管, 并保存网管数据, 如果业务板配置应答信息失败则恢复业务板数据, 并应答网管。 该方法中, 出现错误时将本次配置已经成功的业务清除, 还原到初始状态。 随着嵌入式系统技术的发展, 在嵌入式系统中逐渐使用了多任务的处理方式, 对 于每个业务模块或者任务都需要独立的事务机制, 由于存在不同的业务, 而不同的业 务对应不同的业务板, 即各个任务之间是独立运行的。 这样, 现有技术中的回滚技术 并没有考虑该问题, 因此, 其并不适用于多业务类型的系统。 发明内容 本发明提供了一种配置处理方法、 装置及系统, 以至少解决上述问题。 根据本发明的一个方面, 提供了一种配置处理方法, 该方法包括如下步骤: 发送 业务类型对应的配置数据; 确定发送所述配置数据失败; 获取所述配置数据对应的回 滚数据, 并发送所述回滚数据, 其中, 每个业务类型的配置数据和回滚数据均保存在 与所述业务类型一一对应的存储器中。 优选地, 所述配置数据和所述回滚数据保存在与所述业务类型一一对应的所述存 储器中包括: 在所述存储器中为所述配置数据和所述回滚数据分别开辟存储区域, 将 所述配置数据和所述回滚数据分别存储在对应的存储区域中。 优选地, 所述配置数据和所述回滚数据保存在与所述业务类型一一对应的所述存 储器中包括: 在所述存储器中存储所述配置数据和所述回滚数据, 设置用于区别所述 配置数据和所述回滚数据的标识信息。 优选地, 所述配置数据和所述回滚数据保存在与所述业务类型一一对应的所述存 储器中包括: 在存储所述配置数据和所述回滚数据时, 所述配置数据和该配置数据对 应的回滚数据相邻存放, 并且, 将所述配置数据的存放顺序设置为将按照配置的流程 顺序存放。 根据本发明的另一个方面, 还提供了一种配置处理装置, 该装置包括: 第一发送 模块, 设置为发送业务类型所对应的配置数据; 确定模块, 设置为确定发送所述配置 数据失败; 第二发送模块, 设置为获取所述配置数据所对应的回滚数据, 并发送所述 回滚数据, 其中, 每个业务类型的配置数据和回滚数据均保存在与所述业务类型一一 对应的存储器中。 优选地, 还包括: 设置模块, 设置为对存储在所述存储器中的所述配置数据和所 述回滚数据设置用于区别所述配置数据和所述回滚数据的标识信息。 优选地, 所述设置模块, 还设置为在存储所述配置数据和所述回滚数据时, 将所 述配置数据和该配置数据对应的回滚数据设置为相邻存放, 并且, 将所述配置数据的 存放顺序设置为将按照配置的流程顺序存放。 根据本发明的再一个方面, 还提供了一种配置处理系统, 该系统包括通信模块、 至少一个业务模块和与所述至少一个业务模块一一对应的存储器, 其中, 所述业务模 块, 设置为配置并下发该业务模块的业务数据, 其中, 所述业务数据包括配置数据和 回滚数据; 所述通信模块, 设置为进行所述业务模块和所述存储器之间的通信; 所述 存储器, 设置为存储所述业务数据。 优选地, 所述存储器中存储的所述配置数据和所述回滚数据设置有用于区别所述 配置数据和所述回滚数据的标识信息。 优选地, 所述存储器存储所述配置数据和所述回滚数据时, 所述配置数据和该配 置数据对应的回滚数据相邻存放, 并且, 将所述配置数据的存放顺序设置为将按照配 置的流程顺序存放。 通过本发明, 采用将每个业务类型的配置数据和回滚数据均保存在与该业务类型 一一对应的存储器中, 其中, 不同的业务类型即对应不同的业务模块, 也就是对应不 同的业务板的业务, 解决了现有技术中回滚技术不适用于多业务类型的系统的问题, 保证了各个业务类型的数据配置过程之间互相不影响, 使网管与各业务板的配置数据 取得一致。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中: 图 1是根据相关技术中的嵌入式系统的结构示意图; 图 2是根据本发明实施例的配置处理方法的流程图; 图 3是根据本发明实施例的配置处理装置的结构框图; 图 4是根据本发明实施例的配置处理系统的结构框图; 图 5是根据本发明优选实施例的配置处理系统的结构框图; 以及 图 6是本发明优选实施例的存储器数据结构示意图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 以下实施例是基于图 1的架构进行说明的。 在图 1中, 主控板中可以支持多种业 务类型, 该业务类型可以是主控板上的任意的应用层所支持的业务, 例如, 分组传送 网 (Packet Transfer Network, 简称为 PTN)设备主控板上的以太网 (Ethernet, 简称为 ETH) 业务、 异步传输模式 (Asynchronous Transfer Mode, 简称为 ATM) 业务块、 操 作管理维护 (Operation Administration and Maintenance, 简称为 OAM) 等。 在本实施 例中, 该业务类型对应不同的业务板, 这样, 主控模块需要将该业务类型的配置数据 发送到对应业务单板。 图 2是根据本发明实施例的配置处理方法的流程图, 如图 2所示, 该方法的流程 包括如下步骤: 步骤 S202, 发送业务类型对应的配置数据; 步骤 S204, 确定发送配置数据失败; 步骤 S206, 获取配置数据对应的回滚数据, 并发送回滚数据, 其中, 每个业务类 型的配置数据和回滚数据均保存在与业务类型一一对应的存储器中。 通过上述实施例, 将每个业务类型 (需要说明的是, 不同的业务类型可以对应不 同的业务模块, 也就是对应不同的业务板的业务) 的配置数据 (也称为下发数据) 和 回滚数据均保存在与该业务类型一一对应的存储器中, 从而使得在配置数据发送失败 的情况下, 可以获取该业务类型的配置数据对应的回滚数据, 并发送该回滚数据, 并 且不影响其它的业务配置的发送, 从而保证了各个任务 (或称为业务) 之间互相不影 响, 也进一步保证了网管配置和对应的业务板数据的一致性, 提高了用户体验。 作为一个较优的实施方式, 在配置数据和回滚数据保存在与业务类型一一对应的 存储器中时, 可以在存储器中为配置数据和回滚数据分别开辟存储区域, 将配置数据 和回滚数据分别存储在对应的存储区域中。 这样在配置数据发送失败时, 可以仅仅遍 历回滚数据, 并对其进行发送, 而不再遍历已经发送的配置数据, 在一定程度上提高 了处理效率。 作为另一个较优的实施方式, 在配置数据和回滚数据保存在与业务类型一一对应 的存储器中时, 可以在存储器中存储配置数据和回滚数据, 并设置用于区别配置数据 和回滚数据的标识信息, 并且, 将该标识信息与相对应的数据对应保存, 方便对不同 类型的数据进行相应的处理。 优选地, 在存储配置数据和回滚数据时, 配置数据和该配置数据对应的回滚数据 相邻存放, 并且, 将配置数据的存放顺序设置为将按照配置的流程顺序存放。 这样按 照顺序存放的配置数据和回滚数据可以使回滚操作的执行更加便利。 在本实施例中, 还提供了一种配置处理装置, 以及一种配置处理系统, 该装置以 及该系统均用于实现上述实施例及其优选的实施方式, 已经进行过说明的不再赘述, 下面对该对该装置以及系统涉及的各个模块进行说明。 如以下所使用的, 术语"模块" 可以实现预定功能的软件和 /或硬件的组合。尽管以下实施例所描述的系统和方法较佳 地以软件来实现, 但是硬件, 或者软件和硬件的组合的实现也是可能并被构想的。 图 3是根据本发明实施例的配置处理装置的结构框图, 如图 3所示, 该结构包括 第一发送模块 30、 确定模块 32和第二发送模块 34。 下面对该装置的各个模块及其功 能进行说明。 第一发送模块 30, 设置为发送业务类型所对应的配置数据; 确定模块 32连接至 第一发送模块 30, 该模块设置为确定发送配置数据失败; 第二发送模块 34连接至确 定模块 32, 该模块设置为获取配置数据所对应的回滚数据, 并发送回滚数据, 其中, 每个业务类型的配置数据和回滚数据均保存在与业务类型一一对应的存储器中。 作为一个较优的实施方式, 上述配置处理装置还可以包括设置模块, 该设置模块 设置为对存储在存储器中的配置数据和回滚数据设置用于区别配置数据和回滚数据的 标识信息。 优选地, 该设置模块还设置为在存储配置数据和回滚数据时, 将配置数据和该配 置数据对应的回滚数据设置为相邻存放, 并且, 将配置数据的存放顺序设置为将按照 配置的流程顺序存放。 图 4是根据本发明实施例的配置处理系统的结构框图, 如图 4所示, 该系统包括, 通信模块 40、 业务模块 42和该业务模块 42对应的存储器 44 (也称为数据存储器), 需要说明的是, 该系统至少包括一个该业务模块 42以及,和至少一个业务模块对应的 存储器 44, 其中的业务模块和数据存储器是一一对应的关系, 即, 一个业务模块对应 一个数据存储器, 该存储器仅仅存储业务模块的数据。 下面对该系统的各个模块及其 各个模块的功能进行说明。 业务模块 42, 设置为配置并下发该业务模块的业务数据, 其中, 业务数据包括配 置数据和回滚数据; 通信模块 40连接至业务模块 42, 该业务模块 42设置为进行业务 模块和存储器之间的通信; 存储器 44连接至通信模块 40, 该存储器 44设置为存储业 务数据。 作为一个较优的实施方式,存储器 44中存储的配置数据和回滚数据设置有用于区 别配置数据和回滚数据的标识信息。 优选地, 存储器存储配置数据和回滚数据时, 配置数据和该配置数据对应的回滚 数据相邻存放, 并且, 将配置数据的存放顺序设置为将按照配置的流程顺序存放。 下面结合优选实施例进行说明, 该优选实施例结合了上述实施例及其优选实施方 式, 在本优选实施例中, 还提供了一种配置处理系统, 图 5是根据本发明优选实施例 的配置处理系统的结构框图, 该系统可以实现配置数据回滚的业务, 该系统包括业务 模块 50 (实现与业务模块 42相同的功能)、 通信模块 52 (实现与通信模块 40相同的 功能)和数据存储器 54 (实现与存储器 44相同的功能)。 下面对该优选实施例中的各 个模块及其功能进行说明。 业务模块 50, 在该优选的配置处理系统中, 业务模块 50是一个统称, 该模块可 以是嵌入式设备主控板上的任意的应用层模块, 例如, 分组传送网 (Packet Transfer Network, 简称为 PTN) 设备主控板上的以太网 (Ethernet, 简称为 ETH) 业务模块、 异步传输模式 (Asynchronous Transfer Mode, 简称为 ATM)业务模块、 操作管理维护 (Operation Administration and Maintenance, 简称为 OAM) 模块; 又例如, 同步数字 系列 (Synchronous Digital Hierarchy, 简称为 SDH) 设备主控板上的时隙模块、 保护 模块等。 这些业务模块有个共同的特征就是需要将配置通过通信模块发送到各个业务 单板。 通信模块 52, 该模块是嵌入式设备的板间通信模块, 主要负责将主控板对各各业 务板的配置数据发送到相应的业务单板上, 并将各个业务单板需要上报的数据收集交 给应用层各业务模块 50处理。 数据存储器 54, 该模块设置为存储业务模块 50生成的下发数据 (也成为配置数 据)和回滚数据, 每个业务模块 50拥有一个数据存储器实例对象, 并且, 各业务模块 计算业务配置的时候同时生成下发和回滚数据按一定的规则存放于本模块拥有的数据 存储器。 在本优选实施例中, 还提供了一种使用数据存储器来实现嵌入式系统的配置数据 回滚的方法, 可以但不限于按照如下的步骤来实现。 首先, 定义数据存储器数据结构。 数据存储器中包括游标和数据条目, 数据条目 又包括数据和数据标志。 其中, 游标的作用是指向当前正在下发的数据, 数据标志的 作用是表明该条数据是在下发的时候用, 还是在发生异常时进行回滚的时候用。 其次, 业务模块填充数据存储器。 业务模块可以但不限于按照先插入下发数据, 再插入回滚数据的方式将数据插入到数据存储器中。 第三, 数据存储器提供下发访问方法。 下发配置的时候通信模块从存储器获取下 发数据, 此时, 获取下发数据按从上到下的顺序遍历存储器中的下发数据, 然后逐条 下发, 存储器中游标会移动指向当前正在下发的数据。 第四, 数据存储器提供回滚访问方法。 如果业务数据发送失败, 则业务模块会触 发回滚流程。 此时, 通信模块从存储器获取回滚数据, 首先从游标开始, 从下到上遍 历存储器中的回滚数据, 然后逐条下发, 从而实现本业务模块的回滚。 如果本次配置 还涉及到其他业务模块, 则本业务模块回滚完成后通知相关联业务模块进行回滚, 从 而实现配置数据回滚。 下面结合另一个优选实施例进行说明, 该优选实施例结合了上述实施例及其优选 实施方式, 在本优选实施例中, 提供了一种数据存储器数据结构, 图 6是本发明优选 实施例的存储器数据结构示意图。 下面结合该数据结构对本优选实施例进行说明。 首先, 数据存储器包括游标和数据条目表: Struct
WORD32 dwCursor; /*游标 */ vector<T_ APP_ITEM> vecAppItem; /*数据条目表 */ }T_DATA_STORE
数据条目又包括数据条目和数据标志: Struct
CAppItem Appltem; /*数据条目 */ BYTE ucAppType; /*数据标志 */
} T APP ITEM 其中,数据标志取值可以是 Send和 Undo, Send表示这条数据正常下发的时候用, Undo表示这条数据失败回滚时候用。 其次, 业务模块填充数据存储器中的图 6的数据结构。 ( 1 )创建操作: 先存放创建业务 A->再放回滚的删除业务 A->再放创建业务 A属 性 1->再放创建业务 A属性 2;
(2) 删除操作: 先存放删除业务 B->再放回滚创建业务 B属性 2->再放回滚创建 业务 B属性 1->再放回滚创建业务 B。 第三, 结合图 6说明数据存储器提供的下发数据的访问方法。 ( 1 ) 创建操作: 发送条目 1-> (移动游标到 2) -> (条目 2为回滚数据, 移动游 标到 3 ) ->发送条目 3-> (移动游标到 4) ->发送条目 4-> (移动游标到 5 )。
(2)删除操作: 发送条目 5-> (移动游标到 6) -> (移动游标到 7) -> (移动游标 到 8) -> (移动游标到 9)。 需要说明的是, 条目 1-N, 指图三中加的阿拉伯数字对应的数据 第四, 结合图 6说明数据存储器提供回滚数据的访问方法。
( 1 ) 创建操作: 例如, 当发送到条目 4时失败, 这时游标指向 4。
(移动游标到 3 ) -> (条目 3为下发数据, 移动游标到 2) ->发送条目 2-> (移动 游标到 1 ) -> (条目 1为下发数据, 回滚结束)。 (2) 删除操作: 例如, 当发送到条目 5时失败, 这时业务 B并没有删除成功, 此时, 只要回滚前面业务 A即可。
(移动游标到 4) -> (条目 4为下发数据, 移动游标到 3 ) -> (条目 3为下发数据, 移动游标到 2) ->发送条目 2-> (移动游标到 1 ) -> (条目 1为下发数据, 回滚结束)。 又例如, 当发送到条目 9时失败, 这时业务 B已经删除成功, 需要要回滚业务 B 后回滚业务 A。
(移动游标到 8) ->发送条目 8-> (移动游标到 7) ->发送条目 7-> (移动游标到 6) ->发送条目 6-> (移动游标到 5 ) -> (条目 5为下发数据, 移动游标到 4) -> (条目 4 为下发数据, 移动游标到 3 ) -> (条目 3为下发数据, 移动游标到 2) ->发送条目 2-> (移动游标到 1 ) -> (条目 1为下发数据, 回滚结束)。 在另外一个实施例中, 还提供了 种配置处理软件, 该软件用于执行上述实施例 及优选实施例中描述的技术方案。 在另外一个实施例中, 还提供了一种存储介质, 该存储介质中存储有上述软件, 该存储介质包括但不限于光盘、 软盘、 硬盘、 可擦写存储器等。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而可以将 它们存储在存储装置中由计算装置来执行,或者将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限 制于任何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权 利 要 求 书
1. 一种配置处理方法, 包括:
发送业务类型对应的配置数据;
确定发送所述配置数据失败;
获取所述配置数据对应的回滚数据, 并发送所述回滚数据, 其中, 每个业 务类型的配置数据和回滚数据均保存在与所述业务类型一一对应的存储器中。
2. 根据权利要求 1所述的方法, 其中, 所述配置数据和所述回滚数据保存在与所 述业务类型一一对应的所述存储器中包括:
在所述存储器中为所述配置数据和所述回滚数据分别开辟存储区域, 将所 述配置数据和所述回滚数据分别存储在对应的存储区域中。
3. 根据权利要求 1所述的方法, 其中, 所述配置数据和所述回滚数据保存在与所 述业务类型一一对应的所述存储器中包括:
在所述存储器中存储所述配置数据和所述回滚数据, 设置用于区别所述配 置数据和所述回滚数据的标识信息。
4. 根据权利要求 1或 3所述的方法, 其中, 所述配置数据和所述回滚数据保存在 与所述业务类型一一对应的所述存储器中包括:
在存储所述配置数据和所述回滚数据时, 所述配置数据和该配置数据对应 的回滚数据相邻存放, 并且, 将所述配置数据的存放顺序设置为将按照配置的 流程顺序存放。
5. 一种配置处理装置, 包括:
第一发送模块, 设置为发送业务类型所对应的配置数据;
确定模块, 设置为确定发送所述配置数据失败;
第二发送模块, 设置为获取所述配置数据所对应的回滚数据, 并发送所述 回滚数据, 其中, 每个业务类型的配置数据和回滚数据均保存在与所述业务类 型一一对应的存储器中。
6. 根据权利要求 5所述的装置, 其中, 还包括: 设置模块, 设置为对存储在所述存储器中的所述配置数据和所述回滚数据 设置用于区别所述配置数据和所述回滚数据的标识信息。 根据权利要求 6所述的装置, 其中, 所述设置模块, 还设置为在存储所述配置 数据和所述回滚数据时, 将所述配置数据和该配置数据对应的回滚数据设置为 相邻存放, 并且, 将所述配置数据的存放顺序设置为将按照配置的流程顺序存 放。 一种配置处理系统, 包括, 通信模块、 至少一个业务模块和与所述至少一个业 务模块一一对应的存储器, 其中,
所述业务模块, 设置为配置并下发该业务模块的业务数据, 其中, 所述业 务数据包括配置数据和回滚数据;
所述通信模块, 设置为进行所述业务模块和所述存储器之间的通信; 所述存储器, 设置为存储所述业务数据。 根据权利要求 8所述的系统, 其中, 所述存储器中存储的所述配置数据和所述 回滚数据设置有用于区别所述配置数据和所述回滚数据的标识信息。 根据权利要求 8或 9所述的系统, 其中, 所述存储器存储所述配置数据和所述 回滚数据时, 所述配置数据和该配置数据对应的回滚数据相邻存放, 并且, 将 所述配置数据的存放顺序设置为将按照配置的流程顺序存放。
PCT/CN2012/075136 2011-08-17 2012-05-07 配置处理方法、装置及系统 WO2013023464A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2011102364210A CN102957546A (zh) 2011-08-17 2011-08-17 配置处理方法、装置及系统
CN201110236421.0 2011-08-17

Publications (1)

Publication Number Publication Date
WO2013023464A1 true WO2013023464A1 (zh) 2013-02-21

Family

ID=47714730

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/075136 WO2013023464A1 (zh) 2011-08-17 2012-05-07 配置处理方法、装置及系统

Country Status (2)

Country Link
CN (1) CN102957546A (zh)
WO (1) WO2013023464A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103457770A (zh) * 2013-08-30 2013-12-18 华为技术有限公司 网络事务控制方法及执行方法及网络控制器及转发设备

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104125089A (zh) * 2013-04-28 2014-10-29 华为技术有限公司 网络事务控制方法及执行方法及网络控制器及转发设备
CN106161061B (zh) * 2015-04-08 2020-01-31 华为技术有限公司 业务配置的回滚方法及网络设备
CN105721345B (zh) * 2016-01-19 2019-01-11 烽火通信科技股份有限公司 基于业务类型的ptn网络qos带宽批量快速部署方法
CN105915372B (zh) * 2016-04-07 2018-11-30 烽火通信科技股份有限公司 基于自动回滚的临时配置管理系统及方法
CN106203865A (zh) * 2016-07-18 2016-12-07 浪潮软件集团有限公司 一种大厅管理系统及方法
CN109324549B (zh) * 2018-09-30 2020-08-04 杭州迪普科技股份有限公司 一种双主控设备配置方法及双主控设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1984419A (zh) * 2006-04-06 2007-06-20 上海华为技术有限公司 一种数据配置方法及装置
CN101442469A (zh) * 2007-11-22 2009-05-27 中国移动通信集团公司 下发配置数据的方法、系统及装置
CN101651565A (zh) * 2009-09-16 2010-02-17 中兴通讯股份有限公司 一种人机命令的撤消恢复方法及装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0214303D0 (en) * 2002-06-21 2002-07-31 Koninkl Philips Electronics Nv Server side configuration management
CN100452793C (zh) * 2003-10-22 2009-01-14 华为技术有限公司 一种基于软交换网络的业务发放方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1984419A (zh) * 2006-04-06 2007-06-20 上海华为技术有限公司 一种数据配置方法及装置
CN101442469A (zh) * 2007-11-22 2009-05-27 中国移动通信集团公司 下发配置数据的方法、系统及装置
CN101651565A (zh) * 2009-09-16 2010-02-17 中兴通讯股份有限公司 一种人机命令的撤消恢复方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103457770A (zh) * 2013-08-30 2013-12-18 华为技术有限公司 网络事务控制方法及执行方法及网络控制器及转发设备
CN103457770B (zh) * 2013-08-30 2017-03-08 华为技术有限公司 网络事务控制方法及执行方法及网络控制器及转发设备

Also Published As

Publication number Publication date
CN102957546A (zh) 2013-03-06

Similar Documents

Publication Publication Date Title
WO2013023464A1 (zh) 配置处理方法、装置及系统
US6714563B1 (en) Network clock synchronization scheme
CN100555948C (zh) 一种用于在堆栈交换机系统内耦合的交换设备
TWI324456B (en) An intelligent automatic setting restoration method and device
EP1553723B1 (en) Method and system for modelling a communications network
US20080263388A1 (en) Method and apparatus for managing customer topologies
JP2001313670A (ja) ネットワーク管理方法
US20150365320A1 (en) Method and device for dynamically switching gateway of distributed resilient network interconnect
CN101009628A (zh) 一种交换网络拓扑变化时组播表项更新的方法及装置
EP2590362B1 (en) Method and apparatus for topology discovery
JP2015530829A (ja) ミドルウェアマシン環境における劣化ファットツリーの発見およびルーティングをサポートするためのシステムおよび方法
US20130201875A1 (en) Distributed fabric management protocol
WO2017000832A1 (zh) Mac地址的同步方法、装置及系统
CN106453124A (zh) 流量调度方法及装置
US9288075B2 (en) Method and system for auto-configuration, and network node
WO2012012962A1 (zh) 容灾业务系统及容灾方法
CN109639773A (zh) 一种动态构建的分布式数据集群控制系统及其方法
CN103229463B (zh) 一种确定管理域的方法、网络设备及虚拟集群
EP3917086B1 (en) Network topology discovery method, device, and system
CN108900441B (zh) 网络切换方法、第一电子设备及可读存储介质
US11070303B2 (en) Management message loop detection in precision time protocol
TWI772721B (zh) 運用區塊鏈管理網路設備之系統及方法
CN100362811C (zh) 一种获取配置信息的方法
CN110830295B (zh) 一种设备管理方法及系统
CN106878051B (zh) 一种多机备份实现方法及装置

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: 12823978

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: 12823978

Country of ref document: EP

Kind code of ref document: A1