CN106209552B - Plug and play network-building method, apparatus and system - Google Patents
Plug and play network-building method, apparatus and system Download PDFInfo
- Publication number
- CN106209552B CN106209552B CN201610559831.1A CN201610559831A CN106209552B CN 106209552 B CN106209552 B CN 106209552B CN 201610559831 A CN201610559831 A CN 201610559831A CN 106209552 B CN106209552 B CN 106209552B
- Authority
- CN
- China
- Prior art keywords
- mac address
- network transmission
- node network
- bridge mac
- test message
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 57
- 230000005540 biological transmission Effects 0.000 claims abstract description 436
- 238000012360 testing method Methods 0.000 claims abstract description 277
- 239000000284 extract Substances 0.000 claims abstract description 4
- 238000012544 monitoring process Methods 0.000 claims description 88
- 230000006855 networking Effects 0.000 claims description 84
- 239000003999 initiator Substances 0.000 claims description 45
- 230000000903 blocking effect Effects 0.000 claims description 19
- 230000000977 initiatory effect Effects 0.000 claims description 12
- 125000004122 cyclic group Chemical group 0.000 claims description 8
- 230000004048 modification Effects 0.000 claims description 6
- 238000012986 modification Methods 0.000 claims description 6
- 238000000605 extraction Methods 0.000 claims description 5
- 230000006870 function Effects 0.000 claims description 4
- 238000002360 preparation method Methods 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 15
- 238000004891 communication Methods 0.000 description 14
- 230000008569 process Effects 0.000 description 10
- 230000008439 repair process Effects 0.000 description 6
- 230000008859 change Effects 0.000 description 4
- 230000005611 electricity Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 3
- 238000011084 recovery Methods 0.000 description 3
- 238000012423 maintenance Methods 0.000 description 2
- 235000008113 selfheal Nutrition 0.000 description 2
- 206010033799 Paralysis Diseases 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000035876 healing Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- VXPLXMJHHKHSOA-UHFFFAOYSA-N propham Chemical compound CC(C)OC(=O)NC1=CC=CC=C1 VXPLXMJHHKHSOA-UHFFFAOYSA-N 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/42—Loop networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/16—Multipoint routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/42—Loop networks
- H04L2012/421—Interconnected ring systems
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the present invention provides a kind of plug and play network-building method, apparatus and system, and using in looped network one meshed network transmission device sends test packet as test packet promoter to looped network;After present node web-transporting device listens to the test packet that previous node web-transporting device is sent, extract sender's bridge MAC Address in test packet, it is compared with the bridge MAC Address of present node web-transporting device, sender's bridge MAC Address in the test packet that the big person of bridge MAC Address is sent as present node web-transporting device to latter meshed network transmission device;The maximum meshed network transmission device of looped network jackshaft MAC Address is found out based on the test packet after one circle of circulation forwarding;The message that the secondary port of the obstruction maximum meshed network transmission device of bridge MAC Address makes it be only capable of receiving target MAC (Media Access Control) address test packet multicast address.The present invention can effectively avoid broadcast storm, improve the reliability and stability of looped network.
Description
Technical Field
The invention relates to the technical field of digital information transmission, in particular to a plug-and-play networking method, device and system.
Background
An ethernet ring network, referred to as a ring network, is a ring network system formed by a group of node network devices. Because each node network device is only physically connected with two adjacent node network devices, the network wiring investment of the ring network is less; because the two node network devices in the ring network can directly or indirectly carry out network communication, and the maximum time for transmitting the message in the ring network is fixed, the ring network has good real-time performance and higher reliability.
The ring network supports point-to-point, point-to-multipoint, multipoint-to-multipoint and other network communication services; the ring network supports various network data communication modes such as unicast, multicast and broadcast, and can effectively prevent data from being out of sequence and repeated. However, in the data communication mode of the broadcast network, a broadcast message sent by the node network device of the sender to the ring network broadcast address is copied and transmitted to all the node network devices by the ring network, and the broadcast message fills the ring network, occupies a large amount of ring network bandwidth, causes the performance of the ring network to be reduced, even paralysis, and also causes a broadcast storm.
Therefore, eliminating the broadcast storm in the ring network is a technical problem to be solved in the technical field of network communication.
Disclosure of Invention
The invention aims to provide a plug-and-play networking method, device and system capable of effectively avoiding broadcast storm so as to be beneficial to improving the reliability and stability of a ring network.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment of the present invention provides a plug-and-play networking method, which is applied to a node network transmission device for constructing a ring network, wherein when the node network transmission device is used as a current node network transmission device through which a message passes, a secondary port of the node network transmission device is used for monitoring and receiving the message sent by a previous node network transmission device in the ring network, and a primary port of the node network transmission device is used for sending the message to a next node network transmission device in the ring network; the method comprises the following steps:
a node network transmission device in the ring network is used as a test message initiator to send a test message to the ring network; the target MAC address in the test message is a test message multicast address, and the sender bridge MAC address in the test message is a bridge MAC address of a test message initiator;
after monitoring a test message sent by previous node network transmission equipment, current node network transmission equipment extracts a sender bridge MAC address in the test message, compares the sender bridge MAC address with a bridge MAC address of the current node network transmission equipment, and takes a bridge MAC address larger as the sender bridge MAC address in the test message sent by the current node network transmission equipment to the next node network transmission equipment;
finding out the node network transmission equipment with the maximum bridge MAC address in the ring network based on the test message after circularly forwarding one circle;
and blocking the secondary port of the node network transmission equipment with the maximum bridge MAC address so that the secondary port can only receive the message with the target MAC address as the test message multicast address.
In a second aspect, an embodiment of the present invention further provides a plug-and-play networking device, which is applied to a node network transmission device for constructing a ring network, wherein when the node network transmission device is used as a current node network transmission device through which a message passes, a secondary port of the node network transmission device is used for monitoring and receiving the message sent by a previous node network transmission device in the ring network, and a primary port of the node network transmission device is used for sending the message to a next node network transmission device in the ring network; the device includes:
the test message initiating unit is used for sending a test message to the ring network by taking a node network transmission device in the ring network as a test message initiator; the target MAC address in the test message is a test message multicast address, and the sender bridge MAC address in the test message is a bridge MAC address of a test message initiator;
the sender bridge MAC address comparison and adjustment unit comprises a sender bridge MAC address extraction unit, a bridge MAC address comparison unit and a sender bridge MAC address modification unit;
a sender bridge MAC address extracting unit, which is used for extracting the sender bridge MAC address in the test message after the current node network transmission equipment monitors the test message sent by the previous node network transmission equipment;
the bridge MAC address comparison unit is used for comparing the bridge MAC address of the sender in the test message with the bridge MAC address of the current node network transmission equipment;
the sender bridge MAC address adjusting unit is used for taking a bridge MAC address larger than the sender bridge MAC address in the test message sent to the next node network transmission equipment by the current node network transmission equipment;
the node network transmission equipment with the maximum bridge MAC address is selected by the unit, and the node network transmission equipment with the maximum bridge MAC address in the ring network is found out based on the test message after the cyclic forwarding for one circle;
the node network transmission equipment setting unit with the maximum bridge MAC address is used for blocking the secondary port of the node network transmission equipment with the maximum bridge MAC address so that the secondary port can only receive the message with the target MAC address as the test message multicast address.
In a third aspect, an embodiment of the present invention further provides a plug-and-play networking system, including a node network transmission device, where the node network transmission device includes a microprocessor and a memory, and a bus of the microprocessor is connected to the memory; when the node network transmission equipment is used as the current node network transmission equipment through which the message passes, the secondary port of the node network transmission equipment is used for monitoring and receiving the message sent by the previous node network transmission equipment in the ring network, and the primary port of the node network transmission equipment is used for sending the message to the next node network transmission equipment in the ring network;
the system also comprises a plug-and-play networking device which is arranged in the memory and comprises one or more software functional modules executed by the microprocessor;
the plug-and-play networking device comprises:
the test message initiating unit is used for sending a test message to the ring network by taking a node network transmission device in the ring network as a test message initiator; the target MAC address in the test message is a test message multicast address, and the sender bridge MAC address in the test message is a bridge MAC address of a test message initiator;
the sender bridge MAC address comparison and adjustment unit comprises a sender bridge MAC address extraction unit, a bridge MAC address comparison unit and a sender bridge MAC address modification unit;
a sender bridge MAC address extracting unit, which is used for extracting the sender bridge MAC address in the test message after the current node network transmission equipment monitors the test message sent by the previous node network transmission equipment;
the bridge MAC address comparison unit is used for comparing the bridge MAC address of the sender in the test message with the bridge MAC address of the current node network transmission equipment;
the sender bridge MAC address adjusting unit is used for taking a bridge MAC address larger than the sender bridge MAC address in the test message sent to the next node network transmission equipment by the current node network transmission equipment;
the node network transmission equipment with the maximum bridge MAC address is selected by the unit, and the node network transmission equipment with the maximum bridge MAC address in the ring network is found out based on the test message after the cyclic forwarding for one circle;
the node network transmission equipment setting unit with the maximum bridge MAC address is used for blocking the secondary port of the node network transmission equipment with the maximum bridge MAC address so that the secondary port can only receive the message with the target MAC address as the test message multicast address.
In the plug-and-play networking method, device and system provided by the embodiment of the invention, in the cyclic forwarding process of the test message, each test message passes through a current node network transmission device, based on the comparison result of the sender bridge MAC address in the monitored test message and the bridge MAC address of the current node network transmission device, the sender bridge MAC address in the test message forwarded by the current node network transmission device is modified into a bridge MAC address larger than the sender, so that the sender bridge MAC address in the test message after cyclic forwarding for one circle is the bridge MAC address of the node network transmission device with the largest ring network bridge MAC address, the node network transmission device with the largest ring network bridge MAC address is found out through the bridge MAC address, the secondary port of the node network transmission device with the largest MAC address is blocked so that the secondary port can only receive the message with the target MAC address as the test message multicast address, the messages of other destination MAC addresses are completely discarded and are not forwarded, so that the possibility of broadcast storm occurring in the ring network is eliminated through the change of the ring network logic topology structure.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
Fig. 1 is a schematic structural diagram showing an application environment of the embodiment of the present invention.
Fig. 2 is a flowchart illustrating a plug and play networking method according to an embodiment of the present invention for eliminating a ring network broadcast storm of a video surveillance system.
Fig. 3 shows a network structure diagram of a video monitoring system ring network.
Fig. 4 shows a schematic diagram of a network structure of a video monitoring system ring network with a link failure.
Fig. 5 shows a schematic diagram of the service data traffic in the ring network after the fault self-healing of the ring network link of the video monitoring system is repaired.
Fig. 6 shows a schematic diagram of a network structure in which a node network transmission device with the largest bridge MAC address in a video monitoring system ring network fails.
Fig. 7 is a flowchart illustrating a plug-and-play networking method according to an embodiment of the present invention for eliminating a failure of a node network transmission device with a maximum bridge MAC address in a ring network of a video monitoring system.
Fig. 8 is a schematic structural diagram illustrating a plug-and-play networking device according to an embodiment of the present invention.
Fig. 9 shows a schematic diagram of a structure of the sender bridge MAC address comparison adjustment unit.
Fig. 10 shows a schematic configuration diagram of a sender bridge MAC address adjustment unit.
Fig. 11 is a schematic structural diagram illustrating a plug-and-play networking system according to an embodiment of the present invention.
Wherein, the corresponding relation between the reference signs and the component names is as follows:
a node network transmission device 100, a microprocessor 1001, a memory 1002, a master port 1003, a slave port 1004, a first node network transmission device 110, a second node network transmission device 120, a third node network transmission device 130, a fourth node network transmission device 140, a fifth node network transmission device 150, a terminal device 200, a network camera 210, a monitoring client 220, a video wall 230, a plug-and-play networking apparatus 300, an all-slave-port blocking unit 310, a test packet initiating unit 320, a sender bridge MAC address comparison adjusting unit 330, a sender bridge MAC address extracting unit 331, a bridge MAC address comparing unit 332, a sender bridge MAC address adjusting unit 333, a sender bridge MAC address holding unit 3331, a sender bridge MAC address modifying unit 3332, a node network transmission device selection unit 340 with the largest bridge MAC address, a node network transmission device setting unit 350 with the largest bridge MAC address, a first fail-over unit 360, and a second fail-over unit 370.
Detailed Description
At present, in the technical field of ring networks, a private protocol developed based on ethernet fault detection and switching protection protocol is mainly adopted to eliminate broadcast storm in the ring network. The switching protection means that when the working link fails, the network transmission device at the previous node switches the data stream to the protection link, or when the main device fails, the working device switches from the main device to the standby device.
At present, the proprietary protocols for eliminating broadcast storms in ring networks mainly include ERP of ericsson, ERP is english abbreviation of ethernet ring protection switching, RRPP of hua and H3C, RRPP is english abbreviation of rapidring protection protocol, ZESR of zhongxing technology is english abbreviation of zteteethernet smart. The RRPP is a link layer protocol specially applied to the Ethernet ring, and when the Ethernet ring has a broadcast storm, the working link is disconnected, and simultaneously, the data stream is switched to the protection link to recover the communication link between each node network transmission device on the Ethernet ring, so that the broadcast storm is eliminated.
The inventor discovers in the process of implementing the invention that the adoption of RRPP to eliminate the broadcast storm in the ring network for ring network networking has high technical implementation difficulty, relatively complex network configuration, large network maintenance workload and high ring network networking cost, and can only be suitable for constructing a backbone ring network with higher budget. For the ring network with lower networking budget and sensitive cost, such as the ring network of a security system, the ring network of an industrial monitoring control system, the ring network of a water, electricity and gas supply communication system, the ring network of an internet bar system and the ring network of a cable television system based on a set top box, the RRPP scheme for eliminating the broadcast storm in the ring network is not strong in implementation.
The inventor finds out in the process of implementing the invention that it is not necessary to adopt a proprietary protocol developed based on the switching protection protocol to effectively eliminate the broadcast storm. Theoretically, if the logical topology structure of the ring network is changed during the networking of the ring network, the broadcast storm in the ring network can be eliminated.
Based on the above recognition, the inventor provides a plug and play networking method, device and system. The method, the device and the system select a node network transmission device in the ring network as a message forwarding node network transmission device, only receive the broadcast message sent by the sender node network transmission device, and forward the message according to the message broadcast address.
The method can be applied in an application environment as shown in fig. 1. As shown in fig. 1, the application environment is a ring network formed by sequentially connecting a plurality of node network transmission devices 100 according to a ring topology, and the ring network further includes a terminal device 200 network-connected to the node network transmission devices 100.
In the embodiment of the present invention, the ring network may be a wireless ring network formed by wireless connection, a wired ring network formed by wired connection of at least one of a coaxial cable, a twisted pair, and an optical fiber, or a ring network formed by wireless connection and wired connection.
In the embodiment of the present invention, the node network transmission device 100 may be at least one of a router and a network switch, and the node network transmission device 100 has a primary port and a secondary port.
In the embodiment of the present invention, the terminal device 200 is a device having a network communication function. The terminal device 200 may be at least one of a server, an industrial computer, a workstation, a client, a network input device, and a network output device. Wherein,
the server may be one of a file server, a management server, a database server, an application server, and a WEB server.
And the industrial control computer is used for controlling an industrial process.
A workstation, which is a computer with greater information, graphics, image, video processing capabilities than a personal computer.
The client can be a disk client or a diskless client;
the network input equipment can be data acquisition equipment with a network function, such as a network camera, a network sensor, network recording equipment, a network scanner and a network telephone; or the data acquisition system comprises an upper computer and a data acquisition device.
The network output device may be a network display apparatus, a network hard disk recorder, or a network print output device, such as a network printer.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings of the embodiments of the present invention in conjunction with practical applications, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
First embodiment
The first embodiment describes a plug-and-play networking method of the present invention, taking the example that a broadcast storm generated by a mechanism is eliminated from a ring network when the ring network of a security monitoring system is networked.
The security monitoring system network comprises a video monitoring system network and an access control system network. The node network transmission equipment of the security monitoring system network comprises node network transmission equipment arranged in a management center and node network transmission equipment arranged in a security section, the node network transmission equipment arranged in the management center is connected with a monitoring client and a video display device in a network mode, and the node network transmission equipment arranged in the security section is connected with network input equipment such as a network camera and entrance guard equipment in a network mode. For the security monitoring system, the management center is further provided with a video data processing device, such as a network video recorder and a video server, correspondingly, the node network transmission equipment arranged in the management center is in network connection with the video data processing device, and the video data processing device is in network connection with the monitoring client and the video display device respectively. The network camera is a camera with network communication function for video monitoring, and is called IPCamera entirely in English and called IPPC in English for short.
Compared with an access control system network, the security monitoring system network has larger service data flow and higher requirements on the stability and reliability of the network, so that the plug-and-play networking method provided by the first embodiment of the invention is explained by video monitoring system ring network networking, but the plug-and-play networking method provided by the first embodiment of the invention is also suitable for the ring network networking of the access control system.
Fig. 2 is a flowchart illustrating a plug and play networking method according to an embodiment of the present invention for eliminating a ring network broadcast storm of a video surveillance system. Referring to fig. 2, the method is applied to a node network transmission device for constructing a ring network, when the node network transmission device is used as a current node network transmission device through which a message passes, a secondary port of the node network transmission device is used for monitoring and receiving the message sent by a previous node network transmission device in the ring network, and a primary port of the node network transmission device is used for sending the message to a next node network transmission device in the ring network; the method comprises the following steps:
s110, a node network transmission device in the ring network is used as a test message initiator to send a test message to the ring network; the target MAC address in the test message is a test message multicast address, and the sender bridge MAC address in the test message is a bridge MAC address of a test message initiator;
in the first embodiment of the present invention, any node network transmission device in the ring network can be used as a test packet initiator, and the embodiment of the present invention does not limit which node network transmission device is selected as the test packet initiator. The node network transmission device, as a test message initiator, sends a test message to the ring network, and may be automatically performed at a preset time point, for example, automatically performed when the node network transmission device is powered on, or performed within a ring network maintenance time period. The embodiment of the invention does not limit the time point of sending the test message to the ring network by the test message initiator.
In the first embodiment of the present invention, the test packet is a protocol packet, and the packet type may be a general type or a custom type. The source MAC address in the test message is the bridge MAC address of the test message initiator, the destination MAC address in the test message is the test message multicast address, such as 0180-C200-1234, and the sender bridge MAC address in the test message is the bridge MAC address of the test message initiator; in the security field, after the security section and the monitoring service of the security section are determined, the topology structure, the service flow data transmission path and the transmission mode of the ring network of the security monitoring system are also determined, and the corresponding message multicast address is also determined, so the test message multicast address usually adopts the message multicast address in practical application, and certainly the test message multicast address does not adopt the message multicast address in practical application.
In the first embodiment of the present invention, the test packet initiator sends the test packet to the ring network through the master port thereof, which means that the test packet initiator sends the test packet to the next node network transmission device located behind the physical topology structure on the ring network through the master port thereof. The secondary port of the test message initiator is used for monitoring and receiving the test message circularly forwarded back.
S120, after the current node network transmission equipment monitors the test message sent by the previous node network transmission equipment, extracting a sender bridge MAC address in the test message, comparing the sender bridge MAC address with the bridge MAC address of the current node network transmission equipment, and taking the bridge MAC address larger than the sender bridge MAC address in the test message sent to the next node network transmission equipment by the current node network transmission equipment;
in the first embodiment of the present invention, the test packet sent by the test packet initiator to the ring network is sequentially forwarded by the node network transmission devices on the ring network according to the sequence of the node network transmission devices on the physical topology structure, the current node network transmission device through which the test packet passes monitors the test packet sent by the previous node network transmission device, the sender bridge MAC address in the test packet is extracted, the bridge MAC address is compared with the bridge MAC address of the current node network transmission device, and the bridge MAC address larger than the sender bridge MAC address in the test packet sent by the current node network transmission device to the next node network transmission device is used as the sender bridge MAC address.
The step of taking the bridge MAC address owner as the sender bridge MAC address in the test message sent by the current node network transmission equipment to the next node network transmission equipment comprises the following steps:
when the sender bridge MAC address in the test message sent by the previous node network transmission equipment is larger than the bridge MAC address of the current node network transmission equipment, keeping the sender bridge MAC address in the test message sent by the current node network transmission equipment to the next node network transmission equipment unchanged;
when the sender bridge MAC address in the test message sent by the previous node network transmission equipment is smaller than the bridge MAC address of the current node network transmission equipment, the sender bridge MAC address in the test message sent by the current node network transmission equipment to the next node network transmission equipment is modified into the bridge MAC address of the current node network transmission equipment.
After the test message is circularly forwarded for one turn on the ring network, the test message can be monitored and received by the test message initiator or the secondary port of the node network switching equipment behind the test message initiator.
In the first embodiment of the present invention, each time a test packet passes through a node network transmission device, the sender bridge MAC address in the test packet is monitored, and compared with the bridge MAC address of the node network transmission device, the sender bridge MAC address in the test packet is replaced with the one with the larger bridge MAC address, so that the process of circularly forwarding the test packet on the ring network is also the process of searching for the largest test bridge MAC address.
S130, finding out the node network transmission equipment with the maximum bridge MAC address in the ring network based on the test message after circularly forwarding for one circle;
in the first embodiment of the present invention, the test packet after one round of cyclic forwarding is obtained, which may be obtained from the test packet initiator or from the node network switching device behind the test packet initiator.
In the first embodiment of the present invention, the sender bridge MAC address in the test message after being cyclically forwarded for one round is the largest bridge MAC address on the ring network, and the node network transmission device corresponding to the largest bridge MAC address is the node network transmission device with the largest bridge MAC address on the ring network.
In the first embodiment of the present invention, the determination of sending the test packet from the test packet initiator to the ring network to the node network transmission device with the largest bridge MAC address is completed within 1 millisecond to 20 milliseconds, which is much faster than 50 milliseconds of the switching protection.
S140, the secondary port of the node network transmission equipment with the maximum bridge MAC address is blocked so that the secondary port can only receive the message with the target MAC address as the test message multicast address.
In the first embodiment of the present invention, the secondary port of the node network transmission device with the largest bridge MAC address is blocked, so that the secondary port can only receive the message with the destination MAC address as the multicast address of the test message, and the messages of other destination MAC addresses are all discarded and not forwarded, that is, the possibility of broadcast storm occurring in the ring network is eliminated by changing the logical topology of the ring network.
In the first embodiment of the present invention, the test message multicast address is usually a message multicast address in the actual application, and if the test message multicast address is not the message multicast address in the actual application, the test message multicast address in step S140 is modified to be the message multicast address in the actual application.
In the first embodiment of the present invention, the node network transmission device with the largest MAC address can be used as a node network transmission device for forwarding broadcast messages, and can also be used as a node network transmission device for forwarding multicast messages, and under any circumstances, the possibility of broadcast storm occurring in the ring network can be effectively eliminated.
In order to improve the forwarding efficiency of the test message and obtain the network topology of the ring network in a shorter time, a further scheme is that,
before step S110, blocking the secondary ports of the multiple node network transmission devices of the ring network so that the secondary ports can only receive the message whose destination MAC address is the multicast address of the test message; accordingly, the number of the first and second electrodes,
the step of blocking the secondary port of the node network transmission equipment with the maximum bridge MAC address so that the secondary port can only receive the message with the target MAC address as the test message multicast address is as follows:
and maintaining to block the secondary port of the node network transmission equipment with the maximum bridge MAC address so that the secondary port can only receive the message of which the destination MAC address is the test message multicast address, and releasing the secondary port of the node network transmission equipment outside the node network transmission equipment with the maximum bridge MAC address in the ring network.
Because the secondary ports of the network transmission equipment of a plurality of nodes in the ring network are blocked, the blocked secondary ports can only receive the message of which the destination MAC address is the multicast address of the test message, the number of the messages forwarded in the ring network is greatly reduced, and each current node network transmission equipment only monitors and processes the test message, thereby greatly shortening the acquisition time of the ring network topology and improving the networking efficiency of the ring network.
In the plug-and-play networking method provided by the first embodiment of the present invention, in the process of circularly forwarding a test message, each test message passes through a current node network transmission device, based on the comparison result between the monitored bridge MAC address of the sender in the test message and the bridge MAC address of the current node network transmission device, the bridge MAC address of the sender in the test message forwarded by the current node network transmission device is modified to be the bridge MAC address larger, so that the bridge MAC address of the sender in the test message after circularly forwarding a circle is the bridge MAC address of the node network transmission device with the largest bridge MAC address on the ring network, the node network transmission device with the largest bridge MAC address on the ring network is found out through the bridge MAC address, the secondary port of the node network transmission device with the largest MAC address is blocked to enable the secondary port to receive only the message with the destination MAC address as the test message multicast address, and the messages of other destination MAC addresses are discarded and are not forwarded, therefore, the possibility of broadcast storm of the ring network is eliminated through the change of the logic topology structure of the ring network.
Based on the same or similar network structure and service data, the plug-and-play networking method provided by the first embodiment of the invention is not limited to security system ring network networking, but is also suitable for industrial monitoring control systems, water, electricity and gas supply communication systems, net bar system ring network networking, and is also suitable for cable television system ring network networking based on a set top box, such as video on demand system ring network networking.
Second embodiment
The second embodiment describes the plug-and-play networking method of the present invention, taking a link failure occurring when a ring network of a security monitoring system operates as an example.
As in the first embodiment, the ring network of the security monitoring system in the second embodiment of the present invention is a ring network formed by sequentially connecting a plurality of node network transmission devices, where a primary port of each of the plurality of node network transmission devices is used to send a message to the ring network, and a secondary port is used to monitor and receive messages in the ring network. It should be noted that, in the ring network of the security monitoring system according to the second embodiment of the present invention, when the ring network is networked, the secondary port of the node network transmission device with the largest MAC address of the blocking bridge enables the ring network transmission device to receive only the message with the destination MAC address as the multicast address of the test message, so as to eliminate the possibility of broadcast storm generated by the ring network of the security monitoring system from the mechanism.
When the ring network of the security monitoring system is in operation, a link fault occurs, which means that when the ring network of the security monitoring system is put into use, a communication link between two node network transmission devices in the ring network is interrupted.
In order to facilitate clear understanding of the technical problem of link failure occurring when the ring network operates and to facilitate clear explanation of the technical solution of the second embodiment of the present invention, as with the first embodiment of the present invention, in the second embodiment of the present invention, the plug-and-play networking method of the present invention is also explained by taking the ring network of the video monitoring system as an example.
Meanwhile, in order to reduce the difficulty in understanding the technical solution of the second embodiment of the present invention, in the second embodiment of the present invention, it is assumed that the number of the management centers is one, and the number of the monitoring sections is four. However, it should be noted that the second embodiment of the present invention is not limited to the case where the number of the management centers is one and the number of the monitoring sections is four, and the second embodiment of the present invention does not limit the number of the management centers and the number of the monitoring sections.
Fig. 3 shows a network structure diagram of a video monitoring system ring network. Referring to fig. 3, a node network transmission device is set in the management center, and is defined as a first node network transmission device 110, and a node network transmission device is set in each of the four monitoring sections, and is defined as a second node network transmission device 120, a third node network transmission device 130, a fourth node network transmission device 140, and a fifth node network transmission device 150. The first node network transmission device 110, the second node network transmission device 120, the third node network transmission device 130, the fourth node network transmission device 140, and the fifth node network transmission device 150 are sequentially connected to form a physical ring network according to a ring topology.
The second node network transmission device 120, the third node network transmission device 130, the fourth node network transmission device 140, and the fifth node network transmission device 150 are respectively connected to a network camera 210, the network camera 210 is configured to acquire a live video image of a monitoring section where the network camera 210 is located in real time, a live video image data stream recorded by the network camera 210 is transmitted to the corresponding node network transmission device, and the corresponding node network transmission device transmits the live video image data stream to the first node network transmission device 110 through a logistics ring network.
The first node network transmission device 110 is connected with a monitoring client 220 and a video wall 230 through a network, and displays live video images recorded by multiple network cameras in real time through the monitoring client 220 or the video wall 230.
Fig. 4 shows a schematic diagram of a network structure of a video monitoring system ring network with a link failure. Referring to fig. 4, when the video monitoring system ring network is configured, the logical topology structure of the video monitoring system ring network is already changed according to that the second node network transmission device 120 is the node network transmission device with the largest MAC address, that is, the secondary port of the bridge second node network transmission device 120 is blocked so that the secondary port can only receive the message with the destination MAC address as the multicast address of the test message. When the video monitoring system ring network is put into use, the message multicast address is also tested, namely the message multicast address.
After the ring network of the video monitoring system is put into operation for a period of time, the network communication link between the fourth node network transmission device 140 and the fifth node network transmission device 150 is interrupted, and at this time, a message with a destination MAC address as a message multicast address sent from the primary port of the second node network transmission device 120 cannot reach the secondary port of the second node network transmission device 120, that is, the integrity of the ring network of the video monitoring system is in problem.
In view of the link failure of the ring network of the video monitoring system, a second embodiment of the present invention provides a plug and play networking method based on the first embodiment of the present invention. When the looped network has a link failure, the method further includes, based on the first embodiment of the present invention, the steps of:
and releasing the secondary port of the node network transmission equipment with the maximum blocked bridge MAC address, so that the secondary port can receive messages of other destination MAC addresses except the test message multicast address in the ring network.
Fig. 5 shows a schematic diagram of the service data traffic in the ring network after the fault self-healing of the ring network link of the video monitoring system is repaired. Referring to fig. 5, after the blocked secondary port of the second node network transmission device 120 is released, the video stream service data packet sent by the fourth node network transmission device 140 at the end of the link failure sequentially passes through the third node network transmission device 130 and the second node network transmission device 120 and is forwarded to the first node network transmission device 110, the first node network transmission device 110 forwards the video stream service data packet to the monitoring client 220 and the television display wall, and the monitoring client 220 and the television display wall display the monitoring video image in real time.
The video streaming service data packet sent by the fifth node network transmission device 150 at the other end of the link failure is forwarded to the first node network transmission device 110, the first node network transmission device 110 forwards the video streaming service data packet to the monitoring client 220 and the television display wall, and the monitoring client 220 and the television display wall display the monitoring video image in real time.
Similarly, the video stream service data of the network camera 210 received by the third node network transmission device 130 and the second node network transmission device 120 can also be forwarded to the first node network transmission device 110 in the form of a message, and the monitoring client 220 and the television display wall display the monitoring video image recorded by the network camera 210 corresponding to the third node network transmission device 130 and the second node network transmission device 120 in real time.
In the plug-and-play networking method provided in the second embodiment of the present invention, when a link failure occurs in a ring network of a video monitoring system, the secondary port of the node network transmission device with the largest blocked bridge MAC address is released, so that the secondary port can receive other messages except for a multicast address of a test message, which is a destination MAC address in the ring network, and thus, the self-healing repair of the link failure of the ring network of the video monitoring system is realized by modifying a logical topology structure of the ring network without physically repairing the link.
Based on the same or similar network structure and service data, the plug-and-play networking method provided by the second embodiment of the invention is not limited to security system ring network networking, but is also suitable for industrial monitoring control systems, water, electricity and gas supply communication systems, net bar system ring network networking, and is also suitable for cable television system ring network networking based on a set top box, such as video on demand system ring network networking.
Third embodiment
The third embodiment describes the plug-and-play networking method of the present invention, by taking the case where a node network transmission device failure occurs during the operation of the ring network of the security monitoring system as an example.
As in the first and second embodiments of the present invention, the ring network of the security monitoring system in the third embodiment of the present invention is a ring network formed by sequentially connecting a plurality of node network transmission devices, where a primary port of the plurality of node network transmission devices is used to send a message to the ring network, and a secondary port is used to monitor and receive a message in the ring network. It should be noted that, in the ring network of the security monitoring system according to the third embodiment of the present invention, when the ring network is networked, the secondary port of the node network transmission device with the largest MAC address of the blocking bridge enables the ring network transmission device to receive only the message with the destination MAC address as the multicast address of the test message, so as to eliminate the possibility of broadcast storm generated by the ring network of the security monitoring system from the mechanism.
When the ring network of the security monitoring system is in use, the node network transmission equipment in the ring network fails, and message monitoring and receiving and/or message forwarding cannot be realized. The node network transmission equipment faults comprise the fault of the node network transmission equipment with the largest bridge MAC address in the ring network and the fault of the node network transmission equipment with the non-largest bridge MAC address.
In order to facilitate clear understanding of the technical problem of the node network transmission device failure occurring when the ring network operates, and to facilitate clear description of the technical solution of the third embodiment of the present invention, as in the first embodiment and the second embodiment of the present invention, the plug-and-play networking method of the present invention is also described in the third embodiment of the present invention by taking the ring network of the video monitoring system as an example.
Meanwhile, in order to reduce the difficulty in understanding the technical solution of the third embodiment of the present invention, the video monitoring system ring network of the third embodiment of the present invention is the same as the video monitoring system ring network of the second embodiment of the present invention in terms of network structure.
If the node network transmission device failure is the node network transmission device failure with the non-maximum bridge MAC address, the effect caused by the node network transmission device failure is the same as the effect of the link failure of the looped network video monitoring system in the second embodiment of the present invention, and accordingly, for the node network transmission device failure with the non-maximum MAC address, the instant self-healing networking method provided in the third embodiment of the present invention is the same as the instant self-healing networking method provided in the second embodiment of the present invention.
Fig. 6 shows a schematic diagram of a network structure in which a node network transmission device with the largest bridge MAC address in a video monitoring system ring network fails. Referring to fig. 6, when a node network transmission device with the largest bridge MAC address in the ring network fails, that is, a second node network transmission device fails, the secondary port of the first node network transmission device may neither monitor nor receive a message with a destination MAC being a multicast address sent by the primary port of the second node network transmission device.
Fig. 7 is a flowchart illustrating a plug-and-play networking method according to an embodiment of the present invention for eliminating a failure of a node network transmission device with a maximum bridge MAC address in a ring network of a video monitoring system. Referring to fig. 7, the method further includes the following steps based on the first embodiment of the present invention:
s310, taking the node network transmission equipment with the secondary port in the ring network and the node network transmission equipment with the maximum bridge MAC address as a test message initiator to send a test message to the ring network; the target MAC address in the test message is a test message multicast address, and the sender bridge MAC address in the test message is a bridge MAC address of a test message initiator;
please refer to step S110 of the first embodiment of the present invention. Different from step S110 of the first embodiment of the present invention, in step S310, the test packet initiator is a node network transmission device in which the secondary port in the ring network is network-connected to the node network transmission device with the largest bridge MAC address.
S320, after the current node network transmission equipment monitors the test message sent by the previous node network transmission equipment, extracting a sender bridge MAC address in the test message, comparing the sender bridge MAC address with the own bridge MAC address, and taking a bridge MAC address larger as the sender bridge MAC address in the test message sent by the current node network transmission equipment to the next node network transmission equipment;
please refer to step S120 of the first embodiment of the present invention.
S330, based on the node network transmission device with the main port connected with the node network transmission device with the largest bridge MAC address, monitoring or receiving the test message, finding out the node network transmission device with the second largest bridge MAC address in the ring network.
Please refer to step S130 of the first embodiment of the present invention. In step S330, a node network transmission device with the second largest bridge MAC address in the ring network is to be found, but the node network transmission device with the largest bridge MAC address in the ring network can also be found. Different from step S110 of the first embodiment of the present invention, the test packet used for finding the node network transmission device with the second largest bridge MAC address in the ring network in step S330 is that the node network transmission device, which is network-connected to the node network transmission device with the largest bridge MAC address based on the host port, monitors or receives the test packet.
The plug-and-play networking method provided by the third embodiment of the present invention is adopted when the node network transmission device with the non-maximum bridge MAC address fails, and the self-healing repair of the node network transmission device failure with the non-maximum ring bridge MAC address in the video monitoring system is realized by modifying the ring network logical topology structure without physically repairing the link; when the node network transmission equipment with the maximum bridge MAC address breaks down, the node network transmission equipment with the maximum bridge MAC address, namely the node network transmission equipment with the second maximum bridge MAC address in the ring network, is found out through the node network transmission equipment which normally runs in the ring network, and under the condition that the node network transmission equipment with the maximum bridge MAC address is not physically repaired, the self-healing repair of the fault of the node network transmission equipment with the maximum bridge MAC address in the ring network of the video monitoring system is realized through the change of a ring network logical topology structure.
Based on the same or similar network structure and service data, the plug-and-play networking method provided by the third embodiment of the invention is not limited to security system ring network networking, but is also suitable for industrial monitoring control systems, water, electricity and gas supply communication systems, net bar system ring network networking, and is also suitable for cable television system ring network networking based on a set top box, such as video on demand system ring network networking.
It should be noted that, in the second embodiment of the present invention and the third embodiment of the present invention, no matter a link failure or a node network transmission device failure occurs, the secondary port of the node network transmission device with the largest bridge MAC address, which is normally operated in the ring network and repaired by the plug-and-play networking method provided in the embodiments of the present invention, cannot receive the message with the destination MAC address as the message multicast address sent by the primary port, so that the secondary port is not blocked and a broadcast storm is not caused.
It should be noted that, the convergence time of the service data flow after the link failure in the second embodiment of the present invention and the failure of the node network transmission device in the third embodiment of the present invention depends on the message interval in which the destination MAC sent by the node network transmission device is the message multicast address, and the message interval may be set according to the performance of the actual node network transmission device, for example, the message interval time is set to 10 milliseconds, 50 milliseconds, or 1 second.
Fourth embodiment
The fourth embodiment provides a plug-and-play networking device. The device can be applied to the application environments of the first embodiment, the second embodiment and the third embodiment of the present invention.
Fig. 8 is a schematic structural diagram of a plug-and-play networking device 300 according to an embodiment of the present invention. Referring to fig. 8, the plug-and-play networking apparatus 300 is applied to a node network transmission device for constructing a ring network, when the node network transmission device is used as a current node network transmission device through which a message passes, a secondary port of the node network transmission device is used for monitoring and receiving the message sent by a previous node network transmission device in the ring network, and a primary port of the node network transmission device is used for sending the message to a next node network transmission device in the ring network;
plug-and-play networking device 300 is installed in memory 1002 and includes one or more software functional modules executed by microprocessor 1001; the plug-and-play networking device 300 comprises a test message initiating unit 320, a sender bridge MAC address comparison adjusting unit 330, a node network transmission device selecting unit 340 with the maximum bridge MAC address, and a node network transmission device setting unit 350 with the maximum bridge MAC address. Wherein,
a test message initiating unit 320, configured to send a test message to the ring network by using a node network transmission device in the ring network as a test message initiator; the target MAC address in the test message is a test message multicast address, and the sender bridge MAC address in the test message is a bridge MAC address of a test message initiator;
the sender bridge MAC address comparison adjusting unit 330, as shown in fig. 9, the sender bridge MAC address comparison adjusting unit 330 includes a sender bridge MAC address extracting unit 331, a bridge MAC address comparing unit 332, and a sender bridge MAC address modifying unit 3332;
the sender bridge MAC address extracting unit 331, after the current node network transmission device monitors the test packet sent by the previous node network transmission device, is configured to extract a sender bridge MAC address in the test packet;
a bridge MAC address comparing unit 332, configured to compare the bridge MAC address of the sender in the test message with the bridge MAC address of the current node network transmission device;
a sender bridge MAC address adjusting unit 333, configured to use a bridge MAC address owner as a sender bridge MAC address in a test message sent by a current node network transmission device to a next node network transmission device;
as shown in fig. 10, the sender bridge MAC address adjusting unit 333 includes:
a sender bridge MAC address holding unit 3331, configured to hold a sender bridge MAC address in a test message sent by a previous node network transmission device to a next node network transmission device unchanged when the sender bridge MAC address in the test message is greater than the bridge MAC address of the current node network transmission device;
the sender bridge MAC address modifying unit 3332, when the sender bridge MAC address in the test message sent by the previous node network transmission device is smaller than the bridge MAC address of the current node network transmission device, is configured to modify the sender bridge MAC address in the test message sent by the current node network transmission device to the next node network transmission device into the bridge MAC address of the current node network transmission device.
The node network transmission device selecting unit 340 with the maximum bridge MAC address finds out the node network transmission device with the maximum bridge MAC address in the ring network based on the test message after circularly forwarding for one turn;
the node network transmission device setting unit 350 with the largest bridge MAC address is configured to block the secondary port of the node network transmission device with the largest bridge MAC address, so that the secondary port can only receive the message with the destination MAC address as the multicast address of the test message.
In order to improve the efficiency of the cyclic forwarding of the test message and obtain the network topology of the ring network in a shorter time, the further scheme is that the plug-and-play networking device 300 further comprises all secondary port blocking units 310;
all secondary port blocking units 310 are configured to block the secondary ports of the plurality of node network transmission devices in the ring network to enable the secondary ports to only receive the message with the destination MAC address as the multicast address of the test message before the test message is sent to the ring network by using a node network transmission device in the ring network as the initiator of the test message;
the node network transmission device setting unit 350 with the maximum bridge MAC address is configured to, after finding out the node network transmission device with the maximum bridge MAC address in the ring network based on the test packet that is cyclically forwarded for one round, maintain to block the secondary port of the node network transmission device with the maximum bridge MAC address so that the secondary port can only receive the packet with the destination MAC address as the multicast address of the test packet, and release the secondary port of the node network transmission device outside the node network transmission device with the maximum bridge MAC address in the ring network.
In order to self-heal the failure of the link or the failure of the node network transmission device with the non-maximum bridge MAC address in the ring network, the plug-and-play networking device 300 further includes a first failure healing unit 360, when the link failure occurs in the ring network or the failure occurs in the node network transmission device with the non-maximum bridge MAC address in the ring network, the secondary port of the node network transmission device with the maximum bridge MAC address is released, so that the secondary port can receive the message of other destination MAC addresses except the test message multicast address in the ring network.
In order to self-heal the failure of the node network transmission device with the maximum bridge MAC address, the plug-and-play networking apparatus 300 further includes:
a second failure recovery unit 370, where the second failure recovery unit 370 includes a test packet initiating unit 320, a sender bridge MAC address adjusting unit 333, and a node network transmission device selecting unit with the second largest bridge MAC address; wherein,
the test message initiating unit 320 is further configured to send a test message to the ring network by using a node network transmission device, as a test message initiator, where the node network transmission device is in network connection with the node network transmission device with the largest bridge MAC address through the secondary port in the ring network when the node network transmission device with the largest bridge MAC address in the ring network fails; the target MAC address in the test message is a test message multicast address, and the sender bridge MAC address in the test message is a bridge MAC address of a test message initiator;
the sender bridge MAC address adjusting unit 333 includes a sender bridge MAC address extracting unit 331, a bridge MAC address comparing unit 332, a sender bridge MAC address modifying unit 3332;
the sender bridge MAC address extracting unit 331, after the current node network transmission device monitors the test packet sent by the previous node network transmission device, is configured to extract a sender bridge MAC address in the test packet;
a bridge MAC address comparing unit 332, configured to compare the bridge MAC address of the sender in the test message with the bridge MAC address of the current node network transmission device;
a sender bridge MAC address adjusting unit 333, configured to use a bridge MAC address owner as a sender bridge MAC address in a test message sent by a current node network transmission device to a next node network transmission device;
and the node network transmission equipment selecting unit with the second largest bridge MAC address is used for monitoring or receiving a test message to find out the node network transmission equipment with the second largest bridge MAC address in the ring network based on the node network transmission equipment which is connected with the node network transmission equipment with the largest bridge MAC address through the main port when the node network transmission equipment with the largest bridge MAC address in the ring network has a fault.
The implementation process and the obtained effects of the fourth embodiment of the present invention can be referred to the first embodiment, the second embodiment and the third embodiment of the present invention correspondingly.
The unit modules in the fourth embodiment of the present invention may be implemented by software codes, and in this case, the modules are installed in the memory 1002. The above units may also be implemented by hardware, for example, an integrated circuit chip. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the detailed description of the functional modules described above may refer to the detailed description of the corresponding method steps, and thus, no further details are described here.
Fifth embodiment
The fifth embodiment provides a plug-and-play networking system. The system is applicable to the application environment of the first embodiment.
Fig. 11 is a schematic structural diagram illustrating a plug-and-play networking system according to an embodiment of the present invention. Referring to fig. 11, the system includes a node network transmission device 100, where the node network transmission device 100 includes a microprocessor 1001 and a memory 1002, and the microprocessor 1001 is connected to the memory 1002 through a bus; when the node network transmission device 100 is used as a current node network transmission device 100 through which a message passes, the secondary port 1004 of the node network transmission device 100 is used for monitoring and receiving the message sent by the previous node network transmission device 100 in the ring network, and the primary port 1003 of the node network transmission device 100 is used for sending the message to the next node network transmission device 100 in the ring network;
the system further includes a plug-and-play networking device 300, the plug-and-play networking device 300 being installed in the memory 1002 and including one or more software functional modules executed by the microprocessor 1001;
the plug-and-play networking device 300 includes:
a test message initiating unit 320, configured to send a test message to the ring network by using the network transmission device 100 as a test message initiator; the target MAC address in the test message is a test message multicast address, and the sender bridge MAC address in the test message is a bridge MAC address of a test message initiator;
sender bridge MAC address comparison adjusting unit 330, where sender bridge MAC address comparison adjusting unit 330 includes a sender bridge MAC address extraction unit, a bridge MAC address comparison unit, and a sender bridge MAC address modification unit;
a sender bridge MAC address extracting unit, configured to extract a sender bridge MAC address in a test message after the current node network transmission device 100 monitors the test message sent by the previous node network transmission device 100;
a bridge MAC address comparing unit, configured to compare a sender bridge MAC address in the test message with a bridge MAC address of the current node network transmission device 100;
a sender bridge MAC address adjusting unit, configured to use a bridge MAC address larger than the sender bridge MAC address in the test message sent by the current node network transmission device 100 to the next node network transmission device 100;
the node network transmission device selecting unit 340 with the maximum bridge MAC address finds out the node network transmission device 100 with the maximum bridge MAC address in the ring network based on the test message after circularly forwarding for one turn;
the node network transmission device setting unit 350 with the maximum bridge MAC address is configured to block the secondary port 1004 of the node network transmission device 100 with the maximum bridge MAC address so that the secondary port can only receive the message with the destination MAC address as the multicast address of the test message.
Referring to the fourth embodiment of the present invention, in the fifth embodiment of the present invention, after adding all the secondary port blocking units 310 and adjusting the node network transmission device setting unit 350 with the largest bridge MAC address to find the node network transmission device 100 with the largest bridge MAC address in the ring network based on the test packet after circularly forwarding for one turn, the acquisition time of the ring network topology can be greatly shortened and the networking efficiency of the ring network can be improved under the condition that the secondary port 1004 of the node network transmission device 100 outside the node network transmission device 100 with the largest bridge MAC address in the ring network is released.
Referring to the fourth embodiment of the present invention, the fifth embodiment of the present invention is applicable to the application environment of the second embodiment and the application environment of the third embodiment in the case where the first failure recovery unit 360 is added.
Referring to the fourth embodiment of the present invention, the fifth embodiment of the present invention can be applied to the application environment of the third embodiment in the case where the second fail repair unit 370 is added.
Please refer to an implementation process corresponding to the plug-and-play networking device 300 according to the fourth embodiment of the present invention for a working process of the plug-and-play networking system according to the fifth embodiment of the present invention.
In summary, the plug-and-play networking method, device, and system provided in the embodiments of the present invention are to find out the transmission device with the largest bridge MAC address in the ring network, block the secondary port of the transmission device so that the transmission device can only receive the message with the destination MAC address as the multicast address of the test message, and discard all messages with other destination MAC addresses without forwarding, thereby eliminating the possibility of broadcast storm occurring in the ring network through the change of the ring network logical topology structure. By releasing the blocked secondary port, the link failure and the node network transmission equipment failure with the non-maximum bridge MAC address are repaired in a self-healing manner by changing the logical topology without physical repair. The node network transmission equipment with the largest bridge MAC address in the ring network of the video monitoring system is found out through the node network transmission equipment which normally runs in the ring network, namely the node network transmission equipment with the second largest bridge MAC address in the ring network, and the fault self-healing repair of the node network transmission equipment with the largest bridge MAC address in the ring network of the video monitoring system is realized under the condition that the node network transmission equipment with the largest bridge MAC address in the ring network is not physically repaired.
Claims (11)
1. The plug-and-play networking method is applied to node network transmission equipment for constructing a ring network, when the node network transmission equipment is used as current node network transmission equipment through which a message passes, a secondary port of the node network transmission equipment is used for monitoring and receiving the message sent by previous node network transmission equipment in the ring network, and a primary port of the node network transmission equipment is used for sending the message to next node network transmission equipment in the ring network; characterized in that the method comprises:
a node network transmission device in the ring network is used as a test message initiator to send a test message to the ring network; the target MAC address in the test message is a test message multicast address, and the sender bridge MAC address in the test message is a bridge MAC address of the test message initiator;
after monitoring the test message sent by the previous node network transmission equipment, the current node network transmission equipment extracts a sender bridge MAC address in the test message, compares the sender bridge MAC address with the bridge MAC address of the current node network transmission equipment, and takes a bridge MAC address larger than the sender bridge MAC address as the sender bridge MAC address in the test message sent to the next node network transmission equipment by the current node network transmission equipment;
finding out the node network transmission equipment with the maximum bridge MAC address in the ring network based on the test message after circularly forwarding one circle;
and blocking the secondary port of the node network transmission equipment with the maximum bridge MAC address so that the secondary port can only receive the message with the target MAC address as the test message multicast address.
2. The plug-and-play networking method of claim 1, wherein said step of using a bridge MAC address owner as a sender bridge MAC address in a test message sent by said current node network transmission device to said next node network transmission device comprises:
when the sender bridge MAC address in the test message sent by the previous node network transmission equipment is larger than the bridge MAC address of the current node network transmission equipment, keeping the sender bridge MAC address in the test message sent by the current node network transmission equipment to the next node network transmission equipment unchanged;
and when the sender bridge MAC address in the test message sent by the previous node network transmission equipment is smaller than the bridge MAC address of the current node network transmission equipment, modifying the sender bridge MAC address in the test message sent by the current node network transmission equipment to the next node network transmission equipment into the bridge MAC address of the current node network transmission equipment.
3. The plug-and-play networking method according to claim 1 or 2, wherein before the step of sending the test packet to the ring network with a node network transmission device in the ring network as a test packet initiator, the method further comprises:
blocking the auxiliary ports of a plurality of node network transmission devices of the ring network to enable the auxiliary ports to only receive the message of which the destination MAC address is the test message multicast address;
the step of blocking the secondary port of the node network transmission equipment with the maximum bridge MAC address so that the secondary port can only receive the message with the target MAC address as the test message multicast address is as follows:
and maintaining the secondary port of the node network transmission equipment with the maximum bridge MAC address to be blocked so that the secondary port can only receive the message of which the destination MAC address is the test message multicast address, and releasing the secondary port of the node network transmission equipment outside the node network transmission equipment with the maximum bridge MAC address in the ring network.
4. The plug-and-play networking method of claim 1 or 2,
when the ring network has a link failure or the node network transmission equipment with the non-maximum bridge MAC address in the ring network has a failure, the method further comprises the following steps:
and releasing the secondary port of the blocked node network transmission equipment with the maximum bridge MAC address so as to enable the secondary port to receive messages of other destination MAC addresses except the test message multicast address in the ring network.
5. The plug-and-play networking method of claim 1 or 2,
when the node network transmission equipment with the maximum bridge MAC address in the ring network fails, the method further comprises the following steps:
taking the node network transmission equipment in the looped network, of which the secondary port is in network connection with the node network transmission equipment with the maximum bridge MAC address, as a test message initiator to send a test message to the looped network; the target MAC address in the test message is a test message multicast address, and the sender bridge MAC address in the test message is a bridge MAC address of the test message initiator;
after monitoring the test message sent by the previous node network transmission equipment, the current node network transmission equipment extracts a sender bridge MAC address in the test message, compares the sender bridge MAC address with the own bridge MAC address, and takes a bridge MAC address larger than the sender bridge MAC address as the sender bridge MAC address in the test message sent by the current node network transmission equipment to the next node network transmission equipment;
and based on the node network transmission equipment with the main port in network connection with the node network transmission equipment with the maximum bridge MAC address, monitoring or receiving a test message to find out the node network transmission equipment with the second maximum bridge MAC address in the ring network.
6. The network device comprises a plug-and-play networking device, a network management device and a network management system, wherein the plug-and-play networking device is applied to node network transmission equipment for constructing a ring network, when the node network transmission equipment is used as current node network transmission equipment through which a message passes, a secondary port of the network management device is used for monitoring and receiving the message sent by previous node network transmission equipment in the ring network, and a primary port of the network management device is used for sending the message to next node network transmission equipment in the ring network; characterized in that the device comprises:
a test message initiating unit, configured to send a test message to the ring network by using a node network transmission device in the ring network as a test message initiator; the target MAC address in the test message is a test message multicast address, and the sender bridge MAC address in the test message is a bridge MAC address of the test message initiator;
the sender bridge MAC address comparison and adjustment unit comprises a sender bridge MAC address extraction unit, a bridge MAC address comparison unit and a sender bridge MAC address modification unit;
a sender bridge MAC address extracting unit, configured to extract a sender bridge MAC address in the test message after the current node network transmission device monitors the test message sent by the previous node network transmission device;
a bridge MAC address comparison unit, configured to compare a sender bridge MAC address in the test message with a bridge MAC address of the current node network transmission device;
a sender bridge MAC address adjusting unit, configured to use a bridge MAC address larger than the sender bridge MAC address in the test message sent by the current node network transmission device to the next node network transmission device;
the node network transmission equipment with the maximum bridge MAC address is selected by the unit, and the node network transmission equipment with the maximum bridge MAC address in the ring network is found out based on the test message after the cyclic forwarding for one circle;
and the node network transmission equipment setting unit with the maximum bridge MAC address is used for blocking the auxiliary port of the node network transmission equipment with the maximum bridge MAC address so that the auxiliary port can only receive the message with the target MAC address as the test message multicast address.
7. The plug-and-play networking device of claim 6, wherein the sender bridge MAC address adjustment unit comprises:
a sender bridge MAC address holding unit, configured to hold a sender bridge MAC address in a test message sent by the previous node network transmission device to the next node network transmission device unchanged when the sender bridge MAC address in the test message is greater than the bridge MAC address of the current node network transmission device;
a sender bridge MAC address modification unit, configured to modify a sender bridge MAC address in a test message sent by the previous node network transmission device to the next node network transmission device to a bridge MAC address of the current node network transmission device when the sender bridge MAC address in the test message is smaller than the bridge MAC address of the current node network transmission device.
8. The plug-and-play networking device of claim 6 or 7, wherein the device further comprises an all secondary port blocking unit;
the all secondary port blocking unit is used for blocking the secondary ports of a plurality of node network transmission devices of the ring network to enable the secondary ports to only receive the message with the destination MAC address as the test message multicast address before the node network transmission device in the ring network is used as a test message initiator to send the test message to the ring network;
the node network transmission equipment setting unit with the maximum bridge MAC address is used for keeping the secondary port of the node network transmission equipment with the maximum bridge MAC address in a ring network blocked so that the secondary port can only receive the message with the target MAC address as the multicast address of the test message after finding out the node network transmission equipment with the maximum bridge MAC address in the ring network based on the test message circularly forwarded for one turn, and releasing the secondary port of the node network transmission equipment outside the node network transmission equipment with the maximum bridge MAC address in the ring network.
9. The plug-and-play networking device of claim 6 or 7, wherein the device further comprises:
and the first fault repairing unit is used for releasing the secondary port of the blocked node network transmission equipment with the maximum bridge MAC address when the ring network has a link fault or the node network transmission equipment with the non-maximum bridge MAC address in the ring network has a fault, so that the first fault repairing unit can receive messages of other destination MAC addresses except the test message multicast address in the ring network.
10. The plug-and-play networking device of claim 6 or 7, wherein the device further comprises:
the second fault repairing unit comprises a test message initiating unit, a sender bridge MAC address adjusting unit and a node network transmission equipment selecting unit with the second largest bridge MAC address;
the test message initiating unit is used for sending a test message to the ring network by taking the node network transmission equipment in the ring network, of which the secondary port is in network connection with the node network transmission equipment with the maximum bridge MAC address, as a test message initiator when the node network transmission equipment with the maximum bridge MAC address in the ring network fails; the target MAC address in the test message is a test message multicast address, and the sender bridge MAC address in the test message is a bridge MAC address of the test message initiator;
the sender bridge MAC address adjusting unit comprises a sender bridge MAC address extracting unit, a bridge MAC address comparing unit and a sender bridge MAC address modifying unit;
a sender bridge MAC address extracting unit, configured to extract a sender bridge MAC address in the test message after the current node network transmission device monitors the test message sent by the previous node network transmission device;
a bridge MAC address comparison unit, configured to compare a sender bridge MAC address in the test message with a bridge MAC address of the current node network transmission device;
a sender bridge MAC address adjusting unit, configured to use a bridge MAC address larger than the sender bridge MAC address in the test message sent by the current node network transmission device to the next node network transmission device;
and the node network transmission equipment selecting unit with the second largest bridge MAC address is used for monitoring or receiving a test message to find out the node network transmission equipment with the second largest bridge MAC address in the ring network based on the node network transmission equipment with the main port connected with the node network transmission equipment with the largest bridge MAC address when the node network transmission equipment with the largest bridge MAC address in the ring network has a fault.
11. The plug-and-play networking system comprises node network transmission equipment, wherein the node network transmission equipment comprises a microprocessor and a memory, and the microprocessor is connected with the memory through a bus; when the node network transmission equipment is used as the current node network transmission equipment through which the message passes, the secondary port of the node network transmission equipment is used for monitoring and receiving the message sent by the previous node network transmission equipment in the ring network, and the primary port of the node network transmission equipment is used for sending the message to the next node network transmission equipment in the ring network; it is characterized in that the preparation method is characterized in that,
the system further includes a plug-and-play networking device installed in the memory and including one or more software function modules executed by the microprocessor;
the plug-and-play networking device comprises:
a test message initiating unit, configured to send a test message to the ring network by using a node network transmission device in the ring network as a test message initiator; the target MAC address in the test message is a test message multicast address, and the sender bridge MAC address in the test message is a bridge MAC address of the test message initiator;
the sender bridge MAC address comparison and adjustment unit comprises a sender bridge MAC address extraction unit, a bridge MAC address comparison unit and a sender bridge MAC address modification unit;
a sender bridge MAC address extracting unit, configured to extract a sender bridge MAC address in the test message after the current node network transmission device monitors the test message sent by the previous node network transmission device;
a bridge MAC address comparison unit, configured to compare a sender bridge MAC address in the test message with a bridge MAC address of the current node network transmission device;
a sender bridge MAC address adjusting unit, configured to use a bridge MAC address larger than the sender bridge MAC address in the test message sent by the current node network transmission device to the next node network transmission device;
the node network transmission equipment with the maximum bridge MAC address is selected by the unit, and the node network transmission equipment with the maximum bridge MAC address in the ring network is found out based on the test message after the cyclic forwarding for one circle;
and the node network transmission equipment setting unit with the maximum bridge MAC address is used for blocking the auxiliary port of the node network transmission equipment with the maximum bridge MAC address so that the auxiliary port can only receive the message with the target MAC address as the test message multicast address.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610559831.1A CN106209552B (en) | 2016-07-15 | 2016-07-15 | Plug and play network-building method, apparatus and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610559831.1A CN106209552B (en) | 2016-07-15 | 2016-07-15 | Plug and play network-building method, apparatus and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106209552A CN106209552A (en) | 2016-12-07 |
CN106209552B true CN106209552B (en) | 2019-04-30 |
Family
ID=57476128
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610559831.1A Active CN106209552B (en) | 2016-07-15 | 2016-07-15 | Plug and play network-building method, apparatus and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106209552B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106656311A (en) * | 2016-12-15 | 2017-05-10 | 国网山东省电力公司长岛县供电公司 | Data link backup apparatus and method |
CN108768894A (en) * | 2018-04-28 | 2018-11-06 | 江苏中安智信通信科技股份有限公司 | Optimize the switch system of looped network forward-path |
CN111682978A (en) * | 2020-05-21 | 2020-09-18 | 河南理工大学 | Network communication enhancement method and system |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101222402B (en) * | 2008-01-22 | 2011-05-18 | 杭州华三通信技术有限公司 | Ethernet ring protection method, system and device |
CN101741668A (en) * | 2008-11-07 | 2010-06-16 | 益网科技股份有限公司 | Backup method for loop network |
CN101764731B (en) * | 2009-12-09 | 2011-11-30 | 熊伟 | Ethernet ring network algorithm switching method |
CN102158384A (en) * | 2011-01-25 | 2011-08-17 | 武汉迈威光电技术有限公司 | Novel MRing Ethernet ring network protection technology |
CN103297257B (en) * | 2012-02-27 | 2016-10-19 | 北京东土科技股份有限公司 | A kind of implementation method of redundant network |
CN103001799B (en) * | 2012-11-23 | 2015-06-24 | 北京东土科技股份有限公司 | Method and node for achieving redundancy on basis of chain network |
-
2016
- 2016-07-15 CN CN201610559831.1A patent/CN106209552B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN106209552A (en) | 2016-12-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7719956B2 (en) | Trunk network system for multipoint-to-multipoint relay | |
CN108156023B (en) | Time sensitivity network analysis system and method based on redundancy mechanism | |
US20080068985A1 (en) | Network redundancy method and middle switch apparatus | |
CN1992707B (en) | Fast restoration method of multicast service and network apparatus | |
CN102137009B (en) | Method, system and equipment for processing Dual-layer service in network | |
US8274911B2 (en) | Network monitoring system and path extracting method | |
CN103095480B (en) | Method, Network Management Equipment and the head-end system of head-end system active-standby switch | |
CN110087040B (en) | Monitoring video calling method and system | |
EP2672665B1 (en) | Communication system, communication method, and communication device | |
CN109257253B (en) | APP operation monitoring method and device | |
CN106209552B (en) | Plug and play network-building method, apparatus and system | |
CN111447392B (en) | Data transmission method, device, server and computer readable storage medium | |
CN109729388B (en) | Method and device for switching video networking servers | |
CN111200521A (en) | Video networking service recovery method, server, electronic equipment and storage medium | |
CN111614953B (en) | Restarting control method and system for fault IP camera | |
CN101330496B (en) | Method and apparatus for detecting Ethernet multicast loop | |
CN109587002A (en) | A kind of condition detection method and system regarding networking monitoring equipment | |
JP2007158569A (en) | Network fault detecting apparatus | |
CN109889775B (en) | Data timeout processing method and device | |
CN103036724B (en) | State information transmission method, the network equipment and unit equipment | |
CN110690989A (en) | Service data transmission method, device and computer readable storage medium | |
CN101207573B (en) | Relay device and communication-path managing method | |
CN111614480B (en) | Service detection method, device and storage medium | |
CN110166363B (en) | Multicast link monitoring method and device | |
CN111787368A (en) | Server testing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |