CN116506449A - Communication network node information synchronization method, system, equipment and storage medium - Google Patents
Communication network node information synchronization method, system, equipment and storage medium Download PDFInfo
- Publication number
- CN116506449A CN116506449A CN202310758458.2A CN202310758458A CN116506449A CN 116506449 A CN116506449 A CN 116506449A CN 202310758458 A CN202310758458 A CN 202310758458A CN 116506449 A CN116506449 A CN 116506449A
- Authority
- CN
- China
- Prior art keywords
- client information
- updated
- hash value
- node
- information
- 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.)
- Granted
Links
- 238000004891 communication Methods 0.000 title claims abstract description 110
- 238000000034 method Methods 0.000 title claims abstract description 36
- 238000004590 computer program Methods 0.000 claims description 7
- 238000004364 calculation method Methods 0.000 claims description 4
- 230000000694 effects Effects 0.000 abstract description 2
- 230000001360 synchronised effect Effects 0.000 abstract 1
- 230000010365 information processing Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 6
- 238000012423 maintenance Methods 0.000 description 6
- 239000000178 monomer Substances 0.000 description 4
- 238000012544 monitoring process Methods 0.000 description 3
- 239000013307 optical fiber Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Computer And Data Communications (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application relates to the field of network node information synchronization, in particular to a method, a system, equipment and a storage medium for synchronizing communication network node information, wherein the method comprises the steps of obtaining an editing completion button click command, and then calculating a current hash value of client information in a source table; determining updated client information in the source table according to the current hash value; generating an update package according to the updated client information and the corresponding current hash value, and distributing the update package to each communication network intermediate node; updating the original node table in each communication network intermediate node according to the update package to obtain a current node table; and judging and updating the current node table according to the current node table and the updated client information hash value to obtain a first updated node table. The method and the device have the effect of improving the efficiency of updating the client information in the communication network node conveniently, can update the network node information accurately and synchronously in real time, and can improve the accuracy of synchronous updating of the urban-level and regional-level information data.
Description
Technical Field
The present invention relates to the field of network comprehensive wiring, and in particular, to a method, a system, an apparatus, and a storage medium for synchronizing information of communication network nodes.
Background
Various communication networks such as telephone networks, optical fiber networks, access networks, monitoring networks, etc. are commonly laid in large-scale workplaces or living places.
The communication network generally comprises an information processing center, a plurality of multi-stage intermediate nodes in communication connection with the information processing center, the intermediate nodes at all stages are in communication connection, a client is in communication connection with the intermediate node at the last stage, the client is used for being directly used by a user, and the clients in the common communication network comprise a telephone extension, a monitoring camera extension and the like. At present, according to actual use requirements, it is sometimes required to change client information of clients through an information processing center, after the change is completed, in order to facilitate the knowledge of client information of corresponding clients during maintenance of a communication network, the client information of each client is often recorded in an Excel table, and then the Excel table is stored in the information processing center and each intermediate node.
In the course of implementing the present application, it has been found that the above technique has at least the following problems: after the client information is changed each time, a worker needs to manually update each Excel table when reaching the information processing center and each intermediate node, and as the number of intermediate nodes is large and the distance between the intermediate nodes is relatively long, the worker has large workload and is extremely time-consuming when updating the Excel table, so that the efficiency of updating the changed client information in the information processing center and each intermediate node is low, and the client information updating accuracy is low and the traceability is poor.
Disclosure of Invention
In order to facilitate improving efficiency of updating changed client information in an information processing center and each intermediate node, the application provides a method, a system, equipment and a storage medium for synchronizing communication network node information.
In a first aspect, the present application provides a method for synchronizing information of a communication network node, which adopts the following technical scheme:
a method of synchronizing information of a communication network node, comprising:
acquiring an editing completion button click command, and calculating a hash value of each piece of client information in a source table according to the editing completion button click command to obtain a current hash value;
judging the current hash value and the corresponding original hash value in the source table to obtain a judging result, and determining the edited client information according to the judging result to be recorded as updated client information;
generating an update package according to the updated client information and the corresponding current hash value, and distributing the update package to each communication network intermediate node;
updating the original node table in each communication network intermediate node according to the update packet to obtain a current node table;
and judging and updating the current node table according to the current node table and the updated client information hash value in the update packet to obtain a first updated node table.
By adopting the technical scheme, the communication system is convenient to know that the staff has finished editing the client information in the source list once through the click command of the editing completion button, and the comparison with the previous hash value of the client information is convenient by calculating the current hash value of each client information, so that whether the client information is edited or not is obtained according to the comparison result; generating an update package according to the edited client information, distributing the update package to each communication network intermediate node, updating the original node table in each communication network intermediate node through the update package, so that the edited client information is conveniently updated to each original node table, finally judging whether the current hash value corresponding to the edited client information in the update package is consistent with the hash value of the client information updated to the current node table, so that whether the edited client information is successfully updated to the original node table is conveniently known, if yes, the edited client information is successfully updated to the original node table, the current node table obtained after the update can realize the synchronization of the edited client information in each communication network intermediate node, otherwise, the current node table is continuously updated, and the first updated node table obtained after the update can realize the synchronization of the edited client information in each communication network intermediate node; therefore, the synchronization of the client information is realized without the need of staff in a mode of updating the Excel table, and compared with the prior art, the method is convenient for improving the efficiency of updating the changed client information in the information processing center and each communication network intermediate node.
In a specific implementation manner, the step of determining the current hash value and the corresponding original hash value in the source table to obtain a determination result, determining the edited client information according to the determination result, and recording the edited client information as updated client information includes:
acquiring an original hash value corresponding to the client information in the source table;
judging whether the original hash value is consistent with the corresponding current hash value or not, and obtaining the judging result;
and if the judging result is that the original hash value is inconsistent with the corresponding current hash value, marking the client information corresponding to the current hash value as updated client information.
By adopting the technical scheme, the original hash value corresponding to the original client information is preset in the source table, after the staff completes editing of the source table, the communication system calculates the current hash value corresponding to each client information in the source table after editing, and then the current hash value is compared with the corresponding original hash value to quickly judge whether the client information is edited.
In a specific embodiment, the step of generating the update package according to the updated client information and the corresponding current hash value includes:
Acquiring the updated client information, node group information corresponding to the updated client information in the source table and the current hash value;
writing the updated client information into a preset updated client information field in the update package; writing the node group information corresponding to the updated client information in the source table into a preset update package node group information field in the update package to obtain update package node group information; writing the current hash value corresponding to the updated client information into a preset updated client information hash value field in the update packet to obtain an updated client information hash value;
and matching the hash values of the updated client information, the updated packet node group information and the updated client information corresponding to one group with corresponding update time to obtain the updated packet.
By adopting the technical scheme, the updated client information is recorded in the update package, meanwhile, the node group information corresponding to the updated client information and the current hash value are recorded in the update package, and then the update package is distributed to each communication network communication node, so that the updated client information, the node group information corresponding to the updated client information and the current hash value are conveniently and synchronously updated to each communication network communication node, and the updated client information can be synchronously updated to each communication network communication node only by carrying out one-time updating of the client information in the information processing center, thereby being convenient for greatly improving the updating speed of the client information; in addition, node group information corresponding to the updated client information is added into the update package, so that the node group information corresponding to the updated client information can be conveniently updated to the first updated node table synchronously, the position information of all levels of communication network intermediate nodes related to the updated client information can be conveniently queried through any communication network intermediate node, and the development of the operation and maintenance work in the later period of the communication network is facilitated.
In a specific embodiment, the step of updating the original node table in each intermediate node of the communication network according to the update packet to obtain the current node table includes:
determining node group information of a node table matched in an original node table according to the updated packet node group information;
updating the updated client information corresponding to the node group information of the node table in the update package to the client information field of the node table in the original node table;
and calculating the node table client information hash value corresponding to the updated client information, and recording the node table client information hash value in the node table client information hash value field in the original node table to obtain the current node table.
By adopting the technical scheme, the method is convenient for preliminarily updating the client information in the original node table in each communication network node, and calculating the corresponding hash value of the updated client information, so that the method is convenient for preliminarily updating to obtain the current node table of each communication network node.
In a specific implementation manner, the step of determining and updating the current node table according to the hash value of the updated client information in the update package and the current node table, and obtaining the first updated node table includes:
Acquiring the node table client information hash value in the current node table, acquiring the updated client information hash value corresponding to the node table client information hash value in the update packet, and judging whether the node table client information hash value is consistent with the updated client information hash value or not;
if not, updating the corresponding node table client information in the current node table again according to the updating packet until the hash value of the node table client information is consistent with the corresponding current hash value, and obtaining the node table after the first updating.
By adopting the technical scheme, the client information hash value of the node table is compared with the corresponding current hash value, so that whether the client information corresponding to the client information hash value of the node table is successfully updated or not can be conveniently judged, and when the client information hash value of the node table is consistent with the current hash value, the corresponding client information in the original node table is successfully updated.
In a specific embodiment, the step before obtaining the current node table further includes:
writing the update time in the update package into a latest update time field in the original node table.
By adopting the technical scheme, the update time of the client information updated each time is conveniently obtained when the original node table is accessed.
In a specific embodiment, the step of obtaining the first updated node table includes:
acquiring all the latest update times in the first updated node table;
judging whether the latest update time is consistent with the update time of the latest update package;
if not, the corresponding node table client information in the first updated node table is updated again, and a second updated node table is obtained.
By adopting the technical scheme, the updating time written in the first updated node table is compared with the latest updating time in the updating packet, so that whether the client information in the first updated node table is the latest updated client information or not is conveniently judged, and if not, the second updated node table can be obtained after updating again.
In a second aspect, the present application provides a communication network node information synchronization system, which adopts the following technical scheme:
a communication network node information synchronization system, comprising:
the current hash value calculation module is used for acquiring an editing completion button click command, calculating the hash value of each piece of client information in the source table according to the editing completion button click command, and acquiring a current hash value;
The updated client information acquisition module is used for judging the current hash value and the corresponding original hash value in the source table to obtain a judging result, and determining the edited client information according to the judging result to be recorded as updated client information;
the update package generation and distribution module is used for generating an update package according to the updated client information and the corresponding current hash value and distributing the update package to each communication network intermediate node;
the current node table acquisition module is used for updating the original node table in each communication network intermediate node according to the update packet to obtain a current node table;
and the first updated node table acquisition module is used for judging and updating the current node table according to the current node table and the updated client information hash value in the update package to obtain a first updated node table.
By adopting the technical scheme, the communication system is convenient to know that the staff has finished editing the client information in the source list once through the click command of the editing completion button, and the comparison with the previous hash value of the client information is convenient by calculating the current hash value of each client information, so that whether the client information is edited or not is obtained according to the comparison result; generating an update package according to the edited client information, distributing the update package to each communication network intermediate node, updating the original node table in each communication network intermediate node through the update package, so that the edited client information is conveniently updated to each original node table, finally judging whether the current hash value corresponding to the edited client information in the update package is consistent with the hash value of the client information updated to the current node table, so that whether the edited client information is successfully updated to the original node table is conveniently known, if yes, the edited client information is successfully updated to the original node table, the current node table obtained after the update can realize the synchronization of the edited client information in each communication network intermediate node, otherwise, the current node table is continuously updated, and the first updated node table obtained after the update can realize the synchronization of the edited client information in each communication network intermediate node; therefore, the synchronization of the client information is realized without the need of staff in a mode of updating the Excel table, and compared with the prior art, the method is convenient for improving the efficiency of updating the changed client information in the information processing center and each communication network intermediate node.
In a third aspect, the present application provides a computer device, which adopts the following technical scheme: comprises a memory and a processor, wherein the memory stores a computer program which can be loaded by the processor and execute any one of the communication network node information synchronization methods.
In a fourth aspect, the present application provides a computer readable storage medium, which adopts the following technical solutions: a computer program is stored which can be loaded by a processor and which performs any of the above described methods of synchronizing information of communication network nodes.
In summary, the present application includes at least one of the following beneficial technical effects:
the efficiency of updating the changed client information in the information processing center and each communication network intermediate node is improved conveniently;
the method is convenient for inquiring the position information of each level of communication network intermediate nodes associated with any updated client information through each communication network intermediate node;
and whether the client information in the node table after the first update is the latest updated client information is conveniently judged.
Drawings
Fig. 1 is a schematic diagram of an overall structure of a communication network according to an embodiment of the present application.
Fig. 2 is a flow chart of a method for synchronizing information of communication network nodes in an embodiment of the present application.
Fig. 3 is a schematic diagram of the structure of the source table in the embodiment of the present application.
Fig. 4 is a schematic structural diagram of an update package in an embodiment of the present application.
Fig. 5 is a schematic structural diagram of an original node table in an embodiment of the present application.
Fig. 6 is a schematic structural diagram of a current node table in an embodiment of the present application.
Fig. 7 is a schematic structural diagram of a communication network node information synchronization system according to an embodiment of the present application.
Reference numerals illustrate: 100. a current hash value calculation module; 200. the updated client information acquisition module; 300. an update package generation and distribution module; 400. the current node table acquisition module; 500. and the first updated node table acquisition module.
Detailed Description
The present application is described in further detail below in conjunction with figures 1-7.
The embodiment of the application discloses a communication network node information synchronization method which is applied to communication network systems including a telephone network system, an optical fiber network system, an access control network system, a monitoring network system, a network port network system and the like.
Referring to fig. 1, an in-factory telephone network system includes a central office as an information processing backbone; the central machine room is in communication connection with a three-level communication network intermediate node; specifically, the first-level network communication intermediate node is a plurality of factory-area weak current rooms in communication connection with the central machine room, the factory comprises a plurality of factory-areas, and each factory-area weak current room is arranged in each factory-area; the second-level network communication node is a single building weak current room arranged in each single building in each factory area, and the single building weak current room is in communication connection with the corresponding factory area weak current room; the third-level network communication node is a floor weak current room arranged in each floor of each single building, each floor weak current room is in communication connection with a corresponding single building weak current room, and each floor weak current room is also in communication connection with a plurality of clients arranged in the corresponding floor; in a telephone network system, the clients are in particular extensions. It should be noted that the central machine room may also be connected to clients disposed in special sites, such as a guard room.
Referring to fig. 2, the above-mentioned method for synchronizing information of communication network nodes includes:
s100, acquiring an editing completion button click command, and calculating a hash value of each piece of client information in the source table according to the editing completion button click command to obtain a current hash value.
It should be noted that, each extension telephone (i.e., client) has its corresponding client information, and in this embodiment, the client information may be specifically understood as an extension telephone number, and in actual operation of the factory, it is sometimes necessary to perform a change operation on the client information of the extension telephone.
In this embodiment, the staff may change the client information of the extension telephone by operating the source table set in the central machine room; after the change operation of the client information is completed in the source list, the staff needs to click an editing completion button, so that an editing completion button click command is sent to the central machine room; after receiving the click command of the editing completion button, the central computer room can identify that the staff has completed the operation of changing the client information of the extension telephone in the source list, thereby further starting the operation of synchronizing the client information in each network communication node.
Referring to fig. 3, the source table includes a number field, a client information field, a node group information field, an original hash value field, a current hash value field, and an update log field; wherein:
the client information field is used for storing the client information of all the telephone extensions according to the number sequence; in the initial state, the client information field of the source table stores the client information before editing; in implementations, a worker may edit the client information in the client information field.
The node group information field is used for storing node group information corresponding to each extension telephone, the node group information is used for representing position information of each level of communication network intermediate node communicatively connected with the extension telephone, for example, if a certain extension telephone is located in a third floor in a second monomer building in a first factory, then the communication network intermediate node communicatively connected with the extension telephone has: the node group information corresponding to the extension telephone is defined as (1, 2, 3) at the moment of weak electric current in the factory floor of the first factory, weak electric current in the monomer building of the second monomer building in the first factory and weak electric current in the third floor of the second monomer building in the first factory; and so on.
The original hash value field is used for storing a hash value calculated according to the client information before editing, and the hash value is recorded as an original hash value.
The current hash value field is used for storing a hash value calculated according to the edited client information, and the hash value is recorded as the current hash value.
The update log field is used for synchronously and automatically recording an update log corresponding to the action of the staff updating the source table each time when the staff updates the source table, and specifically, the update log at least comprises an updater, an update time, an update operation and an update frequency corresponding to the update action of the source table each time.
It should be noted that, the update log in the update log field in the source table may be referred to in the following step, so that the corresponding update operation performed on the source table by the corresponding updater at the corresponding update time is known, and the number of information synchronization to the communication network is known by the recorded update times, so that the subsequent tracing of the updater, the update time, the update operation and the update times for updating the client information is facilitated, and further the subsequent referencing and auditing are facilitated.
In this embodiment, after the staff completes editing the client information in the source table, click on an edit completion button, at this time, trigger a process of calculating the current hash value by the central machine room, and then generate a current hash value corresponding to each client information in a current hash value field.
And S200, judging the current hash value and the corresponding original hash value in the source table to obtain a judging result, and determining edited client information according to the judging result to be recorded as updated client information.
Specifically, the step S200 includes the following sub-steps:
s201, acquiring an original hash value corresponding to updated client information in a source table.
After the generation of the current hash value in the current hash value field is completed through the step S100, the central machine room acquires all the current hash values in the source table, and simultaneously acquires the original hash value corresponding to each current hash value in the source table (the current hash value of the row with the same number in the source table corresponds to the original hash value).
S202, judging whether the original hash value is consistent with the corresponding current hash value, and obtaining a judging result.
If a certain client information is changed, the original hash value corresponding to the client information is inconsistent with the current hash value; otherwise, it is consistent.
After the original hash value and the corresponding current hash value are obtained in step S201, the central machine room judges whether each original hash value is consistent with the corresponding current hash value, and a corresponding judging result is obtained.
And S203, if the judgment result is that the original hash value is inconsistent with the corresponding current hash value, the client information corresponding to the current hash value is recorded as updated client information.
If the judgment result obtained in the step S202 is that the original hash value is inconsistent with the corresponding current hash value, it is indicated that the corresponding client information is changed, and at this time, the central machine room obtains the corresponding client information, and the client information that the original hash value is inconsistent with the corresponding current hash value is recorded as updated client information.
If the judgment result obtained in the step S202 is that the original hash value is consistent with the corresponding current hash value, it is indicated that the corresponding client information is not changed, and at this time, the corresponding client information is not processed.
And S300, generating an update package according to the updated client information and the corresponding current hash value, and distributing the update package to each communication network intermediate node.
Specifically, the step S300 includes the following sub-steps:
s301, acquiring updated client information, node group information corresponding to the updated client information in a source table and a current hash value.
After the identification of the updated client information is completed in step S200, the central computer room acquires the updated client information in the source table, and simultaneously also acquires the node group information corresponding to each updated client information and the current hash value corresponding to each updated client information, so that the updated client information and the corresponding node group information are updated to the intermediate nodes of each communication network.
S302, writing the updated client information into a preset updated client information field in an update package; writing node group information corresponding to updated client information in a source table into an update packet node group information field preset in an update packet to obtain update packet node group information; and writing the current hash value corresponding to the updated client information into a preset updated client information hash value field in the update packet to obtain an updated client information hash value.
It should be noted that, in this embodiment, the updated client information and the corresponding updated packet node group information are stored with the updated packet as a carrier; in this embodiment, referring to fig. 4, the update package includes a number field, an updated client information field, an updated package node group information field, an updated client information hash value field, and an update time field, where:
the updated client information field is used for storing updated client information according to the serial number sequence;
the updated packet node group information field is used for storing node group information corresponding to the updated client information, and the node group information stored in the updated packet node group information field is recorded as updated packet node group information;
The updated client information hash value field is used for storing a current hash value corresponding to the updated client information, and the current hash value stored in the updated client information hash value field is recorded as the updated client information hash value;
the updated client information, and the hash value of the updated client information in the row of the same number are a group of data corresponding to each other.
In implementation, after the step S301 is performed to obtain updated client information, node group information corresponding to the updated client information, and a current hash value corresponding to the updated client information, the central office further writes the updated client information into an updated client information field preset in the update package; writing node group information corresponding to the updated client information in the source table into a preset update package node group information field in the update package to obtain update package node group information; writing the current hash value corresponding to the updated client information into a preset updated client information hash value field in an update packet; thereby obtaining one or more groups of updated client information, updated client information and updated client information hash values which correspond to each other.
S303, matching the hash value of the updated client information, the updated packet node group information and the updated client information corresponding to the updated client information as a group with the update time to obtain an updated packet.
After writing one or more groups of mutually corresponding updated client information, updated client information and updated client information hash values into an update package, the central machine room matches corresponding update time for each group of mutually corresponding updated client information, updated client information and updated client information hash values in an update time field in the update package, and writes the update time into corresponding positions in an update time field preset in the update package; and in conclusion, the central machine room obtains the corresponding update package.
And S304, distributing the update package to each communication network intermediate node.
In order to facilitate the update of the client information recorded in advance in each communication network intermediate node, after the update package is generated, the central computer room further distributes the update package to each communication network intermediate node, namely distributes the update package to each factory weak current room, each single building weak current room and each floor weak current room in the factory.
S400, updating the original node table in each communication network intermediate node according to the update packet to obtain the current node table.
Specifically, the step S400 includes the following sub-steps:
s401, determining node group information of a node table matched in an original node table according to the node group information of the update package.
It should be noted that, in order to facilitate that, in the later operation and maintenance, the position of each level of communication network intermediate node communicatively connected to each extension telephone set may be queried through each network communication intermediate node, the same original node table is preset in each communication network intermediate node, and in the initial state, referring to fig. 5, the original node table includes a number field, a node table client information field, a node table node group information field, a node table client information hash value field, and a latest update time field, where:
the node table client information field is used for storing client information according to the number sequence, and the client information stored in the node table client information field is recorded as node table client information;
the node table node group information field is used for storing node group information corresponding to the node table client information, and the node group information stored in the node table node group information field is recorded as node table node group information;
the node table client information hash value field is used for storing a hash value corresponding to the node table client information, and the hash value stored in the node table client information hash value field is recorded as the node table client information hash value;
The latest update time field is used to store the update time of the latest updated client information in the update package.
In the implementation, the update package node information groups in the update package node information fields are sequentially acquired, and then node table node group information matched with the update package node information groups in the original node table is determined.
S402, updating updated client information corresponding to node group information of the node table in the update package to a node table client information field in the original node table.
Referring to fig. 6, after determining node group information of the node table that matches the node group information of the update package in step S401, the updated client information of the update package corresponding to the node group information of the update package is further updated into the node table client information field in the original node table, and the updated client information updated into the node table client information field is new node table client information corresponding to the node group information of the corresponding node table.
S403, calculating a node table client information hash value corresponding to the updated client information, and recording the node table client information hash value in a node table client information hash value field in an original node table.
After finishing updating the node table client information field in each node table through the step S402, calculating a hash value of each node table client information in each node table, marking the hash value as a node table client information hash value, and correspondingly storing the node table client information hash value in the node table client information hash value field.
S404, writing the update time in the update package into a latest update time field in the original node table to obtain the current node table.
The update time field in the update package stores the update time corresponding to the update package node group information, and the update time in the update package also corresponds to the node table node group information in the node table, which is matched with the corresponding update package node group information.
In practice, the update time corresponding to each node table node group information is written to the corresponding location in the last update time field of the original node table, and then the current node table as shown in fig. 6 is obtained.
S500, judging and updating the current node table according to the current node table and the updated client information hash value to obtain a first updated node table.
Specifically, the step S500 includes the following sub-steps:
s501, acquiring a node table client information hash value in a current node table, acquiring an updated client information hash value corresponding to the node table client information hash value in an update packet, and judging whether the node table client information hash value is consistent with the updated client information hash value.
It should be noted that, if a certain updated client information in the update package is successfully updated to the corresponding position of the node table client information field in the original node table, the hash value of the updated client information corresponding to the updated client information in the update package is consistent with the hash value of the corresponding node table client information in the current node table, otherwise, it is noted that the updated client information in the update package is not successfully updated to the corresponding position of the node table client information field in the original node table.
In order to facilitate judging that the node table client information needing to be updated in the current node table is updated, in the implementation, after the current node table is initially generated, acquiring node table client information hash values in the current node table, which are in one-to-one correspondence with the update package node group information in the update package, and acquiring updated client information hash values in the update package, which are in one-to-one correspondence with the update package node group information; and then judging whether the updated client information hash value is consistent with the corresponding node table client information hash value.
S502, if not, updating the corresponding node table client information in the current node table again according to the update packet until the hash value of the corresponding node table client information is consistent with the hash value of the updated client information, and obtaining a first updated node table.
If it is determined in step S501 that the hash value of the updated client information is inconsistent with the hash value of the corresponding node table client information, it is indicated that the corresponding node table client information in the current node table is not updated, and at this time, the update package is continuously reused to update the node table client information that is not updated until it is determined that the hash value of the updated client information is consistent with the hash value of the corresponding node table client information, so as to obtain the first updated node table.
It should be noted that, if it is determined in step S501 that the hash value of the updated client information is identical to the hash value of the corresponding node table client information, it is indicated that all the node table client information in the current node table that needs to be updated has been updated, and at this time, the update operation is not performed on the current node table, that is, at this time, the current node table is identical to the first updated node table.
S503, acquiring all the latest update times in the first updated node table.
In order to facilitate the judgment that all the node table client information in the first updated node table is the latest updated client information, the judgment and the discrimination can be performed according to the latest update time in the first updated node table.
In the implementation, the latest update time corresponding to the update package node group information in the update package in the first updated node table is obtained first, and the update package is analyzed to obtain the latest update time of the update package.
S504, judging whether the update time is consistent with the update time of the latest update package.
After the acquisition of the latest update time and the latest update time of the update package is completed in step S503, it is determined whether the latest update time corresponding to the update package node group information in the update package in the first node table is consistent with the latest update time of the update package.
And S505, if not, re-updating the corresponding node table client information in the first updated node table to obtain a second updated node table.
If it is determined by S504 that the latest update time in the first node table corresponding to the updated packet node group information in the updated packet is inconsistent with the latest update time of the updated packet, it indicates that the node table client information in the first updated node table is not the latest updated node table client information, and at this time, the node table client information in the first updated node table is updated again, so as to obtain the second updated node table.
It should be noted that, if it is determined that the latest update time corresponding to the update package node group information in the update package in the first node table is consistent with the latest update time of the update package through S504, it is described that the node table client information corresponding to the first node table is the latest updated client information, and at this time, the second updated node table is consistent with the first updated node table.
In addition, the second updated node table in each communication network intermediate node includes the latest updated node table client information and node table node group information corresponding to the node table client information, where it is known that the node table node group information is consistent with the node group information in the source table, and is the position information for characterizing each level of communication network intermediate nodes communicatively connected with the corresponding extension telephone. Therefore, in the later operation and maintenance process, the operation and maintenance personnel can input any existing client information (namely the node table client information in the second updated node table) into any communication network intermediate node, so that node table node group information corresponding to the client information is queried, and further, the position information of each level of communication network intermediate nodes in communication connection with the input client information can be determined, and the operation and maintenance work can be conveniently carried out.
Fig. 2 is a flow chart of a method for synchronizing information of communication network nodes in an embodiment. It should be understood that, although the steps in the flowchart of fig. 2 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows; the steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders; and at least some of the steps in fig. 2 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the other steps or sub-steps of other steps.
The embodiment of the application also discloses a communication network node information synchronization system based on the communication network node information synchronization method. Referring to fig. 7, the communication network node information synchronization system includes:
the current hash value calculation module 100 is configured to obtain an edit completion button click command, calculate a hash value of each client information in the source table according to the edit completion button click command, and obtain a current hash value.
The updated client information obtaining module 200 is configured to determine updated client information in the source table according to the current hash value, and obtain updated client information.
The update package generation and distribution module 300 is configured to generate an update package according to the updated client information and the corresponding current hash value, and distribute the update package to each communication network intermediate node.
The current node table obtaining module 400 is configured to update the original node table in each communication network intermediate node according to the update packet, so as to obtain a current node table.
The first updated node table obtaining module 500 is configured to determine and update the current node table according to the hash value of the current node table and the updated client information, and obtain a first updated node table.
In addition, the embodiment also discloses a computer device, which comprises a memory and a processor, wherein the memory stores a computer program, and the computer program when executed by the processor causes the processor to execute the steps of the communication network node information synchronization method. The steps of a communication network node information synchronization method may be the steps of a communication network node information synchronization method of the above embodiments.
In addition, in the present embodiment, a computer-readable storage medium storing a computer program capable of being loaded by a processor and executing a communication network node information synchronization method as described above is also disclosed, the computer-readable storage medium including, for example: a U-disk, a removable hard disk, a Read-only memory (ROM), a random access memory (RandomAccessMemory, RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
The present embodiment is only for explanation of the present invention and is not to be construed as limiting the present invention, and modifications to the present embodiment, which may not creatively contribute to the present invention as required by those skilled in the art after reading the present specification, are all protected by patent laws within the scope of claims of the present invention.
Claims (9)
1. A method for synchronizing information of communication network nodes, which is characterized in that: comprising the following steps:
acquiring an editing completion button click command, and calculating a hash value of each piece of client information in a source table according to the editing completion button click command to obtain a current hash value;
judging the current hash value and the corresponding original hash value in the source table to obtain a judging result, and determining the edited client information according to the judging result to be recorded as updated client information;
Acquiring the updated client information, node group information corresponding to the updated client information in the source table and the current hash value; writing the updated client information into a preset updated client information field in an update package; writing the node group information corresponding to the updated client information in the source table into a preset update package node group information field in the update package to obtain update package node group information; writing the current hash value corresponding to the updated client information into a preset updated client information hash value field in the update packet to obtain an updated client information hash value; matching the corresponding update time for the updated client information, the updated packet node group information and the updated client information hash value corresponding to one group to obtain the updated packet, and distributing the updated packet to each communication network intermediate node;
updating the original node table in each communication network intermediate node according to the update packet to obtain a current node table;
and judging and updating the current node table according to the current node table and the updated client information hash value in the update packet to obtain a first updated node table.
2. A method of synchronizing information of communication network nodes according to claim 1, characterized in that: the step of judging the current hash value and the corresponding original hash value in the source table to obtain a judging result, determining the edited client information according to the judging result, and marking the edited client information as updated client information comprises the following steps:
acquiring the original hash value corresponding to the client information in the source table;
judging whether the original hash value is consistent with the corresponding current hash value or not, and obtaining the judging result;
and if the judging result is that the original hash value is inconsistent with the corresponding current hash value, marking the client information corresponding to the current hash value as updated client information.
3. A method of synchronizing information of communication network nodes according to claim 1, characterized in that: the step of updating the original node table in each communication network intermediate node according to the update packet to obtain the current node table comprises the following steps:
determining node group information of a node table matched in the original node table according to the updated packet node group information;
updating the updated client information corresponding to the node group information of the node table in the update package to a node table client information field in the original node table;
And calculating a node table client information hash value corresponding to the updated client information, and recording the node table client information hash value in a node table client information hash value field in the original node table to obtain the current node table.
4. A method of synchronizing information of communication network nodes according to claim 3, characterized in that: the step of judging and updating the current node table according to the current node table and the updated client information hash value in the update packet to obtain a first updated node table comprises the following steps:
acquiring the node table client information hash value in the current node table, acquiring the updated client information hash value corresponding to the node table client information hash value in the update packet, and judging whether the node table client information hash value is consistent with the updated client information hash value or not;
if not, updating the corresponding node table client information in the current node table again according to the updating packet until the node table client information hash value is consistent with the corresponding updated client information hash value, and obtaining the first updated node table;
if yes, the update operation is not executed on the current node table.
5. A method of synchronizing information of communication network nodes according to claim 3, characterized in that: the step before obtaining the current node table further comprises:
and writing the update time in the update package into a latest update time field in the original node table to obtain latest update time.
6. The method for synchronizing information of communication network nodes according to claim 5, wherein: the step of obtaining the first updated node table comprises the following steps:
acquiring all the latest update times in the first updated node table;
judging whether the latest update time is consistent with the update time of the latest update package;
if not, the corresponding node table client information in the first updated node table is updated again, and a second updated node table is obtained.
7. A communication network node information synchronization system, characterized by: comprising the following steps:
the current hash value calculation module (100) is used for acquiring an editing completion button click command, and calculating the hash value of each piece of client information in the source table according to the editing completion button click command to acquire a current hash value;
the updated client information acquisition module (200) is used for judging the current hash value and the corresponding original hash value in the source table to obtain a judging result, and determining the edited client information according to the judging result to be recorded as updated client information;
An update package generation and distribution module (300) for obtaining the updated client information, node group information corresponding to the updated client information in the source table, and the current hash value; writing the updated client information into a preset updated client information field in an update package; writing the node group information corresponding to the updated client information in the source table into a preset update package node group information field in the update package to obtain update package node group information; writing the current hash value corresponding to the updated client information into a preset updated client information hash value field in the update packet to obtain an updated client information hash value; matching the corresponding update time for the updated client information, the updated packet node group information and the updated client information hash value corresponding to one group to obtain the updated packet, and distributing the updated packet to each communication network intermediate node;
a current node table obtaining module (400) configured to update an original node table in each communication network intermediate node according to the update packet to obtain a current node table;
And the first updated node table acquisition module (500) is used for judging and updating the current node table according to the current node table and the updated client information hash value in the update package to obtain a first updated node table.
8. A computer device, characterized in that the computer device comprises a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform a communication network node information synchronization method according to any of claims 1-6.
9. A computer readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform a communication network node information synchronization method according to any of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310758458.2A CN116506449B (en) | 2023-06-26 | 2023-06-26 | Communication network node information synchronization method, system, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310758458.2A CN116506449B (en) | 2023-06-26 | 2023-06-26 | Communication network node information synchronization method, system, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116506449A true CN116506449A (en) | 2023-07-28 |
CN116506449B CN116506449B (en) | 2023-09-26 |
Family
ID=87325168
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310758458.2A Active CN116506449B (en) | 2023-06-26 | 2023-06-26 | Communication network node information synchronization method, system, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116506449B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101140603B1 (en) * | 2010-10-29 | 2012-05-02 | 엘아이지넥스원 주식회사 | Synchronization middleware system to perform data synchronization between client database and server database, and synchronization method between client database and server database |
CN111581569A (en) * | 2020-04-01 | 2020-08-25 | 车智互联(北京)科技有限公司 | Webpage resource updating method and system |
CN113918648A (en) * | 2021-09-24 | 2022-01-11 | 杭州数梦工场科技有限公司 | Data synchronization method and device, electronic equipment and storage medium |
CN114647651A (en) * | 2022-05-19 | 2022-06-21 | 同日云联信息技术(苏州)有限公司 | Heterogeneous database synchronization method and system |
CN114880003A (en) * | 2022-05-24 | 2022-08-09 | 深圳传音通讯有限公司 | System upgrading method of intelligent terminal, intelligent terminal and storage medium |
CN115525703A (en) * | 2022-09-09 | 2022-12-27 | 北京结慧科技有限公司 | Data comparison method, data synchronization device and medium for heterogeneous database |
CN115757629A (en) * | 2022-11-24 | 2023-03-07 | 中国人民解放军国防科技大学 | Multi-source heterogeneous data increment synchronization method and system, storage medium and electronic equipment |
CN116303777A (en) * | 2023-03-01 | 2023-06-23 | 中国电力科学研究院有限公司 | Real-time synchronous replication method and system between heterogeneous databases |
-
2023
- 2023-06-26 CN CN202310758458.2A patent/CN116506449B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101140603B1 (en) * | 2010-10-29 | 2012-05-02 | 엘아이지넥스원 주식회사 | Synchronization middleware system to perform data synchronization between client database and server database, and synchronization method between client database and server database |
CN111581569A (en) * | 2020-04-01 | 2020-08-25 | 车智互联(北京)科技有限公司 | Webpage resource updating method and system |
CN113918648A (en) * | 2021-09-24 | 2022-01-11 | 杭州数梦工场科技有限公司 | Data synchronization method and device, electronic equipment and storage medium |
CN114647651A (en) * | 2022-05-19 | 2022-06-21 | 同日云联信息技术(苏州)有限公司 | Heterogeneous database synchronization method and system |
CN114880003A (en) * | 2022-05-24 | 2022-08-09 | 深圳传音通讯有限公司 | System upgrading method of intelligent terminal, intelligent terminal and storage medium |
CN115525703A (en) * | 2022-09-09 | 2022-12-27 | 北京结慧科技有限公司 | Data comparison method, data synchronization device and medium for heterogeneous database |
CN115757629A (en) * | 2022-11-24 | 2023-03-07 | 中国人民解放军国防科技大学 | Multi-source heterogeneous data increment synchronization method and system, storage medium and electronic equipment |
CN116303777A (en) * | 2023-03-01 | 2023-06-23 | 中国电力科学研究院有限公司 | Real-time synchronous replication method and system between heterogeneous databases |
Also Published As
Publication number | Publication date |
---|---|
CN116506449B (en) | 2023-09-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110401662B (en) | Industrial control equipment fingerprint identification method and storage medium | |
CN104376025B (en) | The date storage method and device of distributed data base | |
US20070038415A1 (en) | Cable quantity totalizing device, cable quantity totalizing method and cable quantity totalizing program | |
CN104408118B (en) | The creation method and device of database | |
CN111026460B (en) | Method and device for rapidly allocating points by using regional templates in configuration tool | |
CN109697109B (en) | Method, system, device and storage medium for distinguishing and identifying conflict virtual machines | |
CN112764874B (en) | Virtual machine server information acquisition method based on CMDB configuration management system | |
CN115599437B (en) | Software version processing method and device, electronic equipment and storage medium | |
CN106779162A (en) | A kind of business events flow path flexible configuration and automatic optimization method and system | |
US10963550B2 (en) | Method and apparatus for person identification by a smart device | |
CN104951519A (en) | Method and device for generating serial numbers | |
CN108259523A (en) | A kind of data transmission method and Internet of things system, Network Access Method | |
CN116506449B (en) | Communication network node information synchronization method, system, equipment and storage medium | |
CN110083504B (en) | Running state monitoring method and device for distributed tasks | |
CN115687349A (en) | Database table generation method and device, storage medium and electronic device | |
CN109861869B (en) | Configuration file generation method and device | |
CN105763535A (en) | Method, device and system for processing session message list | |
CN110175171B (en) | System for IT equipment intelligent recommendation of on-shelf position | |
CN113194124B (en) | Distributed real-time database-based DCS background multi-node directory synchronization method | |
CN112612852A (en) | Data synchronization method and device, electronic equipment and storage medium | |
CN114567590B (en) | Topology structure generation method, device, equipment and storage medium | |
JP7421260B1 (en) | Vulnerability mining method and system for competitive industrial control systems | |
CN117081976B (en) | Method and device for configuring gateway route | |
JP7068595B1 (en) | Management device | |
CN117472918B (en) | Data processing method, system, electronic device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |