CN115208905A - Device information synchronization method, device, system, electronic device and storage medium - Google Patents

Device information synchronization method, device, system, electronic device and storage medium Download PDF

Info

Publication number
CN115208905A
CN115208905A CN202210969127.9A CN202210969127A CN115208905A CN 115208905 A CN115208905 A CN 115208905A CN 202210969127 A CN202210969127 A CN 202210969127A CN 115208905 A CN115208905 A CN 115208905A
Authority
CN
China
Prior art keywords
information
equipment
information synchronization
topology
instruction
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.)
Withdrawn
Application number
CN202210969127.9A
Other languages
Chinese (zh)
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.)
DBAPPSecurity Co Ltd
Original Assignee
DBAPPSecurity 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 DBAPPSecurity Co Ltd filed Critical DBAPPSecurity Co Ltd
Priority to CN202210969127.9A priority Critical patent/CN115208905A/en
Publication of CN115208905A publication Critical patent/CN115208905A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • 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/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • 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/12Discovery or management of network topologies

Abstract

The application relates to a device information synchronization method, a device, a system, an electronic device and a storage medium, wherein the device information synchronization method comprises the following steps: acquiring an information synchronization instruction; acquiring equipment information of each equipment in the target network environment based on the information synchronization instruction; updating a device topology of the target network environment based on the device information. Through the method and the device, the problem of information asynchronism between the bottom layer device and the upper layer data terminal in the prior art is solved, and the technical effect of real-time synchronization of the device information is achieved.

Description

Equipment information synchronization method, device, system, electronic device and storage medium
Technical Field
The present application relates to the field of industrial internet technologies, and in particular, to a method, an apparatus, a system, an electronic apparatus, and a storage medium for synchronizing device information.
Background
In the process of deploying the PLC and other distributed devices in the industrial internet scenario, the uniqueness of the device is usually determined by obtaining the SN code of the device, and then a preliminary device topology is formed by manually or automatically allocating the IP and the device host name. After the device topology is formed, the target device can be determined by IP or host name. These device data are stored in an upper data terminal, such as a computer, for the convenience of operation and use by the user.
However, in the actual deployment link, the operation and maintenance personnel often encounter the situations of device position migration, device loss or other abnormalities during the device maintenance in the later period, and these situations cause the device topology displayed by the upper data terminal to be unequal to the actual device deployment situation, and finally cause the field device to be unable to be on-line or the operation instruction of the data terminal to be unable to be issued.
Aiming at the problem of information asynchronism between a bottom layer device and an upper layer data terminal in the related technology, no effective solution is provided at present.
Disclosure of Invention
The embodiment provides a device information synchronization method, device, system, electronic device and storage medium, so as to solve the problem of information asynchronism between a bottom layer device and an upper layer data terminal in the related art.
In a first aspect, a device information synchronization method is provided in this embodiment, and includes: acquiring an information synchronization instruction; acquiring equipment information of each equipment in the target network environment based on the information synchronization instruction; updating a device topology of the target network environment based on the device information.
In one embodiment, the target network environment is an industrial internet, and the obtaining device information of each device in the target network environment based on the information synchronization instruction comprises: performing broadcast query in the industrial internet based on the information synchronization instruction and a preset network protocol to acquire response information fed back by industrial equipment connected to the industrial internet; determining the device information of the industrial device based on the response information.
In one embodiment, the broadcasting query in the industrial internet based on the information synchronization instruction and a preset network protocol further includes: counting the feedback waiting time of the broadcast query; and if the feedback waiting time exceeds a preset time threshold, determining the equipment information of the industrial equipment based on the response information.
In one embodiment, the updating the device topology of the target network environment based on the device information comprises: acquiring an information synchronization instruction; acquiring an instruction type based on the information synchronization instruction, wherein the instruction type comprises a query type and a naming type; and if the instruction type of the information synchronization instruction is a naming type, modifying the equipment information of the corresponding equipment in the target network environment based on the information synchronization instruction.
In one embodiment, the updating the device topology of the target network environment based on the device information further comprises: periodically acquiring the device topology of the target network environment; according to the time sequence, the device topology of the adjacent period is used as the historical device topology and the current device topology; and determining equipment change data according to the historical equipment topology and the current equipment topology.
In one embodiment, said determining device change data based on said historical device topology and said current device topology comprises: and generating and storing an audit log according to the equipment change data.
In a second aspect, in the present embodiment, there is provided a device information synchronization apparatus, including: the first acquisition module is used for acquiring an information synchronization instruction; the second acquisition module is used for acquiring the equipment information of each equipment in the target network environment based on the information synchronization instruction; a processing module to update a device topology of the target network environment based on the device information.
In a third aspect, the present embodiment provides a device information synchronization system, including: the system comprises an equipment terminal and a data processing terminal; the equipment terminal is connected with the data processing terminal; the equipment terminal is used for receiving the information synchronization instruction sent by the data processing terminal and reporting equipment information; the data processing terminal is configured to implement the device information synchronization method according to the first aspect.
In a fourth aspect, in this embodiment, there is provided an electronic apparatus, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements the device information synchronization method according to the first aspect.
In a fifth aspect, in the present embodiment, there is provided a storage medium having stored thereon a computer program which, when executed by a processor, implements the device information synchronization method described in the first aspect above.
Compared with the related art, the device information synchronization method provided by the embodiment obtains the information synchronization instruction; acquiring equipment information of each equipment in the target network environment based on the information synchronization instruction; and updating the equipment topology of the target network environment based on the equipment information, acquiring the deployment condition of actual bottom equipment in real time based on an information synchronization instruction, and establishing the equipment topology corresponding to the current bottom equipment based on the equipment information reported by the actual bottom equipment, so that the problem of information asynchronization between the bottom equipment and an upper layer data terminal in the prior art is solved, and the technical effect of real-time synchronization of the equipment information is realized.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more concise and understandable description of the application, and features, objects, and advantages of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a terminal of the device information synchronization method of the present embodiment;
fig. 2 is a flowchart of a device information synchronization method of the present embodiment;
fig. 3 is a schematic diagram of multicast query of an information synchronization method according to an embodiment of the present application;
FIG. 4 is a schematic device naming diagram of an information synchronization method according to an embodiment of the present application;
fig. 5 is a schematic diagram of device topology comparison of an information synchronization method according to an embodiment of the present application;
fig. 6 is a block diagram showing the configuration of the device information synchronization apparatus of the present embodiment;
fig. 7 is a schematic diagram of an information synchronization system according to an embodiment of the application.
Detailed Description
For a clearer understanding of the objects, aspects and advantages of the present application, reference is made to the following description and accompanying drawings.
Unless defined otherwise, technical or scientific terms used herein shall have the same general meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The use of the terms "a" and "an" and "the" and similar referents in the context of this application do not denote a limitation of quantity, either in the singular or the plural. The terms "comprises," "comprising," "has," "having," and any variations thereof, as referred to in this application, are intended to cover non-exclusive inclusions; for example, a process, method, and system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or modules, but may include other steps or modules (elements) not listed or inherent to such process, method, article, or apparatus. Reference in this application to "connected," "coupled," and the like is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. Reference to "a plurality" in this application means two or more. "and/or" describes the association relationship of the associated object, indicating that there may be three relationships, for example, "a and/or B" may indicate: a exists alone, A and B exist simultaneously, and B exists alone. In general, the character "/" indicates a relationship in which the objects associated before and after are an "or". The terms "first," "second," "third," and the like in this application are used for distinguishing between similar items and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the present embodiment may be executed in a terminal, a computer, or a similar computing device. For example, the method is executed on a terminal, and fig. 1 is a block diagram of a hardware structure of the terminal according to the device information synchronization method of the present embodiment. As shown in fig. 1, the terminal may include one or more processors 102 (only one shown in fig. 1) and a memory 104 for storing data, wherein the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA. The terminal may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those of ordinary skill in the art that the structure shown in fig. 1 is merely an illustration and is not intended to limit the structure of the terminal described above. For example, the terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as a computer program corresponding to the device information synchronization method in the present embodiment, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. The network described above includes a wireless network provided by a communication provider of the terminal. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
In this embodiment, a device information synchronization method is provided, and fig. 2 is a flowchart of the device information synchronization method of this embodiment, as shown in fig. 2, the flowchart includes the following steps:
in step S201, an information synchronization command is acquired.
Specifically, the information synchronization instruction is an instruction for acquiring device information. The information synchronization command may be generated by a user operating the data processing terminal or may be periodically generated by a computer program.
Step S202, acquiring the device information of each device in the target network environment based on the information synchronization instruction.
Specifically, the user inputs the information synchronization instruction through the upper layer data terminal, specifically, the upper layer data terminal may be a computer, the computer includes a display terminal and input and output devices of the computer, for example, the user may input the information synchronization instruction through a touch screen, and the computer queries device information of each active device in the target network environment according to the information synchronization instruction. The target network environment refers to a network to which the device is accessed, such as a local area network, an internet of things, an industrial internet and the like. After the information synchronization instruction is issued, each device acquires the device information of itself and feeds back the device information to the data terminal which sends the information synchronization instruction. The device information is a unique identifier that can represent the uniqueness of the device, such as the host name, IP address, device SN, etc. of the device. Wherein, the IP address refers to the Internet protocol address of the equipment, and the equipment SN is the product serial number. In addition, the device information may also include other device attribute information, such as device type, etc.
Step S203, updating the device topology of the target network environment based on the device information.
Specifically, based on the acquired device information, a device accessed to the target network environment may be determined, and based on the device information, a device topology in the current network environment may be generated. The device topology, also called a device topological graph, can clearly and intuitively show the device link relation in the network. The newly generated device topology is used as a topological graph representing the current actual field device deployment condition to replace the original device topology stored in the data terminal before device deployment, so that the synchronization and the update of the device information are realized, and the condition that the information of the bottom device and the upper data terminal is not synchronized is avoided. In addition, when original equipment topology data is lost, the latest field equipment deployment condition can be fed back to operation and maintenance personnel based on newly generated equipment topology, so that the equipment maintenance efficiency is improved, and the equipment maintenance difficulty is reduced.
In the prior art, the device topology is basically completed and stored in an upper layer data terminal when the device is deployed on site, and when an operation and maintenance worker needs to inquire the deployment situation or needs to adjust the deployment situation of the field device, the device topology is called out from the storage device to be manually changed. Meanwhile, because the field device and the upper data terminal do not perform data synchronization, the situation that the device deployment adjustment and the device topology adjustment are different possibly occurs, and the situation that a subsequent user operation instruction cannot be issued is caused.
In order to solve the technical problem that addresses and device names cannot correspond to each other and corresponding operations cannot hit corresponding devices in an industrial environment under the conditions of device deployment, device migration and the like, the embodiment provides a device information synchronization method for distributed devices in the industrial environment based on a NetBIOS technology and a device naming principle from the perspective of a network protocol.
In one embodiment, the target network environment is an industrial internet, and the obtaining device information of each device in the target network environment based on the information synchronization instruction includes: performing broadcast query in the industrial internet based on the information synchronization instruction and a preset network protocol to acquire response information fed back by industrial equipment connected to the industrial internet; determining the device information of the industrial device based on the response information.
Specifically, the industrial internet is a novel basic device, an application mode and an industrial ecology deeply integrated by a new generation of information communication technology and industrial economy, and a brand-new manufacturing and service system covering a whole industrial chain and a whole value chain is constructed by comprehensively connecting people, machines, objects, systems and the like, so that a realization way is provided for the industrial and even industrial digital, networked and intelligent development. In this embodiment, the devices are PLCs and other distributed devices that access the industrial internet. The PLC, whose english name is Programmable Logic Controller, is a digital arithmetic unit with microprocessor for automatic control, and can load control instructions into a memory at any time for storage and execution. The programmable controller consists of functional units such as a CPU, an instruction and data memory, an input/output interface, a power supply, a digital-analog converter and the like.
The network interconnection equipment in the distributed environment is inquired through broadcasting of a network protocol packet of a preset network protocol, and the equipment acquires information such as host names, IP and the like of the equipment from a memory of the equipment and feeds the information back to the data terminal. And the data terminal determines the equipment information accessed in the industrial Internet by analyzing the response information fed back by the industrial equipment.
In one embodiment, the predetermined network protocol is NetBIOS protocol, which is used to provide communication services for applications on different computers in the local area network. The network protocol packet is an NBNS protocol packet. NBNS, netBIOS-NS, means name service, used for name registration and resolution, operating on UDP/137 and TCP/137 ports. The process of acquiring the active users in the network segment based on the protocol comprises the following steps: and scanning and inquiring host information about the IP network segment, and inquiring all network card information on the host.
In one embodiment, a device type value may be set in the host information to facilitate acquisition of the type, the protocol being initially used with the PC to prevent the PC from also acting as a response, falsely determining the PC as the desired device.
In a conventional device information management scenario, one data terminal is generally used to manage the rest of distributed devices, so that device information deployed in a local area is dominated by a data terminal management application, and devices only perform corresponding distribution work. In the information synchronization method of the embodiment, the NBNS protocol is used to perform broadcast query on devices distributed in the same network segment of the network, so as to form a distributed topology network, and even if the upper layer application loses topology configuration, the device topology can be generated again after one device information synchronization.
In one embodiment, after the performing a broadcast query in the industrial internet based on the information synchronization instruction and a preset network protocol, the method further includes: counting the feedback waiting time of the broadcast query; and if the feedback waiting time exceeds a preset time threshold, determining the equipment information of the industrial equipment based on the response information.
Specifically, fig. 3 is a schematic multicast query diagram of an information synchronization method according to an embodiment of the present application, and as shown in fig. 3, broadcast query device information is issued based on an information synchronization instruction, and feedback waiting time starts to be counted, and within the time, response information reported by a device side is continuously received and stored, and when the feedback waiting time exceeds a preset time threshold, the received response information is analyzed to obtain device information, and a host mapping relationship corresponding to the device information is analyzed to form a topology map and a log.
In one embodiment, the updating the device topology of the target network environment based on the device information comprises: acquiring an information synchronization instruction; acquiring an instruction type based on the information synchronization instruction, wherein the instruction type comprises a query type and a naming type; and if the instruction type of the information synchronization instruction is a named type, modifying the equipment information of the corresponding equipment in the target network environment based on the information synchronization instruction.
Specifically, fig. 4 is a schematic device naming diagram of the information synchronization method according to the embodiment of the present application, and as shown in fig. 4, after a device topology is formed, a change to device information may also be implemented through an information synchronization instruction. After the information synchronization command is acquired, analyzing the command type of the information synchronization command; if the current information synchronization instruction is a setting instruction, detecting local configuration information of the equipment, modifying equipment information such as a local IP (Internet protocol) and/or a host name of the equipment, and establishing a corresponding mapping relation so as to ensure that the modified equipment information can be acquired by next data terminal query; if the current information synchronization instruction is a query instruction, detecting local configuration, acquiring the configuration from the memory, forming a network protocol packet, and sending the network protocol packet back to the data terminal according to the NetBIOS format.
Through the information synchronization method of the embodiment, when the device terminal receives the command of setting the host name/setting the address and resetting the naming information, the host information mapping can be formed again, so that when the data terminal carries out data synchronization query, the device information can be queried through the new host information, and the correctness of the data terminal device information is kept.
In one embodiment, the updating the device topology of the target network environment based on the device information further comprises: periodically acquiring the equipment topology of the target network environment; taking the device topology of the adjacent period as historical device topology and current device topology according to the time sequence; and determining equipment change data according to the historical equipment topology and the current equipment topology.
Specifically, fig. 5 is a schematic diagram of comparing device topologies according to the information synchronization method in the embodiment of the present application, as shown in fig. 5, after industrial internet environment data is synchronized, a current device topology generated in this period may be compared with a historical device topology in a previous period, so as to determine a change condition of device information in the two periods, for example, taking the historical device topology as a standard device topology, comparing the current device topology with the standard device topology, and if a device chain in the current device topology lacks a relevant device, it indicates that a device is missing; if the current device topology has devices which do not exist in the standard device topology, the situation that the devices are newly added is indicated. If the device missing situation and the device adding situation do not occur, but a mismatch exists in the device information of part of the devices in the information chain, the device migration or the device information change may occur.
In one embodiment, said determining device change data based on said historical device topology and said current device topology comprises: and generating and storing an audit log according to the equipment change data. Specifically, when the conditions of equipment loss, equipment addition, equipment migration, equipment information change and the like occur, an audit log needs to be input, so that the audit processing is convenient for workers to analyze the safety of the behaviors.
In one embodiment, the information synchronization method of the embodiment can be used in a scene in which an industrial environment deployment person and a daily maintenance person perform maintenance on a field environment and a device change analysis scene. For example: when the configuration information of the local data terminal is lost, the upper layer application cannot analyze the topological graph in the current system environment, and by adopting the information synchronization method of the embodiment, the system broadcasts and inquires equipment information according to a network protocol, and the terminal regenerates topological data according to a response message; the maintainer does not determine whether information of a certain or a part of equipment on the site is changed, a channel communicated with the equipment can be established through a protocol, information of suspicious equipment is obtained, the suspicious equipment is matched with an original record to check whether updated data exists, and an audit log is generated for recording.
Through the embodiment, the data terminal of the embodiment of the application can perform broadcast query on the devices distributed in the same network segment of the network through the NBNS protocol through the network protocol, so that a distributed topology network is formed, and in time, the upper layer application is topology configuration removal and only once interaction time is generated again. After the topology is generated, the situation of addition, deletion and migration of the distributed equipment in the whole system environment can be obtained by the upper layer application, and if the situation of abnormal upper layer configuration caused by migration is found, synchronization can be performed in a broadcast query mode, so that data synchronization between the equipment and the terminal and the safety and the correctness of system deployment are maintained.
It should be noted that the steps illustrated in the above-described flow diagrams or in the flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
In this embodiment, an apparatus information synchronization apparatus is further provided, where the apparatus is used to implement the foregoing embodiments and preferred embodiments, and details of the foregoing description are omitted. The terms "module," "unit," "subunit," and the like as used below may implement a combination of software and/or hardware for a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware or a combination of software and hardware is also possible and contemplated.
Fig. 6 is a block diagram showing the structure of the device information synchronization apparatus of the present embodiment, and as shown in fig. 6, the apparatus includes:
a first obtaining module 10, configured to obtain an information synchronization instruction;
a second obtaining module 20, configured to obtain device information of each device in the target network environment based on the information synchronization instruction;
a processing module 30, configured to update a device topology of the target network environment based on the device information.
The second obtaining module 20 is further configured to perform broadcast query in the industrial internet based on the information synchronization instruction and a preset network protocol, and obtain response information fed back by an industrial device connected to the industrial internet; determining the device information of the industrial device based on the response information.
The second obtaining module 20 is further configured to count feedback waiting time of the broadcast query; and if the feedback waiting time exceeds a preset time threshold, determining the equipment information of the industrial equipment based on the response information.
The second obtaining module 20 is further configured to obtain an information synchronization instruction; acquiring an instruction type based on the information synchronization instruction, wherein the instruction type comprises a query type and a naming type; and if the instruction type of the information synchronization instruction is a naming type, modifying the equipment information of the corresponding equipment in the target network environment based on the information synchronization instruction.
The processing module 30 is further configured to periodically obtain a device topology of the target network environment; taking the device topology of the adjacent period as historical device topology and current device topology according to the time sequence; and determining equipment change data according to the historical equipment topology and the current equipment topology.
And the processing module 30 is further configured to generate and store an audit log according to the device change data.
In the information synchronization apparatus of this embodiment, an upper layer application performs broadcast query through an industrial internet or a local area network to obtain an equipment response message, thereby forming a distributed topology. And comparing the formed broadcast topology with the original topology data of the upper layer relatively, and analyzing the increase, deletion, modification and reduction of the distributed equipment in the environment. When the distributed device receives the host name/IP modification information (2 can not be changed at the same time) sent by the upper layer, the device side needs to store the host information mapping relation, so that the broadcast query of the upper layer is not influenced.
It should be noted that the above modules may be functional modules or program modules, and may be implemented by software or hardware. For a module implemented by hardware, the modules may be located in the same processor; or the modules can be respectively positioned in different processors in any combination.
In this embodiment, an information synchronization system is further provided, where the device information synchronization system includes: an equipment terminal and a data processing terminal; the equipment terminal is connected with the data processing terminal; the equipment terminal is used for receiving the information synchronization instruction sent by the data processing terminal and reporting equipment information; the data processing terminal is configured to implement the device information synchronization method according to any of the embodiments.
In one embodiment, fig. 7 is a schematic diagram of an information synchronization system according to the embodiment of the present application, and as shown in fig. 7, the information synchronization system mainly includes two modules, including a data terminal and a distributed device terminal, where the data terminal is a data processing terminal and is used for data display and data operation issue; the distributed equipment, namely the equipment terminal, is used for receiving data and answering and internally setting information. The data terminal inquires the network interconnection equipment in the distributed environment through a network protocol packet (NBNS) broadcast, the equipment acquires the host name/IP and the like of the equipment from the memory, forms a network topology through terminal analysis and presents the network topology to maintenance personnel. When the terminal equipment receives a command of setting host names/addresses and the like for resetting naming information, host information mapping needs to be formed again, so that when the data terminal carries out data synchronous query, other equipment side information can be queried through new host information, and the correctness of the terminal equipment information is kept.
In one embodiment, the data terminal is the core of the whole industrial internet, and after the program is started, the NetBIOS protocol service port is opened by default, and the communication is performed according to an interface interacted in the environment, for example: the method comprises the steps of obtaining an equipment information report, analyzing core change of an information message, setting equipment information point to point, inquiring historical analysis data of an audit log and the like.
Correspondingly, the key process executed by the data terminal is to acquire and analyze the topology of the device information, and when a maintainer provides an acquisition demand, the data terminal firstly measures and stores the specific content of the system device information of the local actual demand at the data terminal for comparison with the actually acquired information at a later stage, for example: device SN, device hostname, device address, and device type, etc. Then, the data terminal broadcasts and inquires active host equipment to the network segment or the required network segment or according to the equipment type; and when the information content reported by the active equipment is equal to the effective time, analyzing all data reported in the period after the effective time is over, filtering the types of the unnecessary equipment, such as filtering out PC equipment, and the like, and generating a required topological graph, an effective alarm audit log and the like.
In one embodiment, the distributed device is deployed at each part of the industrial environment, except for a service program of the device, a NetBIOS protocol service port is opened by default, an interface for uploading specific contents of the device is provided, and modification of information such as an IP/host name of the device is supported. Through the activity of the equipment and the connection condition of the management network port, the terminal can acquire the online state of the equipment except heartbeat. The module has functions such as answering equipment inquiry, setting equipment information, auditing equipment logs and the like.
Correspondingly, the distributed device executes two key processes including responding to device inquiry and setting device information. Responding to the device query means that the device obtains a query command for the device from a protocol service port, specifically: firstly, the correctness of the query command is analyzed, then the equipment information such as IP or host name and the like is obtained from the equipment memory, the equipment information is put into a response packet, and finally the response packet is sent back to the data terminal within the effective time. The process of setting the device information includes: the content to be modified is analyzed from the message, the corresponding information in the local memory is modified, and the host mapping is regenerated together with other information, so that the next query response is not influenced.
There is also provided in this embodiment an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring an information synchronization instruction.
And S2, acquiring the equipment information of each equipment in the target network environment based on the information synchronization instruction.
And S3, updating the equipment topology of the target network environment based on the equipment information.
It should be noted that, for specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiment and optional implementation manners, and details are not described in this embodiment again.
In addition, in combination with the device information synchronization method provided in the foregoing embodiment, a storage medium may also be provided to implement this embodiment. The storage medium has a computer program stored thereon; the computer program, when executed by a processor, implements any of the device information synchronization methods in the above embodiments.
It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to be limiting. All other embodiments, which can be derived by a person skilled in the art from the examples provided herein without any inventive step, shall fall within the scope of protection of the present application.
It is obvious that the drawings are only examples or embodiments of the present application, and it is obvious to those skilled in the art that the present application can be applied to other similar cases according to the drawings without creative efforts. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
The term "embodiment" is used herein to mean that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is to be expressly or implicitly understood by one of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the patent protection. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (10)

1. A method for synchronizing device information, comprising:
acquiring an information synchronization instruction;
acquiring equipment information of each equipment in the target network environment based on the information synchronization instruction;
updating a device topology of the target network environment based on the device information.
2. The method according to claim 1, wherein the target network environment is an industrial internet, and the obtaining the device information of each device in the target network environment based on the information synchronization instruction comprises:
performing broadcast query in the industrial internet based on the information synchronization instruction and a preset network protocol to acquire response information fed back by industrial equipment connected to the industrial internet;
determining the device information of the industrial device based on the response information.
3. The device information synchronization method according to claim 2, wherein the step of performing broadcast query in the industrial internet based on the information synchronization instruction and a preset network protocol further comprises:
counting the feedback waiting time of the broadcast query;
and if the feedback waiting time exceeds a preset time threshold, determining the equipment information of the industrial equipment based on the response information.
4. The device information synchronization method according to claim 1, wherein the updating the device topology of the target network environment based on the device information comprises:
acquiring an information synchronization instruction;
acquiring an instruction type based on the information synchronization instruction, wherein the instruction type comprises a query type and a naming type;
and if the instruction type of the information synchronization instruction is a named type, modifying the equipment information of the corresponding equipment in the target network environment based on the information synchronization instruction.
5. The device information synchronization method of claim 1, wherein the updating the device topology of the target network environment based on the device information further comprises:
periodically acquiring the device topology of the target network environment;
according to the time sequence, the device topology of the adjacent period is used as the historical device topology and the current device topology;
and determining equipment change data according to the historical equipment topology and the current equipment topology.
6. The device information synchronization method of claim 5, wherein determining device change data based on the historical device topology and the current device topology comprises:
and generating and storing an audit log according to the equipment change data.
7. An apparatus information synchronization device, comprising:
the first acquisition module is used for acquiring the information synchronization instruction;
the second acquisition module is used for acquiring the equipment information of each equipment in the target network environment based on the information synchronization instruction;
a processing module for updating the device topology of the target network environment based on the device information.
8. An apparatus information synchronization system, comprising: the system comprises an equipment terminal and a data processing terminal; the equipment terminal is connected with the data processing terminal;
the equipment terminal is used for receiving the information synchronization instruction sent by the data processing terminal and reporting equipment information;
the data processing terminal is configured to execute the device information synchronization method according to any one of claims 1 to 6.
9. An electronic apparatus comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to perform the device information synchronization method according to any one of claims 1 to 6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the device information synchronization method according to any one of claims 1 to 6.
CN202210969127.9A 2022-08-12 2022-08-12 Device information synchronization method, device, system, electronic device and storage medium Withdrawn CN115208905A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210969127.9A CN115208905A (en) 2022-08-12 2022-08-12 Device information synchronization method, device, system, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210969127.9A CN115208905A (en) 2022-08-12 2022-08-12 Device information synchronization method, device, system, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN115208905A true CN115208905A (en) 2022-10-18

Family

ID=83586605

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210969127.9A Withdrawn CN115208905A (en) 2022-08-12 2022-08-12 Device information synchronization method, device, system, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN115208905A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117155978A (en) * 2023-10-31 2023-12-01 山东弘毅节能服务有限公司 Intelligent campus management system based on artificial intelligence

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102594689A (en) * 2012-02-22 2012-07-18 中兴通讯股份有限公司 Distributed network control method and device
EP3214795A1 (en) * 2014-10-28 2017-09-06 ZTE Corporation Cross-domain clock synchronization method, apparatus and system, and computer storage medium
CN111130883A (en) * 2019-12-25 2020-05-08 杭州安恒信息技术股份有限公司 Method and device for determining topological graph of industrial control equipment and electronic equipment
CN111314023A (en) * 2020-02-18 2020-06-19 中国电子科技集团公司第五十四研究所 Synchronization method of tree network topology information
CN114073048A (en) * 2019-06-20 2022-02-18 克洛姆公司 Computing device and method for synchronizing networking information with a topology server
WO2022116920A1 (en) * 2020-12-02 2022-06-09 中兴通讯股份有限公司 Topology management method and device thereof, network element management node and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102594689A (en) * 2012-02-22 2012-07-18 中兴通讯股份有限公司 Distributed network control method and device
EP3214795A1 (en) * 2014-10-28 2017-09-06 ZTE Corporation Cross-domain clock synchronization method, apparatus and system, and computer storage medium
CN114073048A (en) * 2019-06-20 2022-02-18 克洛姆公司 Computing device and method for synchronizing networking information with a topology server
CN111130883A (en) * 2019-12-25 2020-05-08 杭州安恒信息技术股份有限公司 Method and device for determining topological graph of industrial control equipment and electronic equipment
CN111314023A (en) * 2020-02-18 2020-06-19 中国电子科技集团公司第五十四研究所 Synchronization method of tree network topology information
WO2022116920A1 (en) * 2020-12-02 2022-06-09 中兴通讯股份有限公司 Topology management method and device thereof, network element management node and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117155978A (en) * 2023-10-31 2023-12-01 山东弘毅节能服务有限公司 Intelligent campus management system based on artificial intelligence
CN117155978B (en) * 2023-10-31 2024-01-26 山东弘毅节能服务有限公司 Intelligent campus management system based on artificial intelligence

Similar Documents

Publication Publication Date Title
CN107332876B (en) Method and device for synchronizing block chain state
CN101502144A (en) Element management system in wireless communication network
CN109960634B (en) Application program monitoring method, device and system
CN103974140B (en) Management method and management system of TR069 protocol based large-scale interactive TV terminal
CN107623752B (en) Network management method and device based on link layer
CN111711698A (en) Intelligent equipment network access method and device and intelligent equipment control system and method
CN115208905A (en) Device information synchronization method, device, system, electronic device and storage medium
CN113242317B (en) Addressing route synchronization method and related device for alliance chain supervision system
CN111901395B (en) Multi-cluster switching method and device
CN113765690A (en) Cluster switching method, system, device, terminal, server and storage medium
CN109831339B (en) System log management method and log server
CN115004650A (en) Node configuration method, device, distributed system and computer readable medium
CN112437146B (en) Equipment state synchronization method, device and system
CN113422696B (en) Monitoring data updating method, system, equipment and readable storage medium
CN114116906A (en) Data synchronization method, device, electronic device and storage medium
CN114760318A (en) Edge calculation management method and system
CN114221882A (en) Method, device, equipment and storage medium for detecting fault link
CN109257238B (en) Network equipment management system
CN113542424A (en) Data processing method, device, equipment and computer program product
CN112702427A (en) Industrial internet data synchronization system
CN112787868A (en) Information synchronization method and device
CN112036585A (en) Reminding information sending method and system, storage medium and electronic device
CN107124293B (en) Protocol management method and system of distributed network system
JP4863126B2 (en) Server monitoring system and server monitoring method
CN111200508B (en) Message sending method and gateway

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20221018

WW01 Invention patent application withdrawn after publication