WO2013097719A1 - Method and apparatus for resources synchronization - Google Patents

Method and apparatus for resources synchronization Download PDF

Info

Publication number
WO2013097719A1
WO2013097719A1 PCT/CN2012/087532 CN2012087532W WO2013097719A1 WO 2013097719 A1 WO2013097719 A1 WO 2013097719A1 CN 2012087532 W CN2012087532 W CN 2012087532W WO 2013097719 A1 WO2013097719 A1 WO 2013097719A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource
changed
location information
network management
network element
Prior art date
Application number
PCT/CN2012/087532
Other languages
French (fr)
Chinese (zh)
Inventor
傅华明
苏春山
张志坤
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2013097719A1 publication Critical patent/WO2013097719A1/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

Definitions

  • Telecommunication network resource management is used to manage various physical resources, pipeline resources, channel resources, and circuit resources of operators.
  • the NEs, racks, subracks, boards, ports, and optical network units (ONUs) of the access device belong to physical resources.
  • Network resource management is the most important part of the telecommunication network operation and maintenance support system.
  • the network resource management system is the basis for telecommunication network operators to carry out network maintenance, service distribution, network optimization and network planning, and various operation and maintenance activities of telecommunication network operators. All are built around network resources.
  • the NE device management system (hereinafter referred to as the network management system or network management system, or EMS for short) is a system for directly managing NE devices. As shown in Figure 1, the NMS manages connections through the southbound interface and NEs, and through the northbound interface and carriers. The upper layer management support system (OSS) is connected. When the resource status or information changes, the network management system first collects the change information of the resource through the southbound interface, and then notifies the resource system of the resource status through the northbound interface. The information is updated.
  • OSS upper layer management support system
  • the Access Network is a Service Node Interface (SNI) and a User Network Interface (UNI).
  • SNI Service Node Interface
  • UNI User Network Interface
  • the access network is an implementation system that provides the transport bearer capabilities required to transport telecommunications services.
  • the access network generally needs to have local management tools for local management. For example, when the device is deployed, the deployment engineer uses the local deployment tool software (for example, the Local Craft Terminal (LCT) provided by the device provider. ) Software or Telnet)
  • the initial deployment configuration includes some basic resource configuration.
  • the hardware resource configuration of the device mainly includes the configuration of the rack, chassis, and board of the device.
  • TMF Tele Management Forum
  • SNMP Simple Network Management Protocol
  • the SNMP protocol is based on the UDP protocol. Generally, the Simple Network Management Protocol (SNMP) is used. The efficiency of synchronizing or collecting resource data information is relatively low.
  • the access network is a network facing the end user, and the number of network elements is the most typical feature of the access network element. Taking a Passive Optical Network (PON) as an example, a medium-sized passive optical network and an Optical Line Terminal (OLT) network can have more than one thousand data.
  • PON Passive Optical Network
  • OLT Optical Line Terminal
  • a periodic execution policy of resource synchronization is set on the network management system, and the network management system periodically obtains all resource configuration data from the synchronization network elements of all network elements of the entire network.
  • the embodiments of the present invention provide a resource synchronization method and device, which can at least solve the network management server and network element caused by network element synchronization in the manner of acquiring all resource configuration data on the network element by using the network management system in the prior art. Technical problem of resource waste of equipment.
  • a resource synchronization method including: receiving, by a network management device, location information of a resource that changes in a network element device; and performing, by the network management, a locally updated resource corresponding to the changed resource according to the location information .
  • the step of the network controller performing synchronous update on the locally stored resource corresponding to the changed resource according to the location information includes: determining, by the network management device, whether the changed resource exists in the location indicated by the location information in the network element device; If the resource is changed, the network management system deletes the configuration parameter of the locally stored resource corresponding to the changed resource.
  • the resource synchronization method further includes: if there is a resource that changes, the network management corresponds to the locally stored resource that is changed.
  • the configuration parameters of the resource are updated synchronously.
  • the step of synchronizing the configuration parameters of the locally stored resource corresponding to the changed resource includes: the network management determines whether the configuration parameter of the resource corresponding to the changed resource exists locally; if the resource exists and changes The configuration parameter of the corresponding resource, the network management device updates the configuration parameter of the resource corresponding to the changed resource to the configuration parameter of the changed resource; if there is no configuration parameter of the resource corresponding to the changed resource, the network management is locally Stores configuration parameters for resources that have changed.
  • the resource synchronization method before the network management device receives the location information of the changed resource in the network element device, the resource synchronization method further includes: the network element device detects whether there is a resource that changes; if there is a resource that changes, the network element device acquires the change.
  • the step of the network element device acquiring the location information of the changed resource includes: the network element device records the location information of all the changed resources in the updated time sequence according to the changed time; the network element device will change the resource.
  • the step of sending the location information to the network management system includes: sending, by the network element device, the update table carrying the location information to the network management system when the configuration update is required.
  • a resource synchronization apparatus which is located in a network management, and includes: a receiving unit configured to receive location information of a resource that changes in a network element device; and a synchronization unit configured to be local to the location information according to the location information
  • the stored resources corresponding to the changed resources are updated synchronously.
  • the synchronization unit comprises: a judging module, configured to determine whether there is a resource that changes in the location indicated by the location information in the network element device; and the deleting module is configured to delete the locally stored and non-existing resources when there is no changed resource The configuration parameters of the resource corresponding to the changed resource.
  • the synchronization unit further includes: an update module, configured to synchronously update the locally stored configuration parameters of the resource corresponding to the changed resource when there is a resource that changes.
  • the updating module includes: a determining submodule, configured to determine whether a configuration parameter of a resource corresponding to the changed resource exists locally; and an update submodule configured to determine, in the determining, that the configuration parameter of the resource corresponding to the changed resource exists And updating a configuration parameter of the resource corresponding to the changed resource to a configuration parameter of the changed resource; and the storage submodule is configured to be local when determining that there is no configuration parameter of the resource corresponding to the changed resource Stores configuration parameters for resources that have changed.
  • another resource synchronization apparatus which is located in a network element device, and includes: a detecting unit, configured to detect whether there is a resource that changes; and an acquiring unit, configured to be when there is a resource that changes Obtaining location information of the changed resource; sending unit, configured to send the location information of the changed resource to the network management.
  • the obtaining unit comprises: an obtaining module, configured to record the location information of all the changed resources in an updated time sequence according to the changed time; the sending unit comprises: a sending module, configured to carry when the configuration update is needed An update table with location information is sent to the network administrator.
  • the network management device obtains the updated configuration information of the changed resource according to the location information of the changed resource sent by the network element device, thereby implementing resource synchronization in the incremental difference mode.
  • the network management server and the network element device are caused by the network element synchronization in the manner of obtaining all the resource configuration data on the network element by using the network management system in the prior art.
  • the technical problem of waste of resources improves the efficiency of resource synchronization and reduces the consumption of physical resources.
  • FIG. 2 is a block diagram showing a preferred structure of a resource synchronization apparatus in a network management according to an embodiment of the present invention
  • FIG. 3 is a block diagram of an embodiment of the present invention. A preferred block diagram of a resource synchronization device located in a network element device; FIG.
  • FIG. 4 is a block diagram showing a preferred structure of a synchronization unit according to an embodiment of the present invention
  • FIG. 5 is another embodiment of a synchronization unit according to an embodiment of the present invention.
  • FIG. 6 is a block diagram showing a preferred structure of an update module according to an embodiment of the present invention
  • FIG. 7 is a block diagram showing a preferred structure of an acquisition unit according to an embodiment of the present invention
  • FIG. 8 is a resource according to an embodiment of the present invention.
  • FIG. 9 is another preferred flow chart of the resource synchronization method according to an embodiment of the present invention.
  • Embodiment 1 The embodiment of the present invention provides a preferred resource synchronization system, where the resource synchronization system includes: a resource synchronization device located in a network element device, and a resource synchronization device located in the network management system, where the resource synchronization device is located in the network management system.
  • the receiving unit 202 is configured to receive location information of a resource that changes in the network element device.
  • the synchronization unit 204 is coupled to the receiving unit 202 and configured to locally store and change according to the location information.
  • the resources corresponding to the resource are updated synchronously. As shown in FIG.
  • the resource synchronization device is located in the network element device, and includes: a detecting unit 302, configured to detect whether there is a resource that changes; the acquiring unit 304 is coupled to the detecting unit 302, and is configured to be in the presence of a changed resource. And acquiring the location information of the changed resource; the sending unit 306 is coupled to the obtaining unit 304, and configured to send the location information of the changed resource to the network management.
  • the network management device obtains the updated configuration information of the changed resource according to the location information of the changed resource sent by the network element device, thereby implementing resource synchronization in the incremental difference mode.
  • the network management server and the network element device are caused by the network element synchronization in the manner of obtaining all the resource configuration data on the network element by using the network management system in the prior art.
  • the technical problem of waste of resources improves the efficiency of resource synchronization and reduces the consumption of physical resources.
  • the network management device checks the resources, records the changed resources, and obtains the corresponding location information, thereby ensuring that the network management can synchronize resources through incremental differences, thereby improving resources.
  • the efficiency of the synchronization the network element device only needs to record the location information of the changed resource without recording all the changed data, thereby reducing the burden on the network element device.
  • the synchronization unit 204 includes: a determining module 402, configured to determine whether there is a resource that changes in the location indicated by the location information in the network element device; and the deleting module 404, And being coupled to the determining module 402, configured to delete the locally stored configuration parameter of the resource corresponding to the changed resource when there is no changed resource.
  • the network management device searches for the corresponding resource update information according to the location information to the network element device, if the network element device does not have the resource corresponding to the location information, it indicates that the network element device has deleted the The resource, so that the network management also deletes its own configuration information of the resource, and synchronizes the resource information.
  • the network management device searches for the corresponding resource update information according to the location information to the network element device, if the network element device does not have the resource corresponding to the location information, it indicates that the network element device has deleted the The resource, so that the network management also deletes its own configuration information of the resource, and synchronizes the resource information.
  • the synchronization unit 204 further includes: an update module 502, configured to generate and generate local storage when there is a resource that changes.
  • the configuration parameters of the resource corresponding to the changed resource are synchronously updated.
  • the network management synchronizes the configuration information of the local resource.
  • the update module 502 includes: a determining submodule 602, configured to determine whether a configuration parameter of a resource corresponding to the changed resource exists locally; the update submodule 604, and the determining The sub-module 602 is configured to: when it is determined that the configuration parameter of the resource corresponding to the changed resource exists, update the configuration parameter of the resource corresponding to the changed resource to the configuration parameter of the changed resource; the storage sub-module 606 And being coupled to the update submodule 604, and configured to locally store the configuration parameter of the changed resource when it is determined that there is no configuration parameter of the resource corresponding to the changed resource.
  • the network management device checks whether there is a corresponding resource in the local area, and if so, uses the resource configuration information in the network element device to replace the local storage. If the configuration information of the resource does not exist, the network management reopens the space locally to save the newly added resource and its configuration information, thereby ensuring synchronous update of the resource.
  • the obtaining unit 304 includes: an obtaining module 702, configured to record the position information of all changed resources according to the time sequence of the change.
  • the sending unit 306 includes: a sending module 704, configured to send the update table carrying the location information to the network management when the configuration update needs to be performed.
  • the network element device records the location information into the update table according to the changed time sequence, and sends the update table to the network management system, which facilitates the network management to obtain the location information of the resource update and the corresponding time information, which is easy to implement and reduces.
  • the complexity of the operation Embodiment 2
  • the present invention further provides a preferred resource synchronization method. As shown in FIG. 8, the specific steps of the method include: S802: The network management device receives the network element device. Location information of the changed resource;
  • the network management synchronizes the locally stored resources corresponding to the changed resources according to the location information.
  • the network management device obtains the updated configuration information of the changed resource according to the location information of the changed resource sent by the network element device, thereby implementing resource synchronization in the incremental difference mode.
  • the network management server and the network element device are caused by the network element synchronization in the manner of obtaining all the resource configuration data on the network element by using the network management system in the prior art.
  • the technical problem of waste of resources improves the efficiency of resource synchronization and reduces the consumption of physical resources.
  • the preferred embodiment improves the step of the network management to obtain the updated configuration information of the changed resources from the network element device according to the location information, and is preferred in the present invention.
  • the step of the network controller performing the synchronous update on the locally stored resource corresponding to the changed resource according to the location information includes: determining, by the network management device, whether the changed resource exists in the location indicated by the location information in the network element device; If the resource changes, the NMS deletes the configuration parameters of the locally stored resource corresponding to the changed resource. If there is a resource that changes, the network management synchronizes the configuration parameters of the locally stored resource corresponding to the changed resource.
  • the network management device searches for the corresponding resource update information according to the location information to the network element device, if the network element device does not have the resource corresponding to the location information, it indicates that the network element device has deleted the The resource, so that the network management also deletes its own configuration information of the resource, and synchronizes the resource information.
  • the network management synchronizes the configuration information of the local resource.
  • the step of synchronizing the configuration parameters of the locally stored resource corresponding to the changed resource includes: the network management determines whether the configuration parameter of the resource corresponding to the changed resource exists locally; If there is a configuration parameter of the resource corresponding to the changed resource, the network management device updates the configuration parameter of the resource corresponding to the changed resource to the configuration parameter of the changed resource; if there is no resource configuration corresponding to the changed resource The parameter, the network management locally stores the configuration parameters of the changed resource.
  • the network management device checks whether there is a corresponding resource in the local area, and if so, uses the resource configuration information in the network element device to replace the local storage.
  • the network management reopens the space locally to save the newly added resource and its configuration information, thereby ensuring synchronous update of the resource.
  • the embodiment of the present invention provides a preferred implementation manner for the network management device to obtain the changed resource.
  • the network element device detects whether there is a resource that changes.
  • the location information of the changed resource the network element device sends the location information of the changed resource to the network management.
  • the network management checks resources, records the changed resources, and obtains corresponding location information, thereby ensuring that the network management can synchronize resources through incremental differences, thereby improving resource synchronization efficiency.
  • the network element device only needs to record the location information of the changed resource without recording all the changed data, thereby reducing the burden on the network element device.
  • the network element device detects whether the configuration update is reached, and if the report time is reached, it is determined that the configuration update is required; or the network element device detects whether After receiving the configuration update request message sent by the network management system, if the configuration update request message is received, it is determined that the configuration update is required.
  • the network element device records the location information of all the changed resources in the updated time sequence according to the changed time; the network element device is An update table carrying location information is sent to the NMS when a configuration update is required.
  • the network element device records the location information into the update table according to the changed time sequence, and sends the update table to the network management system, which facilitates the network management to obtain the location information of the resource update and the corresponding time information, which is easy to implement and reduces the operation. the complexity.
  • the invention is further described in the preferred embodiments of the invention, but it is to be understood that the preferred embodiments are not intended to limit the invention.
  • a method and apparatus for quickly and efficiently synchronizing resource information and status between a network management system and a network element device in an incremental manner based on an SNMP protocol are provided.
  • the technical solution adopted by the present invention is as follows -
  • the network element device When the resource changes, the network element device records the specific location information of the resource instead of recording all the changes. This method is simple for the implementation of the network element device, and the network element device is at the entrance of the resource configuration operation command.
  • the command performs preliminary analysis and records the configuration object of the configuration command, that is, the location information of the resource.
  • the network element device may be configured to add the resource update agent module to the location information of the resource and record the location information on the original command processing flow.
  • the location information representation model of the resources that need to be synchronized may be defined between the network element device and the network management system.
  • the network element device can record the location information of the changed resource.
  • the network management can analyze the specific location of the changed resource according to the location information, so as to synchronize the resources that need to be synchronized.
  • the network element device records all the resource configuration updates in an update table in chronological order.
  • the configuration update is required, the SNMP Trap is sent to the network management system, and the network management system is required to perform synchronous update of the data.
  • each module is mainly: the network element device to be synchronized resource location storage area: in the non-volatile storage device of the network element device, the resource location information record waiting for the synchronization of the network management system is saved, the same resource
  • the location information has only one record, and the resource location information provides an external interface for adding, deleting, and querying.
  • the external module or the device calls the add interface to increase the resource location information record, the system automatically determines whether the current memory has the same record.
  • the preferred technical implementation is that when the number of records that need to be synchronized is greater than a certain value, the record is no longer added when the recording interface is called, and the network management system can It is determined by counting the number of entries whether it is necessary to synchronize all resource data with the network element device.
  • the NE device resource update agent module All the resource configuration of the device is added, deleted, and modified. The local device needs to be configured in the local mode or remotely configured on the NMS.
  • the message is forwarded to the resource update agent module, and the resource update agent module parses the resource object in the configuration command, and adds the resource object location information to the location storage area of the network element to be synchronized.
  • the resource update agent module can configure whether all configuration changes need to be recorded.
  • the resource update agent module can determine whether the configuration change needs to be recorded according to the IP address or protocol type initiated by the command.
  • the NE device resource update triggering module periodically reads the number of records in the storage location of the resource to be synchronized.
  • the message is sent to the network management system through SNMP Trap.
  • the number of records can also be in the trap.
  • the message is sent to the network management system as attachment information.
  • the Trap receiving module of the network management system is responsible for receiving the Trap message sent by all the managed NE devices, and determining that the resource synchronization request trap message is forwarded to the network management system resource update processing module for resource synchronization processing.
  • the network management system resource update processing module After receiving the resource synchronization message, the target network element has fewer resources.
  • the synchronization process of the network management system is shown in Figure 9, which includes the following steps:
  • the network management system Trap receiving module parses the resource synchronization request trap message according to the network element device, parses the IP address information of the network element, and forwards the IP address information to the network management system resource update processing module to synchronize the resources;
  • the network management system resource update processing module starts the resource synchronization thread task to perform resource synchronization of the target network element
  • S906 Send an SNMP operation to the resource synchronization thread task to obtain a record of location information of all to-be-synchronized resources of the to-be-synchronized resource location storage area on the network element device.
  • the timer is started in the resource synchronization thread task, and waits for the specified time T.
  • the purpose of waiting for a period of time to start the synchronization operation is to allow the network management system other than the network management system to have sufficient time to obtain the same.
  • the resource location information of the step, this method is an optional technology. If only one network management system is connected, there is no waiting time, and the following steps are directly performed.
  • the value of T may be a random value less than 30 seconds.
  • the resource synchronization thread task determines the number of location records of all resources that need to be synchronized obtained from the network element device. If it is greater than a specific number N, execute S912, otherwise, execute S914.
  • S914 Obtain the next resource location A from the resource location information record, and use the SNMP operation to obtain the resource configuration data information corresponding to the resource location A.
  • S916 Determine, according to the return result of the SNMP operation, if the read resource A is empty, but the data record corresponding to the resource A is on the network management, execute S918. If the data of the resource A on the network element is successfully obtained, the process is performed. S920.
  • S918 Indicates that the resource has been deleted on the network element device, and the data of the resource A is also deleted on the network management database, and the S926 is executed.
  • S920 Determine whether the related resource information is already available on the network management device. If yes, execute S922; otherwise, execute S924 instead.
  • S922 Update the information of the resource A in the network management system, and then execute S926.
  • S924 Add new resource data A is recorded in the network management system.
  • S926 Send an SNMP operation to the network element device, and delete the record of the resource A corresponding to the resource location storage area to be synchronized on the network element device;
  • the information representation method of the resource is first defined, and the resources that the PON device needs to synchronize include the global resource (the various bandwidth template configurations of the ONU, and the virtual local area network (Virtual Local Area Network) VLAN) configuration, board resources, port resources (including PON ports), ONU resources (ONU resources include ONU version, name, line configuration under ONU, ONU service configuration, and user network interface under ONU (User Network) Interface, referred to as UNI) port configuration, etc.).
  • the global resource the various bandwidth template configurations of the ONU, and the virtual local area network (Virtual Local Area Network) VLAN) configuration, board resources, port resources (including PON ports), ONU resources (ONU resources include ONU version, name, line configuration under ONU, ONU service configuration, and user network interface under ONU (User Network) Interface, referred to as UNI) port configuration, etc.
  • ONU resources include ONU version, name, line configuration under ONU, ONU service configuration, and user network interface under ONU (User Network
  • the NE device reports the Trap message requesting the resource synchronization MIB interface; 2) The network management system obtains the MIB interface of all the resource location information to be synchronized on the NE device;
  • the network management system deletes the resource location information record MIB interface of the resource location storage area to be synchronized on the network element device;
  • the network management system synchronizes the SNMP MIB interface of the global resource, the board resource, the port resource, and the ONU resource. If the network management and the network element have defined the information management library in the traditional resource synchronization.
  • MIB Managemeng Information Base
  • MIB Information Base
  • the resource storage area to be synchronized is defined.
  • the storage area is a queue.
  • Each element in the queue is a string of data.
  • the maximum length of the queue is 255. When the queue length is greater than 255, the record is no longer inserted.
  • the network element device resource update proxy module is added to the network element device. All operation commands for remotely accessing the network element resource through telnet or SNMP or the local interface provided by the network element device are first received by the network element proxy, and then Send it to other modules.
  • the resource update agent module parses the resource object of the operation, and inserts the resource object into the queue of the resource storage area to be synchronized, and judges when inserted. Whether there is already the same target resource object in the queue, and if so, no action is taken.
  • the NE device starts the resource synchronization check timer, and checks whether resources need to be synchronized every 10 minutes. If resources need to be synchronized, send a Request Resource Synchronization Trap message to the NMS server to notify it of resource synchronization.
  • the network element device receives the command to delete the resource record to be synchronized, the network element device deletes the corresponding resource record in the list.
  • the network management system updates the processing flow of the Trap receiving module, and adds a step of parsing the "request resource synchronization" Trap message of the network element device in the Trap interface processing flow.
  • the IP address of the network element is sent to the network management system resource update processing module to perform specific network element resource synchronization processing.
  • the network management system adds a network management system resource update processing module. In this module, a main thread is first started, which is responsible for receiving a resource synchronization request message sent by the Trap module, and managing resource synchronization requests of all network elements, and allocating threads to perform specific network elements.
  • the synchronization of resources at the same time create a thread pool of 100 threads, used to synchronize the resources of each network element.
  • the network management system randomly generates a random number TimerO greater than 10 and less than 30 as the delay time parameter.
  • the steps of resource synchronization based on the network management system described above include:
  • the Sl, the Trap receiving module receives the "resource synchronization request" of the network element device, parses the IP address of the Trap source network element, and sends a message to the resource update processing module for resource synchronization operation;
  • the resource update processing module receives the resource synchronization request sent by the Trap receiving module, and starts an independent thread to perform resource synchronization of the specific target network element.
  • S4 Start a timer in the specific thread of the resource synchronization, wait for the TimerO time, and perform the following steps when the timer expires;
  • S5 determine the number of records of the acquired resources that need to be synchronized, if greater than or equal to 255, use all the traditional The resources are synchronized to perform resource synchronization, and the process ends; otherwise, step S6 is performed;
  • the target resource to be read is empty and the data record of the target resource is on the network management tube, it indicates that the resource has been deleted in the network element device, and the target resource data is also deleted on the network management database.
  • the present invention achieves the following technical effects:
  • the present invention adopts a method for transmitting incremental and differential resource location information between a network management system and a network element device, so that the network management system can be completed efficiently and in time.
  • the method of locally synchronizing the incremental resources of the network element device effectively overcomes the problem of low resource synchronization efficiency.
  • the present invention is a basic and premise that the network management system can timely report the resource change notification to the upper-layer network management system in time;
  • the method adopted by the present invention completely utilizes the existing communication technology between the network management system and the network element for resource synchronization, and the network management system and the network element device can complete efficient resource synchronization without adding complicated protocol development.
  • the method adopted by the present invention And the device is easy to deploy and implement on the network element device and the network management system.
  • the computing device may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Abstract

Disclosed are a method and apparatus for resources synchronization, the method comprising: a network management receives the location information of the changed resources in a network element device; the network management performs the synchronization update for the local stored resources corresponding to the changed resources according to the location information. The present invention solves the technical problem in the prior art that the resources of the network management server and the network element device are wasted by reason that performing network element synchronization by using the mode that the network management obtains all the resources configuration data on the network element, thus improving the efficiency of resources synchronization, and reducing the consumption of physical resources.

Description

资源同步方法和装置  Resource synchronization method and device
技术领域 本发明涉及通信领域, 具体而言, 涉及一种资源同步方法和装置。 背景技术 电信网络资源管理用于对运营商各种物理资源、 管线资源、 通道资源以及电路资 源进行管理。接入设备的网元设备、机架、机框、单板、端口以及光网络单元(Optical Network Unit, 简称为 ONU) 等属于物理资源。 网络资源管理是电信网络运维支撑系 统中最重要的部分, 网络资源管理系统是电信网络运营商进行网络维护、 业务发放、 网络优化以及网络规划的基础, 电信网络运营商的各种运维活动都是围绕网络资源展 开。 当网络物理资源状态和信息发生变化时, 资源管理系统需要及时对电信网络资源 进行更新, 以保证网络资源系统实时反馈出最新的资源信息, 从而确保其它运维活动 数据的准确性。 网元设备管理系统 (下称网管系统或者网管, 简称为 EMS)是直接管理网元设备 的系统, 如图 1所示, 网管系统通过南向接口和网元管理连接, 通过北向接口和运营 商上层管理支撑系统 (Operation Support System, 简称为 OSS) 对接, 当资源状态或 者信息发生变化时, 网管系统先通过南向接口收集资源的变化信息, 然后, 再通过北 向接口通知资源系统对资源状态和信息进行更新。 按照 ITU-T G.902的定义, 接入网 (Access Network, 简称为 AN) 是由业务节点 接口( Service Node Interface,简称为 SNI)和相关用户网络接口(User Network Interface, 简称为 UNI) 等一系列传送实体所组成的, 接入网是一个提供传送电信业务所需的传 送承载能力的实施系统。 接入网一般需要具备使用本地管理工具进行本地管理的能力, 例如, 在设备开局 的时候, 开局工程师使用本地开局工具软件 (例如, 设备提供商提供的本地维护终端 (Local Craft Terminal, 简称为 LCT)软件或者 Telnet) 到设备上进行设备的初始化配 置, 初始化开局配置包括一些基本资源的配置。 设备的硬件资源配置主要包括设备的 机架, 机框以及板卡的配置; 在设备出现故障时, 维护人员在现场维护的时候需要使 用本地管理工具登录到设备进行本地配置的修改, 这些本地维护对设备配置数据的修 改需要及时地反馈到网管系统和资源管理系统中, 只有这样才能保证基于资源的运维 活动的数据准确性。 在 TMF (是 Tele Management Forum的简称, 是一个为电信运营 和管理提供策略建议和实施方案的世界性组织) 的相关标准中也对资源及时性和准确 性提出了要求,比如在 TMF 517中指出在 NGOSS架构中, Inventory OS, Discovery OS 等相关的功能操作系统 (Operating System, 简称为 OS) 需要具备上报资源更新通知 消息 ( Inventory update notifications ) 的功能。 目前, 主流的设备供应商提供的接入设备均采用简单网络管理协议 (SNMP) 进 行管理, SNMP协议是基于 UDP协议的, 一般情况下使用简单网络管理协议(Simple Network Management Protocol,简称为 SNMP)进行同步或者采集资源数据信息的效率 都比较低。而接入网是面向最终用户的网络, 网元数量多是接入网元的最典型的特征。 以无源光网络 (Passive Optical Network, 简称为 PON) 为例, 一般中型规模的无源光 网络, 光线路终端 (Optical Line Terminal, 简称为 OLT) 网元的数据就可以达到一千 个以上。 为了保证资源数据的准确性, 现有技术中主要是通过在网管系统上设置资源 同步的定期执行策略, 通过这个策略网管系统定期从全网所有网元的同步网元上获取 所有的资源配置数据, 从而保证网管系统和网元设备的资源信息的一致性。 然而, 由 于网元是采用 SNMP协议进行管理的因此这种资源同步的效率比较低, 同时也耗费了 网管服务器和网元设备大量的物理资源。 针对上述的问题, 目前尚未提出有效的解决方案。 发明内容 本发明实施例提供了一种资源同步方法和装置, 以至少解决现有技术中由于采用 网管获取网元上的所有资源配置数据的方式进行网元同步, 而导致的网管服务器和网 元设备的资源浪费的技术问题。 根据本发明的一个方面, 提供了一种资源同步方法, 包括: 网管接收网元设备中 发生变化的资源的位置信息; 网管根据位置信息对本地存储的与发生变化的资源对应 的资源进行同步更新。 优选地, 网管根据位置信息对本地存储的与发生变化的资源对应的资源进行同步 更新的步骤包括: 网管判断在网元设备中位置信息指示的位置上是否存在发生变化的 资源; 若不存在发生变化的资源, 则网管删除本地存储的与发生变化的资源对应的资 源的配置参数。 优选地, 在网管判断在网元设备中位置信息指示的位置上是否存在发生变化的资 源之后, 资源同步方法还包括: 若存在发生变化的资源, 则网管对本地存储的与发生 变化的资源对应的资源的配置参数进行同步更新。 优选地, 网管对本地存储的与发生变化的资源对应的资源的配置参数进行同步更 新的步骤包括: 网管判断是否本地存在与发生变化的资源对应的资源的配置参数; 若 存在与发生变化的资源对应的资源的配置参数, 则网管将与发生变化的资源对应的资 源的配置参数更新为发生变化的资源的配置参数; 若不存在与发生变化的资源对应的 资源的配置参数, 则网管在本地存储发生变化的资源的配置参数。 优选地, 在网管接收网元设备中发生变化的资源的位置信息之前, 资源同步方法 还包括: 网元设备检测是否存在发生变化的资源; 若存在发生变化的资源, 则网元设 备获取发生变化的资源的位置信息; 网元设备将发生变化的资源的位置信息发送给网 管。 优选地, 网元设备获取发生变化的资源的位置信息的步骤包括: 网元设备将所有 发生变化的资源的位置信息按照发生变化的时间顺序记录到更新表中; 网元设备将发 生变化的资源的位置信息发送给网管的步骤包括: 网元设备在需要进行配置更新时将 携带有位置信息的更新表发送给网管。 根据本发明的另一方面, 提供了一种资源同步装置, 位于网管中, 包括: 接收单 元, 设置为接收网元设备中发生变化的资源的位置信息; 同步单元, 设置为根据位置 信息对本地存储的与发生变化的资源对应的资源进行同步更新。 优选地, 同步单元包括: 判断模块, 设置为判断在网元设备中位置信息指示的位 置上是否存在发生变化的资源; 删除模块, 设置为在不存在发生变化的资源时, 删除 本地存储的与发生变化的资源对应的资源的配置参数。 优选地, 同步单元还包括: 更新模块, 设置为在存在发生变化的资源时, 对本地 存储的与发生变化的资源对应的资源的配置参数进行同步更新。 优选地, 更新模块包括: 判断子模块, 设置为判断是否本地存在与发生变化的资 源对应的资源的配置参数; 更新子模块, 设置为在判断出存在与发生变化的资源对应 的资源的配置参数时, 将与发生变化的资源对应的资源的配置参数更新为发生变化的 资源的配置参数; 存储子模块, 设置为在判断出不存在与发生变化的资源对应的资源 的配置参数时, 在本地存储发生变化的资源的配置参数。 根据本发明的又一方面, 提供了另一种资源同步装置, 位于网元设备中, 包括: 检测单元, 设置为检测是否存在发生变化的资源; 获取单元, 设置为在存在发生变化 的资源时, 获取发生变化的资源的位置信息; 发送单元, 设置为将发生变化的资源的 位置信息发送给网管。 优选地, 获取单元包括: 获取模块, 设置为将所有发生变化的资源的位置信息按 照发生变化的时间顺序记录到更新表中; 发送单元包括: 发送模块, 设置为在需要进 行配置更新时将携带有位置信息的更新表发送给网管。 在本发明中, 网管根据网元设备发送的发生变化的资源的位置信息到该网元设备 上获取发生变化的资源的更新配置信息, 从而实现了增量差异方式的资源同步。 因为 只需要对发生变化的资源进行资源的同步更新, 从而解决了现有技术中由于采用网管 获取网元上的所有资源配置数据的方式进行网元同步, 而导致的网管服务器和网元设 备的资源浪费的技术问题, 提高了资源同步的效率, 减少了物理资源的消耗。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中- 图 1是根据相关技术的网络管理系统的结构示意图; 图 2是根据本发明实施例的位于网管中的资源同步装置的一种优选结构框图; 图 3 是根据本发明实施例的位于网元设备中的资源同步装置的一种优选结构框 图; 图 4是根据本发明实施例的同步单元的一种优选结构框图; 图 5是根据本发明实施例的同步单元的另一种优选结构框图; 图 6是根据本发明实施例的更新模块的一种优选结构框图; 图 7是根据本发明实施例的获取单元的一种优选结构框图; 图 8是根据本发明实施例的资源同步方法的一种优选流程图; 图 9是根据本发明实施例的资源同步方法的另一种优选流程图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 实施例 1 本发明实施例提供了一种优选的资源同步系统, 该资源同步系统包括: 位于网元 设备中的资源同步装置和位于网管中的资源同步装置, 其中, 位于网管中的资源同步 装置如图 2所示, 包括: 接收单元 202, 设置为接收网元设备中发生变化的资源的位 置信息; 同步单元 204, 与接收单元 202耦合, 设置为根据位置信息对本地存储的与 发生变化的资源对应的资源进行同步更新。 位于网元设备中的资源同步装置如图 3所示, 包括: 检测单元 302, 设置为检测 是否存在发生变化的资源; 获取单元 304, 与检测单元 302耦合, 设置为在存在发生 变化的资源时, 获取发生变化的资源的位置信息; 发送单元 306, 与获取单元 304耦 合, 设置为将发生变化的资源的位置信息发送给网管。 在上述优选实施方式中, 网管根据网元设备发送的发生变化的资源的位置信息到 该网元设备上获取发生变化的资源的更新配置信息, 从而实现了增量差异方式的资源 同步。 因为只需要对发生变化的资源进行资源的同步更新, 从而解决了现有技术中由 于采用网管获取网元上的所有资源配置数据的方式进行网元同步, 而导致的网管服务 器和网元设备的资源浪费的技术问题, 提高了资源同步的效率, 减少了物理资源的消 耗。 进一步的, 在上述优选实施方式中, 网管对资源进行检查, 对发生变化的资源进 行记录并获取其对应的位置信息, 从而保证了网管可以通过增量差异的方式实现资源 的同步, 提高了资源同步的效率, 网元设备只需要记录发生变化的资源的位置信息而 不需要记录全部变化的数据, 从而减少了网元设备的负担。 在本发明一个优选实施方式中,如图 4所示, 同步单元 204,包括:判断模块 402, 设置为判断在网元设备中位置信息指示的位置上是否存在发生变化的资源; 删除模块 404, 与判断模块 402耦合, 设置为在不存在发生变化的资源时, 删除本地存储的与发 生变化的资源对应的资源的配置参数。 在上述优选实施方式中, 在网管在根据位置信 息到网元设备上查询相应的资源更新信息时, 如果发现网元设备上没有该位置信息对 应的资源, 则表明网元设备上已经删除了该资源, 从而网管也删除自身的该资源的配 置信息, 实现了资源信息的同步。 在本发明一个优选实施方式中,基于图 4所示的装置,如图 5所示,同步单元 204, 还包括: 更新模块 502, 设置为在存在发生变化的资源时, 对本地存储的与发生变化 的资源对应的资源的配置参数进行同步更新。 在上述优选实施方式中, 当检测到网元 设备上还存在地址信息对应的资源的时候, 网管对该本地的该资源的配置信息进行同 步的更新。 在本发明一个优选实施方式中,如图 6所示,更新模块 502包括:判断子模块 602, 设置为判断是否本地存在与发生变化的资源对应的资源的配置参数; 更新子模块 604, 与判断子模块 602耦合, 设置为在判断出存在与发生变化的资源对应的资源的配置参 数时,将与发生变化的资源对应的资源的配置参数更新为发生变化的资源的配置参数; 存储子模块 606, 与更新子模块 604耦合, 设置为在判断出不存在与发生变化的资源 对应的资源的配置参数时, 在本地存储发生变化的资源的配置参数。 在上述优选实施 方式中, 当检测到网元设备上存在地址信息对应的资源信息的情况下, 网管查看本地 是否有对应的资源, 如果有则利用网元设备中的资源配置信息替代本地存储的该资源 的配置信息, 如果不存在, 则网管在本地重新开辟空间来保存新增加的资源以及其配 置信息, 从而保证了资源的同步更新。 在本发明一个优选实施方式中,基于图 3所示的装置,如图 7所示,获取单元 304 包括: 获取模块 702, 设置为将所有发生变化的资源的位置信息按照发生变化的时间 顺序记录到更新表中; 发送单元 306包括: 发送模块 704, 设置为在需要进行配置更 新时将携带有位置信息的更新表发送给网管。 在上述优选实施方式中, 网元设备将位 置信息按照变化的时间顺序记录到更新表中, 将更新表发给网管, 有利于网管获取资 源更新的位置信息以及相应的时间信息, 易于实现, 减少了操作的复杂度。 实施例 2 基于图 1-7所示的优选的资源同步装置, 本发明还提供了一种优选的资源同步方 法, 如图 8所示, 该方法具体步骤包括: S802: 网管接收网元设备中发生变化的资源的位置信息; TECHNICAL FIELD The present invention relates to the field of communications, and in particular, to a resource synchronization method and apparatus. BACKGROUND OF THE INVENTION Telecommunication network resource management is used to manage various physical resources, pipeline resources, channel resources, and circuit resources of operators. The NEs, racks, subracks, boards, ports, and optical network units (ONUs) of the access device belong to physical resources. Network resource management is the most important part of the telecommunication network operation and maintenance support system. The network resource management system is the basis for telecommunication network operators to carry out network maintenance, service distribution, network optimization and network planning, and various operation and maintenance activities of telecommunication network operators. All are built around network resources. When the state and information of the network physical resources change, the resource management system needs to update the telecommunication network resources in time to ensure that the network resource system feeds back the latest resource information in real time, thereby ensuring the accuracy of other operation and maintenance activity data. The NE device management system (hereinafter referred to as the network management system or network management system, or EMS for short) is a system for directly managing NE devices. As shown in Figure 1, the NMS manages connections through the southbound interface and NEs, and through the northbound interface and carriers. The upper layer management support system (OSS) is connected. When the resource status or information changes, the network management system first collects the change information of the resource through the southbound interface, and then notifies the resource system of the resource status through the northbound interface. The information is updated. According to the definition of ITU-T G.902, the Access Network (AN) is a Service Node Interface (SNI) and a User Network Interface (UNI). Consisting of a series of transport entities, the access network is an implementation system that provides the transport bearer capabilities required to transport telecommunications services. The access network generally needs to have local management tools for local management. For example, when the device is deployed, the deployment engineer uses the local deployment tool software (for example, the Local Craft Terminal (LCT) provided by the device provider. ) Software or Telnet) Initial configuration of the device to the device. The initial deployment configuration includes some basic resource configuration. The hardware resource configuration of the device mainly includes the configuration of the rack, chassis, and board of the device. When the device is faulty, the maintenance personnel need to use local management tools to log in to the device for local configuration modification. The modification of the device configuration data needs to be timely fed back to the network management system and the resource management system. Only in this way can the data accuracy of resource-based operation and maintenance activities be guaranteed. In TMF (short for Tele Management Forum, is a service for telecommunications The requirements for resource timeliness and accuracy are also addressed in the relevant standards for managing the world's organizations that provide policy recommendations and implementations. For example, in TMF 517, it is pointed out that in the NGOSS architecture, related functions such as Inventory OS and Discovery OS. The Operating System (OS for short) needs to have the function of reporting inventory update notifications. At present, access devices provided by mainstream equipment vendors are managed by Simple Network Management Protocol (SNMP). The SNMP protocol is based on the UDP protocol. Generally, the Simple Network Management Protocol (SNMP) is used. The efficiency of synchronizing or collecting resource data information is relatively low. The access network is a network facing the end user, and the number of network elements is the most typical feature of the access network element. Taking a Passive Optical Network (PON) as an example, a medium-sized passive optical network and an Optical Line Terminal (OLT) network can have more than one thousand data. In order to ensure the accuracy of the resource data, in the prior art, a periodic execution policy of resource synchronization is set on the network management system, and the network management system periodically obtains all resource configuration data from the synchronization network elements of all network elements of the entire network. To ensure the consistency of resource information between the network management system and the network element device. However, since the network element is managed by the SNMP protocol, the efficiency of such resource synchronization is relatively low, and a large amount of physical resources of the network management server and the network element device are also consumed. In response to the above problems, no effective solution has been proposed yet. SUMMARY OF THE INVENTION The embodiments of the present invention provide a resource synchronization method and device, which can at least solve the network management server and network element caused by network element synchronization in the manner of acquiring all resource configuration data on the network element by using the network management system in the prior art. Technical problem of resource waste of equipment. According to an aspect of the present invention, a resource synchronization method is provided, including: receiving, by a network management device, location information of a resource that changes in a network element device; and performing, by the network management, a locally updated resource corresponding to the changed resource according to the location information . Preferably, the step of the network controller performing synchronous update on the locally stored resource corresponding to the changed resource according to the location information includes: determining, by the network management device, whether the changed resource exists in the location indicated by the location information in the network element device; If the resource is changed, the network management system deletes the configuration parameter of the locally stored resource corresponding to the changed resource. Preferably, after the network management determines whether there is a resource that changes in the location indicated by the location information in the network element device, the resource synchronization method further includes: if there is a resource that changes, the network management corresponds to the locally stored resource that is changed. The configuration parameters of the resource are updated synchronously. Preferably, the step of synchronizing the configuration parameters of the locally stored resource corresponding to the changed resource includes: the network management determines whether the configuration parameter of the resource corresponding to the changed resource exists locally; if the resource exists and changes The configuration parameter of the corresponding resource, the network management device updates the configuration parameter of the resource corresponding to the changed resource to the configuration parameter of the changed resource; if there is no configuration parameter of the resource corresponding to the changed resource, the network management is locally Stores configuration parameters for resources that have changed. Preferably, before the network management device receives the location information of the changed resource in the network element device, the resource synchronization method further includes: the network element device detects whether there is a resource that changes; if there is a resource that changes, the network element device acquires the change. The location information of the resource; the network element device sends the location information of the changed resource to the network management. Preferably, the step of the network element device acquiring the location information of the changed resource includes: the network element device records the location information of all the changed resources in the updated time sequence according to the changed time; the network element device will change the resource. The step of sending the location information to the network management system includes: sending, by the network element device, the update table carrying the location information to the network management system when the configuration update is required. According to another aspect of the present invention, a resource synchronization apparatus is provided, which is located in a network management, and includes: a receiving unit configured to receive location information of a resource that changes in a network element device; and a synchronization unit configured to be local to the location information according to the location information The stored resources corresponding to the changed resources are updated synchronously. Preferably, the synchronization unit comprises: a judging module, configured to determine whether there is a resource that changes in the location indicated by the location information in the network element device; and the deleting module is configured to delete the locally stored and non-existing resources when there is no changed resource The configuration parameters of the resource corresponding to the changed resource. Preferably, the synchronization unit further includes: an update module, configured to synchronously update the locally stored configuration parameters of the resource corresponding to the changed resource when there is a resource that changes. Preferably, the updating module includes: a determining submodule, configured to determine whether a configuration parameter of a resource corresponding to the changed resource exists locally; and an update submodule configured to determine, in the determining, that the configuration parameter of the resource corresponding to the changed resource exists And updating a configuration parameter of the resource corresponding to the changed resource to a configuration parameter of the changed resource; and the storage submodule is configured to be local when determining that there is no configuration parameter of the resource corresponding to the changed resource Stores configuration parameters for resources that have changed. According to still another aspect of the present invention, another resource synchronization apparatus is provided, which is located in a network element device, and includes: a detecting unit, configured to detect whether there is a resource that changes; and an acquiring unit, configured to be when there is a resource that changes Obtaining location information of the changed resource; sending unit, configured to send the location information of the changed resource to the network management. Preferably, the obtaining unit comprises: an obtaining module, configured to record the location information of all the changed resources in an updated time sequence according to the changed time; the sending unit comprises: a sending module, configured to carry when the configuration update is needed An update table with location information is sent to the network administrator. In the present invention, the network management device obtains the updated configuration information of the changed resource according to the location information of the changed resource sent by the network element device, thereby implementing resource synchronization in the incremental difference mode. The network management server and the network element device are caused by the network element synchronization in the manner of obtaining all the resource configuration data on the network element by using the network management system in the prior art. The technical problem of waste of resources improves the efficiency of resource synchronization and reduces the consumption of physical resources. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 1 is a schematic structural diagram of a network management system according to the related art; FIG. 2 is a block diagram showing a preferred structure of a resource synchronization apparatus in a network management according to an embodiment of the present invention; FIG. 3 is a block diagram of an embodiment of the present invention. A preferred block diagram of a resource synchronization device located in a network element device; FIG. 4 is a block diagram showing a preferred structure of a synchronization unit according to an embodiment of the present invention; FIG. 5 is another embodiment of a synchronization unit according to an embodiment of the present invention. FIG. 6 is a block diagram showing a preferred structure of an update module according to an embodiment of the present invention; FIG. 7 is a block diagram showing a preferred structure of an acquisition unit according to an embodiment of the present invention; FIG. 8 is a resource according to an embodiment of the present invention. A preferred flow chart of the synchronization method; FIG. 9 is another preferred flow chart of the resource synchronization method according to an embodiment of the present invention. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. Embodiment 1 The embodiment of the present invention provides a preferred resource synchronization system, where the resource synchronization system includes: a resource synchronization device located in a network element device, and a resource synchronization device located in the network management system, where the resource synchronization device is located in the network management system. As shown in FIG. 2, the receiving unit 202 is configured to receive location information of a resource that changes in the network element device. The synchronization unit 204 is coupled to the receiving unit 202 and configured to locally store and change according to the location information. The resources corresponding to the resource are updated synchronously. As shown in FIG. 3, the resource synchronization device is located in the network element device, and includes: a detecting unit 302, configured to detect whether there is a resource that changes; the acquiring unit 304 is coupled to the detecting unit 302, and is configured to be in the presence of a changed resource. And acquiring the location information of the changed resource; the sending unit 306 is coupled to the obtaining unit 304, and configured to send the location information of the changed resource to the network management. In the above preferred embodiment, the network management device obtains the updated configuration information of the changed resource according to the location information of the changed resource sent by the network element device, thereby implementing resource synchronization in the incremental difference mode. The network management server and the network element device are caused by the network element synchronization in the manner of obtaining all the resource configuration data on the network element by using the network management system in the prior art. The technical problem of waste of resources improves the efficiency of resource synchronization and reduces the consumption of physical resources. Further, in the above preferred implementation manner, the network management device checks the resources, records the changed resources, and obtains the corresponding location information, thereby ensuring that the network management can synchronize resources through incremental differences, thereby improving resources. The efficiency of the synchronization, the network element device only needs to record the location information of the changed resource without recording all the changed data, thereby reducing the burden on the network element device. In a preferred embodiment of the present invention, as shown in FIG. 4, the synchronization unit 204 includes: a determining module 402, configured to determine whether there is a resource that changes in the location indicated by the location information in the network element device; and the deleting module 404, And being coupled to the determining module 402, configured to delete the locally stored configuration parameter of the resource corresponding to the changed resource when there is no changed resource. In the above preferred embodiment, when the network management device searches for the corresponding resource update information according to the location information to the network element device, if the network element device does not have the resource corresponding to the location information, it indicates that the network element device has deleted the The resource, so that the network management also deletes its own configuration information of the resource, and synchronizes the resource information. In a preferred embodiment of the present invention, based on the apparatus shown in FIG. 4, as shown in FIG. 5, the synchronization unit 204 further includes: an update module 502, configured to generate and generate local storage when there is a resource that changes. The configuration parameters of the resource corresponding to the changed resource are synchronously updated. In the above preferred embodiment, when it is detected that the resource corresponding to the address information still exists on the network element device, the network management synchronizes the configuration information of the local resource. In a preferred embodiment of the present invention, as shown in FIG. 6, the update module 502 includes: a determining submodule 602, configured to determine whether a configuration parameter of a resource corresponding to the changed resource exists locally; the update submodule 604, and the determining The sub-module 602 is configured to: when it is determined that the configuration parameter of the resource corresponding to the changed resource exists, update the configuration parameter of the resource corresponding to the changed resource to the configuration parameter of the changed resource; the storage sub-module 606 And being coupled to the update submodule 604, and configured to locally store the configuration parameter of the changed resource when it is determined that there is no configuration parameter of the resource corresponding to the changed resource. In the above preferred embodiment, when the resource information corresponding to the address information exists on the network element device, the network management device checks whether there is a corresponding resource in the local area, and if so, uses the resource configuration information in the network element device to replace the local storage. If the configuration information of the resource does not exist, the network management reopens the space locally to save the newly added resource and its configuration information, thereby ensuring synchronous update of the resource. In a preferred embodiment of the present invention, based on the apparatus shown in FIG. 3, as shown in FIG. 7, the obtaining unit 304 includes: an obtaining module 702, configured to record the position information of all changed resources according to the time sequence of the change. The sending unit 306 includes: a sending module 704, configured to send the update table carrying the location information to the network management when the configuration update needs to be performed. In the above preferred embodiment, the network element device records the location information into the update table according to the changed time sequence, and sends the update table to the network management system, which facilitates the network management to obtain the location information of the resource update and the corresponding time information, which is easy to implement and reduces. The complexity of the operation. Embodiment 2 Based on the preferred resource synchronization device shown in FIG. 1-7, the present invention further provides a preferred resource synchronization method. As shown in FIG. 8, the specific steps of the method include: S802: The network management device receives the network element device. Location information of the changed resource;
S804: 网管根据位置信息对本地存储的与发生变化的资源对应的资源进行同步更 新。 在上述优选实施方式中, 网管根据网元设备发送的发生变化的资源的位置信息到 该网元设备上获取发生变化的资源的更新配置信息, 从而实现了增量差异方式的资源 同步。 因为只需要对发生变化的资源进行资源的同步更新, 从而解决了现有技术中由 于采用网管获取网元上的所有资源配置数据的方式进行网元同步, 而导致的网管服务 器和网元设备的资源浪费的技术问题, 提高了资源同步的效率, 减少了物理资源的消 耗。 为了减少对资源同步时系统资源的浪费, 本优选实施例对网管根据位置信息从网 元设备上获取发生变化的资源的更新配置信息的步骤进行了改进, 在本发明一个优选 实施方式中, 网管根据位置信息对本地存储的与发生变化的资源对应的资源进行同步 更新的步骤包括: 网管判断在网元设备中位置信息指示的位置上是否存在发生变化的 资源; 若不存在发生变化的资源, 则网管删除本地存储的与发生变化的资源对应的资 源的配置参数。 若存在发生变化的资源, 则网管对本地存储的与发生变化的资源对应 的资源的配置参数进行同步更新。 在上述优选实施方式中, 在网管在根据位置信息到 网元设备上查询相应的资源更新信息时, 如果发现网元设备上没有该位置信息对应的 资源, 则表明网元设备上已经删除了该资源, 从而网管也删除自身的该资源的配置信 息, 实现了资源信息的同步。当检测到网元设备上还存在地址信息对应的资源的时候, 网管对该本地的该资源的配置信息进行同步的更新。 在本发明一个优选实施方式中, 网管对本地存储的与发生变化的资源对应的资源 的配置参数进行同步更新的步骤包括: 网管判断是否本地存在与发生变化的资源对应 的资源的配置参数; 若存在与发生变化的资源对应的资源的配置参数, 则网管将与发 生变化的资源对应的资源的配置参数更新为发生变化的资源的配置参数; 若不存在与 发生变化的资源对应的资源的配置参数, 则网管在本地存储发生变化的资源的配置参 数。 在上述优选实施方式中, 当检测到网元设备上存在地址信息对应的资源信息的情 况下, 网管查看本地是否有对应的资源, 如果有则利用网元设备中的资源配置信息替 代本地存储的该资源的配置信息, 如果不存在, 则网管在本地重新开辟空间来保存新 增加的资源以及其配置信息, 从而保证了资源的同步更新。 对于网管如何获得发生变化的资源的位置, 本发明实施例也提供了一种优选的实 现方式, 包括: 网元设备检测是否存在发生变化的资源; 若存在发生变化的资源, 则 网元设备获取发生变化的资源的位置信息; 网元设备将发生变化的资源的位置信息发 送给网管。 在上述优选实施方式中, 网管对资源进行检查, 对发生变化的资源进行记 录并获取其对应的位置信息, 从而保证了网管可以通过增量差异的方式实现资源的同 步, 提高了资源同步的效率, 网元设备只需要记录发生变化的资源的位置信息而不需 要记录全部变化的数据, 从而减少了网元设备的负担。 在本发明一个优选实施方式中, 通过以下步骤确定是否需要进行配置更新: 网元 设备检测是否到达配置更新的上报时刻, 若到达上报时刻, 则确定为需要进行配置更 新; 或者网元设备检测是否接收到网管发送的配置更新请求消息, 若接收到配置更新 请求消息, 则确定为需要进行配置更新。 为了更好的记录发生变化的资源的位置信息, 在本发明一个优选实施方式中, 网 元设备将所有发生变化的资源的位置信息按照发生变化的时间顺序记录到更新表中; 网元设备在需要进行配置更新时将携带有位置信息的更新表发送给网管。 在上述优选 实施方式中, 网元设备将位置信息按照变化的时间顺序记录到更新表中, 将更新表发 给网管, 有利于网管获取资源更新的位置信息以及相应的时间信息, 易于实现, 减少 了操作的复杂度。 实施例 3 本发明提供了一种优选的实施例来进一步对本发明进行解释,但是值得注意的是, 该优选实施例只是为了更好的描述本发明, 并不构成对本发明不当的限定。 在本优选实施例中, 提供了一种基于 SNMP协议进行网管系统和网元设备之间以 增量方式快速高效地同步资源信息和状态的方法和装置。 为了达到上述目的, 本发明 采用的技术方案如下- S804: The network management synchronizes the locally stored resources corresponding to the changed resources according to the location information. In the above preferred embodiment, the network management device obtains the updated configuration information of the changed resource according to the location information of the changed resource sent by the network element device, thereby implementing resource synchronization in the incremental difference mode. The network management server and the network element device are caused by the network element synchronization in the manner of obtaining all the resource configuration data on the network element by using the network management system in the prior art. The technical problem of waste of resources improves the efficiency of resource synchronization and reduces the consumption of physical resources. In order to reduce the waste of the system resources when the resources are synchronized, the preferred embodiment improves the step of the network management to obtain the updated configuration information of the changed resources from the network element device according to the location information, and is preferred in the present invention. In an embodiment, the step of the network controller performing the synchronous update on the locally stored resource corresponding to the changed resource according to the location information includes: determining, by the network management device, whether the changed resource exists in the location indicated by the location information in the network element device; If the resource changes, the NMS deletes the configuration parameters of the locally stored resource corresponding to the changed resource. If there is a resource that changes, the network management synchronizes the configuration parameters of the locally stored resource corresponding to the changed resource. In the above preferred embodiment, when the network management device searches for the corresponding resource update information according to the location information to the network element device, if the network element device does not have the resource corresponding to the location information, it indicates that the network element device has deleted the The resource, so that the network management also deletes its own configuration information of the resource, and synchronizes the resource information. When it is detected that the resource corresponding to the address information still exists on the network element device, the network management synchronizes the configuration information of the local resource. In a preferred embodiment of the present invention, the step of synchronizing the configuration parameters of the locally stored resource corresponding to the changed resource includes: the network management determines whether the configuration parameter of the resource corresponding to the changed resource exists locally; If there is a configuration parameter of the resource corresponding to the changed resource, the network management device updates the configuration parameter of the resource corresponding to the changed resource to the configuration parameter of the changed resource; if there is no resource configuration corresponding to the changed resource The parameter, the network management locally stores the configuration parameters of the changed resource. In the above preferred embodiment, when the resource information corresponding to the address information exists on the network element device, the network management device checks whether there is a corresponding resource in the local area, and if so, uses the resource configuration information in the network element device to replace the local storage. If the configuration information of the resource does not exist, the network management reopens the space locally to save the newly added resource and its configuration information, thereby ensuring synchronous update of the resource. The embodiment of the present invention provides a preferred implementation manner for the network management device to obtain the changed resource. The network element device detects whether there is a resource that changes. The location information of the changed resource; the network element device sends the location information of the changed resource to the network management. In the above preferred embodiment, the network management checks resources, records the changed resources, and obtains corresponding location information, thereby ensuring that the network management can synchronize resources through incremental differences, thereby improving resource synchronization efficiency. The network element device only needs to record the location information of the changed resource without recording all the changed data, thereby reducing the burden on the network element device. In a preferred embodiment of the present invention, it is determined whether the configuration update is required by the following steps: the network element device detects whether the configuration update is reached, and if the report time is reached, it is determined that the configuration update is required; or the network element device detects whether After receiving the configuration update request message sent by the network management system, if the configuration update request message is received, it is determined that the configuration update is required. In order to better record the location information of the changed resource, in a preferred embodiment of the present invention, the network element device records the location information of all the changed resources in the updated time sequence according to the changed time; the network element device is An update table carrying location information is sent to the NMS when a configuration update is required. Preferred in the above In an embodiment, the network element device records the location information into the update table according to the changed time sequence, and sends the update table to the network management system, which facilitates the network management to obtain the location information of the resource update and the corresponding time information, which is easy to implement and reduces the operation. the complexity. The invention is further described in the preferred embodiments of the invention, but it is to be understood that the preferred embodiments are not intended to limit the invention. In the preferred embodiment, a method and apparatus for quickly and efficiently synchronizing resource information and status between a network management system and a network element device in an incremental manner based on an SNMP protocol are provided. In order to achieve the above object, the technical solution adopted by the present invention is as follows -
1 )在资源发生变化的时候, 网元设备记录下资源的具体位置信息, 而不是记录所 有的变化, 这个方法对于网元设备的实现很简单, 网元设备在资源配置操作命令的入 口处对命令进行初步解析, 记录配置命令的配置对象, 即资源的位置信息。 优选的, 可以以网元设备在原来的命令处理流程上增加资源更新代理模块设置为负责解析出资 源的位置信息并记录位置信息。 优选的, 可以在网元设备和网管系统之间定义各种需 要同步的资源的位置信息表示模型, 当某个资源配置或者状态发生改变的时候, 网元 设备能记录发生变化的资源的位置信息, 网管根据位置信息能解析出发生改变的资源 的具体位置, 从而实现对需要进行同步的资源进行同步。 1) When the resource changes, the network element device records the specific location information of the resource instead of recording all the changes. This method is simple for the implementation of the network element device, and the network element device is at the entrance of the resource configuration operation command. The command performs preliminary analysis and records the configuration object of the configuration command, that is, the location information of the resource. Preferably, the network element device may be configured to add the resource update agent module to the location information of the resource and record the location information on the original command processing flow. Preferably, the location information representation model of the resources that need to be synchronized may be defined between the network element device and the network management system. When a resource configuration or state changes, the network element device can record the location information of the changed resource. The network management can analyze the specific location of the changed resource according to the location information, so as to synchronize the resources that need to be synchronized.
2)网元设备将所有的资源配置更新按照时间顺序记录到一张更新表中, 当需要进 行配置更新时, 主动发送要求更新数据 SNMP Trap给网管系统, 要求网管系统进行数 据的同步更新。 2) The network element device records all the resource configuration updates in an update table in chronological order. When the configuration update is required, the SNMP Trap is sent to the network management system, and the network management system is required to perform synchronous update of the data.
3 )当网管系统发现需要进行资源同步时, 采用增量差异方式进行同步, 这里所谓 的增量差异同步是指网管系统仅仅对发生更新的资源数据进行处理, 而不需要对网元 的所有资源进行处理。 在本优选实施例中, 各个模块的作用主要是: 网元设备待同步资源位置存储区: 在网元设备的非易失性存储装置中保存等待网 管系统同步的资源位置信息记录, 同一个资源位置信息只有一条记录, 资源位置信息 对外提供增加、 删除和查询的对外接口。 优选的, 在外部模块或者装置调用增加接口 增加资源位置信息记录时, 系统自动判断当前存储器是否已经有相同的记录, 如果有 相同的记录, 则不用保存这条记录到存储区中; 由于网元待同步资源位置存储区不能 无限制的保存资源位置信息, 因此, 优选的技术实现是当需要同步的记录数大于某个 特定的值的时候, 再在增加记录接口被调用的时候就不再增加该记录, 而网管系统能 通过记录条目数的多少判断是否需要对网元设备进行所有资源数据的同步。 网元设备资源更新代理模块: 所有的对设备的资源配置增加、 删除和修改操作, 不管是采用本地方式的配置操作还是采用远程对网管进行配置操作, 网元设备接收到 以后均需要将配置命令消息转发给资源更新代理模块, 资源更新代理模块解析配置命 令中的资源对象, 将资源对象位置信息增加到网元待同步资源的位置存储区。 考虑到 通过网管发起的资源更新操作, 在网元设备返回给网管配置成功后, 网管可以自动的 更新资源数据, 所述模块无需记录该位置信息, 在本发明一个优选实施方式中, 资源 更新代理模块可以配置是否需要将所有的配置变更都记录下来, 资源更新代理模块可 以根据命令发起的 IP地址或者协议类型判断是否需要将配置变更记录下来。 网元设备资源更新触发模块: 定期读取待同步资源位置存储区的记录数, 当发现 有记录的时候, 通过 SNMP Trap发送请求同步的消息给网管系统, 优选的, 可以将记 录数也在 Trap消息中作为附件信息发给网管系统。 网管系统 Trap接收模块: 负责接收被管理的所有网元设备发送的 Trap消息, 判 断如果是资源同步请求 Trap消息,转发给网管系统资源更新处理模块进行资源同步处 理。 网管系统资源更新处理模块: 在接收到资源同步消息后, 对目标网元进行资源同 少。 网管系统同步流程如图 9所示, 包括以下步骤: 3) When the network management system finds that resource synchronization is required, the incremental difference is used for synchronization. The so-called incremental differential synchronization means that the network management system only processes the updated resource data, but does not need all resources for the network element. Process it. In the preferred embodiment, the function of each module is mainly: the network element device to be synchronized resource location storage area: in the non-volatile storage device of the network element device, the resource location information record waiting for the synchronization of the network management system is saved, the same resource The location information has only one record, and the resource location information provides an external interface for adding, deleting, and querying. Preferably, when the external module or the device calls the add interface to increase the resource location information record, the system automatically determines whether the current memory has the same record. If there is the same record, the record is not saved in the storage area; The location of the resource to be synchronized cannot be stored. Unrestricted storage of resource location information, therefore, the preferred technical implementation is that when the number of records that need to be synchronized is greater than a certain value, the record is no longer added when the recording interface is called, and the network management system can It is determined by counting the number of entries whether it is necessary to synchronize all resource data with the network element device. The NE device resource update agent module: All the resource configuration of the device is added, deleted, and modified. The local device needs to be configured in the local mode or remotely configured on the NMS. The message is forwarded to the resource update agent module, and the resource update agent module parses the resource object in the configuration command, and adds the resource object location information to the location storage area of the network element to be synchronized. After the resource update operation is initiated by the network management system, after the network element device returns to the network management device, the network management system can automatically update the resource data, and the module does not need to record the location information. In a preferred embodiment of the present invention, the resource update agent The module can configure whether all configuration changes need to be recorded. The resource update agent module can determine whether the configuration change needs to be recorded according to the IP address or protocol type initiated by the command. The NE device resource update triggering module: periodically reads the number of records in the storage location of the resource to be synchronized. When a record is found, the message is sent to the network management system through SNMP Trap. Preferably, the number of records can also be in the trap. The message is sent to the network management system as attachment information. The Trap receiving module of the network management system is responsible for receiving the Trap message sent by all the managed NE devices, and determining that the resource synchronization request trap message is forwarded to the network management system resource update processing module for resource synchronization processing. The network management system resource update processing module: After receiving the resource synchronization message, the target network element has fewer resources. The synchronization process of the network management system is shown in Figure 9, which includes the following steps:
S902: 网管系统 Trap接收模块根据网元设备上报资源同步请求 Trap消息, 解析 出网元 IP地址信息, 再将该 IP地址信息转发给网管系统资源更新处理模块进行资源 的同步; S902: The network management system Trap receiving module parses the resource synchronization request trap message according to the network element device, parses the IP address information of the network element, and forwards the IP address information to the network management system resource update processing module to synchronize the resources;
S904: 网管系统资源更新处理模块启动资源同步线程任务进行目标网元的资源同 步; S904: The network management system resource update processing module starts the resource synchronization thread task to perform resource synchronization of the target network element;
S906: 在资源同步线程任务中发送 SNMP操作给待同步网元获取网元设备上待同 步资源位置存储区的所有待同步资源的位置信息的记录; S906: Send an SNMP operation to the resource synchronization thread task to obtain a record of location information of all to-be-synchronized resources of the to-be-synchronized resource location storage area on the network element device.
S908: 资源同步线程任务中启动定期器, 等待指定时间 T, 这里等待一段时间开 始同步操作的目的是为了让本网管系统以外的其它网管系统有足够的时间获取到待同 步的资源位置信息, 这种方法是可选的技术, 如果仅仅连接一个网管系统, 这里则不 需要等待时间, 直接进行以下的步骤。 优选的, 为了让多个网管不在同一个时间获取 数据, T的取值可以是一个小于 30秒的随机值。 S908: The timer is started in the resource synchronization thread task, and waits for the specified time T. The purpose of waiting for a period of time to start the synchronization operation is to allow the network management system other than the network management system to have sufficient time to obtain the same. The resource location information of the step, this method is an optional technology. If only one network management system is connected, there is no waiting time, and the following steps are directly performed. Preferably, in order to allow multiple network tubes to not acquire data at the same time, the value of T may be a random value less than 30 seconds.
S910: 资源同步线程任务中判断从网元设备获取的所有需要同步的资源的位置记 录的数量, 如果大于特定的数量 N, 执行 S912, 否则转而执行 S914. S910: The resource synchronization thread task determines the number of location records of all resources that need to be synchronized obtained from the network element device. If it is greater than a specific number N, execute S912, otherwise, execute S914.
S912: 则使用传统的资源同步的方法进行资源同步, 同步完成后删除网元上存储 的所有的待同步的资源位置记录, 结束本流程。 S912: The resource synchronization is performed by using the traditional resource synchronization method. After the synchronization is completed, all the resource location records to be synchronized stored on the network element are deleted, and the process ends.
S914: 从资源位置信息记录中获取下一条资源位置 A, 使用 SNMP操作到网元上 获取资源位置 A对应的资源配置数据信息。 S916: 根据 SNMP操作返回结果进行判断, 如果读取的资源 A为空, 但是网管上 有资源 A对应的数据记录, 则执行 S918, 如果成功获取到网元上资源 A的数据, 则 转而执行 S920。 S914: Obtain the next resource location A from the resource location information record, and use the SNMP operation to obtain the resource configuration data information corresponding to the resource location A. S916: Determine, according to the return result of the SNMP operation, if the read resource A is empty, but the data record corresponding to the resource A is on the network management, execute S918. If the data of the resource A on the network element is successfully obtained, the process is performed. S920.
S918: 表示资源在网元设备上已经被删除, 网管数据库上也删除资源 A的数据, 转而执行 S926。 S920: 判断网管上是否已经有相关的资源信息, 如果有, 则执行 S922, 否则转而 执行 S924。 S918: Indicates that the resource has been deleted on the network element device, and the data of the resource A is also deleted on the network management database, and the S926 is executed. S920: Determine whether the related resource information is already available on the network management device. If yes, execute S922; otherwise, execute S924 instead.
S922: 更新网管系统中的资源 A的信息, 转而执行 S926。 S924: 增加新的资源数据 A记录到网管系统中。 S922: Update the information of the resource A in the network management system, and then execute S926. S924: Add new resource data A is recorded in the network management system.
S926: 发送 SNMP操作给网元设备, 删除网元设备上待同步资源位置存储区对应 的资源 A的记录; S926: Send an SNMP operation to the network element device, and delete the record of the resource A corresponding to the resource location storage area to be synchronized on the network element device;
S928: 判断是否已经将所有资源记录同步完成, 如果是则结束本流程, 如果否, 则转而执行 S914, 直到所有资源位置全部同步完成。 以下结合附图对本发明的优选实施例进行说明, 应当理解, 此处所描述的优选实 施例仅仅用于说明和解释本发明, 并不用于限定本发明; 优选实施例是基于 PON设备 的资源同步的实例。 优选的, 首先定义资源的信息表示方法, PON设备需要同步的资源包括全局资源 (ONU的各种带宽模板配置, 全局虚拟局域网 (Virtual Local Area Network, 简称为 VLAN) 配置等), 单板资源, 端口资源 (包括 PON口), ONU资源 (ONU资源包括 ONU的版本, 名称, ONU下的线路配置, ONU的业务配置和 ONU下的用户网络接 口(User Network Interface,简称为 UNI)口配置等)。约定使用" Global"表示全局资源; 使用"机框号-单板号"表示单板资源,比如" 2-3"表示对 2号机框下的 3号单板的资源修 改;使用"机框号 -单板号-端口号"表示 PON口资源;使用"机框号-单板号-端口号 -ONU 号"表示 ONU资源, 比如" 2-3-4-5"表示需要对 2号机框, 3号 PON板, 4号 PON口, 5号 ONU下的资源配置进行同步。 其次定义网管系统和网元设备之间交互的各种 SNMP操作的接口: S928: It is judged whether all resource records have been synchronized, if yes, the process ends, and if not, then S914 is executed, until all resource locations are synchronized. The preferred embodiments of the present invention are described in conjunction with the accompanying drawings, and the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not intended to limit the present invention; Example. Preferably, the information representation method of the resource is first defined, and the resources that the PON device needs to synchronize include the global resource (the various bandwidth template configurations of the ONU, and the virtual local area network (Virtual Local Area Network) VLAN) configuration, board resources, port resources (including PON ports), ONU resources (ONU resources include ONU version, name, line configuration under ONU, ONU service configuration, and user network interface under ONU (User Network) Interface, referred to as UNI) port configuration, etc.). It is agreed to use "Global" to indicate global resources; use "frame number-board number" to indicate board resources, for example, "2-3" means to modify the resources of board No. 3 under the No. 2 chassis; use "chassis" No. - board number - port number" indicates PON port resources; use "chassis number - board number - port number - ONU number" to indicate ONU resources, such as "2-3-4-5" means that machine 2 is required The resource configuration of the box, No. 3 PON board, No. 4 PON port, No. 5 ONU is synchronized. Secondly, define the interfaces of various SNMP operations that are exchanged between the network management system and the network element device:
1 ) 网元设备上报 "请求资源同步" 的 Trap消息 MIB接口; 2) 网管系统获取网元设备上所有待同步的资源位置信息 MIB接口; 1) The NE device reports the Trap message requesting the resource synchronization MIB interface; 2) The network management system obtains the MIB interface of all the resource location information to be synchronized on the NE device;
3 )网管系统删除网元设备上待同步资源位置存储区资源位置信息记录 MIB接口; 3) The network management system deletes the resource location information record MIB interface of the resource location storage area to be synchronized on the network element device;
4) 网管系统同步全局资源、 单板资源、 端口资源、 ONU资源的 SNMP MIB 接口, 如果网管和网元在传统的资源同步中已经定义了这里的信息管理库4) The network management system synchronizes the SNMP MIB interface of the global resource, the board resource, the port resource, and the ONU resource. If the network management and the network element have defined the information management library in the traditional resource synchronization.
(Managemeng Information Base, 简称为 MIB) 接口, 这里无需再重复定义。 网元设备上定义待同步资源存储区, 定义存储区为一个队列, 队列中的各个元素 是一个字符串类型的数据, 队列最大长度是 255, 当队列长度大于 255时, 不再插入 记录。 网元设备上增加网元设备资源更新代理模块, 所有通过 telnet或者 SNMP方式远 程对网元资源的操作命令或者使用网元设备提供的本地接口进行的操作命令首先由网 元代理收到, 然后再发给其它的各个模块。 网元设备上的具体实施流程和步骤如下: 在网元设备接收到资源修改操作后, 资源更新代理模块解析操作的资源对象, 将 该资源对象插入待同步资源存储区队列中, 插入的时候判断是否队列中已经有相同的 目标资源对象, 如果有, 则不进行任何操作。 网元设备启动资源同步检查定时器,每隔 10分钟检查一次是否有资源需要进行同 步, 如果有资源需要同步, 则发送"请求资源同步 "Trap消息给网管服务器, 通知其进 行资源同步。 当网元设备接收到网管服务器删除待同步资源记录的命令时, 将列表中对应的资 源记录删除。 网管系统更新其 Trap接收模块的处理流程, 在 Trap接口处理流程中增加解析网 元设备的 "请求资源同步" Trap消息的步骤, 当接收到网元上报的 "请求资源同步" 的 Trap消息后, 将网元的 IP地址发送给网管系统资源更新处理模块进行具体的网元 资源同步处理。 网管系统增加网管系统资源更新处理模块, 在这个模块中首先启动一 个主线程, 负责接收 Trap模块发过来的资源同步请求消息, 并且对所有网元的资源同 步请求进行管理, 分配线程进行具体网元资源的同步, 同时创建一个 100个线程的线 程池, 用于进行各个网元的资源同步。 网管系统随机生成一个大于 10小于 30的随机 数 TimerO作为延时时间参数。 基于上述的网管系统进行资源同步的步骤包括: (Managemeng Information Base, referred to as MIB) interface, there is no need to repeat the definition here. On the NE device, the resource storage area to be synchronized is defined. The storage area is a queue. Each element in the queue is a string of data. The maximum length of the queue is 255. When the queue length is greater than 255, the record is no longer inserted. The network element device resource update proxy module is added to the network element device. All operation commands for remotely accessing the network element resource through telnet or SNMP or the local interface provided by the network element device are first received by the network element proxy, and then Send it to other modules. The specific implementation process and steps on the network element device are as follows: After the network element device receives the resource modification operation, the resource update agent module parses the resource object of the operation, and inserts the resource object into the queue of the resource storage area to be synchronized, and judges when inserted. Whether there is already the same target resource object in the queue, and if so, no action is taken. The NE device starts the resource synchronization check timer, and checks whether resources need to be synchronized every 10 minutes. If resources need to be synchronized, send a Request Resource Synchronization Trap message to the NMS server to notify it of resource synchronization. When the network element device receives the command to delete the resource record to be synchronized, the network element device deletes the corresponding resource record in the list. The network management system updates the processing flow of the Trap receiving module, and adds a step of parsing the "request resource synchronization" Trap message of the network element device in the Trap interface processing flow. After receiving the "request resource synchronization" Trap message reported by the network element, The IP address of the network element is sent to the network management system resource update processing module to perform specific network element resource synchronization processing. The network management system adds a network management system resource update processing module. In this module, a main thread is first started, which is responsible for receiving a resource synchronization request message sent by the Trap module, and managing resource synchronization requests of all network elements, and allocating threads to perform specific network elements. The synchronization of resources, at the same time create a thread pool of 100 threads, used to synchronize the resources of each network element. The network management system randomly generates a random number TimerO greater than 10 and less than 30 as the delay time parameter. The steps of resource synchronization based on the network management system described above include:
Sl, Trap接收模块收到网元设备的 "资源同步请求", 解析出 Trap源网元的 IP地 址并发送消息给资源更新处理模块进行资源同步操作; The Sl, the Trap receiving module receives the "resource synchronization request" of the network element device, parses the IP address of the Trap source network element, and sends a message to the resource update processing module for resource synchronization operation;
S2, 资源更新处理模块接收到 Trap接收模块发来的资源同步请求, 启动一个独立 的线程进行具体目标网元的资源同步; S2. The resource update processing module receives the resource synchronization request sent by the Trap receiving module, and starts an independent thread to perform resource synchronization of the specific target network element.
S3, 发送 SNMP GetNext操作获取目标网元设备待同步资源位置存储区的所有待 同步资源位置信息; S3, sending an SNMP GetNext operation to obtain all the to-be-synchronized resource location information of the target network element device to be synchronized resource location storage area;
S4: 在资源同步具体线程中启动一个定期器, 等待 TimerO时间, 定时器时间到了 就进行以下步骤; S5: 判断获取的需要同步的资源的记录数量, 如果大于等于 255, 则使用传统的 所有的资源均同步的方法进行资源同步, 结束本流程, 否则执行步骤 S6; S4: Start a timer in the specific thread of the resource synchronization, wait for the TimerO time, and perform the following steps when the timer expires; S5: determine the number of records of the acquired resources that need to be synchronized, if greater than or equal to 255, use all the traditional The resources are synchronized to perform resource synchronization, and the process ends; otherwise, step S6 is performed;
S6: 根据在 S3 中获取的资源位置信息数据, 根据资源的具体类型, 使用 SNMP 操作到网元上获取对应的资源配置详细信息, 如果是资源位置信息是" Global"则获取 网元设备上的全局资源信息, 如果是单板, 则获取网元上的具体的单板资源信息。 根 据从网元获取的数据的结果和网管上已经存储的数据进行比对: S6: According to the resource location information data obtained in S3, according to the specific type of the resource, use the SNMP operation to obtain the corresponding resource configuration detailed information on the network element, and if the resource location information is "Global", obtain the information on the network element device. Global resource information, if it is a board, obtains specific board resource information on the NE. Compare the results of the data obtained from the network element with the data already stored on the network management:
1 )如果成功获取到网元上目标资源的详细数据, 则判断网管上是否已经有相关资 源信息, 如果有则更新网管系统中的目标资源信息, 否则增加新的资源数据记录到网 管系统中。 2)如果读取的目标资源为空而网管上有这目标资源的数据记录,表示资源在网元 设备已经删除了, 网管数据库上也删除目标资源数据。 1) If the detailed data of the target resource on the network element is successfully obtained, it is determined whether the relevant resource information is already available on the network management device, and if so, the target resource information in the network management system is updated, otherwise the new resource data record is added to the network management system. 2) If the target resource to be read is empty and the data record of the target resource is on the network management tube, it indicates that the resource has been deleted in the network element device, and the target resource data is also deleted on the network management database.
S7: 发送 SNMP Set操作给网元设备, 删除网元设备上待同步资源位置存储区对 应的资源位置记录。 从以上的描述中, 可以看出, 本发明实现了如下技术效果: 本发明采用在网管系统和网元设备之间传递增量和差异资源位置信息的方法, 使 得网管系统能高效和及时的完成对网元设备的增量资源进行局部同步, 这种方法有效 的克服了传统的资源同步效率低的问题, 本发明是网管系统能及时给上层网管系统及 时上报资源变化通知的基本和前提; 同时本发明采用的方法是完全利用网管和网元之 间现有的通讯技术进行资源同步, 网管系统和网元设备之间无需增加复杂的协议开发 就能完成资源的高效同步, 本发明采用的方法和装置容易在网元设备和网管系统上部 署和实施。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以 将它们存储在存储装置中由计算装置来执行, 并且在某些情况下, 可以以不同于此处 的顺序执行所示出或描述的步骤, 或者将它们分别制作成各个集成电路模块, 或者将 它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限制于任 何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。 S7: Send an SNMP Set operation to the network element device, and delete the resource location record corresponding to the location of the resource location to be synchronized on the network element device. From the above description, it can be seen that the present invention achieves the following technical effects: The present invention adopts a method for transmitting incremental and differential resource location information between a network management system and a network element device, so that the network management system can be completed efficiently and in time. The method of locally synchronizing the incremental resources of the network element device effectively overcomes the problem of low resource synchronization efficiency. The present invention is a basic and premise that the network management system can timely report the resource change notification to the upper-layer network management system in time; The method adopted by the present invention completely utilizes the existing communication technology between the network management system and the network element for resource synchronization, and the network management system and the network element device can complete efficient resource synchronization without adding complicated protocol development. The method adopted by the present invention And the device is easy to deploy and implement on the network element device and the network management system. Obviously, those skilled in the art should understand that 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, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 Claim
1. 一种资源同步方法, 包括: 1. A method of resource synchronization, comprising:
网管接收网元设备中发生变化的资源的位置信息;  The network management device receives the location information of the changed resource in the network element device.
所述网管根据所述位置信息对本地存储的与所述发生变化的资源对应的资 源进行同步更新。  And the network controller synchronously updates the locally stored resource corresponding to the changed resource according to the location information.
2. 根据权利要求 1所述的方法, 其中, 所述网管根据所述位置信息对本地存储的 与所述发生变化的资源对应的资源进行同步更新的步骤包括: The method according to claim 1, wherein the step of the network management to synchronously update the locally stored resource corresponding to the changed resource according to the location information comprises:
所述网管判断在所述网元设备中所述位置信息指示的位置上是否存在所述 发生变化的资源;  Determining, by the network management, whether the changed resource exists in a location indicated by the location information in the network element device;
若不存在所述发生变化的资源, 则所述网管删除本地存储的与所述发生变 化的资源对应的资源的配置参数。  If the changed resource does not exist, the network management deletes the locally stored configuration parameter of the resource corresponding to the changed resource.
3. 根据权利要求 2所述的方法, 其中, 在所述网管判断在所述网元设备中所述位 置信息指示的位置上是否存在所述发生变化的资源之后, 还包括: The method according to claim 2, wherein, after the network management determines whether the changed resource exists in the location indicated by the location information in the network element device, the method further includes:
若存在所述发生变化的资源, 则所述网管对本地存储的与所述发生变化的 资源对应的资源的配置参数进行同步更新。  If the resource that is changed is present, the network management synchronizes the configuration parameters of the locally stored resource corresponding to the changed resource.
4. 根据权利要求 3所述的方法, 其中, 所述网管对本地存储的与所述发生变化的 资源对应的资源的配置参数进行同步更新的步骤包括: The method according to claim 3, wherein the step of the network management to synchronously update the locally stored configuration parameters of the resource corresponding to the changed resource includes:
所述网管判断是否本地存在与所述发生变化的资源对应的资源的配置参 数;  Determining, by the network management, whether a configuration parameter of a resource corresponding to the changed resource exists locally;
若存在与所述发生变化的资源对应的资源的配置参数, 则所述网管将与所 述发生变化的资源对应的资源的配置参数更新为所述发生变化的资源的配置参 数;  If the configuration parameter of the resource corresponding to the changed resource exists, the network management device updates the configuration parameter of the resource corresponding to the changed resource to the configuration parameter of the changed resource;
若不存在与所述发生变化的资源对应的资源的配置参数, 则所述网管在本 地存储所述发生变化的资源的配置参数。  If there is no configuration parameter of the resource corresponding to the changed resource, the network management locally stores the configuration parameter of the changed resource.
5. 根据权利要求 1所述的方法, 其中, 在网管接收网元设备中发生变化的资源的 位置信息之前, 还包括: The method according to claim 1, wherein before the network management receives the location information of the changed resource in the network element device, the method further includes:
所述网元设备检测是否存在发生变化的资源; 若存在发生变化的资源, 则所述网元设备获取所述发生变化的资源的位置 信息; The network element device detects whether there is a resource that changes; If there is a resource that changes, the network element device acquires location information of the changed resource;
所述网元设备将所述发生变化的资源的位置信息发送给所述网管。  The network element device sends the location information of the changed resource to the network management.
6. 根据权利要求 5所述的方法, 其中, 6. The method according to claim 5, wherein
所述网元设备获取所述发生变化的资源的位置信息的步骤包括: 所述网元设备将所有发生变化的资源的位置信息按照发生变化的时间顺序 记录到更新表中;  The step of acquiring, by the network element device, the location information of the changed resource includes: the network element device recording the location information of all the changed resources in an update table according to a time sequence in which the change occurs;
所述网元设备将所述发生变化的资源的位置信息发送给所述网管的步骤包 括- 所述网元设备在需要进行配置更新时将所述携带有位置信息的更新表发送 给所述网管。  The step of the network element device transmitting the location information of the changed resource to the network management unit includes: sending, by the network element device, the update table carrying the location information to the network management device when the configuration update is required .
7. 一种资源同步装置, 位于网管中, 包括: A resource synchronization device, located in the network management system, includes:
接收单元, 设置为接收网元设备中发生变化的资源的位置信息; 同步单元, 设置为根据所述位置信息对本地存储的与所述发生变化的资源 对应的资源进行同步更新。  The receiving unit is configured to receive location information of the changed resource in the network element device, and the synchronization unit is configured to synchronously update the locally stored resource corresponding to the changed resource according to the location information.
8. 根据权利要求 7所述的装置, 其中, 所述同步单元包括: The device according to claim 7, wherein the synchronization unit comprises:
判断模块, 设置为判断在所述网元设备中所述位置信息指示的位置上是否 存在所述发生变化的资源;  a determining module, configured to determine whether the changed resource exists in a location indicated by the location information in the network element device;
删除模块, 设置为在不存在所述发生变化的资源时, 删除本地存储的与所 述发生变化的资源对应的资源的配置参数。  And deleting the module, configured to delete the locally stored configuration parameter of the resource corresponding to the changed resource when the changed resource does not exist.
9. 根据权利要求 8所述的装置, 其中, 所述同步单元还包括: 9. The device according to claim 8, wherein the synchronization unit further comprises:
更新模块, 设置为在存在所述发生变化的资源时, 对本地存储的与所述发 生变化的资源对应的资源的配置参数进行同步更新。  And an update module, configured to synchronously update a locally stored configuration parameter of the resource corresponding to the resource that changes when the resource that exists is changed.
10 根据权利要求 9所述的装置, 其中, 所述更新模块包括: The device according to claim 9, wherein the update module comprises:
判断子模块, 设置为判断是否本地存在与所述发生变化的资源对应的资源 的配置参数; 更新子模块, 设置为在判断出存在与所述发生变化的资源对应的资源的配 置参数时, 将与所述发生变化的资源对应的资源的配置参数更新为所述发生变 化的资源的配置参数; a determining submodule, configured to determine whether a configuration parameter of a resource corresponding to the changed resource exists locally; Updating a submodule, configured to: when determining that a configuration parameter of a resource corresponding to the changed resource exists, updating a configuration parameter of the resource corresponding to the changed resource to a configuration parameter of the changed resource ;
存储子模块, 设置为在判断出不存在与所述发生变化的资源对应的资源的 配置参数时, 在本地存储所述发生变化的资源的配置参数。  The storage submodule is configured to locally store the configuration parameter of the changed resource when it is determined that there is no configuration parameter of the resource corresponding to the changed resource.
11. 一种资源同步装置, 位于网元设备中, 包括: A resource synchronization device, located in the network element device, includes:
检测单元, 设置为检测是否存在发生变化的资源;  a detecting unit, configured to detect whether there is a resource that changes;
获取单元, 设置为在存在发生变化的资源时, 获取所述发生变化的资源的 位置信息;  An obtaining unit, configured to acquire location information of the changed resource when there is a resource that changes;
发送单元, 设置为将所述发生变化的资源的位置信息发送给网管。  The sending unit is configured to send the location information of the changed resource to the network management.
12. 根据权利要求 11所述的装置, 其中, 12. The device according to claim 11, wherein
所述获取单元包括:  The obtaining unit includes:
获取模块, 设置为将所有发生变化的资源的位置信息按照发生变化的时间 顺序记录到更新表中;  Obtaining a module, configured to record location information of all changed resources in an update table according to a time sequence of changes;
所述发送单元包括:  The sending unit includes:
发送模块, 设置为在需要进行配置更新时将所述携带有位置信息的更新表 发送给所述网管。  The sending module is configured to send the update table carrying the location information to the network management when the configuration update is needed.
PCT/CN2012/087532 2011-12-31 2012-12-26 Method and apparatus for resources synchronization WO2013097719A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110458435.7 2011-12-31
CN2011104584357A CN102447582A (en) 2011-12-31 2011-12-31 Resource synchronization method and device

Publications (1)

Publication Number Publication Date
WO2013097719A1 true WO2013097719A1 (en) 2013-07-04

Family

ID=46009689

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/087532 WO2013097719A1 (en) 2011-12-31 2012-12-26 Method and apparatus for resources synchronization

Country Status (2)

Country Link
CN (1) CN102447582A (en)
WO (1) WO2013097719A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115269207A (en) * 2022-09-29 2022-11-01 浙江省公众信息产业有限公司无线运营分公司 Method and system for allocating resources to vCPE network elements

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102447582A (en) * 2011-12-31 2012-05-09 中兴通讯股份有限公司 Resource synchronization method and device
CN103874104B (en) * 2012-12-10 2017-06-30 北京信威通信技术股份有限公司 A kind of method of webmaster self adaptation compatible equipment function and version
CN105515707B (en) * 2015-11-25 2018-07-06 上海斐讯数据通信技术有限公司 A kind of synchronous method and system of optical network unit in passive optical network information
CN105939210B (en) * 2015-12-30 2019-03-15 杭州迪普科技股份有限公司 Manage the method and device of managed device
CN107197042B (en) * 2017-07-04 2020-02-14 郑州云海信息技术有限公司 Resource synchronization method and device
CN111629018B (en) * 2019-02-28 2022-07-08 Oppo广东移动通信有限公司 Resource synchronization method, device, equipment and storage medium
CN111726379B (en) * 2019-03-20 2021-11-19 华为技术有限公司 Communication method and device
CN113688144A (en) * 2020-05-19 2021-11-23 中兴通讯股份有限公司 Recording data synchronization method, device, equipment and storage medium
CN112650576B (en) * 2021-01-22 2023-12-29 百度在线网络技术(北京)有限公司 Resource scheduling method, device, equipment, storage medium and computer program product
CN113473270A (en) * 2021-05-28 2021-10-01 中盈优创资讯科技有限公司 Method and device for automatically detecting and cleaning network equipment garbage configuration
CN114710500A (en) * 2022-03-31 2022-07-05 中国建设银行股份有限公司 Data management method and device, electronic equipment and computer storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340316A (en) * 2008-08-22 2009-01-07 中兴通讯股份有限公司 Method and apparatus for uploading network metadata to network management database
CN101447895A (en) * 2009-01-12 2009-06-03 华为技术有限公司 Collocation method for synchronizing network management and network element and device thereof
CN101588269A (en) * 2009-06-17 2009-11-25 中兴通讯股份有限公司 Method and system for automatically uploading configuration data of device to gateway
CN102447582A (en) * 2011-12-31 2012-05-09 中兴通讯股份有限公司 Resource synchronization method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1248453C (en) * 2002-09-13 2006-03-29 华为技术有限公司 Method for realtime synchronisation of net element and telecommunication system
CN102104857B (en) * 2009-12-16 2013-10-02 华为技术有限公司 Charging method and communication system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340316A (en) * 2008-08-22 2009-01-07 中兴通讯股份有限公司 Method and apparatus for uploading network metadata to network management database
CN101447895A (en) * 2009-01-12 2009-06-03 华为技术有限公司 Collocation method for synchronizing network management and network element and device thereof
CN101588269A (en) * 2009-06-17 2009-11-25 中兴通讯股份有限公司 Method and system for automatically uploading configuration data of device to gateway
CN102447582A (en) * 2011-12-31 2012-05-09 中兴通讯股份有限公司 Resource synchronization method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115269207A (en) * 2022-09-29 2022-11-01 浙江省公众信息产业有限公司无线运营分公司 Method and system for allocating resources to vCPE network elements
CN115269207B (en) * 2022-09-29 2022-12-23 浙江省公众信息产业有限公司无线运营分公司 Method and system for allocating resources to vCPE network element

Also Published As

Publication number Publication date
CN102447582A (en) 2012-05-09

Similar Documents

Publication Publication Date Title
WO2013097719A1 (en) Method and apparatus for resources synchronization
US11469970B2 (en) Methods and apparatus for providing adaptive private network centralized management system data visualization processes
US11936548B2 (en) Active assurance for virtualized services
US9813315B2 (en) Methods and apparatus for providing adaptive private network centralized management system time correlated playback of network traffic
CN101414925B (en) Method, system and apparatus for configuring optical network terminal
CN108809672B (en) Virtual port management method and device
CN102377679B (en) Method for realizing link discovery and management in FTTX access system
CN110855509B (en) Novel configuration method for SPTN (packet transport network) network architecture of cloud software definition
CN104702462A (en) Network test system
US9900100B2 (en) Optical line terminal, communication control method, and communication control program
CN101447895A (en) Collocation method for synchronizing network management and network element and device thereof
WO2017198003A1 (en) Service processing method and system
WO2007121666A1 (en) A management method for passive optical network terminal and system thereof
EP3094047A1 (en) Method and device for automatically commissioning aisg remote electrical tilt antennas in batches
WO2019196844A1 (en) Ason service model implementation method, apparatus and device, and storage medium
US20180287884A1 (en) Cross-layer link discovery
EP2953295A1 (en) Automatic delta event synchronization in multiple manager-agent environments
CN106936606B (en) service implementation method and system and service arranging equipment
WO2022127535A1 (en) Dynamic message management apparatus and method, and system, device and storage medium
CN105592485A (en) Method for collecting and processing messages in real time based on SNMP
CN105959137B (en) The synchronous method and device of configuration data is realized in a kind of PON system
WO2016206470A1 (en) Automatically switched optical network resource control method, apparatus and computer readable storage medium
US7587635B2 (en) Method of debugging “active” unit using “non-intrusive source-level debugger” on “standby” unit of high availability system
WO2013000294A1 (en) Network element log synchronization method and system
CN105763380A (en) Network management data obtaining method and device

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

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

Country of ref document: EP

Kind code of ref document: A1