CN100395996C - Information synchronizing method for network management system - Google Patents

Information synchronizing method for network management system Download PDF

Info

Publication number
CN100395996C
CN100395996C CNB200510079613XA CN200510079613A CN100395996C CN 100395996 C CN100395996 C CN 100395996C CN B200510079613X A CNB200510079613X A CN B200510079613XA CN 200510079613 A CN200510079613 A CN 200510079613A CN 100395996 C CN100395996 C CN 100395996C
Authority
CN
China
Prior art keywords
thread
element information
net element
information
data buffer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB200510079613XA
Other languages
Chinese (zh)
Other versions
CN1885791A (en
Inventor
施瑞纲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB200510079613XA priority Critical patent/CN100395996C/en
Publication of CN1885791A publication Critical patent/CN1885791A/en
Application granted granted Critical
Publication of CN100395996C publication Critical patent/CN100395996C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention discloses an information synchronizing method for a network management system. The method comprises the following steps: (A) a first thread used for querying information of network elements and a second thread used for updating the information of the network elements are created; (B) the first thread queries the information of the network elements by a network-element management system, and the queried information of the network element is sent to the second thread, and the second thread receives the information of the network elements from the first thread and updates the information of the network elements in the network management system. The adoption of the method of the present invention can enhance the efficiency of the synchronization of the information of the network elements.

Description

A kind of information synchronization method of network management system
Technical field
The present invention relates to network management technology, particularly the information synchronization method of network management system.
Background technology
Usually, a communication network is divided into five levels from function realizes that these five levels comprise from low to high successively: Network Element Layer, NE management layer, NML, SML, transaction management layer.Wherein, Network Element Layer comprises a large amount of network elements (NE), and network element just is meant communication equipment in communication network; NE management layer comprises a plurality of Element management systems (EMS), and each EMS manages the network element of some respectively; Network management system (nms) in the NML is in charge of each EMS, and by EMS each network element is operated.
Wherein, EMS and NMS all can operate its network element of administering, and comprising: create new network element, inquiry or modification net element information, back up old information or the like when revising net element information.When NMS operates network element, all need to handle according to the net element information that writes down in its data storehouse, such as: determine according to the current network element of having created that is write down which network element needs create or delete, determine how to revise configuration information of network element or the like according to the information of current each network element of having created.Because EMS and NMS are independent respectively to be operated network element, EMS to each network element create, delete, during operation such as modification, NMS can't be known in real time.If certain network element is created by EMS, but NMS and do not know that this network element creates, NMS just might create this network element once more, and whole Network Management is caused confusion.For addressing this problem, usually there is a kind of synchronization mechanism between EMS and the NMS, its method of synchronization comprises: one, NMS timing or manual information of inquiring about each network element by EMS, if the net element information of NMS self record is inconsistent with the net element information that inquires appearance, just the net element information of self preserving is updated to the net element information that inquires; Two, after in a single day EMS operates network element, promptly report to be notified to NMS, NMS by EMS inquiry net element information, upgrades according to the net element information of the net element information that inquires to self record again.The net element information of each network element reality of EMS correspondence and the net element information of NMS record are consistent, thereby have avoided misoperation network element.
In large scale in view of communication network, information processing capacity is considerable, and NMS is usually based on multithreading, to realize a plurality of Processing tasks executed in parallel.When NMS Synchronization Network metamessage, will produce a plurality of threads and come the parallel synchronous net element information, a thread will be responsible for the information of synchronous a plurality of network elements.Wherein, for a thread, its processing for each network element is that serial is carried out, briefly be exactly: only finish renewal net element information operation at a network element, could carry out inquiry net element information operation at next network element, after the processing to all network elements finished, end was just calculated in the processing of this thread.Like this, the processing delay of single thread is just probably long.
Though the net element information between NMS and the EMS can be handled by a plurality of thread parallels synchronously, but the net element information Synchronous Processing of single thread is owing to relate to the inquiry net element information, upgrade complex operations such as self net element information, therefore, the processing burden of single thread is heavier, time delay is longer, when the processing of all threads finishes, a large amount of processing times have in fact been expended.If NMS operates network element in this long synchronizing process, the net element information that NMS preserves actual conditions very possible and current network are inconsistent, and this just misoperation may occur, thereby makes the net element information of system lose meaning synchronously.In addition, single thread is actually to the processing of each network element that serial carries out, thus also make multithreading concurrent, efficient, processing delay is short etc., and advantage is all gone.
Summary of the invention
In view of this, main purpose of the present invention is to provide the information synchronization method of a kind of NMS, can give full play to the concurrent advantage of multithreading, efficiently finishes the synchronous of net element information.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention discloses a kind of information synchronization method of network management system, this method comprises:
A. create second thread that is used to inquire about first thread of net element information and is used to upgrade net element information, described second thread has more than one, each second thread correspondence first thread more than, the corresponding above network element of each first thread;
B. each first thread is inquired about the net element information of corresponding network element by Element management system, and the net element information that inquires is sent to second thread of correspondence; Described second thread receives the net element information from first thread, according to the net element information that receives the net element information in the network management system is upgraded.
Wherein, this method further comprises: create the data buffer zone of being shared by described first thread and second thread; Among the step B, described first thread transmission net element information to the method for second thread and second thread reception net element information is: described first thread sends net element information to described data buffer zone and buffer memory, and described second thread extracts net element information from this data buffer zone.
Wherein, when described first thread sends net element information to the data buffer zone, further comprise: each net element information that described first thread sends for self distributes key KEY, and described KEY is used for indicating the memory address of each net element information in the data buffer zone; Described first thread sends each KEY of being distributed to the described data buffer zone and second thread, and each net element information and the corresponding relation of KEY are separately preserved in described data buffer zone; Described second thread extracts net element information: extract net element information according to the memory address that the KEY that receives is indicated from the data buffer zone.By such scheme as can be seen, key of the present invention is: the net element information synchronizing process is divided into two parts are parallel to be handled, inquire about net element information by first thread by EMS, according to net element information the net element information among the NMS is upgraded from first thread by second thread.
Therefore, the information synchronization method of NMS provided by the present invention, make full use of the parallel processing advantage of multithreading, make two key links in the net element information synchronizing process: inquiry net element information and renewal net element information are carried out by first thread and second thread parallel respectively.Also further utilize the caching mechanism of data buffer zone, guarantee first thread and second thread integrality and the accuracy when transmitting net element information.After adopting this method, can significantly improve NMS net element information synchronization performance with respect to prior art, significant for the management of whole network element.
Description of drawings
Fig. 1 is the inventive method one preferred embodiment handling process schematic diagram;
Fig. 2 is the logical relation schematic diagram between first thread in the inventive method, second thread and the data buffer zone.
Embodiment
The present invention is further described in more detail below in conjunction with drawings and the specific embodiments.
The invention provides the information synchronization method of a kind of NMS, its main design philosophy is: will be divided into two parts by the complete synchronizing process that EMS inquires about net element information and upgrades the NMS net element information and carry out, and generate first thread and second thread and finish this two parts respectively and handle.Wherein, first thread is used for by EMS inquiry net element information; Second thread is used for receiving net element information and the net element information of NMS being upgraded from first thread.
Here, can come to inquire about net element information by EMS specially, upgrade the net element information of NMS by one second thread specially by one first thread.But, when first thread is inquired about information on each network element by EMS towards be each network element, the inquiry response time delay of each network element can be variant, must wait until could inquire about behind the inquiry response that all network elements all return to obtain all net element informations.Therefore, when communication network was larger, the efficient of inquiring about all net element informations by one first thread was lower separately.And second thread when upgrading the net element information of NMS towards be the database of NMS, treatment effeciency is higher, adopts one second thread can satisfy the processing needs substantially.So, can generate one second thread and more than one first thread usually, the corresponding one or more network element of each first thread, the inquiry net element information that these first threads can walk abreast; Second thread is responsible for the net element information that the net element information that inquires according to these first threads upgrades nms database thus, thereby the synchronous efficiency of whole NMS net element information is further improved.
Owing to adopt more than one first thread to come the parallel query net element information, second thread will receive the net element information from each first thread, also to upgrade the net element information of nms database, therefore second thread differs surely processing in real time from each net element information of first thread, like this with regard to problems such as easy generation loss of datas.For addressing this problem, also can further create the data buffer zone of sharing by first thread and second thread, each first thread at first is sent to this data buffer zone with the net element information that inquires and carries out buffer memory, extracts net element information by second thread from the data buffer zone again.In addition, for making second thread accurately extract data, each first thread also will be each net element information distribution self unique key (KEY) when the data buffer zone deposits net element information in, this KEY is used to indicate the memory address of net element information in the data buffer zone; Each first thread also sends to second thread with the KEY that self distributes, and second thread can be determined the memory address of each net element information according to the KEY that receives, thereby accurately extracts net element information from the data buffer zone by memory address.
Fig. 1 is the inventive method one preferred embodiment handling process schematic diagram.As shown in Figure 1, the concrete processing comprises:
Step 101: when NMS began the Synchronization Network metamessage, at first according to creating more than one first thread, second thread and a data buffering area, each first thread and second thread were shared this data buffer zone.Wherein, the corresponding one or more network element of each first thread.
Step 102: each first thread that step 101 is created carries out following processing respectively: by the net element information on each network element of EMS inquiry self correspondence, after obtaining the inquiry response that each network element returns, from this inquiry response, extract each net element information, for current each net element information distributes a KEY, each net element information together is sent to described data buffer zone together with each KEY that is distributed, and the KEY that sends current distribution simultaneously is to second thread.Net element information is preserved in described data buffer zone, and safeguards the corresponding relation between KEY and the net element information, can directly shine upon the memory address that obtains corresponding net element information by KEY.
Here, because the KEY of net element information correspondence must become the unique sign of net element information, therefore, the distribution principle of KEY must be able to guarantee that net element information has unique, unique KEY, such as the distribution principle of KEY can for: first thread generates a sequence number when whenever inquiring a net element information, this sequence number can be represented which net element information that the current net element information that inquires inquires for this first thread, is made of the KEY of the current net element information correspondence that inquires then the thread identification of the sequence number of current generation and this first thread.Certainly, adopt the distribution principle of other KEY also can make each net element information have self unique KEY, but about the concrete distribution principle of KEY, non-emphasis of the present invention, the present invention does not limit this, and this paper also no longer describes in detail.
Step 103: second thread is when the KEY that receives from each first thread, obtain the memory address of each net element information according to each KEY, from the data buffer zone, extract each net element information by the memory address of these net element informations again, after second thread extracts net element information from the data buffer zone, the net element information that has been extracted will discharge in the data buffer zone.Then, second thread upgrades according to the net element information of each net element information that extracts to nms database, comprise: the corresponding net element information of preserving in each net element information that comparison self is extracted and the nms database, judge whether two kinds of net element informations are consistent, if it is inconsistent, then the net element information of preserving in the nms database is updated to the net element information that is extracted, the net element information that nms database is preserved conforms to the actual conditions of each network element; Otherwise do not deal with.Here, second thread belongs to known technology according to each net element information of extracting to the processing that the net element information of nms database upgrades, so this paper is not described further.
Therefore the above step 102 is the processing of each first thread, and described step 103 is the processing of second thread, and the processing of two steps is relatively independent, can walk abreast and carry out, and does not limit for execution sequence the present invention of step 102 and step 103.
In addition, because second thread and each first thread are all wanted the visit data buffering area,, also can adopt the machine-processed mutual exclusions that realize between the thread such as semaphore for avoiding taking place deadlock.About the problem that how to realize that the non-the present invention of mutual exclusion solves, and belong to known technology, so this paper describes no longer in detail.
For further understanding handling principle of the present invention, the logical relation between first thread, second thread, the data buffer zone is illustrated below in conjunction with Fig. 2.Fig. 2 is the logical relation schematic diagram between first thread in the inventive method, second thread and the shared data buffering area.Among Fig. 2, first thread has two: first thread 1 and first thread 2; Second thread has one.In the data buffer zone, data store organisation in logic as shown in Figure 2, each net element information is corresponding with the KEY of self.Below in conjunction with the logical relation of Fig. 2, the inventive method one simplified example is illustrated, so that intuitively understand handling principle of the present invention.The net element information that this example relates to comprises: NE1, NE2, NE3, NE4 and NE5, correspondingly, the KEY of each net element information is respectively: KEY1, KEY2, KEY3, KEY4 and KEY5.
1 inquiry of first thread obtains NE1 and NE2, be respectively NE1 and NE2 and distribute KEY1 and KEY2, and NE1 and NE2 and corresponding KEY1 and KEY2 thereof be saved in the data buffer zone, send KEY1 and KEY2 to the second thread, second thread extracts from the data buffer zone according to KEY1 and KEY2 and obtains NE1 and NE2, upgrades in the nms database and NE1 and the corresponding net element information of NE2 again.
Similar with the processing of first thread 1,2 inquiries of first thread obtain NE3, NE4 and NE5, be respectively NE3, NE4 and NE5 and distribute KEY3, KEY4 and KEY5, and NE3, NE4 and NE5 and corresponding KEY3, KEY4 and KEY5 thereof be saved in the data buffer zone, send KEY3, KEY4 and KEY5 to the second thread, second thread extracts from the data buffer zone according to KEY3, KEY4 and KEY5 and obtains NE3, NE4 and NE5, upgrades in the nms database and NE3, NE4 and the corresponding net element information of NE5 again.
As seen according to Fig. 1 and Fig. 2, the inventive method is divided into two parts with complicated originally complete net element information synchronizing process, carries out this two-part processing by two kinds of threads respectively.First thread only needs constantly to get final product by EMS inquiry net element information, and the processing of first thread and second thread is parallel, first thread needn't wait until that second thread finishes the renewal of a net element information in nms database and just can inquire about next net element information, can create more than one first thread in addition and inquire about net element information simultaneously, like this, make the treatment effeciency of inquiry net element information improve greatly.In addition, the data buffer zone can guarantee integrality and the accuracy of net element information in whole synchronizing process to the buffer memory of net element information and KEY.
Among the above embodiment, comprising: one or more first thread and one second thread.For general NMS, these threads just can satisfy the processing needs.When the scale NE quantity quite big, management of NMS is too much, also may there be corresponding one or more first thread of more than one second thread and each second thread.But; each second thread and the first corresponding thread thereof all will be synchronous by the described net element information that carries out of Fig. 1; and there is not correlation between each second thread; there is not correlation between first thread of corresponding different second threads yet; therefore; this paper is for existing more than one the situation of second thread no longer to describe, but all in protection scope of the present invention.
In sum, use the advantage that the inventive method can make full use of the multithreading parallel processing, it is synchronous to carry out net element information with greater efficiency, and can guarantee integrality and the accuracy that net element information is synchronous.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.All any modifications of being done within the spirit and principles in the present invention, be equal to replacement, improvement etc., all be included in protection scope of the present invention.

Claims (3)

1. the information synchronization method of a network management system is characterized in that, this method comprises:
A. create second thread that is used to inquire about first thread of net element information and is used to upgrade net element information, described second thread has more than one, each second thread correspondence first thread more than, the corresponding above network element of each first thread;
B. each first thread is inquired about the net element information of corresponding network element by Element management system, and the net element information that inquires is sent to second thread of correspondence; Described second thread receives the net element information from first thread, according to the net element information that receives the net element information in the network management system is upgraded.
2. method according to claim 1 is characterized in that, this method further comprises: create the data buffer zone of being shared by described first thread and second thread;
Among the step B, described first thread transmission net element information to the method for second thread and second thread reception net element information is: described first thread sends net element information to described data buffer zone and buffer memory, and described second thread extracts net element information from this data buffer zone.
3. method according to claim 2, it is characterized in that, when described first thread sends net element information to the data buffer zone, further comprise: each net element information that described first thread sends for self distributes key KEY, and described KEY is used for indicating the memory address of each net element information in the data buffer zone; Described first thread sends each KEY of being distributed to the described data buffer zone and second thread, and each net element information and the corresponding relation of KEY are separately preserved in described data buffer zone;
Described second thread extracts net element information: extract net element information according to the memory address that the KEY that receives is indicated from the data buffer zone.
CNB200510079613XA 2005-06-23 2005-06-23 Information synchronizing method for network management system Expired - Fee Related CN100395996C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB200510079613XA CN100395996C (en) 2005-06-23 2005-06-23 Information synchronizing method for network management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB200510079613XA CN100395996C (en) 2005-06-23 2005-06-23 Information synchronizing method for network management system

Publications (2)

Publication Number Publication Date
CN1885791A CN1885791A (en) 2006-12-27
CN100395996C true CN100395996C (en) 2008-06-18

Family

ID=37583782

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB200510079613XA Expired - Fee Related CN100395996C (en) 2005-06-23 2005-06-23 Information synchronizing method for network management system

Country Status (1)

Country Link
CN (1) CN100395996C (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104283704B (en) * 2013-07-05 2019-03-12 中兴通讯股份有限公司 A kind of northbound interface sends the method and device of notification event
CN109495303A (en) * 2018-11-19 2019-03-19 广州开信通讯系统有限公司 Obtain the method, device network managing device and system, electronic device and storage medium of equipment parameter information

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6633864B1 (en) * 1999-04-29 2003-10-14 International Business Machines Corporation Method and apparatus for multi-threaded based search of documents
CN1482767A (en) * 2002-09-13 2004-03-17 华为技术有限公司 Method for realtime synchronisation of net element and telecommunication system
CN1610877A (en) * 2001-11-01 2005-04-27 弗里塞恩公司 High speed non-concurrency controlled database
CN1206834C (en) * 1998-11-27 2005-06-15 日本电气株式会社 Method and device for database synchronisation in network management system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1206834C (en) * 1998-11-27 2005-06-15 日本电气株式会社 Method and device for database synchronisation in network management system
US6633864B1 (en) * 1999-04-29 2003-10-14 International Business Machines Corporation Method and apparatus for multi-threaded based search of documents
CN1610877A (en) * 2001-11-01 2005-04-27 弗里塞恩公司 High speed non-concurrency controlled database
CN1482767A (en) * 2002-09-13 2004-03-17 华为技术有限公司 Method for realtime synchronisation of net element and telecommunication system

Also Published As

Publication number Publication date
CN1885791A (en) 2006-12-27

Similar Documents

Publication Publication Date Title
CN111460023B (en) Method, device, equipment and storage medium for processing service data based on elastic search
CN101295323B (en) Processing method and system for index updating
US8224860B2 (en) Database management system
CN110399373A (en) A kind of block chain account book storage system, storage querying method and delet method
US7334004B2 (en) Consistent read in a distributed database environment
CN104731799B (en) Main memory DBM device
CN100594497C (en) System for implementing network search caching and search method
CN103150394A (en) Distributed file system metadata management method facing to high-performance calculation
CN104885054A (en) System and method for performing a transaction in a massively parallel processing database
AU2002303900A1 (en) Consistent read in a distributed database environment
CN106934048A (en) Online data moving method, agent node
CN106682042B (en) A kind of relation data caching and querying method and device
CN111460024A (en) Real-time service system based on Elasticissearch
CN103294479A (en) Distribution type transaction processing method and system
CN104142930A (en) Universal Delta data loading technology
CN104268159A (en) Real-time data warehouse data pre-storage and pre-access method based on dynamic mirrors
CN102202087A (en) Method for identifying storage equipment and system thereof
CN106777085A (en) A kind of data processing method, device and data query system
CN102404411A (en) Data synchronization method of cloud storage system
CN100395996C (en) Information synchronizing method for network management system
CN114185991A (en) Method and related device for realizing data synchronization based on distributed database
CN102724301B (en) Cloud database system and method and equipment for reading and writing cloud data
CN106970943A (en) Fusion query method based on heterogeneous data source and distributed file system
CN103259824A (en) Method and device for synchronizing data route in distributed data storage system
CN103377236A (en) Connection query method and system for distributed database

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080618

Termination date: 20150623

EXPY Termination of patent right or utility model