CN105207825B - A kind of network element Fast synchronization system and network element fast synchronization method - Google Patents

A kind of network element Fast synchronization system and network element fast synchronization method Download PDF

Info

Publication number
CN105207825B
CN105207825B CN201510679584.4A CN201510679584A CN105207825B CN 105207825 B CN105207825 B CN 105207825B CN 201510679584 A CN201510679584 A CN 201510679584A CN 105207825 B CN105207825 B CN 105207825B
Authority
CN
China
Prior art keywords
network element
cryptographic hash
online
module
subelement
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510679584.4A
Other languages
Chinese (zh)
Other versions
CN105207825A (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.)
SHENZHEN WORKEC TECHNOLOGY Co.,Ltd.
Original Assignee
Shanghai Feixun Data Communication Technology 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201510679584.4A priority Critical patent/CN105207825B/en
Publication of CN105207825A publication Critical patent/CN105207825A/en
Application granted granted Critical
Publication of CN105207825B publication Critical patent/CN105207825B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0273Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using web services for network management, e.g. simple object access protocol [SOAP]
    • H04L41/028Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using web services for network management, e.g. simple object access protocol [SOAP] for synchronisation between service call and response
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0213Standardised network management protocols, e.g. simple network management protocol [SNMP]

Landscapes

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

Abstract

The present invention provides network element Fast synchronization system and synchronous method, system includes:Client, network management server and at least one network element.Network management server includes:The online judgment module of network element, for judging whether network element is online;Memory module, for storing the cryptographic Hash of network element, network element unit and network element subelement;Cryptographic Hash acquisition module, for obtaining the cryptographic Hash of online network element, online network element unit and online network element subelement;Comparison module, for the cryptographic Hash of network element will to be locally stored compared with the cryptographic Hash of online network element, by the cryptographic Hash that network element unit is locally stored compared with the cryptographic Hash of online network element unit and the cryptographic Hash of network element subelement will be locally stored compared with the cryptographic Hash of online network element subelement;Synchronization module is used to implement the Fast synchronization of network element.It can synchronous network element faster state, reduce the synchrodata of network element, and then promote the synchronous efficiency of network element.

Description

A kind of network element Fast synchronization system and network element fast synchronization method
Technical field
The present invention relates to field of communication technology more particularly to a kind of network element Fast synchronization system and network element Fast synchronization sides Method.
Background technology
Network element is made of one or more machine disks or machine frame, being capable of the certain transfer function of complete independently.In simple terms, net It is exactly the element in network, is the least unit that can be monitored and manage in network management, any equipment in network all belongs to In the scope of network element, including interchanger, router, OLT (optical line terminal, Optical Line Terminal), AC (simulations Controller, Analogue Controller), mobile phone and PC (personal computer, Personal Computer) etc..With calculating The development of machine network, network become to become increasingly complex, and then the quantity of the network equipment is also more and more huger, might have thousands of A, how efficiently synchronous network element becomes a problem.Mesh
The method of preceding more commonly used synchronous network element is, using SNMP (Simple Network Management Protocol, Simple Network Management Protocol) by each MIB (management information bank, the Management Information of the network equipment Base) node data is all one time synchronous.
This each MIB nodes by equipment network element synchronous method one time synchronous, can bring following problem:1) is every The platform network equipment needs synchronous node relatively more, and then causes synchronous speed slow;2) data volume of synchronizations is excessive, Cause network bandwidth consumption excessive;3) live load of network management servers is too heavy, is unfavorable for the performance of its performance.
The content of the invention
In view of the above-mentioned problems, the present invention is intended to provide a kind of network element Fast synchronization system and network element fast synchronization method, Can synchronous network element faster state, reduce the synchrodata of network element, and then promote the synchronous efficiency of network element.
Technical solution provided by the invention is as follows:
A kind of network element Fast synchronization system, the network element Fast synchronization system include:
Client, the network management server being connected with the client and at least one and network management services The network element of device connection, the network management server realize the quick same of each network element under the control of the client Step;
The network management server includes:
The online judgment module of network element, for judging whether the network element being connected with the network management server is online;
Memory module, for store be connected with the network management server all network elements cryptographic Hash (hash value), Store the Hash of all network element subelements in the cryptographic Hash of all network element units in the network element and the storage network element unit Value;
Cryptographic Hash acquisition module is connected with the online judgment module of the network element, and the cryptographic Hash acquisition module is used to obtain The cryptographic Hash of online network element, the cryptographic Hash for obtaining online network element unit and the cryptographic Hash for obtaining online network element subelement;
Comparison module is connected respectively with the memory module and cryptographic Hash acquisition module, and the comparison module is used to breathe out The Hash for the corresponding network element being locally stored in the cryptographic Hash and memory module of the online network element that uncommon value acquisition module obtains It is right therewith to be locally stored in the cryptographic Hash and memory module of the online network element unit that value compares, obtains cryptographic Hash acquisition module The cryptographic Hash for the network element unit answered compares and the cryptographic Hash of online network element subelement that obtains cryptographic Hash acquisition module is with depositing The cryptographic Hash for the corresponding network element subelement being locally stored in storage module compares;
Synchronization module is connected with the comparison module, and the synchronization module is real according to the comparative result of the comparison module The Fast synchronization of existing network element.
Compare the cryptographic Hash of the online network element of cryptographic Hash acquisition module acquisition first in the technical program, in comparison module Cryptographic Hash with the corresponding network element being locally stored in memory module;Then, then compare what cryptographic Hash acquisition module obtained The cryptographic Hash for the corresponding network element unit being locally stored in the cryptographic Hash and memory module of online network element unit;Finally, than It is locally stored in cryptographic Hash and memory module compared with the online network element subelement of cryptographic Hash acquisition module acquisition corresponding The cryptographic Hash of network element subelement.In this way, be compared step by step, until finding out that changed network element subelement of cryptographic Hash, The network element subelement is synchronized to the synchronization for realizing entire network element.Using the method in the technical program, the synchronization of network element is not It is needed again by every MIB nodes all synchronously one time, reduces the synchrodata of network element, and then promote the synchronous efficiency of network element.
Preferably, judgment module online with the network element, storage mould respectively are further included in the network element Fast synchronization system Block and the cryptographic Hash computing module of cryptographic Hash acquisition module connection, the cryptographic Hash computing unit is for calculating and the network The cryptographic Hash of network element, network element unit and network element subelement that management server connects;And for calculating online network element, online The cryptographic Hash of network element unit and online network element subelement.
In the technical program, before network element Fast synchronization system synchronizes network element, cryptographic Hash computing unit will The cryptographic Hash for all network elements being connected with network management server, the cryptographic Hash of the network element unit included including the network element, The cryptographic Hash for the network element subelement that network element unit includes, and store into memory module, so when need to online network element into When row is synchronous, it is only necessary to calculate the cryptographic Hash and difference of current online network element, online network element unit and online network element subelement It compared with the cryptographic Hash being locally stored, if result of the comparison has change for cryptographic Hash, progressively investigates, is breathed out until finding Until the uncommon changed network element subelement of value.
Preferably, the cryptographic Hash computing module is by the way that the node data of each node in network element subelement is converted to Byte byte Types, and the Byte values being converted to addition is obtained into the cryptographic Hash of the network element subelement;
The cryptographic Hash computing module is added by the cryptographic Hash for all network element subelements for including network element unit To the cryptographic Hash of the network element unit;
The cryptographic Hash computing module is added to obtain the net by the cryptographic Hash for all network element units for including network element The cryptographic Hash of member.
It preferably, will be in the network element unit during the cryptographic Hash computing module calculates the cryptographic Hash of network element unit Including the cryptographic Hash of all network element subelements be added to obtain cryptographic Hash summation, and use information digest algorithm (MD5, Message-Digest Algorithm 5) the cryptographic Hash summation is encrypted generation informative abstract value as the network element unit Cryptographic Hash.
It is in the technical program, informative abstract value is long as the cryptographic Hash that the cryptographic Hash guarantee of network element unit is calculated Degree is consistent.
Preferably, the network element Fast synchronization system includes judgment module online with the network element, memory module respectively And the cryptographic Hash searching module of comparison module connection, the cryptographic Hash searching module is according to online NE ID, online network element list First ID or online network element subelements ID search in a storage module it is corresponding cryptographic Hash is locally stored, and be sent to and compare mould Block.
In the technical program, online NE ID, online network element unit ID and online network element subelement ID here can Name, the name of network element unit, the name of network element subelement of network element etc. is thought, for the unique mark network element, network element unit It is convenient to find the corresponding cryptographic Hash being locally stored in a storage module with network element subelement.
A kind of network element fast synchronization method, specifically includes following steps:
S1 judges whether network element is online;If online, step S2 is jumped to;If not online, step S9 is jumped to;
S2 obtains the cryptographic Hash of online network element;
S3 judges whether the cryptographic Hash of online network element acquisition and the cryptographic Hash being locally stored are consistent;If consistent, step is jumped to Rapid S9;If inconsistent, step S4 is jumped to;
S4 obtains the cryptographic Hash for each online network element unit that the online network element includes respectively;
S5 judges whether the cryptographic Hash of online network element unit acquisition and the cryptographic Hash being locally stored are consistent;If consistent, redirect To step S4;If inconsistent, step S6 is jumped to;
S6 obtains the Hash for each online network element subelement that the inconsistent online network element unit of cryptographic Hash includes respectively Value;
S7 judges whether the cryptographic Hash of online network element subelement acquisition and the cryptographic Hash being locally stored are consistent;If consistent, jump Go to step S6;If inconsistent, step S8 is jumped to;
The synchronous network element subelements of S8;
S9 terminates network element synchronization.
Preferably, in step s 5, following steps are specifically included:
S51 obtains the number M for the online network element unit that online network element includes;
S52 loop initialization parameter i, and the initial cycle value of loop parameter i is set as 1;
The cryptographic Hash of i-th of online network element unit in S53 obtaining steps S4 and this i-th online network element unit are locally deposited The cryptographic Hash of storage;
S54 judges whether the cryptographic Hash of i-th of online network element unit acquisition and the cryptographic Hash being locally stored are consistent;If one It causes, jumps to step S55;If inconsistent, step S6 is jumped to;
S55 i=i+1 obtain new loop parameter i, and judge whether new loop parameter i is less than online network element unit Number M if being less than, jumps to step S53.
It is when network element includes multiple network element units, then relatively more each one by one in sequence to obtain in the technical program Online network element unit cryptographic Hash and the cryptographic Hash that is locally stored, until finding out the changed network element list of that cryptographic Hash Member;The network element subelement that network element unit includes is compared one by one using identical method again, until finding cryptographic Hash hair The network element subelement for changing.
Preferably, in the step s 7, following steps are specifically included:
S71 obtains the number N for the online network element subelement that online network element unit includes;
S72 loop initialization parameter j, and the initial cycle value of loop parameter j is set as 1;
The cryptographic Hash and this j-th online network element subelement sheet of j-th of online network element subelement in S73 obtaining steps S6 The cryptographic Hash of ground storage;
S74 judge the online j-th online network element subelement obtained cryptographic Hash and the cryptographic Hash that is locally stored whether one It causes;If consistent, step S75 is jumped to;If inconsistent, step S8 is jumped to;
S75 j=j+1 obtain new loop parameter j, and judge whether new loop parameter j is less than online network element subelement Number N, if being less than, jump to step S73.
Network element Fast synchronization system provided by the invention and network element fast synchronization method, can bring following advantageous effect:
In the present invention, carried out by cryptographic Hash, the cryptographic Hash of network element unit, the cryptographic Hash of network element subelement to network element Successively compare, it is finally that cryptographic Hash is changed until finding the changed network element unit of cryptographic Hash and network element subelement Network element subelement synchronizes the synchronization that can be achieved with entire network element, in this way, entire network element no longer needs during synchronization Each MIB nodes is one time synchronous, the synchrodata of network element is substantially reduced, promotes the synchronous efficiency of network element;
Further more, in the present invention, it is only necessary to the synchronous changed network element subelement of cryptographic Hash, thus greatly reduce net Data volume in first synchronizing process, the network bandwidth consumed during synchronization is naturally also just few, so as to save network Resource;At the same time, the workload of network management server is substantially reduced, performance can be given full play to.
Description of the drawings
Below by a manner of clearly understandable, preferred embodiment is described with reference to the drawings, to above-mentioned characteristic, technical characteristic, Advantage and its realization method are further described.
Fig. 1 is the structure diagram of network element Fast synchronization system in the present invention;
Fig. 2 is the structure diagram of the first embodiment in network management server in the present invention;
Fig. 3 is the structure diagram of second of embodiment in network management server in the present invention;
Fig. 4 is the structure diagram of the third embodiment in network management server in the present invention;
Fig. 5 is the flow diagram of network element fast synchronization method in the present invention.
Drawing reference numeral explanation:
10- clients, 20- network management servers, 30- network elements, the online judgment module of 21- network elements, 22- memory modules, 23- cryptographic Hash acquisition modules, 24- comparison modules, 25- synchronization modules, 26- cryptographic Hash computing modules, 27- cryptographic Hash search mould Block.
Specific embodiment
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, control is illustrated below The specific embodiment of the present invention.It should be evident that the accompanying drawings in the following description is only some embodiments of the present invention, for For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings Attached drawing, and obtain other embodiments.
It is the structure diagram of network element Fast synchronization system provided by the invention as shown in Figure 1, it can be seen from the figure that should Network element Fast synchronization system includes:Client 10, network management server 20 and at least one network element 30 are (as shown in FIG. Including the first network element, the second network element ..., the n-th network element), wherein, it is double that network management server 20 is connected progress with client 10 To communication, network element 30 is connected with network management server 20 carries out two-way communication.During the work time, sent by client 10 Network element synchronic command is to network management server 20;After network management server 20 receives the network element synchronic command, immediately Start to synchronize processing to each network element 30.In a particular embodiment, client 10 said herein is network management personnel PC (Personal Computer, the personal computer) machine used;Network element 30 is any equipment in network, such as mobile phone, PC machine Deng we are not specifically limited this.
Before making and further describing to network element Fast synchronization system, we are first described in detail network element 30: Before network management server 20 is used to synchronize each network element 30, we will need synchronous in network element synchronizing process Data are divided by function, e.g., be divided into VLAN (Virtual Local Area Network, virtual LAN) function, IGMP (Internet Group Management Protocol, the Internet Group Management Protocol) function, Dot1X functions etc..It is and every Below a function point again can divide many subfunction points, e.g., functionality of vlan can be divided into VLAN-Part1, VLAN-Part2, VLAN-Part3 etc., wherein, VLAN-Part1, which can include the relevant configuration of static state VLAN, VLAN-Part2, can include dynamic The relevant configuration of VLAN, VLAN-Part3 can include relevant configuration of Guest VLAN etc..As described above, we will be every A network element 30 is divided into multiple network element units, and multiple network element subelements, the network element that network element 30 includes are divided into each network element unit The specific manifestation form of unit is above-mentioned function module (e.g., above-mentioned functionality of vlan etc.), and what network element unit included The specific manifestation of network element subelement is above-mentioned sub-function module (e.g., VLAN-Part1 etc.).
The first embodiment of the network management server 20 provided in the present invention is provided, it can be with from figure Find out, include in network management server 20:The online judgment module 21 of network element, memory module 22, cryptographic Hash acquisition module 23, Comparison module 24 and synchronization module 25, wherein, the judgment module 21 online with network element of cryptographic Hash acquisition module 23 is connected, and compares mould Block 24 is connected respectively with memory module 22 and cryptographic Hash acquisition module 23, and synchronization module 25 is connected with comparison module 24.In the reality It applies in mode, first, stores the Hash for all network elements 30 being connected with network management server 20 respectively using memory module 22 The Hash for the network element subelement that the cryptographic Hash for the network element unit that value, each network element 30 include and each network element unit include Value, to need when, are therefrom obtained as a reference value compared.Then, judged using the online judgment module 21 of network element and net Whether the network element 30 that network management server 20 connects is online, and in Fig. 1, the network element 30 being connected with network management server 20 wraps It includes:Network element 1, network element 2 ..., network element n, then the online judgment module 21 of network element judge respectively the n network element 30 which be in Wire state, which belong to off-line state, the network element 30 being only online could carry out subsequent network element simultaneously operating. After the online judgment module 21 of network element judges online network element, then the Kazakhstan of online network element is obtained using cryptographic Hash acquisition module 23 Uncommon value is simultaneously sent to comparison module 24, after comparison module 24 obtains the cryptographic Hash of the online network element, immediately from memory module 22 The middle cryptographic Hash that is locally stored of the network element 30 that obtains simultaneously is compared, and when two cryptographic Hash are consistent, then illustrates the network element 30 The information such as configuration do not change without synchronizing;When two cryptographic Hash are inconsistent, then illustrate the network element The information such as the configuration in some network element unit or network element subelement in 30 needs that change synchronize, thus need into one Step determines the variation that specifically cryptographic Hash of which network element unit or network element subelement occurs.And then and then, cryptographic Hash obtains Module 23 obtains the cryptographic Hash for the network element unit that the changed network element 30 of cryptographic Hash includes and occurs to comparison module 24, than After the cryptographic Hash that network element unit is received compared with module 24, the Hash for the online network element unit that cryptographic Hash acquisition module 23 is obtained Value and the cryptographic Hash of the network element unit that is locally stored in memory module 22 one by one compared with, become until finding cryptographic Hash The network element unit of change.Finally, cryptographic Hash obtains the Hash for the network element subelement that the changed network element unit of cryptographic Hash includes It is worth and is sent to comparison module 24, the Hash for the online network element subelement that comparison module 24 again obtains cryptographic Hash acquisition module 23 Value and the cryptographic Hash of the network element subelement that is locally stored in memory module 22 one by one compared with, until finding cryptographic Hash The network element subelement of variation.In this way, last synchronization module 25 synchronizes the changed network element subelement of cryptographic Hash with reality The now Fast synchronization of entire network element 30, it can be seen that during entire synchronization, it is no longer necessary to will be each in network element 30 MIB nodes are all one time synchronous, and purpose can be realized as long as the changed network element subelement of cryptographic Hash is synchronized.
In a particular embodiment, if the online judgment module 21 of network element judges the second network element, the 4th network element and the 5th net Member obtains the cryptographic Hash of these three online network elements and is sent to and compare respectively all in presence, then cryptographic Hash acquisition module 23 Module 24.After comparison module 24 receives the cryptographic Hash of these three online network elements, found immediately from memory module 22 this three The cryptographic Hash of a network element storage, and respectively compared with the cryptographic Hash received, online second network element that will be got Cryptographic Hash compared with the cryptographic Hash that second network element stores in memory module 22, by online 4th network element got Cryptographic Hash is compared with the cryptographic Hash that the 4th network element stores in memory module 22 and online 5th net that will get The cryptographic Hash of member is compared with the cryptographic Hash that the 5th network element stores in memory module 22.If result of the comparison is: The cryptographic Hash of the second network element of line is consistent with the cryptographic Hash stored, does not change;And online 4th network element and online 5th net The cryptographic Hash and all inconsistent with the cryptographic Hash of storage of member.Then and then, cryptographic Hash acquisition module 23 obtains the online 4th respectively The online network element unit 41 and the cryptographic Hash of online network element unit 42 that network element includes, while obtain respectively in online 5th network element Including online network element unit 51, online network element unit 52 and online network element unit 53 cryptographic Hash, and respectively by acquisition Cryptographic Hash is sent to comparison module 24.After comparison module 24 receives the cryptographic Hash of these online network element units, immediately from depositing The cryptographic Hash of these network element units storage is found in storage module 22, and is compared respectively.If result of the comparison is:Online The cryptographic Hash of network element unit 41 and online network element unit 51 is all consistent with the cryptographic Hash being locally stored, and does not change, then not Need to determine whether the cryptographic Hash of its network element subelement included;And online network element unit 42, online network element unit 52 and The variation that the cryptographic Hash of line network element unit 53 all occurs then is determined whether for the two network element units.Then, Hash Value acquisition module 23 obtains the cryptographic Hash for the online network element subelement 421 that online network element unit 42 includes, online network element respectively The Hash of online network element subelement 521, online network element subelement 522 and online network element subelement 523 that unit 52 includes Online network element subelement 531 and the cryptographic Hash of online network element subelement 532 that value and online network element unit 53 include and point Comparison module 24 is not sent to.After comparison module 24 receives the cryptographic Hash of these online network element subelements, similarly, from this The cryptographic Hash of these network element subelements is obtained in ground memory module 22 respectively and is compared respectively.If result of the comparison is: The cryptographic Hash of network element subelement 521 and network element subelement 531 does not change, and network element subelement 421, network element subelement 522nd, the cryptographic Hash of network element subelement 532 and network element subelement 533 is all changed, then subsequently synchronous using synchronization module 25 Network element subelement 421, network element subelement 522, network element subelement 532 and network element subelement 533 complete the 4th network element and The synchronization of five network elements.
Second of embodiment of the network management server 20 provided in the present invention is provided, it can be with from figure Find out, further included in the basic network element Fast synchronization system of the first embodiment respectively judgment module 21 online with network element, The cryptographic Hash computing module 26 that memory module 22 and cryptographic Hash acquisition module 23 connect, for calculating and network management server The cryptographic Hash of 20 network elements connected, network element unit and network element subelement;And for calculating online network element, online network element unit And the cryptographic Hash of online network element subelement.Specifically, the network element Fast synchronization system is being used to synchronize it to network element Before, calculate the Kazakhstan of each network element, each network element unit and each network element subelement respectively using the cryptographic Hash computing module 26 It wishes value and is sent in memory module 22 and stored.In the process that the network element Fast synchronization system is used to synchronize network element In, after the online judgment module 21 of network element judges online network element, which starts to calculate immediately Gauze is first, the cryptographic Hash of online network element unit and online network element subelement, and is sent in cryptographic Hash acquisition module 23.
We are to calculating of the cryptographic Hash computing module 26 to the cryptographic Hash of network element, network element unit and network element subelement below Process is described in detail:
1) cryptographic Hash computing module 26 by the node data of each node in network element subelement by being converted to Byte words Type is saved, and the Byte values being converted to addition is obtained into the cryptographic Hash of the network element subelement.Such as network element subelement VLAN-Part1 includes three nodes, is respectively:Node 1, node 2 and node 3;Then network element subelement VLAN-Part1 Hash value be:Hash (VLAN-Part1)=Byte (1 title of node+node 1 is worth)+Byte (2 titles of node+node 2 is worth)+ Byte (3 titles of node+node 3 is worth).
2) cryptographic Hash computing module 26 is added by the cryptographic Hash for all network element subelements for including network element unit To the cryptographic Hash of the network element unit;In addition, in this process, by the Hash for all network element subelements that the network element unit includes Value obtains cryptographic Hash summation, and use information digest algorithm (MD5 algorithms, Message-Digest Algorithm after being added 5) generation informative abstract value (MD5 values) the cryptographic Hash summation is encrypted, to ensure the length for the cryptographic Hash calculated Unanimously.Such as network element unit VLAN includes:VLAN-Part1, VLAN-Part2 and VLAN-Part3;The then network element list The cryptographic Hash of first VLAN is:Hash (VLAN)=MD5 { Hash (VLAN-Part1)+Hash (VLAN-Part2)+Hash (VLAN- Part3)}。
3) cryptographic Hash computing module 26 is added to obtain the net by the cryptographic Hash for all network element units for including network element The cryptographic Hash of member 30.Such as network element NE includes functionality of vlan, IGMP functions and Dot1X functions;The then network element 30 Hash value is:Hash (NE)=Hash (VLAN)+Hash (IGMP)+Hash (Dot1x).
In a particular embodiment, if network element NE includes VLAN units, Dot1x units and IGMP units;In VLAN units Three subelements can be decomposed into again, be respectively VLAN-Part1, VLAN-Part2 and VLAN-Part3;In Dot1x units again Three subelements can be decomposed into, are respectively Dot1x-Part1, Dot1x-Part2 and Dot1x-Part3;In IGMP units again Three subelements can be decomposed into, are respectively IGMP-Part1, IGMP-Part2 and IGMP-Part3.
First, the value of each node is obtained, and is converted to Byte.For example, network element subelement VLAN-Part1 includes This 4 child nodes of following a, b, c and d:
a.dot1qVlanStaticName
b.dot1qVlanStaticEgressPorts
c.dot1qVlanForbiddenEgressPorts
d.dot1qVlanStaticUntaggedPorts
Then the hash value of network element subelement VLAN-Part1 is:Hash (VLAN-Part1)=Byte (dot1qVlanStaticName)+Byte(dot1qVlanStaticEgressPorts)+Byte(dot1q VlanForbiddenEgressPorts)+(dot1qVlanStaticUntaggedPorts)。
The cryptographic Hash of each network element subelement can be calculated according to above method, then can further calculate VLAN The cryptographic Hash of unit, Dot1x units and IGMP units.Such as, Hash (VLAN)=MD5 { Hash (VLAN-Part1)+Hash (VLAN-Part2)+Hash(VLAN-Part3)}。
Finally, the hash value addition calculation of each network element unit is obtained to the hash value of entire network element NE:
Hash (NE)=Hash (VLAN)+Hash (IGMP)+Hash (Dot1x), so can easily judge whole Whether the hash value of a network element 30 is equal, can be according to each network element unit and the Hash of network element subelement if unequal Value, quickly navigate to be network element subelement hash value it is inconsistent.
The third embodiment of the network management server 20 provided in the present invention is provided, it can be with from figure Find out, on the basis of second of embodiment, further included in network element Fast synchronization system respectively with the online judgment module of network element 21st, the cryptographic Hash searching module 27 that memory module 22 and comparison module 24 connect, cryptographic Hash searching module 27 is according in gauze First ID, online network element unit ID or online network element subelement ID are searched in memory module 22 corresponding is locally stored Hash Value, and it is sent to comparison module 24.Specifically, in the process that the network element Fast synchronization system is used to synchronize network element 30 In, after the online judgment module 21 of network element judges online network element 30, then cryptographic Hash searching module 27 according to this in gauze The ID of member searches the cryptographic Hash of corresponding network element 30 in memory module 22;And include to the changed network element of cryptographic Hash 30 Network element unit, during the cryptographic Hash of network element subelement determines whether, the further basis of cryptographic Hash searching module 27 Online network element unit ID or online network element subelement ID search correspondence network element unit or network element subelement in memory module 22 Cryptographic Hash, and be respectively sent in comparison module 24.
The flow diagram of the network element fast synchronization method provided in the present invention, specifically, the network element are provided Fast synchronization method comprises the following steps:
S1 judges whether network element 30 is online;If online, step S2 is jumped to;If not online, step S9 is jumped to.It is specific next It says, in this step, all network elements 30 for judging to be connected with network management server 20 by the online judgment module 21 of network element are No online, only online network element 30 can just synchronize, and offline network element 30 waits it to be synchronized again after reaching the standard grade.
S2 obtains the cryptographic Hash of online network element.Specifically, in this step, calculated and be somebody's turn to do by cryptographic Hash computing unit The cryptographic Hash of gauze member, and the cryptographic Hash being calculated is sent to cryptographic Hash acquisition module 23.
S3 judges whether the cryptographic Hash of online network element acquisition and the cryptographic Hash being locally stored are consistent;If consistent, step is jumped to Rapid S9;If inconsistent, step S4 is jumped to.Specifically, in this step, if judgment module judges the Kazakhstan of online network element The cryptographic Hash of the network element 30 of the uncommon value with being stored in memory module 22 is consistent, then illustrates that the online network element need not be synchronous; If inconsistent, need to determine whether to be which network element unit or network element subelement are changed.
S4 obtains the cryptographic Hash for each online network element unit that online network element includes respectively.Specifically, in the step In, the cryptographic Hash of the online network element unit is calculated by cryptographic Hash computing unit, and the cryptographic Hash being calculated is sent to Kazakhstan Uncommon value acquisition module 23.
S5 judges whether the cryptographic Hash of online network element unit acquisition and the cryptographic Hash being locally stored are consistent;If consistent, redirect To step S4;If inconsistent, step S6 is jumped to.Specifically, in this step, if judgment module judges online network element The cryptographic Hash of the network element unit of the cryptographic Hash of unit with being stored in memory module 22 is consistent, then illustrates the online network element list Member need not be synchronous;If inconsistent, need to determine whether to be that network element subelement is changed.
More specifically, in step S5, following steps are specifically included:
S51 obtains the number M for the online network element unit that online network element includes;
S52 loop initialization parameter i, and the initial cycle value of loop parameter i is set as 1;
The cryptographic Hash of i-th of online network element unit in S53 obtaining steps S4 and this i-th online network element unit are locally deposited The cryptographic Hash of storage;
S54 judges whether the cryptographic Hash of i-th of online network element unit acquisition and the cryptographic Hash being locally stored are consistent;If one It causes, jumps to step S55;If inconsistent, step S6 is jumped to;
S55 i=i+1 obtain new loop parameter i, and judge whether new loop parameter i is less than online network element unit Number M if being less than, jumps to step S53.
S6 obtains the Hash for each online network element subelement that the inconsistent online network element unit of cryptographic Hash includes respectively Value.Specifically, in this step, the cryptographic Hash of the online network element subelement is calculated by cryptographic Hash computing unit, and will meter Obtained cryptographic Hash is sent to cryptographic Hash acquisition module 23.
S7 judges whether the cryptographic Hash of online network element subelement acquisition and the cryptographic Hash being locally stored are consistent;If consistent, jump Go to step S6;If inconsistent, step S8 is jumped to;Specifically, in this step, if judgment module is judged in gauze The cryptographic Hash of the network element unit of the cryptographic Hash of first subelement with being stored in memory module 22 is consistent, then explanation should be in gauze First subelement need not be synchronous;If inconsistent, which is synchronized.
In the step s 7, following steps are specifically included:
S71 obtains the number N for the online network element subelement that online network element unit includes;
S72 loop initialization parameter j, and the initial cycle value of loop parameter j is set as 1;
The cryptographic Hash and this j-th online network element subelement sheet of j-th of online network element subelement in S73 obtaining steps S6 The cryptographic Hash of ground storage;
S74 judge the online j-th online network element subelement obtained cryptographic Hash and the cryptographic Hash that is locally stored whether one It causes;If consistent, step S75 is jumped to;If inconsistent, step S8 is jumped to;
S75 j=j+1 obtain new loop parameter j, and judge whether new loop parameter j is less than online network element subelement Number N, if being less than, jump to step S73.
S8 synchronization network element subelements;
S9 terminates network element synchronization.
It should be noted that above-described embodiment can be freely combined as needed.The above is only the preferred of the present invention Embodiment, it is noted that for those skilled in the art, do not departing from the premise of the principle of the invention Under, several improvements and modifications can also be made, these improvements and modifications also should be regarded as protection scope of the present invention.

Claims (6)

1. a kind of network element Fast synchronization system, which is characterized in that the network element Fast synchronization system includes:
Client, the network management server being connected with the client and at least one and network management server connect The network element connect, the network management server realize the Fast synchronization of each network element under the control of the client;
The network management server includes:
The online judgment module of network element, for judging whether the network element being connected with the network management server is online;
Memory module, for storing the cryptographic Hash for all network elements being connected with the network management server, the storage network element In in the cryptographic Hash of all network element units and the storage network element unit all network element subelements cryptographic Hash;
Cryptographic Hash acquisition module is connected with the online judgment module of the network element, and the cryptographic Hash acquisition module is online for obtaining The cryptographic Hash of network element, the cryptographic Hash for obtaining online network element unit and the cryptographic Hash for obtaining online network element subelement;
Comparison module is connected respectively with the memory module and cryptographic Hash acquisition module, and the comparison module is used for cryptographic Hash The cryptographic Hash ratio for the corresponding network element being locally stored in the cryptographic Hash and memory module of the online network element that acquisition module obtains Compared with, be locally stored in the cryptographic Hash and memory module of the online network element unit that obtain cryptographic Hash acquisition module it is corresponding The cryptographic Hash of online network element subelement and storage mould that the cryptographic Hash of network element unit compares and obtains cryptographic Hash acquisition module The cryptographic Hash for the corresponding network element subelement being locally stored in block compares;
Synchronization module is connected with the comparison module, and the synchronization module realizes net according to the comparative result of the comparison module The Fast synchronization of member;
Judgment module online with the network element, memory module and cryptographic Hash respectively are further included in the network element Fast synchronization system The cryptographic Hash computing module of acquisition module connection, the cryptographic Hash computing unit connect for calculating with the network management server The cryptographic Hash of the network element, network element unit and the network element subelement that connect;And for calculate online network element, online network element unit and The cryptographic Hash of online network element subelement;
The cryptographic Hash computing module by the node data of each node in network element subelement by being converted to Byte byte classes Type, and the Byte values being converted to addition is obtained into the cryptographic Hash of the network element subelement;
The cryptographic Hash computing module is added this by the cryptographic Hash for all network element subelements for including network element unit The cryptographic Hash of network element unit;
The cryptographic Hash computing module is added to obtain the network element by the cryptographic Hash for all network element units for including network element Cryptographic Hash.
2. network element Fast synchronization system as described in claim 1, it is characterised in that:The cryptographic Hash computing module calculates network element During the cryptographic Hash of unit, the cryptographic Hash for all network element subelements which includes is added to obtain cryptographic Hash Summation, and the cryptographic Hash summation is encrypted Kazakhstan of the generation informative abstract value as the network element unit in use information digest algorithm Uncommon value.
3. network element Fast synchronization system as claimed in claim 1 or 2, it is characterised in that:In the network element Fast synchronization system It is described including the cryptographic Hash searching module that judgment module online with the network element, memory module and comparison module are connected respectively Cryptographic Hash searching module is searched in a storage module according to online NE ID, online network element unit ID or online network element subelements ID It is corresponding that cryptographic Hash is locally stored, and it is sent to comparison module.
4. a kind of network element fast synchronization method, which is characterized in that the network element fast synchronization method specifically includes following steps:
S1 judges whether network element is online;If online, step S2 is jumped to;If not online, step S9 is jumped to;
S2 obtains the cryptographic Hash of online network element;Wherein, by the way that the node data of each node in network element subelement is converted to Byte byte Types, and the Byte values being converted to addition is obtained into the cryptographic Hash of the network element subelement;By by network element unit The cryptographic Hash of all network element subelements included is added to obtain the cryptographic Hash of the network element unit;Pass through the institute for including network element The cryptographic Hash for having network element unit is added to obtain the cryptographic Hash of the network element;
S3 judges whether the cryptographic Hash of online network element acquisition and the cryptographic Hash being locally stored are consistent;If consistent, step S9 is jumped to; If inconsistent, step S4 is jumped to;
S4 obtains the cryptographic Hash for each online network element unit that the online network element includes respectively;
S5 judges whether the cryptographic Hash of online network element unit acquisition and the cryptographic Hash being locally stored are consistent;If consistent, step is jumped to Rapid S4;If inconsistent, step S6 is jumped to;
S6 obtains the cryptographic Hash for each online network element subelement that the inconsistent online network element unit of cryptographic Hash includes respectively;
S7 judges whether the cryptographic Hash of online network element subelement acquisition and the cryptographic Hash being locally stored are consistent;If consistent, jump to Step S6;If inconsistent, step S8 is jumped to;
The synchronous network element subelements of S8;
S9 terminates network element synchronization.
5. network element fast synchronization method as claimed in claim 4, which is characterized in that in step s 5, specifically include following step Suddenly:
S51 obtains the number M for the online network element unit that online network element includes;
S52 loop initialization parameter i, and the initial cycle value of loop parameter i is set as 1;
What the cryptographic Hash of i-th of online network element unit in S53 obtaining steps S4 and this i-th online network element unit were locally stored Cryptographic Hash;
S54 judges whether the cryptographic Hash of i-th of online network element unit acquisition and the cryptographic Hash being locally stored are consistent;If consistent, jump Go to step S55;If inconsistent, step S6 is jumped to;
S55i=i+1 obtains new loop parameter i, and judges whether new loop parameter i is less than the number of online network element unit M if being less than, jumps to step S53.
6. network element fast synchronization method as described in claim 4 or 5, which is characterized in that in the step s 7, specifically include following Step:
S71 obtains the number N for the online network element subelement that online network element unit includes;
S72 loop initialization parameter j, and the initial cycle value of loop parameter j is set as 1;
The cryptographic Hash of j-th of online network element subelement in S73 obtaining steps S6 and this j-th online network element subelement are locally deposited The cryptographic Hash of storage;
S74 judges whether the cryptographic Hash of the online j-th online network element subelement obtained and the cryptographic Hash being locally stored are consistent;If Unanimously, step S75 is jumped to;If inconsistent, step S8 is jumped to;
S75j=j+1 obtains new loop parameter j, and judges whether new loop parameter j is less than of online network element subelement Number N, if being less than, jumps to step S73.
CN201510679584.4A 2015-10-19 2015-10-19 A kind of network element Fast synchronization system and network element fast synchronization method Active CN105207825B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510679584.4A CN105207825B (en) 2015-10-19 2015-10-19 A kind of network element Fast synchronization system and network element fast synchronization method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510679584.4A CN105207825B (en) 2015-10-19 2015-10-19 A kind of network element Fast synchronization system and network element fast synchronization method

Publications (2)

Publication Number Publication Date
CN105207825A CN105207825A (en) 2015-12-30
CN105207825B true CN105207825B (en) 2018-05-25

Family

ID=54955278

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510679584.4A Active CN105207825B (en) 2015-10-19 2015-10-19 A kind of network element Fast synchronization system and network element fast synchronization method

Country Status (1)

Country Link
CN (1) CN105207825B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105897923B (en) * 2016-05-31 2019-04-30 中国科学院信息工程研究所 A kind of APP installation kit network flow identification method
CN107645394B (en) * 2016-07-22 2021-09-24 上海诺基亚贝尔股份有限公司 Switch configuration method in SDN network
CN113872996A (en) * 2020-06-30 2021-12-31 华为技术有限公司 Data reconciliation method and device
CN113364847B (en) * 2021-05-31 2022-07-19 新疆大学 Data synchronization method and device of block chain nodes and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1655513A (en) * 2004-02-12 2005-08-17 华为技术有限公司 Method for realizing configuration data real-time synchronization for network management system and network element device
CN101272275A (en) * 2008-05-07 2008-09-24 华为技术有限公司 Network management equipment, method and system for acquiring network appliance configuration information
CN102685877A (en) * 2012-05-16 2012-09-19 北京星网锐捷网络技术有限公司 User data synchronizing method, wireless controller and network management equipment
CN104883404A (en) * 2015-06-04 2015-09-02 上海斐讯数据通信技术有限公司 Network based file cloud synchronization method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1655513A (en) * 2004-02-12 2005-08-17 华为技术有限公司 Method for realizing configuration data real-time synchronization for network management system and network element device
CN101272275A (en) * 2008-05-07 2008-09-24 华为技术有限公司 Network management equipment, method and system for acquiring network appliance configuration information
CN102685877A (en) * 2012-05-16 2012-09-19 北京星网锐捷网络技术有限公司 User data synchronizing method, wireless controller and network management equipment
CN104883404A (en) * 2015-06-04 2015-09-02 上海斐讯数据通信技术有限公司 Network based file cloud synchronization method

Also Published As

Publication number Publication date
CN105207825A (en) 2015-12-30

Similar Documents

Publication Publication Date Title
CN105207825B (en) A kind of network element Fast synchronization system and network element fast synchronization method
CN108063672B (en) A kind of management method and device of video conference terminal
CN104754053B (en) A kind of distributed software defines network and the wherein method of dynamic control controller
CN109698757A (en) Switch master/slave device, the method for restoring user data, server and the network equipment
CN109660441A (en) The method and device of multicast replication in Overlay network
CN104468212B (en) A kind of cloud computation data center network intelligence linkage collocation method and system
Li et al. GBC3: A versatile cube-based server-centric network for data centers
CN103077082A (en) Method and system for distributing data center load and saving energy during virtual machine migration
CN104168222A (en) Message transmission method and device
CN102404387B (en) A kind of for carrying out the method for synchronizing information, device and equipment with other nodes
CN105979273A (en) Cloud monitor and cloud operation of intelligent commercial TVs based on big data and cloud computation
CN104348793B (en) The storage method of storage server system and data message
CN107948060A (en) A kind of new routing table is established and IP method for searching route and device
CN105704054A (en) Data center network flow migration method and system thereof
CN110048896A (en) A kind of company-data acquisition methods, device and equipment
CN107682411A (en) A kind of extensive SDN controllers cluster and network system
Chen et al. An sdn-based fabric for flexible data-center networks
CN102082832A (en) Data storage method and device in distributed file system
CN104811403A (en) Openflow-based group table processing method and device and group table configuration unit
Nakanishi et al. Data acquisition system for steady-state experiments at multiple sites
CN108206756A (en) A kind of method and apparatus regarding networking data verification
CN102647424B (en) Data transmission method and data transmission device
CN107070681A (en) Network topology acquisition methods and device based on software defined network SDN
CN102970375A (en) Cluster configuration method and device
Cucinotta et al. Data centre optimisation enhanced by software defined networking

Legal Events

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

Effective date of registration: 20201029

Address after: 518000 Kangjia R&D Building 20A-C, 28 South Science and Technology 12 Road, Yuehai Street, Nanshan District, Shenzhen City, Guangdong Province

Patentee after: SHENZHEN WORKEC TECHNOLOGY Co.,Ltd.

Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666

Patentee before: Phicomm (Shanghai) Co.,Ltd.

TR01 Transfer of patent right