CN109981404B - Ad hoc network structure and diagnosis method thereof - Google Patents

Ad hoc network structure and diagnosis method thereof Download PDF

Info

Publication number
CN109981404B
CN109981404B CN201910205931.8A CN201910205931A CN109981404B CN 109981404 B CN109981404 B CN 109981404B CN 201910205931 A CN201910205931 A CN 201910205931A CN 109981404 B CN109981404 B CN 109981404B
Authority
CN
China
Prior art keywords
slave
module
scanning frame
control module
frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910205931.8A
Other languages
Chinese (zh)
Other versions
CN109981404A (en
Inventor
童庆
袁延波
王天林
张莹
张翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZHEJIANG SUPCON RESEARCH CO LTD
Original Assignee
ZHEJIANG SUPCON RESEARCH 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 ZHEJIANG SUPCON RESEARCH CO LTD filed Critical ZHEJIANG SUPCON RESEARCH CO LTD
Priority to CN201910205931.8A priority Critical patent/CN109981404B/en
Publication of CN109981404A publication Critical patent/CN109981404A/en
Application granted granted Critical
Publication of CN109981404B publication Critical patent/CN109981404B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • 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/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • 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/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • H04L41/0809Plug-and-play configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides an ad hoc network structure and a diagnosis method thereof, comprising the following steps: when the ring network state of the ad hoc network structure is normal, the master control module sends a scanning frame to an adjacent slave module from a communication interface at one side; the slave module generates a self equipment identification number according to the scanning frame after receiving and identifying the scanning frame; the slave module inserts the self equipment identification number into the scanning frame to obtain an updated scanning frame; the slave module sends the updated scanning frame to the next adjacent slave module or the master control module, and records the updated scanning frame fed back by the last slave module as a target scanning frame; the target scanning frame comprises the equipment identification numbers of all the slave modules; the master control module completes configuration of all the slave modules. The method of the invention does not need the engineering personnel to carry out equipment identification number configuration on the equipment one by one, and can automatically identify the network position of each equipment in the networking and the fault point when the link or the equipment is in fault.

Description

Ad hoc network structure and diagnosis method thereof
Technical Field
The invention relates to the technical field of industrial control networks, in particular to an ad hoc network structure and a diagnosis method thereof.
Background
Industrial networks, especially ships and warships and other special application occasions have higher requirements on availability and reliability of communication, and under some application occasions with long distance and multiple nodes, the ring-shaped network topology structure has the advantages that other network topology structures do not have in layering networking, line resource saving (such as optical fibers, cable and the like) or communication reliability guarantee.
Before an industrial ring network system is formed into a system, each module in the system often needs to be configured, such as a factory ID of equipment, a physical MAC address, and the like. When the system scale is large, not only the workload is huge and tedious, but also the problems of repetition, disorder and the like are easily caused by various human factors by configuring each module one by one.
Most of the existing ad hoc network modes are based on wireless communication, and ad hoc network protocols and methods are realized at the upper layer of the network. Application No. 201710963166.7, entitled: a multi-node automatic networking method based on a CAN bus discloses an arbitration mechanism utilizing the CAN bus, CAN IDs are produced among CAN nodes in modes of monitoring, random sending, competition and the like, and during the period, a certain CAN finally determines the CAN ID of the CAN and CAN be determined only through multiple conflict competitions. When the node scale is large, the conflict is more obvious and the efficiency is low, and the method is only suitable for the network with a bus type or star type structure and is not suitable for a ring network structure.
Disclosure of Invention
In view of the defects in the prior art, the present invention aims to provide an ad hoc network structure and a diagnosis method thereof.
In a first aspect, an embodiment of the present invention provides a method for diagnosing an ad hoc network structure, including:
judging whether the ring network state of the ad hoc network structure is normal or not, and if the ring network state of the ad hoc network structure is normal, sending a scanning frame to an adjacent slave module from a communication interface at one side by a master control module; wherein the scanning frame comprises the equipment identification number of the main control module;
after receiving and identifying the scanning frame, the slave module generates a self equipment identification number according to the scanning frame;
the slave module inserts the self equipment identification number into the scanning frame to obtain an updated scanning frame;
the slave module sends the updated scanning frame to the next adjacent slave module or the master control module, wherein the updated scanning frame fed back by the last slave module is marked as a target scanning frame; the target scanning frame comprises the equipment identification numbers of all the slave modules;
and the master control module completes configuration of all the slave modules.
Optionally, the determining whether the ring network state of the ad hoc network structure is normal includes:
when the master control module sends a judgment frame to an adjacent slave module from a communication interface at one side; if the main control module does not receive the fed back judgment frame at the communication interface at the other side within the preset time, determining that the ring network state of the ad hoc network structure is abnormal; and if the main control module receives the fed back judgment frame at the communication interface on the other side within the preset time, determining that the ring network state of the ad hoc network structure is normal.
Optionally, if the ring network state of the ad hoc network structure is abnormal, the master control module sends a self-checking notification frame to the adjacent slave modules from the communication interfaces on both sides;
the main control module sends a self-checking notification frame as an initial time point, and waits for a preset time length; the master control module and the slave module simultaneously send out a line self-checking frame through communication interfaces on two sides of the master control module and the slave module;
marking the communication interface state of the slave module according to the receiving condition of the line self-checking frame; if the communication interface of the slave module receives a line self-check frame sent by an adjacent slave module or a master module, the corresponding communication interface is normal; otherwise, the communication interface is abnormal.
Optionally, after the marking the communication interface status of the slave module according to the receiving condition of the line self-test frame, the method further includes:
the master control module sends scanning frames to adjacent slave modules from the communication interfaces on the two sides;
after receiving and identifying the scanning frame, a communication interface at one side of the slave module generates a self equipment identification number according to the scanning frame;
the slave module inserts the self equipment identification number into the scanning frame to obtain an updated scanning frame;
judging whether the communication interface on the other side of the driven module is normal or not;
if the communication interface on the other side of the slave module is normal, sending the updated scanning frame to the next adjacent slave module or the master control module, wherein the updated scanning frame fed back by the last slave module is marked as a target scanning frame; the target scanning frame comprises the equipment identification numbers of all the slave modules; and the master control module completes configuration of all the slave modules.
And if the communication interface on the other side of the slave module is abnormal, the slave module returns the updated scanning frame to the master control module in the original path.
Optionally, the device identification number comprises: ID number, MAC address of the device; the identification numbers are used to characterize different slave modules. Wherein the position of the slave module in the network is known by scanning the field in the data in the frame where the identification number is located.
Optionally, the communication interface includes: any form of Ethernet interface, CAN interface and RS485 interface.
Optionally, the method further comprises:
disconnecting the ad hoc network structure, and adding a new slave module in the ad hoc network structure or deleting the slave module to obtain an updated ad hoc network structure;
the master control module automatically detects the addition and deletion of the slave modules and identifies the positions, in the network, of the newly added or deleted slave modules; and in the process of generating the equipment identification number, reporting the equipment identification number and configuring the configuration by the newly added slave module, other slave modules in the network keep normal communication.
In a second aspect, an embodiment of the present invention provides an ad hoc network structure, which applies the diagnosis method of the ad hoc network structure according to any one of the first aspect; the ad hoc network structure comprises:
the master control module and the slave module are sequentially connected through a communication interface to form an annular network structure; the master control module and the slave module are both provided with two communication interfaces; wherein the content of the first and second substances,
the master control module is used for sending a scanning frame to the slave module and receiving an equipment identification number fed back by the slave module according to the scanning frame; and after the equipment identification numbers of all the slave modules are acquired, automatically completing configuration of the slave modules.
Compared with the prior art, the invention has the following beneficial effects:
the ad hoc network structure and the diagnosis method thereof provided by the invention can automatically identify the network position of each device in the network and the fault point when the link or the device has fault without the configuration of device identification numbers by engineering personnel. And can support plug and play of the device. In addition, when a line fails, the system can be started and operated with the failure.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments with reference to the following drawings:
fig. 1 is a schematic topology diagram of an ad hoc network structure provided in an embodiment of the present invention;
fig. 2 is a flowchart of a method for diagnosing an ad hoc network structure according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a scan frame format based on the ethernet protocol according to an embodiment of the present invention.
Detailed Description
The present invention will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the invention, but are not intended to limit the invention in any way. It should be noted that it would be obvious to those skilled in the art that various changes and modifications can be made without departing from the spirit of the invention. All falling within the scope of the present invention.
Fig. 1 is a schematic topology diagram of an ad hoc network structure provided in an embodiment of the present invention, and as shown in fig. 1, the ad hoc network structure in this embodiment includes a master control module and n slave modules, where n is a natural number greater than or equal to 1. The master control module and the slave module are sequentially connected through a communication interface to form an annular network structure; the master control module and the slave module are both provided with two communication interfaces; the master control module is used for sending a scanning frame to the slave module and receiving an equipment identification number fed back by the slave module according to the scanning frame; and after the equipment identification numbers of all the slave modules are acquired, automatically completing configuration of the slave modules.
Fig. 2 is a flowchart of a method for diagnosing an ad hoc network structure according to an embodiment of the present invention. Referring to fig. 2, in the present embodiment, functions of automatic allocation of ethernet physical MAC addresses, acquisition of network structures, and network diagnosis are described in detail based on ethernet interfaces and ring ethernet communication, and it is assumed that the network scale in the embodiment is not more than 256 devices. Fig. 3 is a schematic diagram of a scan frame format based on the ethernet protocol according to an embodiment of the present invention.
In this embodiment, the main control module manages the entire network and the configuration information. The user can write configuration into the main control module through the device description file, namely the XDD file. The main control module can obtain the communication information of all devices, such as the device type and the data that each device needs to receive and transmit, through the XDD file. Meanwhile, the user only needs to distribute and write MAC addresses and the like to the main control module. The ad hoc network process comprises the following steps:
step 1: under the condition that the ring network is normal, after the ring network is powered on, the main control module sends a scanning frame from a port (port A) at one side. The scan frame includes a header, a data and a trailer, and specifically, referring to fig. 3, is a scan frame format based on the ethernet protocol. The first 6 bytes (named data segment 1, the 7 th to 12 th bytes are data segment 2, and so on) of the initial position of the data segment are inserted into the MAC address of the main control module, the data segment 2 is inserted into the slave module to automatically generate the reference value of the MAC address (the upper 4 bytes and the 6 th byte are MAC [47:16] and MAC [7:0] of the main control module), the 5 th byte is used for marking whether the main control module sends out a scanning message from the port A or the port B, wherein the scanning message is represented by 0 or 1, 0 represents the port A, 1 represents the port B, and the rest data segments are 0.
Step 2: when the first slave module next to the port A of the master controller receives a data frame, the slave module judges the frame type, and when the frame type is a scanning frame, the data part of the slave scanning frame sequentially reads the MAC addresses by taking a data segment, namely 6 bytes, as a unit until the data segment is at the position of 0. The slave module performs self-adding 1 according to the value of the data segment 1 read finally to generate the MAC address of the slave module, and forwards the scanning frame to the next slave module after the slave module is placed in the position of the data segment 3 in the scanning frame data.
And step 3: and the slave module in the ring network sequentially judges the scanning message, inserts the MAC self-adding and forwards.
And 4, step 4: the master control module returns a scanning frame from the port B, and reads the MAC addresses of all slave modules in the network from the data of the scanning frame. Meanwhile, according to the data segment where the MAC value in the scanning frame is located, the main control module can clearly know which position each module is located in the ring network.
And 5: when the ring network link is disconnected abnormally, after the main control module sends the scanning frame from the port A, the port B can not return the scanning frame. The main control module starts to time after sending the scanning frame from the A port, and when the time reaches TtimeoutIf the scanning frame is not received from the port B, the waiting overtime is judged, and the line self-check is started. Time-out time TtimeoutCan be prepared fromtimeoutThe number of the devices in the ring network is more than or equal to 10us, wherein 10us is the time required for forwarding a 100Byte scanning frame.
Step 6: the master control module simultaneously sends a line self-test notification frame from port A, B. The master module starts timing from the start of sending the frame and waits for a time period T2 to ensure that the line self-test notification frame has polled all slave modules in the network. The slave module waits for a time period T2 after receiving the frame.
And 7: after waiting for T2 time, the master module and the slave module start to simultaneously send a line self-check frame to port A, B, and an adjacent module will receive the line self-check frame from a port on one side, and after receiving the frame, mark that the current port is in a normal communication state. When all modules receive and transmit the line self-checking frame, all the modules complete the port state marking. And the ports corresponding to the two modules on the two sides of the abnormal disconnection of the link are marked as the port abnormality.
And 8: after finishing the port marking, the master control module sends scanning frames from port A, B at the same time, and the slave module receives the scanning frames, and sequentially generates and inserts the MAC addresses into the scanning frames. If the slave module receives the scanning frame from the port A and the port B is in a normal communication state, the slave module forwards the updated scanning frame from the port B to the next slave module; and returning the scanning frame from the A to the last slave module if the B port of the slave module is in an abnormal state. And if the last slave module processes the scanning frame, the secondary processing is not carried out, the scanning frame is judged to be directly forwarded to the other port, and the scanning frame is finally returned to the master control module after being forwarded by the first level.
And step 9: the master control module receives a returned scanning frame from port A, B, and the two scanning frames respectively include the MAC addresses of all slave modules between port a of the master control module and the link disconnection point and the MAC addresses of all slave modules between port B of the master control module and the link disconnection point. By analyzing the two scanning frames, the main control module can acquire the MAC addresses of all the devices and learn the position of each module in the network and the position of the link disconnection.
Step 10: and the main control module performs point-to-point sending of configuration data according to the MAC address of each module. The master control module sends configuration data from the A, B port at the same time, under normal condition of the ring network, the slave module will receive the configuration frame of the master control module from the A, B port in sequence, the slave module needs to process the repeated frame, and performs parameter configuration according to the configuration frame.
Step 11: after the system enters normal communication, if the ring network is normal, the main control module periodically sends scanning frames from one side; if the ring network is disconnected, the main control module periodically scans frames from two sides. When a new module is added, the new module responds to the scanning frame and generates the MAC value of the new module according to the MAC value in the scanning frame. And the main control module receives the returned scanning frame, then learns that new equipment is added according to the data value and performs configuration on the new equipment.
It should be noted that, under the condition that the system is in normal communication and the ring network is normal, if a new module needs to be inserted, three steps of disconnecting the ring network, accessing the new module and recovering the ring network are required. When the ring network is disconnected, the master control module and the slave module can still continue to communicate, but only one piece of data can be received in the communication process, and at the moment, the master control module and the slave module can know that the ring network is disconnected. The modules at the two sides of the link disconnection report the network disconnection and disconnection ports to the main control module in the next communication. The main control module can judge the network position of the new access module according to the ring network disconnection information, the new module joining information, the ring network recovery information and the port disconnection information reported by the slave module.
In addition, under the condition that the system is in normal communication and the ring network is disconnected, the access of the new module can only be connected with the tail ends of the links at the two sides. The main control module can easily judge which side of the link the new access module is positioned at according to the port receiving the data of the new access module.
The method in the invention supports the self-configuration and communication of the network communication based on the ring topology structure. Under the condition that the ring network is normal, after the ring network is powered on, the main control module sends a scanning frame from a port (port A) at one side. The scanning frame comprises a frame head, data and a frame tail, the equipment identification number of the master control module is inserted into the data section 1, the reference value of the equipment identification number is automatically generated by inserting the data section 2 into the slave module, and the rest data sections are 0. When the first slave module next to the port A of the main controller receives a data frame, the slave module judges the frame type, and when the frame type is a scanning frame, the data part of the slave scanning frame reads the device identification number in sequence by taking a data segment, namely 6 bytes, as a unit until the data segment is at the position of 0. The slave module performs self-adding 1 according to the value of the data segment 1 read finally to generate the own equipment identification number, and the equipment identification number is placed in the position of the data segment 3 in the scanning frame data, and then the scanning frame is forwarded to the next slave module. And the slave module in the ring network sequentially judges the scanning message, inserts the equipment identification number in the scanning message and forwards the scanning message.
The main control module starts timing after sending the scanning frame from the port A, and starts line self-check when the ring network link is disconnected abnormally and the scanning frame is not received from the port B after timeout. The master control module simultaneously sends a line self-test notification frame from port A, B. After receiving the self-checking notification frame and waiting for T2 time, the master module and the slave module start to simultaneously send a line self-checking frame to port A, B, and an adjacent module will receive the line self-checking frame from a port on one side, and after receiving the frame, mark that the current port is in a normal communication state. When all modules receive and transmit the line self-checking frame, all the modules complete the port state marking. And the ports corresponding to the two modules on the two sides of the abnormal disconnection of the link are marked as the port abnormality. After finishing the port marking, the master module simultaneously sends scanning frames from port A, B, and the slave module receives the scanning frames, and sequentially generates and inserts the device identification numbers into the scanning frames. If the slave module receives the scanning frame from the port A and the port B is in a normal communication state, the slave module forwards the updated scanning frame from the port B to the next slave module; and returning the scanning frame from the A to the last slave module if the B port of the slave module is in an abnormal state. And if the last slave module processes the scanning frame, the secondary processing is not carried out, the scanning frame is judged to be directly forwarded to the other port, and the scanning frame is finally returned to the master control module after being forwarded by the first level. The main control module receives a returned scanning frame from port A, B, and by analyzing the two scanning frames, the main control module can obtain the device identification numbers of all devices and learn the position of each module in the network and the position of link disconnection.
After the system enters normal communication, if the ring network is normal, the main control module periodically sends scanning frames from one side; if the ring network is disconnected, the main control module periodically scans frames from two sides. When a new module is added, the new module responds to the scanning frame and generates a self equipment identification number according to the equipment identification number in the scanning frame. And the main control module receives the returned scanning frame, then learns that new equipment is added according to the data value and performs configuration on the new equipment.
Under the condition that the system is in normal communication and the ring network is normal, if a new module needs to be inserted, three steps of disconnecting the ring network, accessing the new module and recovering the ring network are required. When the ring network is disconnected, the master control module and the slave module can still continue to communicate, but only one piece of data can be received in the communication process, and at the moment, the master control module and the slave module can know that the ring network is disconnected. The modules at the two sides of the link disconnection report the network disconnection and disconnection ports to the main control module in the next communication. The main control module can judge the network position of the new access module according to the ring network disconnection information, the new module joining information, the ring network recovery information and the port disconnection information reported by the slave module.
Under the condition that the system is in normal communication and the ring network is disconnected, the access of the new module is only connected with the tail ends of the links at the two sides. The main control module can easily judge which side of the link the new access module is positioned at according to the port receiving the data of the new access module.
It should be noted that the method in the present invention supports both self-configuration and communication of network communication based on linear topology.
It should be noted that the communication port in the method of the present invention may be any interface capable of receiving and transmitting data frames, such as an ethernet interface, a CAN interface, an RS485 interface, and the like.
It should be noted that, the method in the present invention does not require the user to configure information such as ID numbers, MAC addresses, etc. one by one for the communication modules in the control system, and the user only needs to configure the master control module or the configuration module.
It should be noted that, in the method of the present invention, the slave module can automatically generate device identification numbers such as ID numbers and MAC addresses that do not duplicate each other by means of scanning frames. The main control module or the configuration module can acquire the positions of all the modules in the network according to the device identification numbers and the sequence corresponding to the data segments in the scanning frame.
It should be noted that, when the ring network is abnormally disconnected, the method of the present invention can still be self-started and self-configured.
The foregoing description of specific embodiments of the present invention has been presented. It is to be understood that the present invention is not limited to the specific embodiments described above, and that various changes or modifications may be made by one skilled in the art within the scope of the appended claims without departing from the spirit of the invention. The embodiments and features of the embodiments of the present application may be combined with each other arbitrarily without conflict.

Claims (7)

1. A method for diagnosing an ad hoc network structure, comprising:
judging whether the ring network state of the ad hoc network structure is normal or not, and if the ring network state of the ad hoc network structure is normal, sending a scanning frame to an adjacent slave module from a communication interface at one side by a master control module; wherein the scanning frame comprises the equipment identification number of the main control module;
after receiving and identifying the scanning frame, the slave module generates a self equipment identification number according to the scanning frame;
the slave module inserts the self equipment identification number into the scanning frame to obtain an updated scanning frame;
the slave module sends the updated scanning frame to the next adjacent slave module or the master control module, wherein the updated scanning frame fed back by the last slave module is marked as a target scanning frame; the target scanning frame comprises the equipment identification numbers of all the slave modules;
the master control module completes configuration of all the slave modules;
disconnecting the ad hoc network structure, and adding a new slave module in the ad hoc network structure or deleting the slave module to obtain an updated ad hoc network structure;
the master control module automatically detects the addition and deletion of the slave modules and identifies the positions, in the network, of the newly added or deleted slave modules; and in the process of generating the equipment identification number, reporting the equipment identification number and configuring the configuration by the newly added slave module, other slave modules in the network keep normal communication.
2. The method for diagnosing an ad hoc network structure according to claim 1, wherein the determining whether a ring network status of the ad hoc network structure is normal comprises:
when the master control module sends a judgment frame to an adjacent slave module from a communication interface at one side; if the main control module does not receive the fed back judgment frame at the communication interface at the other side within the preset time, determining that the ring network state of the ad hoc network structure is abnormal; and if the main control module receives the fed back judgment frame at the communication interface on the other side within the preset time, determining that the ring network state of the ad hoc network structure is normal.
3. The method according to claim 2, wherein if the ring network status of the ad hoc network structure is abnormal, the master module sends a self-check notification frame from the communication interfaces on both sides to the adjacent slave module;
the main control module sends a self-checking notification frame as an initial time point, and waits for a preset time length; the master control module and the slave module simultaneously send out a line self-checking frame through communication interfaces on two sides of the master control module and the slave module;
marking the communication interface state of the slave module according to the receiving condition of the line self-checking frame; if the communication interface of the slave module receives a line self-check frame sent by an adjacent slave module or a master module, the corresponding communication interface is normal; otherwise, the communication interface is abnormal.
4. The method for diagnosing an ad hoc network structure according to claim 3, further comprising, after marking a communication interface status of the slave module according to a reception condition of the line self-test frame:
the master control module sends scanning frames to adjacent slave modules from the communication interfaces on the two sides;
after receiving and identifying the scanning frame, a communication interface at one side of the slave module generates a self equipment identification number according to the scanning frame;
the slave module inserts the self equipment identification number into the scanning frame to obtain an updated scanning frame;
judging whether the communication interface on the other side of the driven module is normal or not;
if the communication interface on the other side of the slave module is normal, sending the updated scanning frame to the next adjacent slave module or the master control module, wherein the updated scanning frame fed back by the last slave module is marked as a target scanning frame; the target scanning frame comprises the equipment identification numbers of all the slave modules; the master control module completes configuration of all the slave modules;
and if the communication interface on the other side of the slave module is abnormal, the slave module returns the updated scanning frame to the master control module in the original path.
5. The method of diagnosing an ad hoc network structure according to claim 1, wherein the device identification number comprises: ID number, MAC address of the device; the device identification numbers are used to characterize different slave modules.
6. The method of diagnosing an ad-hoc network structure according to claim 1, wherein said communication interface comprises: any form of Ethernet interface, CAN interface and RS485 interface.
7. An ad-hoc network structure, characterized in that a diagnostic method of the ad-hoc network structure according to any one of claims 1 to 6 is applied; the ad hoc network structure comprises:
the master control module and the slave module are sequentially connected through a communication interface to form an annular network structure; the master control module and the slave module are both provided with two communication interfaces; wherein the content of the first and second substances,
the master control module is used for sending a scanning frame to the slave module and receiving an equipment identification number fed back by the slave module according to the scanning frame; and after the equipment identification numbers of all the slave modules are acquired, automatically completing configuration of the slave modules.
CN201910205931.8A 2019-03-18 2019-03-18 Ad hoc network structure and diagnosis method thereof Active CN109981404B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910205931.8A CN109981404B (en) 2019-03-18 2019-03-18 Ad hoc network structure and diagnosis method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910205931.8A CN109981404B (en) 2019-03-18 2019-03-18 Ad hoc network structure and diagnosis method thereof

Publications (2)

Publication Number Publication Date
CN109981404A CN109981404A (en) 2019-07-05
CN109981404B true CN109981404B (en) 2020-10-30

Family

ID=67079288

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910205931.8A Active CN109981404B (en) 2019-03-18 2019-03-18 Ad hoc network structure and diagnosis method thereof

Country Status (1)

Country Link
CN (1) CN109981404B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110519162B (en) * 2019-09-27 2021-08-03 北京中油瑞飞信息技术有限责任公司 Industrial internet gateway and configuration method thereof
CN111817940B (en) * 2020-09-11 2021-01-05 之江实验室 Industrial control ring network system and implementation method thereof
CN115514593B (en) * 2022-11-17 2023-05-02 之江实验室 Method for rapidly acquiring link node data by industrial control ring network link interruption

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227368A (en) * 2007-01-15 2008-07-23 中兴通讯股份有限公司 Method for networking of distributed looped network
CN102035688A (en) * 2011-01-18 2011-04-27 北京四方继保自动化股份有限公司 Design method for rapidly controlling network link access
CN102045228A (en) * 2009-10-22 2011-05-04 中兴通讯股份有限公司 Discovery method and system of loop network protection information
CN106254280A (en) * 2016-08-10 2016-12-21 许继集团有限公司 A kind of switch

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9722882B2 (en) * 2012-12-13 2017-08-01 Level 3 Communications, Llc Devices and methods supporting content delivery with adaptation services with provisioning

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227368A (en) * 2007-01-15 2008-07-23 中兴通讯股份有限公司 Method for networking of distributed looped network
CN102045228A (en) * 2009-10-22 2011-05-04 中兴通讯股份有限公司 Discovery method and system of loop network protection information
CN102035688A (en) * 2011-01-18 2011-04-27 北京四方继保自动化股份有限公司 Design method for rapidly controlling network link access
CN106254280A (en) * 2016-08-10 2016-12-21 许继集团有限公司 A kind of switch

Also Published As

Publication number Publication date
CN109981404A (en) 2019-07-05

Similar Documents

Publication Publication Date Title
CN109981404B (en) Ad hoc network structure and diagnosis method thereof
CN103248725B (en) A kind of safe and reliable domain name mapping restorative procedure and system
US20130148496A1 (en) Communication management apparatus, communication node, and data communication method
CN102347879A (en) D-BUS high-speed bus technology based on ring type Ethernet and auxiliary network
CN112425124B (en) Topology discovery in automotive Ethernet networks
CN106452921B (en) Stacking system splitting detection method and device
EP0435037A2 (en) Master slave industrial token passing network
CN114866365B (en) Arbitration machine election method, device, intelligent equipment and computer readable storage medium
CN109067633B (en) Power management system and method based on Ethernet daisy chain communication network topology
JPH09181737A (en) Communication method for small scale network
CN101478775B (en) Detection method, system and equipment for multi-neighbor connection state
CN114157350B (en) Optical fiber misconnection detection method and system
CN110677316A (en) Distributed storage server network card detection method and system
JP7236750B2 (en) Method for monitoring equipment
CN115567400A (en) Whole cabinet management method, device, equipment and medium
CN109586978B (en) Bus topology network ad hoc network method
CN110233713B (en) Multi-link communication method and system based on LLDP message
CN113194119A (en) Configuration file acquisition method and device
JP3761129B2 (en) Transmission control method and transmission control system for data link system of programmable controller
CN105959351A (en) Data transmission method, data transmission device, and communication management device
CN107302481B (en) 1553B bus network and reliable cross-network state switching method of serial bus network
CN106878447B (en) Data acquisition system based on ZigBee communication
CN111416750A (en) Fault monitoring system and monitoring method of single-network-line Ethernet ring network
CN111478838B (en) High-efficiency high-bandwidth communication method and system
CN213403038U (en) Data transfer unit DTU device

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