CN106209552B - Plug and play networking method, device and system - Google Patents
Plug and play networking method, device 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
- bridge mac
- node network
- 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
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
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 technique
以太环网,简称环网,其是由一组节点网络设备构成环状网络系统。由于每个节点网络设备仅与相邻两个节点网络设备物理连接,因此环网的网络布线投入较少;由于环网中的两个节点网络设备之间能直接或者间接进行网络通信,且报文在环网中传输的最大时间固定,因此环网具有良好的实时性和较高的可靠性。Ethernet ring network, referred to as ring network, is a ring network system composed of a group of node network devices. Since each node network device is only physically connected to 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 communicate directly or indirectly, and The maximum time of text transmission in the ring network is fixed, so the ring network has good real-time performance and high reliability.
环网支持点到点、点到多点、多点到多点等网络通信业务;环网支持单播、组播、广播等多种网络数据通信模式,能有效防止数据的失序和重复。但是,但是广播网络数据通信模式,发送者节点网络设备向环网广播地址发送的一份广播报文会被环网复制传送给所有节点网络设备,广播报文充斥环网,占用大量环网带宽,导致环网性能下降,甚至瘫痪,也即发生广播风暴。Ring network supports point-to-point, point-to-multipoint, multipoint-to-multipoint and other network communication services; ring network supports unicast, multicast, broadcast and other network data communication modes, which can effectively prevent data disorder and duplication. However, in the broadcast network data communication mode, a broadcast message sent by the sender node network device to the ring network broadcast address will be copied and transmitted to all node network devices by the ring network. The broadcast message floods the ring network and occupies a large amount of ring network bandwidth. , resulting in performance degradation of the ring network, or even paralysis, that is, a broadcast storm occurs.
因此,消除环网中的广播风暴,是网络通信技术领域期望解决的技术问题。Therefore, eliminating the broadcast storm in the ring network is a technical problem expected to be solved in the field of network communication technology.
发明内容SUMMARY OF THE INVENTION
本发明的目的在于提供一种能有效避免广播风暴的即插即用组网方法、装置及系统,以利于提高环网的可靠性和稳定性。The purpose of the present invention is to provide a plug-and-play networking method, device and system that can effectively avoid broadcast storms, so as to improve the reliability and stability of the ring network.
为了实现上述目的,本发明实施例采用的技术方案如下:In order to achieve the above purpose, the technical solutions adopted in the embodiments of the present invention are as follows:
第一方面,本发明实施例提供了一种即插即用组网方法,应用于用于构建环网的节点网络传输设备,当节点网络传输设备作为报文通过的当前节点网络传输设备时,其副端口用于监听和接收环网中的前一节点网络传输设备发来的报文,其主端口用于向环网中的后一节点网络传输设备发送报文;该方法包括:In the first aspect, an embodiment of the present invention provides a plug-and-play networking method, which is applied to a node network transmission device used to construct a ring network. When the node network transmission device is used as the current node network transmission device through which a message passes, The secondary port is used to monitor and receive the message sent by the network transmission device of the previous node in the ring network, and the primary port is used to send the message to the network transmission device of the next node in the ring network; the method includes:
以环网中一节点网络传输设备作为测试报文发起者向环网发送测试报文;其中,测试报文中的目的MAC地址为测试报文组播地址,测试报文中的发送者桥MAC地址为测试报文发起者的桥MAC地址;A node network transmission device in the ring network is used as the initiator of the test message to send a test message to the ring network; wherein, the destination MAC address in the test message is the multicast address of the test message, and the sender bridge MAC address in the test message The address is the bridge MAC address of the originator of the test packet;
当前节点网络传输设备监听到前一节点网络传输设备发来的测试报文后,提取测试报文中的发送者桥MAC地址,将其与当前节点网络传输设备的桥MAC地址进行比较,将桥MAC地址大者作为当前节点网络传输设备向后一节点网络传输设备发送的测试报文中的发送者桥MAC地址;After the network transmission device of the current node monitors the test message sent by the network transmission device of the previous node, it extracts the sender's bridge MAC address in the test message, compares it with the bridge MAC address of the network transmission device of the current node, and compares the The larger MAC address is used as the sender bridge MAC address in the test packet sent by the network transmission device of the current node to the network transmission device of the next node;
基于循环转发一圈后的测试报文找出环网中桥MAC地址最大的节点网络传输设备;Find out the node network transmission device with the largest bridge MAC address in the ring network based on the test message after cyclic forwarding one circle;
阻塞桥MAC地址最大的节点网络传输设备的副端口使其仅能接收目的MAC地址为测试报文组播地址的报文。Block the secondary port of the network transmission device of the node with the largest bridge MAC address so that it can only receive packets whose destination MAC address is the multicast address of the test packet.
第二方面,本发明实施例还提供了一种即插即用组网装置,应用于用于构建环网的节点网络传输设备,当节点网络传输设备作为报文通过的当前节点网络传输设备时,其副端口用于监听和接收环网中的前一节点网络传输设备发的报文,其主端口用于向环网中的后一节点网络传输设备发送报文;该装置包括:In the second aspect, an embodiment of the present invention also provides a plug-and-play networking device, which is applied to a node network transmission device used to construct a ring network. When the node network transmission device is used as the current node network transmission device through which the message passes , its secondary port is used to monitor and receive messages sent by the network transmission equipment of the previous node in the ring network, and its primary port is used to send messages to the network transmission equipment of the next node in the ring network; the device includes:
测试报文发起单元,用于以环网中一节点网络传输设备作为测试报文发起者向环网发送测试报文;其中,测试报文中的目的MAC地址为测试报文组播地址,测试报文中的发送者桥MAC地址为测试报文发起者的桥MAC地址;The test message initiating unit is used to send a test message to the ring network with a network transmission device of a node in the ring network as the test message initiator; wherein, the destination MAC address in the test message is the multicast address of the test message, and the test message The sender bridge MAC address in the message is the bridge MAC address of the originator of the test message;
发送者桥MAC地址比对调整单元,发送者桥MAC地址比对调整单元包括发送者桥MAC地址提取单元、桥MAC地址比较单元、发送者桥MAC地址修改单元;The sender bridge MAC address comparison and adjustment unit, the sender bridge MAC address comparison adjustment unit includes a sender bridge MAC address extraction unit, a bridge MAC address comparison unit, and a sender bridge MAC address modification unit;
发送者桥MAC地址提取单元,当前节点网络传输设备监听到前一节点网络传输设备发来的测试报文后,用于提取测试报文中的发送者桥MAC地址;The sender bridge MAC address extraction unit is used to extract the 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;
桥MAC地址比较单元,用于将测试报文中的发送者桥MAC地址与当前节点网络传输设备的桥MAC地址进行比较;a bridge MAC address comparison unit, configured to compare the sender bridge MAC address in the test message with the bridge MAC address of the current node network transmission device;
发送者桥MAC地址调整单元,用于将桥MAC地址大者作为当前节点网络传输设备向后一节点网络传输设备发送的测试报文中的发送者桥MAC地址;The sender bridge MAC address adjustment unit is used to use the bridge MAC address with the larger bridge MAC address as the sender bridge MAC address in the test message sent by the current node network transmission device to the next node network transmission device;
桥MAC地址最大的节点网络传输设备选定单元,基于循环转发一圈后的测试报文找出环网中桥MAC地址最大的节点网络传输设备;Select the unit of the node network transmission device with the largest bridge MAC address, and find out the node network transmission device with the largest bridge MAC address in the ring network based on the test message after cyclic forwarding for one circle;
桥MAC地址最大的节点网络传输设备设置单元,用于阻塞桥MAC地址最大的节点网络传输设备的副端口使其仅能接收目的MAC地址为测试报文组播地址的报文。The node network transmission device setting unit with the largest bridge MAC address is used to block the secondary port of the node network transmission device with the largest bridge MAC address so that it can only receive packets whose destination MAC address is the multicast address of the test packet.
第三方面,本发明实施例还提供了一种即插即用组网系统,包括节点网络传输设备,节点网络传输设备包括微处理器、存储器,微处理器总线连接存储器;多个节点网络传输设备按照环形拓扑顺次网络连接构成的环网,当节点网络传输设备作为报文通过的当前节点网络传输设备时,其副端口用于监听和接收环网中的前一节点网络传输设备发的报文,其主端口用于向环网中的后一节点网络传输设备发送报文;In a third aspect, an embodiment of the present invention also 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 the microprocessor bus connects the memory; multiple node network transmission devices The devices are connected to the ring network in sequence according to the ring topology. When the node network transmission device is used as the current node network transmission device through which the message passes, its secondary port is used to monitor and receive the messages sent by the previous node network transmission device in the ring network. message, whose main port is used to send the message to the network transmission equipment of the next node in the ring network;
该系统还包括即插即用组网装置,即插即用组网装置安装于存储器中并包括一个或多个由微处理器执行的软件功能模块;The system also includes a plug-and-play networking device, the plug-and-play networking device is installed in the memory and includes one or more software function modules executed by the microprocessor;
即插即用组网装置包括:Plug and Play networking devices include:
测试报文发起单元,用于以环网中一节点网络传输设备作为测试报文发起者向环网发送测试报文;其中,测试报文中的目的MAC地址为测试报文组播地址,测试报文中的发送者桥MAC地址为测试报文发起者的桥MAC地址;The test message initiating unit is used to send a test message to the ring network with a network transmission device of a node in the ring network as the test message initiator; wherein, the destination MAC address in the test message is the multicast address of the test message, and the test message The sender bridge MAC address in the message is the bridge MAC address of the originator of the test message;
发送者桥MAC地址比对调整单元,发送者桥MAC地址比对调整单元包括发送者桥MAC地址提取单元、桥MAC地址比较单元、发送者桥MAC地址修改单元;The sender bridge MAC address comparison and adjustment unit, the sender bridge MAC address comparison adjustment unit includes a sender bridge MAC address extraction unit, a bridge MAC address comparison unit, and a sender bridge MAC address modification unit;
发送者桥MAC地址提取单元,当前节点网络传输设备监听到前一节点网络传输设备发来的测试报文后,用于提取测试报文中的发送者桥MAC地址;The sender bridge MAC address extraction unit is used to extract the 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;
桥MAC地址比较单元,用于将测试报文中的发送者桥MAC地址与当前节点网络传输设备的桥MAC地址进行比较;a bridge MAC address comparison unit, configured to compare the sender bridge MAC address in the test message with the bridge MAC address of the current node network transmission device;
发送者桥MAC地址调整单元,用于将桥MAC地址大者作为当前节点网络传输设备向后一节点网络传输设备发送的测试报文中的发送者桥MAC地址;The sender bridge MAC address adjustment unit is used to use the bridge MAC address with the larger bridge MAC address as the sender bridge MAC address in the test message sent by the current node network transmission device to the next node network transmission device;
桥MAC地址最大的节点网络传输设备选定单元,基于循环转发一圈后的测试报文找出环网中桥MAC地址最大的节点网络传输设备;Select the unit of the node network transmission device with the largest bridge MAC address, and find out the node network transmission device with the largest bridge MAC address in the ring network based on the test message after cyclic forwarding for one circle;
桥MAC地址最大的节点网络传输设备设置单元,用于阻塞桥MAC地址最大的节点网络传输设备的副端口使其仅能接收目的MAC地址为测试报文组播地址的报文。The node network transmission device setting unit with the largest bridge MAC address is used to block the secondary port of the node network transmission device with the largest bridge MAC address so that it can only receive packets whose destination MAC address is the multicast address of the test packet.
本发明实施例提供的即插即用组网方法、装置及系统,在测试报文循环转发过程中,测试报文每通过一个当前节点网络传输设备,基于监听到的测试报文中的发送者桥MAC地址与当前节点网络传输设备的桥MAC地址比较结果,将当前节点网络传输设备转发的测试报文中的发送者桥MAC地址修改为桥MAC地址大者,从而使循环转发一圈后的测试报文中的发送者桥MAC地址为环网上桥MAC地址最大的节点网络传输设备的桥MAC地址,通过该桥MAC地址找出上环网上桥MAC地址最大的节点网络传输设备,将MAC地址最大的节点网络传输设备的副端口阻塞使其仅能接收目的MAC地址为测试报文组播地址的报文,其他目的MAC地址的报文被全部丢弃不予转发,从而通过环网逻辑拓扑结构的更改消除环网发生广播风暴的可能。In the plug-and-play networking method, device and system provided by the embodiments of the present invention, in the cyclic forwarding process of the test message, each time the test message passes through a current node network transmission device, based on the sender in the monitored test message The bridge MAC address is compared with the bridge MAC address of the current node's network transmission device, and the sender's bridge MAC address in the test packet forwarded by the current node's network transmission device is modified to the one with the larger bridge MAC address, so that the cyclically forwarded The sender's bridge MAC address in the test packet is the bridge MAC address of the node network transmission device with the largest bridge MAC address on the ring network. Use this bridge MAC address to find the node network transmission device with the largest bridge MAC address on the upper ring network. The secondary port of the largest node network transmission device is blocked so that it can only receive the packets whose destination MAC address is the multicast address of the test packet, and the packets with other destination MAC addresses are all discarded and not forwarded. The change eliminates the possibility of broadcast storms in the ring network.
为使本发明的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below, and are described in detail as follows in conjunction with the accompanying drawings.
附图说明Description of drawings
图1示出了本发明实施例应用环境的结构示意图。FIG. 1 shows a schematic structural diagram of an application environment of an embodiment of the present invention.
图2示出了消除视频监控系统环网广播风暴本发明实施例提供的一种即插即用组网方法的流程图。FIG. 2 shows a flowchart of a plug-and-play networking method provided by an embodiment of the present invention for eliminating broadcast storms in a video surveillance system ring network.
图3示出了视频监控系统环网的网络结构示意图。Figure 3 shows a schematic diagram of the network structure of the video surveillance system ring network.
图4示出了视频监控系统环网出现链路故障的网络结构示意图。FIG. 4 shows a schematic diagram of the network structure of a video surveillance system ring network with a link failure.
图5示出了视频监控系统环网链路故障自愈修复后环网中业务数据流量的走向示意图。FIG. 5 is a schematic diagram showing the trend of service data traffic in the ring network after the fault of the ring network link of the video surveillance system is self-healing and repaired.
图6示出了视频监控系统环网中桥MAC地址最大的节点网络传输设备出现故障的网络结构示意图。FIG. 6 shows a schematic diagram of the network structure in which the node network transmission device with the largest bridge MAC address in the video surveillance system ring network fails.
图7示出了消除视频监控系统环网中桥MAC地址最大的节点网络传输设备出现故障本发明实施例提供的一种即插即用组网方法的流程图。FIG. 7 shows a flowchart of a plug-and-play networking method provided by an embodiment of the present invention for eliminating the failure of the node network transmission device with the largest bridge MAC address in the video surveillance system ring network.
图8示出了本发明实施例提供的一种即插即用组网装置的结构示意图。FIG. 8 shows a schematic structural diagram of a plug-and-play networking device provided by an embodiment of the present invention.
图9示出了发送者桥MAC地址比对调整单元的结构示意图。FIG. 9 shows a schematic structural diagram of the sender bridge MAC address comparison and adjustment unit.
图10示出了发送者桥MAC地址调整单元的结构示意图。FIG. 10 shows a schematic structural diagram of the sender bridge MAC address adjustment unit.
图11示出了本发明实施例提供的一种即插即用组网系统的结构示意图。FIG. 11 shows a schematic structural diagram of a plug-and-play networking system provided by an embodiment of the present invention.
其中,附图标记与部件名称之间的对应关系如下:Among them, the corresponding relationship between reference signs and component names is as follows:
节点网络传输设备100,微处理器1001,存储器1002,主端口1003,副端口1004,第一节点网络传输设备110,第二节点网络传输设备120,第三节点网络传输设备130,第四节点网络传输设备140,第五节点网络传输设备150,终端设备200,网络摄像机210,监控客户端220,电视墙230,即插即用组网装置300,全部副端口阻塞单元310,测试报文发起单元320,发送者桥MAC地址比对调整单元330,发送者桥MAC地址提取单元331,桥MAC地址比较单元332,发送者桥MAC地址调整单元333,发送者桥MAC地址保持单元3331,发送者桥MAC地址修改单元3332,桥MAC地址最大的节点网络传输设备选定单元340,桥MAC地址最大的节点网络传输设备设置单元350,第一故障修复单元360,第二故障修复单元370。Node network transmission device 100, microprocessor 1001, memory 1002, main port 1003, secondary port 1004, first node network transmission device 110, second node network transmission device 120, third node network transmission device 130, fourth node network Transmission equipment 140, fifth node network transmission equipment 150, terminal equipment 200, network camera 210, monitoring client 220, video wall 230, plug and play networking device 300, all secondary port blocking unit 310, test message initiation unit 320, sender bridge MAC address comparison adjustment unit 330, sender bridge MAC address extraction unit 331, bridge MAC address comparison unit 332, sender bridge MAC address adjustment unit 333, sender bridge MAC address retention unit 3331, sender bridge The MAC address modification unit 3332, the node network transmission device selection unit 340 with the largest bridge MAC address, the node network transmission device setting unit 350 with the largest bridge MAC address, the first fault repair unit 360, and the second fault repair unit 370.
具体实施方式Detailed ways
目前,在环网技术领域,主要采用基于以太网故障检测和倒换保护协议为基础发展起来的私有协议消除环网中的广播风暴。倒换保护,是指当工作链路出现故障时上一节点网络传输设备将数据流倒换到保护链路上,或者当主用设备出现故障时,工作设备从主用设备倒换到备用设备。At present, in the field of ring network technology, private protocols developed based on Ethernet fault detection and switching protection protocols are mainly used to eliminate broadcast storms in the ring network. Switchover protection means that when the working link fails, the network transmission device on the previous node switches the data flow to the protection link, or when the active device fails, the working device is switched from the active device to the standby device.
目前用于消除环网中的广播风暴的私有协议主要有,爱立信的ERP,ERP为EthernetRingProtectionSwitching的英文简称,华为和H3C的RRPP,RRPP为RapidRingProtechionProtocol的英文简称,中兴技术的ZESR,ZESR为ZTEEthernetSmartRing的英文简称。其中,RRPP是一个专门应用于以太网环的链路层协议,在以太网环发生广播风暴时,通过断开工作链路,同时将数据流倒换到保护链路上恢复以太网环上各个节点网络传输设备之间的通信链路,从而消除广播风暴。At present, the private protocols used to eliminate broadcast storms in the ring network mainly include Ericsson's ERP, ERP is the English abbreviation of EthernetRingProtectionSwitching, Huawei and H3C's RRPP, RRPP is the English abbreviation of RapidRingProtechionProtocol, ZTE Technology's ZESR, and ZESR is the English abbreviation of ZTEEthernetSmartRing Abbreviation. Among them, RRPP is a link layer protocol specially applied to the Ethernet ring. When a broadcast storm occurs on the Ethernet ring, the working link is disconnected and the data flow is switched to the protection link to restore each node on the Ethernet ring. A communication link between network transmission devices, thereby eliminating broadcast storms.
发明人在实现本发明的过程中发现,采用RRPP消除环网中的广播风暴进行环网组网,技术实施难度高,网络配置比较复杂,网络维护工作量大,环网组网成本高,只能适合于建设预算较高的骨干环网。对于组网预算较低、成本敏感的环网组网,例如安防系统环网组网、工业监测控制系统环网组网、水电气供应通信系统环网组网、网吧系统环网组网、基于机顶盒的有线电视系统环网组网,采用RRPP消除环网中的广播风暴进行环网组网方案可实施性不强。In the process of realizing the present invention, the inventor found that adopting RRPP to eliminate broadcast storms in the ring network for ring network networking has high technical implementation difficulty, complex network configuration, heavy network maintenance workload, and high ring network networking costs. It can be suitable for the backbone ring network with higher budget. For ring network networking with low networking budget and cost-sensitive, such as security system ring network network, industrial monitoring and control system ring network network, water and electricity supply communication system ring network network, Internet bar system ring network network, based on The ring network network of the cable TV system of the set-top box is not implemented by using RRPP to eliminate the broadcast storm in the ring network.
发明人在实现本发明的过程中发现,并非必须采用基于倒换保护协议发展起来的私有协议才能有效消除广播风暴。从理论上讲,如果在环网组网时对环网的逻辑拓扑结构进行更改也能消除环网中的广播风暴。In the process of implementing the present invention, the inventor finds that it is not necessary to adopt a private protocol developed based on the switching protection protocol to effectively eliminate the broadcast storm. Theoretically speaking, if the logical topology of the ring network is changed when the ring network is formed, the broadcast storm in the ring network can also be eliminated.
发明人基于上述认识,提供一种即插即用组网方法、装置及系统。该方法、装置及系统,在环网中选举一节点网络传输设备作为报文转发节点网络传输设备,其只接收发送者节点网络传输设备发送的广播报文,并按照报文广播地址转发报文。Based on the above knowledge, the inventor provides a plug-and-play networking method, device and system. In the method, device and system, a node network transmission device is elected in the ring network as the message forwarding node network transmission device, which only receives the broadcast message sent by the sender node network transmission device, and forwards the message according to the message broadcast address .
该方法可应用于如图1所示的应用环境中。如图1所示,该应用环境为由多个节点网络传输设备100按照环形拓扑顺次网络连接构成的环网,该环网还包括与节点网络传输设备100网络连接的终端设备200。The method can be applied in the application environment shown in FIG. 1 . As shown in FIG. 1 , the application environment is a ring network composed of multiple node network transmission devices 100 connected sequentially according to a ring topology, and the ring network also includes terminal devices 200 networked with 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 connections, a wired ring network formed by at least one wired connection among coaxial cables, twisted pairs, and optical fibers, or a wireless ring network. Connections and wired connections work together to form a ring network.
于本发明实施例中,节点网络传输设备100可以是路由器、网络交换机中的至少一种,节点网络传输设备100具有主端口和副端口。In this 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.
于本发明实施例中,终端设备200,为具有网络通信功能的设备。终端设备200可以是服务器、工控计算机、工作站、客户端、网络输入设备、网络输出设备中的至少一种。其中,In this 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. in,
服务器可以是文件服务器、管理服务器、数据库服务器、应用程序服务器、WEB服务器中的一种。The server can be one of a file server, a management server, a database server, an application server, and a WEB server.
工控计算机,为用于工业过程控制的计算机。Industrial computer is a computer used for industrial process control.
工作站,为相较于个人计算机具有更强信息、图形、图像、视频处理能力的计算机。A workstation is a computer with stronger information, graphics, image, and video processing capabilities than a personal computer.
客户端可以是有盘客户端也可以是无盘客户端;The client can be a disk client or a diskless client;
网络输入设备,可以是具有网络功能的数据采集设备,例如网络摄像机、网络传感器、网络录音设备、网络扫描仪、网络电话机;也可以是包括上位机和数据采集设备数据采集系统。The network input device can be a data acquisition device with network functions, such as a network camera, a network sensor, a network recording device, a network scanner, and a network telephone; it can also be a data acquisition system including a host computer and a data acquisition device.
网络输出设备,可以是网络显示装置、也可以是网络硬盘录像机,还可以是网络打印输出设备,例如网络打印机。The network output device may be a network display device, a network hard disk video recorder, or a network print output device, such as a network printer.
下面将结合实际应用,参照本发明实施例附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。In the following, the technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. .
第一实施例first embodiment
所述第一实施例以安防监控系统环网组网时从机制上消除环网产生广播风暴可能为例,对本发明的即插即用组网方法进行说明。In the first embodiment, the plug-and-play networking method of the present invention is described by taking the mechanism to eliminate the possibility of broadcast storms generated by the ring network during the ring network networking of the security monitoring system as an example.
安防监控系统网络包括视频监控系统网络和门禁系统网络。安防监控系统网络的节点网络传输设备包括设置在管理中心的节点网络传输设备和设置在安防区段的节点网络传输设备,设置在管理中心的节点网络传输设备网络连接有监控客户端、视频显示装置,设置在安防区段的节点网络传输设备网络连接有网络输入设备,例如网络摄像机、门禁设备。对于安防监控系统来说管理中心还设置有视频数据处理装置,例如网络硬盘录像机、视频服务器,相应地,设置在管理中心的节点网络传输设备与视频数据处理装置网络连接,视频数据处理装置与监控客户端、视频显示装置分别网络连接。上述网络摄像机,英文全称IPCamera,英文简称I PC,为用于视频监控具有网络通信功能的摄像机。Security surveillance system network includes video surveillance system network and access control system network. The node network transmission equipment of the security monitoring system network includes the node network transmission equipment set in the management center and the node network transmission equipment set in the security section. The node network transmission equipment set in the management center is connected to a monitoring client and a video display device. , The node network transmission equipment set in the security section is connected with network input equipment, such as network cameras and access control equipment. For the security monitoring system, the management center is also provided with video data processing devices, such as network hard disk recorders and video servers. Correspondingly, the node network transmission equipment set in the management center is connected to the video data processing device network, and the video data processing device is connected to the monitoring device. The client and the video display device are respectively connected to the network. The above-mentioned network camera, the English full name IPCamera, the English abbreviation I PC, is a camera with network communication function used for video surveillance.
相较于门禁系统网络,安防监控系统网络的业务数据流量更大,对网络的稳定性和可靠性要求更高,因此,本发明第一实施例以视频监控系统环网组网对本发明的即插即用组网方法进行说明,但需要说明的是本发明第一实施例提供的即插即用组网方法,同样适用于门禁系统环网组网。Compared with the access control system network, the business data flow of the security monitoring system network is larger, and the stability and reliability of the network are required to be higher. Therefore, in the first embodiment of the present invention, the video monitoring system ring network network is used. The plug-and-play networking method is described, but it should be noted that the plug-and-play networking method provided by the first embodiment of the present invention is also applicable to the ring network networking of the access control system.
图2示出了消除视频监控系统环网广播风暴本发明实施例提供的一种即插即用组网方法的流程图。请参阅图2所示,该方法,应用于用于构建环网的节点网络传输设备,当节点网络传输设备作为报文通过的当前节点网络传输设备时,其副端口用于监听和接收环网中的前一节点网络传输设备发来的报文,其主端口用于向环网中的后一节点网络传输设备发送报文;该方法包括:FIG. 2 shows a flowchart of a plug-and-play networking method provided by an embodiment of the present invention for eliminating broadcast storms in a video surveillance system ring network. Please refer to Fig. 2. This method is applied to a node network transmission device for constructing a ring network. When the node network transmission device is used as the current node network transmission device through which the message passes, its secondary port is used to monitor and receive the ring network. The main port of the message sent by the network transmission device of the previous node in the ring network is used to send the message to the network transmission device of the next node in the ring network; the method includes:
S110,以环网中一节点网络传输设备作为测试报文发起者向环网发送测试报文;其中,测试报文中的目的MAC地址为测试报文组播地址,测试报文中的发送者桥MAC地址为测试报文发起者的桥MAC地址;S110, use a node network transmission device in the ring network as the initiator of the test packet to send a test packet to the ring network; wherein, the destination MAC address in the test packet is the multicast address of the test packet, and the sender in the test packet Bridge MAC address is the bridge MAC address of the originator of the test packet;
在本发明第一实施例中,环网中的任一节点网络传输设备均可作为测试报文发起者,本发明实施例不对选择哪一台节点网络传输设备作为测试报文发起者做限定。节点网络传输设备作为测试报文发起者向环网发送测试报文,可以在预设的时间点自动进行,例如在节点网络传输设备上电时自动进行,也可在环网维护时间段内进行。本发明实施例不对测试报文发起者向环网发送测试报文的时间点做限定。In the first embodiment of the present invention, any node network transmission device in the ring network can be used as the test message initiator, and the embodiment of the present invention does not limit which node network transmission device is selected as the test message initiator. The node network transmission device, as the initiator of the test message, sends a test message to the ring network, which can be done automatically at a preset time point, for example, when the node network transmission device is powered on, or it can be done during the maintenance period of the ring network. . This embodiment of the present invention does not limit the time point at which the test message initiator sends the test message to the ring network.
在本发明第一实施例中,测试报文为协议报文,报文类型可以是通用类型,也可以是自定义类型。测试报文中的源MAC地址为测试报文发起者的桥MAC地址,测试报文中的目的MAC地址为测试报文组播地址,例如0180-C200-1234,测试报文中的发送者桥MAC地址为测试报文发起者的桥MAC地址;在安防领域,安防区段及安防区段的监控业务确定后,安防监控系统环网的拓扑结构、业务流数据传输路径及传输方式也就确定,相应的报文组播地址也就确定,因此,测试报文组播地址通常采用实际应用中的报文组播地址,当然测试报文组播地址可以不采用实际应用中的报文组播地址。In the first embodiment of the present invention, the test message is a protocol message, and the message type may be a general type or a self-defined type. The source MAC address in the test packet is the bridge MAC address of the initiator of the test packet, and the destination MAC address in the test packet is the multicast address of the test packet, such as 0180-C200-1234, the sender bridge in the test packet The MAC address is the bridge MAC address of the initiator of the test message; in the security field, after the security section and the monitoring service of the security section are determined, the topology structure of the security monitoring system ring network, service flow data transmission path and transmission method are also determined. , the corresponding packet multicast address is also determined. Therefore, the test packet multicast address usually adopts the packet multicast address in practical applications. Of course, the test packet multicast address may not use the packet multicast address in practical applications. address.
在本发明第一实施例中,测试报文发起者通过其主端口向环网发送测试报文,是指测试报文发起者通过其主端口向环网上物理拓扑结构上位于其后的后一节点网络传输设备发送测试报文。测试报文发起者的副端口用于监听和接收循环转发回来的测试报文。In the first embodiment of the present invention, the initiator of the test packet sends the test packet to the ring network through its main port, which means that the initiator of the test packet sends the test packet through its main port to the next device located behind it in the physical topology of the ring network. The node network transmission equipment sends the test message. The secondary port of the test packet initiator is used to monitor and receive test packets forwarded cyclically.
S120,当前节点网络传输设备监听到前一节点网络传输设备发来的测试报文后,提取测试报文中的发送者桥MAC地址,将其与当前节点网络传输设备的桥MAC地址进行比较,将桥MAC地址大者作为当前节点网络传输设备向后一节点网络传输设备发送的测试报文中的发送者桥MAC地址;S120, after the current node network transmission device monitors the test packet sent by the previous node network transmission device, extracts the sender bridge MAC address in the test packet, and compares it with the bridge MAC address of the current node network transmission device, Use the bridge MAC address with the larger one as the sender bridge MAC address in the test packet sent by the network transmission device of the current node to the network transmission device of the next node;
在本发明第一实施例中,测试报文发起者向环网发送的测试报文,在环网上按照节点网络传输设备在物理拓扑结构上的顺序被节点网络传输设备顺次转发,测试报文通过的当前节点网络传输设备,监听到前一节点网络传输设备发来的测试报文后,提取测试报文中的发送者桥MAC地址,将其与当前节点网络传输设备的桥MAC地址进行比较,将桥MAC地址大者作为当前节点网络传输设备向后一节点网络传输设备发送的测试报文中的发送者桥MAC地址。In the first embodiment of the present invention, the test packet sent by the test packet initiator to the ring network is forwarded by the node network transmission equipment in the order of the node network transmission equipment in the physical topology structure on the ring network. The passing current node network transmission device, after monitoring the test message sent by the previous node network transmission device, extracts the sender bridge MAC address in the test message, and compares it with the bridge MAC address of the current node network transmission device , the bridge MAC address with the larger bridge MAC address is used as the sender bridge MAC address in the test packet sent by the network transmission device of the current node to the network transmission device of the next node.
其中,将桥MAC地址大者作为当前节点网络传输设备向后一节点网络传输设备发送的测试报文中的发送者桥MAC地址的步骤包括:Wherein, the step of using the larger bridge MAC address as the sender bridge MAC address in the test message sent by the current node network transmission device to the next node network transmission device includes:
当前一节点网络传输设备发来的测试报文中的发送者桥MAC地址大于当前节点网络传输设备的桥MAC地址时,将当前节点网络传输设备向后一节点网络传输设备发送的测试报文中的发送者桥MAC地址保持不变;When the sender's bridge MAC address in the test packet sent by the network transmission device of the previous node is greater than the bridge MAC address of the network transmission device of the current node, the test packet sent by the network transmission device of the current node to the network transmission device of the next node is included in the test packet. The sender bridge MAC address remains unchanged;
当前一节点网络传输设备发来的测试报文中的发送者桥MAC地址小于当前节点网络传输设备的桥MAC地址时,将当前节点网络传输设备向后一节点网络传输设备发送的测试报文中的发送者桥MAC地址修改为当前节点网络传输设备的桥MAC地址。When the sender's bridge MAC address in the test packet sent by the network transmission device of the previous node is smaller than the bridge MAC address of the network transmission device of the current node, the test packet sent by the network transmission device of the current node to the network transmission device of the next node is included in the test packet. The sender bridge MAC address is modified to the bridge MAC address of the network transmission device of the current node.
当测试报文在环网上循环转发一圈后,测试报文可被测试报文发起者或者测试报文发起者后面的节点网络交换设备的副端口监听和接收。After the test packet is cyclically forwarded on the ring network, the test packet can be monitored and received by the test packet initiator or the secondary port of the network switching device of the node behind the test packet initiator.
在本发明第一实施例中,测试报文每通过一个节点网络传输设备,将监听到测试报文中的发送者桥MAC地址,与该节点网络传输设备的桥MAC地址进行比较,将测试报文中的发送者桥MAC地址替换成桥MAC地址大者,因此,测试报文在环网上循环转发的过程是,也是测试桥MAC地址最大者寻找的过程。In the first embodiment of the present invention, each time the test packet passes through a node network transmission device, the sender bridge MAC address in the test packet is monitored, and the bridge MAC address of the node network transmission device is compared, and the test packet is compared with the bridge MAC address of the node network transmission device. The sender's bridge MAC address in the text is replaced with the one with the larger bridge MAC address. Therefore, the process of cyclically forwarding test packets on the ring network is also the process of finding the test bridge with the largest MAC address.
S130,基于循环转发一圈后的测试报文找出环网中桥MAC地址最大的节点网络传输设备;S130: Find out the node network transmission device with the largest bridge MAC address in the ring network based on the test message after cyclic forwarding for one circle;
在本发明第一实施例中,获得循环转发一圈后的测试报文,可以从测试报文发起者处获得,也可以从测试报文发起者后面的节点网络交换设备获得,本发明实施例不对从哪一台节点网络交换设备获得循环转发一圈后的测试报文做限定。In the first embodiment of the present invention, the test packet after cyclic forwarding can be obtained from the initiator of the test packet, or from the node network switching device behind the initiator of the test packet. This embodiment of the present invention There is no restriction on which node network switching device obtains the test packet after cyclic forwarding for one circle.
在本发明第一实施例中,循环转发一圈后的测试报文中的发送者桥MAC地址为环网上桥MAC地址最大者,该桥MAC地址最大者对应的节点网络传输设备为环网上桥MAC地址最大的节点网络传输设备。In the first embodiment of the present invention, the sender bridge MAC address in the test packet after cyclic forwarding is the one with the largest bridge MAC address on the ring network, and the node network transmission device corresponding to the bridge with the largest MAC address is the ring network bridge The node network transmission device with the largest MAC address.
在本发明第一实施例中,从测试报文发起者向环网发送测试报文到桥MAC地址最大的节点网络传输设备的确定在1毫秒到20毫秒内完成,远快于倒换保护的50毫秒。In the first embodiment of the present invention, the determination from the test message initiator sending the test message 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 the 50 milliseconds of the switching protection. millisecond.
S140,阻塞桥MAC地址最大的节点网络传输设备的副端口使其仅能接收目的MAC地址为测试报文组播地址的报文。S140, block the secondary port of the node network transmission device with the largest bridge MAC address so that it can only receive the message whose destination MAC address is the multicast address of the test message.
在本发明第一实施例中,阻塞桥MAC地址最大的节点网络传输设备的副端口使其仅能接收目的MAC地址为测试报文组播地址的报文,其他目的MAC地址的报文被全部丢弃不予转发,也即通过环网逻辑拓扑结构的更改消除环网发生广播风暴的可能。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 it can only receive the packets whose destination MAC address is the multicast address of the test packet, and the packets with other destination MAC addresses are all blocked. Discard and do not forward, that is, eliminate the possibility of broadcast storms in the ring network by changing the logical topology of the ring network.
在本发明第一实施例中,通常测试报文组播地址为实际应用中的报文组播地址,如果测试报文组播地址不是实际应用中的报文组播地址,那么将步骤S140中的测试报文组播地址修改为实际应用中的报文组播地址。In the first embodiment of the present invention, usually the multicast address of the test packet is the multicast address of the packet in the actual application. If the multicast address of the test packet is not the multicast address of the packet in the actual application, then in step S140 The multicast address of the test packet is changed to the multicast address of the actual application.
在本发明第一实施例中,MAC地址最大的节点网络传输设备可以作为广播报文转发的节点网络传输设备,也可以作为组播报文转发的节点网络传输设备,不论哪种情况均能有效消除环网发生广播风暴的可能。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, or it can be used as a node network transmission device for multicast message forwarding. Eliminate the possibility of broadcast storms in the ring network.
为了提高测试报文转发效率,在更短时间内得到环网的网络拓扑,进一步的方案是,In order to improve the test packet forwarding efficiency and obtain the network topology of the ring network in a shorter time, a further solution is:
在步骤S110前,将环网的多个节点网络传输设备的副端口阻塞使其仅能接收目的MAC地址为测试报文组播地址的报文;相应地,Before step S110, block the secondary ports of the network transmission devices of multiple nodes in the ring network so that they can only receive the messages whose destination MAC address is the multicast address of the test message; accordingly,
阻塞桥MAC地址最大的节点网络传输设备的副端口使其仅能接收目的MAC地址为测试报文组播地址的报文的步骤为:The steps to block the secondary port of the network transmission device of the node with the largest bridge MAC address so that it can only receive the packets whose destination MAC address is the multicast address of the test packet are as follows:
维持阻塞所述桥MAC地址最大的节点网络传输设备的所述副端口使其仅能接收所述目的MAC地址为所述测试报文组播地址的报文,并将环网中桥MAC地址最大的节点网络传输设备外的节点网络传输设备的副端口放开。Maintain and block the secondary port of the node network transmission device with the maximum bridge MAC address so that it can only receive the message whose destination MAC address is the multicast address of the test message, and set the maximum bridge MAC address in the ring network. The secondary port of the node network transmission device outside the node network transmission device is released.
由于环网中的多个节点网络传输设备的副端口被阻塞,阻塞后的副端口仅能接收目的MAC地址为测试报文组播地址的报文,因此,环网中转发的报文数量大幅降低,每个当前节点网络传输设备仅监听和处理测试报文,也就大幅缩短环网网络拓扑的获得时间,提高环网的组网效率。Since the secondary ports of the network transmission devices of multiple nodes in the ring network are blocked, the blocked secondary ports can only receive packets whose destination MAC address is the multicast address of the test packet. Therefore, the number of packets forwarded in the ring network is greatly increased. The network transmission equipment of each current node only monitors and processes test packets, which greatly shortens the time for obtaining the ring network topology and improves the networking efficiency of the ring network.
本发明第一实施例提供的即插即用组网方法,在测试报文循环转发过程中,测试报文每通过一个当前节点网络传输设备,基于监听到的测试报文中的发送者桥MAC地址与当前节点网络传输设备的桥MAC地址比较结果,将当前节点网络传输设备转发的测试报文中的发送者桥MAC地址修改为桥MAC地址大者,从而使循环转发一圈后的测试报文中的发送者桥MAC地址为环网上桥MAC地址最大的节点网络传输设备的桥MAC地址,通过该桥MAC地址找出上环网上桥MAC地址最大的节点网络传输设备,将MAC地址最大的节点网络传输设备的副端口阻塞使其仅能接收目的MAC地址为测试报文组播地址的报文,其他目的MAC地址的报文被全部丢弃不予转发,从而通过环网逻辑拓扑结构的更改消除环网发生广播风暴的可能。In the plug-and-play networking method provided by the first embodiment of the present invention, in the cyclic forwarding process of the test message, each time the test message passes through a current node network transmission device, based on the sender bridge MAC in the monitored test message The address is compared with the bridge MAC address of the network transmission device of the current node, and the bridge MAC address of the sender in the test packet forwarded by the network transmission device of the current node is changed to the one with the larger bridge MAC address, so that the test packet after a circle is forwarded cyclically. The sender's bridge MAC address in the text is the bridge MAC address of the node network transmission device with the largest bridge MAC address on the ring network, and the bridge MAC address is used to find the node network transmission device with the largest bridge MAC address on the upper ring network. The secondary port of the node network transmission device is blocked so that it can only receive the packets whose destination MAC address is the multicast address of the test packet, and the packets with other destination MAC addresses are all discarded and not forwarded. Eliminate the possibility of broadcast storms in the ring network.
基于网络结构及业务数据的相同或者相近,本发明第一实施例提供的即插即用组网方法,不局限于安防系统环网组网,也适用于工业监测控制系统、水电气供应通信系统、网吧系统环网组网,还适用于基于机顶盒的有线电视系统环网组网,例如视频点播系统环网组网。Based on the same or similar network structure and business data, the plug-and-play networking method provided by the first embodiment of the present invention is not limited to the ring network networking of security systems, but is also applicable to industrial monitoring and control systems, water and electricity supply communication systems , Internet bar system ring network network, but also suitable for set-top box-based cable TV system ring network network, such as video-on-demand system ring network network.
第二实施例Second Embodiment
所述第二实施例以安防监控系统环网运行时出现链路故障为例,对本发明的即插即用组网方法进行说明。In the second embodiment, the plug-and-play networking method of the present invention is described by taking a link failure during the operation of the security monitoring system ring network as an example.
与本发明第一实施例一样,本发明第二实施例的安防监控系统环网是由多个节点网络传输设备顺次网络连接构成的环网,多个节点网络传输设备的主端口用于向环网发送报文,副端口用于监听和接收环网中的报文。需要说明的是,本发明第二实施例的安防监控系统环网,在环网组网时就通过阻塞桥MAC地址最大的节点网络传输设备的副端口使其仅能接收目的MAC地址为测试报文组播地址的报文,从机制上消除安防监控系统环网产生广播风暴的可能。Like the first embodiment of the present invention, the ring network of the security monitoring system according to the second embodiment of the present invention is a ring network composed of multiple node network transmission devices connected in sequence, and the main ports of the multiple node network transmission devices are used for The ring network sends packets, and the secondary port is used to monitor and receive packets 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 formed, the secondary port of the node network transmission device with the largest bridge MAC address is blocked so that it can only receive the destination MAC address as the test report. The message of the multicast address is eliminated from the mechanism of the possibility of broadcast storms in the ring network of the security monitoring system.
安防监控系统环网运行时出现链路故障,是指安防监控系统环网投入使用时,环网中两个节点网络传输设备之间的通信链路中断。A link failure occurs during the operation of the security monitoring system ring network, which means that when the security monitoring system ring network is put into use, the communication link between the network transmission devices of the two nodes in the ring network is interrupted.
为了便于清楚理解环网运行时出现链路故障的技术问题,及便于清楚阐述本发明第二实施例的技术方案,与本发明第一实施例一样,在本发明第二实施例中,同样以视频监控系统环网为例对本发明的即插即用组网方法进行说明。In order to facilitate a clear understanding of the technical problem of link failure during ring network operation, and to clearly describe the technical solution of the second embodiment of the present invention, as in the first embodiment of the present invention, in the second embodiment of the present invention, the same The plug-and-play networking method of the present invention is described by taking the ring network of the video surveillance system as an example.
同时,为了降低本发明第二实施例的技术方案的理解难度,在本发明第二实施例中,假定管理中心的数量为一个,监控区段的数量为四个。但需要说明的是,本发明第二实施例不局限于管理中心的数量为一个,监控区段的数量为四个的情况,本发明第二实施例不对管理中心和监控区段的数量作限定。Meanwhile, in order to reduce the difficulty of 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 management centers is one and the number of 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 management centers is one and the number of monitoring sections is four, and the second embodiment of the present invention does not limit the number of management centers and monitoring sections .
图3示出了视频监控系统环网的网络结构示意图。请参阅图3所示,在管理中心设置一个节点网络传输设备,将其定义为第一节点网络传输设备110,在四个监控区段分别设置一个节点网络传输设备,分别定义为第二节点网络传输设备120、第三节点网络传输设备130、第四节点网络传输设备140、第五节点网络传输设备150。第一节点网络传输设备110、第二节点网络传输设备120、第三节点网络传输设备130、第四节点网络传输设备140、第五节点网络传输设备150按照环形拓扑顺次网络连接构成的物理环网。Figure 3 shows a schematic diagram of the network structure of the video surveillance system ring network. Referring to FIG. 3, a node network transmission device is set in the management center, which is defined as the first node network transmission device 110, and a node network transmission device is set in each of the four monitoring sections, which are respectively defined as the second node network. The 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 . 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 connected to a physical ring in sequence according to a ring topology. network.
其中,第二节点网络传输设备120、第三节点网络传输设备130、第四节点网络传输设备140、第五节点网络传输设备150分别连接有网络摄像机210,网络摄像机210用于实时采集网络摄像机210所在监控区段的现场视频图像,网络摄像机210录制得到的现场视频图像数据流传输给对应的节点网络传输设备,对应的节点网络传输设备通过物流环网传递给第一节点网络传输设备110。The network transmission device 120 of the second node, the network transmission device 130 of the third node, the network transmission device 140 of the fourth node, and the network transmission device 150 of the fifth node are respectively connected with a network camera 210, and the network camera 210 is used to collect the network camera 210 in real time. The live video image of the monitoring section, the 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 is transmitted to the first node network transmission device 110 through the logistics ring network.
第一节点网络传输设备110网络连接有监控客户端220和电视墙230,通过监控客户端220或者电视墙230实时将多路网路摄像机录制的现场视频图像显示出来。A monitoring client 220 and a video wall 230 are connected to the network transmission device 110 of the first node, and the live video images recorded by the multi-channel network cameras are displayed in real time through the monitoring client 220 or the video wall 230 .
图4示出了视频监控系统环网出现链路故障的网络结构示意图。请参阅图4所示,在该视频监控系统环网组网时,已经根据第二节点网络传输设备120为MAC地址最大的节点网络传输设备对该视频监控系统环网的逻辑拓扑结构进行更改,也即阻塞桥第二节点网络传输设备120的副端口使其仅能接收目的MAC地址为测试报文组播地址的报文。该视频监控系统环网投入使用时测试报文组播地址也即是报文组播地址。FIG. 4 shows a schematic diagram of the network structure of a video surveillance system ring network with a link failure. Please refer to FIG. 4 , when the video surveillance system ring network is networked, the logical topology of the video surveillance system ring network has been changed according to the second node network transmission device 120 being the node network transmission device with the largest MAC address, That is, the secondary port of the network transmission device 120 of the second node of the bridge is blocked so that it can only receive the message whose destination MAC address is the multicast address of the test message. When the video surveillance system ring network is put into use, the test message multicast address is also the message multicast address.
该视频监控系统环网投入使用运行一段时间后,第四节点网络传输设备140与第五节点网络传输设备150之间网络通信链路中断,这时从第二节点网络传输设备120的主端口发出的目的MAC地址为报文组播地址的报文,无法到达第二节点网络传输设备120的副端口,也即该视频监控系统环网的完整性出现问题。After the ring network of the video surveillance system is put into operation for a period of time, the network communication link between the network transmission device 140 of the fourth node and the network transmission device 150 of the fifth node is interrupted. The message whose destination MAC address is the message multicast address cannot reach the secondary port of the second node network transmission device 120, that is, the integrity of the video surveillance system ring network has problems.
针对视频监控系统环网出现链路故障的情况,本发明第二实施例在本发明第一实施例的基础上提供一种即插即用组网方法。当环网出现链路故障时,该方法在本发明第一实施例的基础上还包括步骤:Aiming at the situation that a link failure occurs in the ring network of the video surveillance system, the second embodiment of the present invention provides a plug-and-play networking method on the basis of the first embodiment of the present invention. When a link failure occurs in the ring network, the method further includes the steps on the basis of the first embodiment of the present invention:
将被阻塞的桥MAC地址最大的节点网络传输设备的副端口放开,使其能接收环网中测试报文组播地址外的其他目的MAC地址的报文。Release the secondary port of the network transmission device of the node with the largest bridge MAC address that is blocked so that it can receive packets with destination MAC addresses other than the test packet multicast address in the ring network.
图5示出了视频监控系统环网链路故障自愈修复后环网中业务数据流量的走向示意图。请参照图5所示,第二节点网络传输设备120被阻塞的副端口放开后,链路故障一端的第四节点网络传输设备140发送的视频流业务数据报文顺次经第三节点网络传输设备130、第二节点网络传输设备120转发给第一节点网络传输设备110,第一节点网络传输设备110再将视频流业务数据报文转发给监控客户端220和电视显示墙,监控客户端220和电视显示墙实时显示监控视频图像。FIG. 5 is a schematic diagram showing the trend of service data traffic in the ring network after the fault of the ring network link of the video surveillance system is self-healing and repaired. Referring to FIG. 5 , after the blocked secondary port of the network transmission device 120 of the second node is released, the video stream service data packet sent by the network transmission device 140 of the fourth node at the end of the link failure passes through the network of the third node in sequence. The transmission device 130 and the second node network transmission device 120 forward to the first node network transmission device 110, and the first node network transmission device 110 then forwards the video stream service data packet to the monitoring client 220 and the TV display wall, and the monitoring client 220 and the TV display wall display surveillance video images in real time.
链路故障另一端的第五节点网络传输设备150发送的视频流业务数据报文转发给第一节点网络传输设备110,第一节点网络传输设备110再将视频流业务数据报文转发给监控客户端220和电视显示墙,监控客户端220和电视显示墙实时显示监控视频图像。The video stream 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, and the first node network transmission device 110 then forwards the video stream service data packet to the monitoring client The terminal 220 and the TV display wall, the monitoring client 220 and the TV display wall display the monitoring video images in real time.
同样,第三节点网络传输设备130、第二节点网络传输设备120接收到的网络摄像机210的视频流业务数据,也能以报文的形式转发给第一节点网络传输设备110,监控客户端220和电视显示墙实时显示与第三节点网络传输设备130、第二节点网络传输设备120对应的网络摄像机210录制的监控视频图像。Similarly, the video stream service data of the network camera 210 received by the network transmission device 130 of the third node and the network transmission device 120 of the second node can also be forwarded to the network transmission device 110 of the first node in the form of packets, and the monitoring client 220 The monitoring video images recorded by the network cameras 210 corresponding to the network transmission device 130 of the third node and the network transmission device 120 of the second node are displayed in real time on the TV display wall.
本发明第二实施例提供的即插即用组网方法,在视频监控系统环网出现链路故障时,将被阻塞的桥MAC地址最大的节点网络传输设备的副端口放开使其能接收环网中目的MAC地址为测试报文组播地址外的其他报文,从而在不对链路进行物理修复的情况下,通过环网逻辑拓扑结构的修改,实现视频监控系统环网链路故障的自愈式修复。In the plug-and-play networking method provided by the second embodiment of the present invention, when a link failure occurs in the video surveillance system ring network, the secondary port of the node network transmission device with the largest bridge MAC address that is blocked is released so that it can receive The destination MAC address in the ring network is other than the multicast address of the test packet, so that without physically repairing the link, by modifying the logical topology of the ring network, the link failure of the video surveillance system ring network can be realized. Self-healing repair.
基于网络结构及业务数据的相同或者相近,本发明第二实施例提供的即插即用组网方法,不局限于安防系统环网组网,也适用于工业监测控制系统、水电气供应通信系统、网吧系统环网组网,还适用于基于机顶盒的有线电视系统环网组网,例如视频点播系统环网组网。Based on the same or similar network structure and business data, the plug-and-play networking method provided by the second embodiment of the present invention is not limited to the ring network networking of security systems, but is also applicable to industrial monitoring and control systems, water and electricity supply communication systems , Internet bar system ring network network, but also suitable for set-top box-based cable TV system ring network network, such as video-on-demand system ring network network.
第三实施例Third Embodiment
所述第三实施例以安防监控系统环网运行时出现节点网络传输设备故障为例,对本发明的即插即用组网方法进行说明。In the third embodiment, the plug-and-play networking method of the present invention is described by taking the failure of the node network transmission equipment during the operation of the security monitoring system ring network as an example.
与本发明第一实施例和本发明第二实施例一样,本发明第三实施例的安防监控系统环网是由多个节点网络传输设备顺次网络连接构成的环网,多个节点网络传输设备的主端口用于向环网发送报文,副端口用于监听和接收环网中的报文。需要说明的是,本发明第三实施例的安防监控系统环网,在环网组网时就通过阻塞桥MAC地址最大的节点网络传输设备的副端口使其仅能接收目的MAC地址为测试报文组播地址的报文,从机制上消除安防监控系统环网产生广播风暴的可能。Like the first embodiment of the present invention and the second embodiment of the present invention, the ring network of the security monitoring system according to the third embodiment of the present invention is a ring network composed of multiple node network transmission devices connected in sequence, and the multiple node network transmission The primary port of the device is used to send packets to the ring network, and the secondary port is used to monitor and receive packets 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 formed, the secondary port of the node network transmission device with the largest bridge MAC address is blocked so that it can only receive the destination MAC address as the test report. The message of the multicast address is eliminated from the mechanism of the possibility of broadcast storms in the ring network of the security monitoring system.
安防监控系统环网运行时出现节点网络传输设备故障,是指安防监控系统环网投入使用时,环网中的节点网络传输设备出现故障,无法实现报文监听接收和/或报文转发。节点网络传输设备故障,包括环网中桥MAC地址最大的节点网络传输设备出现故障及桥MAC地址非最大的节点网络传输设备出现故障。The failure of the node network transmission equipment during the operation of the security monitoring system ring network means that when the security monitoring system ring network is put into use, the node network transmission equipment in the ring network fails, and the message monitoring reception and/or message forwarding cannot be realized. The failure of the node network transmission equipment includes the failure of the node network transmission device with the largest bridge MAC address in the ring network and the failure of the node network transmission device with the non-maximum bridge MAC address.
为了便于清楚理解环网运行时出现节点网络传输设备故障的技术问题,及便于清楚阐述本发明第三实施例的技术方案,与本发明第一实施例、本发明第二实施例一样,在本发明第三实施例中同样以视频监控系统环网为例对本发明的即插即用组网方法进行说明。In order to facilitate a clear understanding of the technical problem of the failure of the node network transmission equipment during the operation of the ring network, and to clearly describe the technical solution of the third embodiment of the present invention, the same as the first embodiment of the present invention and the second embodiment of the present invention, in the present invention In the third embodiment of the present invention, the plug-and-play networking method of the present invention is also described by taking a video surveillance system ring network as an example.
同时,为了降低本发明第三实施例的技术方案的理解难度,本发明第三实施例的视频监控系统环网与本发明第二实施例的视频监控系统环网在网络结构上一样。At the same time, in order to reduce the difficulty of understanding the technical solution of the third embodiment of the present invention, the video surveillance system ring network of the third embodiment of the present invention has the same network structure as the video surveillance system ring network of the second embodiment of the present invention.
如果节点网络传输设备故障为桥MAC地址非最大的节点网络传输设备出现故障,这时节点网络传输设备故障所带来的效果是与本发明第二实施例中的环网视频监控系统出现链路故障的效果一样,相应地,针对MAC地址非最大的节点网络传输设备出现故障,本发明第三实施例提供的即用自愈组网方法与本发明第二实施例提供的即用自愈组网方法相同,为描述的方便和简洁,具体实现过程可参照本发明第二实施例提供的即用自愈组网方法的具体描述,在此不再一一赘述。If the failure of the node network transmission equipment is the failure of the node network transmission equipment whose bridge MAC address is not the largest, the effect brought about by the failure of the node network transmission equipment is a link with the ring network video monitoring system in the second embodiment of the present invention. The effect of the failure is the same. Correspondingly, for the failure of the network transmission device of the node whose MAC address is not the largest, the ready-to-use self-healing networking method provided by the third embodiment of the present invention is the same as the ready-to-use self-healing group provided by the second embodiment of the present invention. The networking methods are the same. For the convenience and simplicity of description, the specific implementation process may refer to the specific description of the ready-to-use self-healing networking method provided by the second embodiment of the present invention, which will not be repeated here.
图6示出了视频监控系统环网中桥MAC地址最大的节点网络传输设备出现故障的网络结构示意图。请参阅图6所示,当环网中桥MAC地址最大的节点网络传输设备出现故障,也即第二节点网络传输设备出现故障,那么第一节点网络传输设备的副端口,既不能监听到也不能接收到第二节点网络传输设备的主端口发送目的MAC为报文组播地址的报文。FIG. 6 shows a schematic diagram of the network structure in which the node network transmission device with the largest bridge MAC address in the video surveillance system ring network fails. Referring to Figure 6, when the network transmission device of the node with the largest bridge MAC address in the ring network fails, that is, the network transmission device of the second node fails, then the secondary port of the network transmission device of the first node can neither monitor nor The packet whose destination MAC is the packet multicast address sent by the primary port of the network transmission device of the second node cannot be received.
图7示出了消除视频监控系统环网中桥MAC地址最大的节点网络传输设备出现故障本发明实施例提供的一种即插即用组网方法的流程图。请参照图7所示,该方法在本发明第一实施例的基础上,还包括以下步骤:FIG. 7 shows a flowchart of a plug-and-play networking method provided by an embodiment of the present invention for eliminating the failure of the node network transmission device with the largest bridge MAC address in the video surveillance system ring network. Referring to FIG. 7 , the method further includes the following steps on the basis of the first embodiment of the present invention:
S310,以环网中副端口与述桥MAC地址最大的节点网络传输设备网络连接的节点网络传输设备作为测试报文发起者向环网发送测试报文;其中,测试报文中的目的MAC地址为测试报文组播地址,测试报文中的发送者桥MAC地址为测试报文发起者的桥MAC地址;S310, use the node network transmission device whose secondary port in the ring network is connected to the node network transmission device with the largest MAC address of the bridge as the test message initiator to send a test message to the ring network; wherein, the destination MAC address in the test message Indicates the multicast address of the test packet, and the sender bridge MAC address in the test packet is the bridge MAC address of the initiator of the test packet;
具体实现过程请参照本发明第一实施例的步骤S110。与本发明第一实施例的步骤S110不同的是,步骤S310中测试报文发起者为环网中副端口与述桥MAC地址最大的节点网络传输设备网络连接的节点网络传输设备。For a specific implementation process, please refer to step S110 in the first embodiment of the present invention. Different from step S110 in the first embodiment of the present invention, in step S310, the initiator of the test packet is a node network transmission device in the ring network whose secondary port is connected to the node network transmission device with the largest bridge MAC address.
S320,当前节点网络传输设备监听到前一节点网络传输设备发来的测试报文后,提取测试报文中的发送者桥MAC地址,将其与自身的桥MAC地址进行比较,将桥MAC地址大者作为当前节点网络传输设备向后一节点网络传输设备发送的测试报文中的发送者桥MAC地址;S320, after the current node network transmission device monitors the test packet sent by the previous node network transmission device, extracts the sender's bridge MAC address in the test packet, compares it with its own bridge MAC address, and compares the bridge MAC address with the bridge MAC address. The larger one is the sender bridge MAC address in the test packet sent by the network transmission device of the current node to the network transmission device of the next node;
具体实现过程请参照本发明第一实施例的步骤S120。For a specific implementation process, please refer to step S120 in the first embodiment of the present invention.
S330,基于主端口与述桥MAC地址最大的节点网络传输设备网络连接的节点网络传输设备监听或者接收到测试报文找出环网中桥MAC地址第二大的节点网络传输设备。S330: Find the node network transmission device with the second largest bridge MAC address in the ring network based on the node network transmission device whose main port is connected to the node network transmission device with the largest bridge MAC address network listening or receiving the test message.
具体实现过程请参照本发明第一实施例的步骤S130。步骤S330中要找出虽然是环网中桥MAC地址第二大的节点网络传输设备,但其也是环网中能正常运行的桥MAC地址最大的节点网络传输设备。与本发明第一实施例的步骤S110不同的是,步骤S330中用于找出环网中桥MAC地址第二大的节点网络传输设备的测试报文为,基于主端口与述桥MAC地址最大的节点网络传输设备网络连接的节点网络传输设备监听或者接收到测试报文。For a specific implementation process, please refer to step S130 in the first embodiment of the present invention. In step S330, although it is the node network transmission device with the second largest bridge MAC address in the ring network, it is also the node network transmission device with the largest bridge MAC address in the ring network that can operate normally. Different from step S110 in the first embodiment of the present invention, in step S330, the test message used to find the node network transmission device with the second largest bridge MAC address in the ring network is, based on the main port and the bridge MAC address having the largest The node network transmission device connected to the node network transmission device of the node network transmission device monitors or receives the test message.
本发明第三实施例提供的即插即用组网方法,在桥MAC地址非最大的节点网络传输设备出现故障时采用本发明第二实施例相同的方法,在不对链路进行物理修复的情况下,通过环网逻辑拓扑结构的修改,实现视频监控系统环网桥MAC地址非最大的节点网络传输设备故障的自愈式修复;在桥MAC地址最大的节点网络传输设备出现故障时,通过在环网正常运行的节点网络传输设备找出桥MAC地址最大的节点网络传输设备,也即环网中桥MAC地址第二大的节点网络传输设备,在不对桥MAC地址最大的节点网络传输设备进行物理修复的情况下,通过环网逻辑拓扑结构的更改,实现视频监控系统环网中桥MAC地址最大的节点网络传输设备故障的自愈式修复。The plug-and-play networking method provided by the third embodiment of the present invention adopts the same method as the second embodiment of the present invention when the node network transmission device whose bridge MAC address is not the largest fails, and does not physically repair the link In this case, through the modification of the logical topology of the ring network, the self-healing repair of the network transmission equipment of the node with the non-maximum MAC address of the ring network bridge of the video surveillance system is realized; when the network transmission equipment of the node with the maximum bridge MAC address fails, the The node network transmission device in the normal operation of the ring network finds the node network transmission device with the largest bridge MAC address, that is, the node network transmission device with the second largest bridge MAC address in the ring network. In the case of physical repair, through the change of the logical topology of the ring network, the self-healing repair of the network transmission equipment failure of the node with the largest bridge MAC address in the video surveillance system ring network is realized.
基于网络结构及业务数据的相同或者相近,本发明第三实施例提供的即插即用组网方法,不局限于安防系统环网组网,也适用于工业监测控制系统、水电气供应通信系统、网吧系统环网组网,还适用于基于机顶盒的有线电视系统环网组网,例如视频点播系统环网组网。Based on the same or similar network structure and business data, the plug-and-play networking method provided by the third embodiment of the present invention is not limited to the ring network networking of security systems, but is also applicable to industrial monitoring and control systems, water and electricity supply communication systems , Internet bar system ring network network, but also suitable for set-top box-based cable TV system ring network network, such as video-on-demand system ring network network.
需要说明的是,无论是在本发明第二实施例,还是本发明第三实施例中,无论是链路故障还是节点网络传输设备故障,经本发明实施例提供的即插即用组网方法修复后的环网中正常运行的桥MAC地址最大的节点网络传输设备的副端口无法接收到其主端口发出的收目的MAC地址为报文组播地址的报文,因此其副端口不阻塞,也不会引起广播风暴。It should be noted that, whether in the second embodiment of the present invention or the third embodiment of the present invention, whether it is a link failure or a node network transmission equipment failure, the plug-and-play networking method provided by the embodiment of the present invention In the repaired ring network, the secondary port of the network transmission device of the node with the largest bridge MAC address in normal operation cannot receive the message whose destination MAC address is the multicast address of the message sent by its primary port, so its secondary port is not blocked. Nor will it cause broadcast storms.
同时还需要说明的是,本发明第二实施例中链路故障和本发明第三实施例中的节点网络传输设备故障后的业务数据流量收敛时间,取决于节点网络传输设备发送目的MAC为报文组播地址的报文间隔,该报文间隔可根据实际节点网络传输设备的性能进行设定,例如将报文间隔时间设置为10毫秒、50毫秒或者1秒等。It should also be noted that the convergence time of service data traffic 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 whether the destination MAC sent by the node network transmission device is the message The packet interval of the multicast address. The packet interval can be set according to the performance of the actual node network transmission equipment. For example, set the packet interval 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.
图8示出了本发明实施例提供的一种即插即用组网装置300的结构示意图。请参阅图8所示,该即插即用组网装置300,应用于用于构建环网的节点网络传输设备,当节点网络传输设备作为报文通过的当前节点网络传输设备时,其副端口用于监听和接收环网中的前一节点网络传输设备发的报文,其主端口用于向环网中的后一节点网络传输设备发送报文;FIG. 8 shows a schematic structural diagram of a plug-and-play networking device 300 provided by an embodiment of the present invention. Please refer to FIG. 8 , the plug-and-play networking device 300 is applied to a node network transmission device for constructing a ring network. When the node network transmission device is used as the current node network transmission device through which a message passes, its secondary port It is used to monitor and receive the message sent by the network transmission device of the previous node in the ring network, and its main port is used to send the message to the network transmission device of the next node in the ring network;
即插即用组网装置300安装于存储器1002中并包括一个或多个由微处理器1001执行的软件功能模块;该即插即用组网装置300包括测试报文发起单元320、发送者桥MAC地址比对调整单元330、桥MAC地址最大的节点网络传输设备选定单元340、桥MAC地址最大的节点网络传输设备设置单元350。其中,The plug-and-play networking device 300 is installed in the memory 1002 and includes one or more software function modules executed by the microprocessor 1001; the plug-and-play networking device 300 includes a test message initiating unit 320, a sender bridge The MAC address comparison and adjustment unit 330 , the node network transmission device selection unit 340 with the largest bridge MAC address, and the node network transmission device setting unit 350 with the largest bridge MAC address. in,
测试报文发起单元320,用于以环网中一节点网络传输设备作为测试报文发起者向环网发送测试报文;其中,测试报文中的目的MAC地址为测试报文组播地址,测试报文中的发送者桥MAC地址为测试报文发起者的桥MAC地址;The test message initiating unit 320 is configured to use a node network transmission device in the ring network as a test message initiator to send a test message to the ring network; wherein, the destination MAC address in the test message is the test message multicast address, The sender bridge MAC address in the test packet is the bridge MAC address of the initiator of the test packet;
发送者桥MAC地址比对调整单元330,如图9所示,发送者桥MAC地址比对调整单元330包括发送者桥MAC地址提取单元331、桥MAC地址比较单元332、发送者桥MAC地址修改单元3332;The sender bridge MAC address comparison and adjustment unit 330, as shown in FIG. 9, the sender bridge MAC address comparison and adjustment unit 330 includes a sender bridge MAC address extraction unit 331, a bridge MAC address comparison unit 332, and a sender bridge MAC address modification unit 330 unit3332;
发送者桥MAC地址提取单元331,当前节点网络传输设备监听到前一节点网络传输设备发来的测试报文后,用于提取测试报文中的发送者桥MAC地址;The sender bridge MAC address extraction unit 331 is used to extract the 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;
桥MAC地址比较单元332,用于将测试报文中的发送者桥MAC地址与当前节点网络传输设备的桥MAC地址进行比较;The bridge MAC address comparison unit 332 is configured to compare the sender bridge MAC address in the test message with the bridge MAC address of the current node network transmission device;
发送者桥MAC地址调整单元333,用于将桥MAC地址大者作为当前节点网络传输设备向后一节点网络传输设备发送的测试报文中的发送者桥MAC地址;The sender bridge MAC address adjustment unit 333 is used to use the bridge MAC address with the larger bridge MAC address as the sender bridge MAC address in the test message sent by the current node network transmission device to the next node network transmission device;
其中,如图10所示,发送者桥MAC地址调整单元333包括:Wherein, as shown in FIG. 10 , the sender bridge MAC address adjustment unit 333 includes:
发送者桥MAC地址保持单元3331,当前一节点网络传输设备发来的测试报文中的发送者桥MAC地址大于当前节点网络传输设备的桥MAC地址时,用于将当前节点网络传输设备向后一节点网络传输设备发送的测试报文中的发送者桥MAC地址保持不变;The sender bridge MAC address retention unit 3331 is used to store the current node network transmission device backward when the sender bridge MAC address in the test packet sent by the network transmission device of the current node is greater than the bridge MAC address of the network transmission device of the current node. The MAC address of the sender bridge in the test packet sent by the network transmission device of a node remains unchanged;
发送者桥MAC地址修改单元3332,当前一节点网络传输设备发来的测试报文中的发送者桥MAC地址小于当前节点网络传输设备的桥MAC地址时,用于将当前节点网络传输设备向后一节点网络传输设备发送的测试报文中的发送者桥MAC地址修改为当前节点网络传输设备的桥MAC地址。The sender bridge MAC address modification unit 3332, when the sender bridge MAC address in the test packet sent by the network transmission device of the previous node is smaller than the bridge MAC address of the network transmission device of the current node, is used to reverse the network transmission device of the current node. The sender's bridge MAC address in the test packet sent by the network transmission device of a node is modified to the bridge MAC address of the network transmission device of the current node.
桥MAC地址最大的节点网络传输设备选定单元340,基于循环转发一圈后的测试报文找出环网中桥MAC地址最大的节点网络传输设备;The node network transmission device selection unit 340 with the largest bridge MAC address finds out the node network transmission device with the largest bridge MAC address in the ring network based on the test message after cyclic forwarding one circle;
桥MAC地址最大的节点网络传输设备设置单元350,用于阻塞桥MAC地址最大的节点网络传输设备的副端口使其仅能接收目的MAC地址为测试报文组播地址的报文。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 it can only receive packets whose destination MAC address is the test packet multicast address.
为了提高测试报文循环转发的效率,在更短时间内得到环网的网络拓扑,进一步的方案是,即插即用组网装置300,还包括全部副端口阻塞单元310;In order to improve the efficiency of cyclic forwarding of test packets and obtain the network topology of the ring network in a shorter time, a further solution is that the plug-and-play networking device 300 further includes all secondary port blocking units 310;
全部副端口阻塞单元310,在以环网中一节点网络传输设备作为测试报文发起者向环网发送测试报文之前,用于将环网的多个节点网络传输设备的副端口阻塞使其仅能接收目的MAC地址为测试报文组播地址的报文;The all secondary port blocking unit 310 is used to block the secondary ports of the network transmission devices of multiple nodes in the ring network to make it before sending a test packet to the ring network with a network transmission device of a node in the ring network as the initiator of the test packet. Only the packets whose destination MAC address is the multicast address of the test packet can be received;
桥MAC地址最大的节点网络传输设备设置单元350,在基于循环转发一圈后的测试报文找出环网中桥MAC地址最大的节点网络传输设备之后,用于维持阻塞所述桥MAC地址最大的节点网络传输设备的所述副端口使其仅能接收所述目的MAC地址为所述测试报文组播地址的报文,并将环网中桥MAC地址最大的节点网络传输设备外的节点网络传输设备的副端口放开。The node network transmission device setting unit 350 with the largest bridge MAC address, after finding the node network transmission device with the largest bridge MAC address in the ring network based on the test message after cyclically forwarding one circle, is used to maintain the blockage of the bridge with the largest MAC address. The secondary port of the node network transmission device enables it to only receive the message whose destination MAC address is the test packet multicast address, and transmits the node with the largest bridge MAC address in the ring network to the node outside the network transmission device. The secondary port of the network transmission device is released.
为了自愈修复链路出现故障或者环网中桥MAC地址非最大的节点网络传输设备出现故障,进一步的方案是,即插即用组网装置300还包括第一故障修复单元360,当环网出现链路故障或者环网中桥MAC地址非最大的节点网络传输设备出现故障时,用于将被阻塞的桥MAC地址最大的节点网络传输设备的副端口放开,使其能接收环网中测试报文组播地址外的其他目的MAC地址的报文。In order to self-heal and repair a link failure or a node network transmission device with a non-maximum bridge MAC address in the ring network, a further solution is that the plug-and-play networking device 300 further includes a first failure repair unit 360. When there is a link failure or the network transmission device of the node with the bridge MAC address that is not the largest in the ring network fails, it is used to release the secondary port of the network transmission device of the node with the largest bridge MAC address that is blocked so that it can receive the network transmission device in the ring network. Test packets with destination MAC addresses other than the multicast address.
为了自愈修复桥MAC地址最大的节点网络传输设备出现故障,进一步的方案是,即插即用组网装置300还包括:In order to self-heal and repair the failure of the node network transmission equipment with the largest bridge MAC address, a further solution is that the plug-and-play networking device 300 further includes:
第二故障修复单元370,第二故障修复单元370包括测试报文发起单元320、发送者桥MAC地址调整单元333、桥MAC地址第二大的节点网络传输设备选定单元;其中,The second fault repair unit 370, the second fault repair unit 370 includes a test packet initiating unit 320, a sender bridge MAC address adjustment unit 333, and a node network transmission device selection unit with the second largest bridge MAC address; wherein,
测试报文发起单元320,当环网中桥MAC地址最大的节点网络传输设备出现故障时,还用于以环网中副端口与述桥MAC地址最大的节点网络传输设备网络连接的节点网络传输设备作为测试报文发起者向环网发送测试报文;其中,测试报文中的目的MAC地址为测试报文组播地址,测试报文中的发送者桥MAC地址为测试报文发起者的桥MAC地址;The test message initiating unit 320, when the node network transmission device with the largest bridge MAC address in the ring network fails, is also used for the node network transmission network connected with the secondary port in the ring network and the node network transmission device network with the largest bridge MAC address. As the initiator of the test packet, the device sends a test packet to the ring network; the destination MAC address in the test packet is the multicast address of the test packet, and the MAC address of the sender bridge in the test packet is the address of the initiator of the test packet. bridge MAC address;
发送者桥MAC地址调整单元333包括发送者桥MAC地址提取单元331、桥MAC地址比较单元332、发送者桥MAC地址修改单元3332;The sender bridge MAC address adjustment unit 333 includes a sender bridge MAC address extraction unit 331, a bridge MAC address comparison unit 332, and a sender bridge MAC address modification unit 3332;
发送者桥MAC地址提取单元331,当前节点网络传输设备监听到前一节点网络传输设备发来的测试报文后,用于提取测试报文中的发送者桥MAC地址;The sender bridge MAC address extraction unit 331 is used to extract the 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;
桥MAC地址比较单元332,用于将测试报文中的发送者桥MAC地址与当前节点网络传输设备的桥MAC地址进行比较;The bridge MAC address comparison unit 332 is configured to compare the sender bridge MAC address in the test message with the bridge MAC address of the current node network transmission device;
发送者桥MAC地址调整单元333,用于将桥MAC地址大者作为当前节点网络传输设备向后一节点网络传输设备发送的测试报文中的发送者桥MAC地址;The sender bridge MAC address adjustment unit 333 is used to use the bridge MAC address with the larger bridge MAC address as the sender bridge MAC address in the test message sent by the current node network transmission device to the next node network transmission device;
桥MAC地址第二大的节点网络传输设备选定单元,当环网中桥MAC地址最大的节点网络传输设备出现故障时,用于基于主端口与述桥MAC地址最大的节点网络传输设备网络连接的节点网络传输设备监听或者接收到测试报文找出环网中桥MAC地址第二大的节点网络传输设备。The selection unit of the node network transmission device with the second largest bridge MAC address. When the node network transmission device with the largest bridge MAC address in the ring network fails, it is used for network connection with the node network transmission device with the largest bridge MAC address based on the main port. The node network transmission device that monitors or receives the test message finds out the node network transmission device with the second largest bridge MAC address in the ring network.
本发明第四实施例的实现过程和取得的效果可对应参照本发明第一实施例、本发明第二实施例、本发明第三实施例。For the implementation process and effects obtained in the fourth embodiment of the present invention, reference may be made to the first embodiment of the present invention, the second embodiment of the present invention, and the third embodiment of the present invention.
本发明的第四实施例中的各单元模块可以是由软件代码实现,此时,上述的各模块安装于存储器1002内。以上各单元同样可以由硬件例如集成电路芯片实现。所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的功能模块的具体描述,可以参考前述的对应方法步骤的具体描述,在此不再一一赘述。The unit modules in the fourth embodiment of the present invention may be implemented by software codes. In this case, the above-mentioned modules are installed in the memory 1002 . The above units can also be implemented by hardware such as integrated circuit chips. Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific description of the functional modules described above, reference may be made to the specific description of the corresponding method steps, which will not be repeated here.
第五实施例Fifth Embodiment
所述第五实施例提供一种即插即用组网系统。该系统可应用于第一实施例的应用环境。The fifth embodiment provides a plug-and-play networking system. This system is applicable to the application environment of the first embodiment.
图11示出了本发明实施例提供的一种即插即用组网系统的结构示意图。请参阅图11所示,该系统,包括节点网络传输设备100,节点网络传输设备100包括微处理器1001、存储器1002,微处理器1001总线连接存储器1002;多个节点网络传输设备100按照环形拓扑顺次网络连接构成的环网,当节点网络传输设备100作为报文通过的当前节点网络传输设备100时,其副端口1004用于监听和接收环网中的前一节点网络传输设备100发的报文,其主端口1003用于向环网中的后一节点网络传输设备100发送报文;FIG. 11 shows a schematic structural diagram of a plug-and-play networking system provided by an embodiment of the present invention. Referring to FIG. 11, the system includes a node network transmission device 100, the node network transmission device 100 includes a microprocessor 1001, a memory 1002, and the microprocessor 1001 is connected to the memory 1002 by bus; a plurality of node network transmission devices 100 are arranged in a ring topology In a ring network formed by sequential network connections, when the node network transmission device 100 is used as the current node network transmission device 100 through which the message passes, its secondary port 1004 is used to monitor and receive messages sent by the previous node network transmission device 100 in the ring network. message, whose main port 1003 is used to send the message to the network transmission device 100 of the next node in the ring network;
该系统还包括即插即用组网装置300,即插即用组网装置300安装于存储器1002中并包括一个或多个由微处理器1001执行的软件功能模块;The system also includes a plug-and-play networking device 300, which is installed in the memory 1002 and includes one or more software function modules executed by the microprocessor 1001;
即插即用组网装置300包括:The plug-and-play networking device 300 includes:
测试报文发起单元320,用于以环网中一节点网络传输设备100作为测试报文发起者向环网发送测试报文;其中,测试报文中的目的MAC地址为测试报文组播地址,测试报文中的发送者桥MAC地址为测试报文发起者的桥MAC地址;The test message initiating unit 320 is configured to use a node network transmission device 100 in the ring network as a test message initiator to send a test message to the ring network; wherein, the destination MAC address in the test message is the test message multicast address , the sender bridge MAC address in the test packet is the bridge MAC address of the initiator of the test packet;
发送者桥MAC地址比对调整单元330,发送者桥MAC地址比对调整单元330包括发送者桥MAC地址提取单元、桥MAC地址比较单元、发送者桥MAC地址修改单元;The sender bridge MAC address comparison and adjustment unit 330, the sender bridge MAC address comparison adjustment unit 330 includes a sender bridge MAC address extraction unit, a bridge MAC address comparison unit, and a sender bridge MAC address modification unit;
发送者桥MAC地址提取单元,当前节点网络传输设备100监听到前一节点网络传输设备100发来的测试报文后,用于提取测试报文中的发送者桥MAC地址;The sender bridge MAC address extraction unit is used to extract the sender bridge MAC address in the test message after the current node network transmission device 100 monitors the test message sent by the previous node network transmission device 100;
桥MAC地址比较单元,用于将测试报文中的发送者桥MAC地址与当前节点网络传输设备100的桥MAC地址进行比较;a bridge MAC address comparison unit, configured to compare the sender bridge MAC address in the test message with the bridge MAC address of the current node network transmission device 100;
发送者桥MAC地址调整单元,用于将桥MAC地址大者作为当前节点网络传输设备100向后一节点网络传输设备100发送的测试报文中的发送者桥MAC地址;a sender bridge MAC address adjustment unit, configured to use the larger bridge MAC address as the sender bridge MAC address in the test packet sent by the network transmission device 100 of the current node to the network transmission device 100 of the next node;
桥MAC地址最大的节点网络传输设备选定单元340,基于循环转发一圈后的测试报文找出环网中桥MAC地址最大的节点网络传输设备100;The node network transmission device selection unit 340 with the largest bridge MAC address finds out the node network transmission device 100 with the largest bridge MAC address in the ring network based on the test message after cyclic forwarding for one circle;
桥MAC地址最大的节点网络传输设备设置单元350,用于阻塞桥MAC地址最大的节点网络传输设备100的副端口1004使其仅能接收目的MAC地址为测试报文组播地址的报文。The node network transmission device setting unit 350 with the largest bridge MAC address is configured to block the secondary port 1004 of the node network transmission device 100 with the largest bridge MAC address so that it can only receive packets whose destination MAC address is the test packet multicast address.
参照本发明第四实施例,本发明第五实施例在增加全部副端口阻塞单元310,及将桥MAC地址最大的节点网络传输设备设置单元350调整为在基于循环转发一圈后的测试报文找出环网中桥MAC地址最大的节点网络传输设备100之后,用于将环网中桥MAC地址最大的节点网络传输设备100外的节点网络传输设备100的副端口1004放开的情况下,可大幅缩短环网网络拓扑的获得时间,提高环网的组网效率。Referring to the fourth embodiment of the present invention, the fifth embodiment of the present invention adds all secondary port blocking units 310, and adjusts the network transmission device setting unit 350 of the node with the largest bridge MAC address to the test packet after forwarding one circle based on the cycle After finding the node network transmission device 100 with the largest bridge MAC address in the ring network, in the case of releasing 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, The acquisition time of the ring network topology can be greatly shortened, and the networking efficiency of the ring network can be improved.
参照本发明第四实施例,本发明第五实施例在增加第一故障修复单元360的情况下,可应用于第二实施例的应用环境和第三实施例的应用环境。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 second embodiment and the application environment of the third embodiment when the first fault repair unit 360 is added.
参照本发明第四实施例,本发明第五实施例在增加第二故障修复单元370的情况下,可应用于第三实施例的应用环境。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 when the second fault repair unit 370 is added.
本发明第五实施例的即插即用组网系统的工作过程请参考本发明第四实施例的即插即用组网装置300相对应的实施过程。For the working process of the plug-and-play networking system according to the fifth embodiment of the present invention, please refer to the corresponding implementation process of the plug-and-play networking device 300 according to the fourth embodiment of the present invention.
综上所述,本发明实施例提供的即插即用组网方法、装置及系统,是环网中找出桥MAC地址最大的传输设备,将其副端口阻塞使其仅能接收目的MAC地址为测试报文组播地址的报文,其他目的MAC地址的报文被全部丢弃不予转发,从而通过环网逻辑拓扑结构的更改消除环网发生广播风暴的可能。通过放开被阻塞副端口,实现在不进行物理修复的情况下,通过更改逻辑拓扑自愈式修复链路故障和桥MAC地址非最大的节点网络传输设备故障。通过在环网正常运行的节点网络传输设备找出桥MAC地址最大的节点网络传输设备,也即环网中桥MAC地址第二大的节点网络传输设备,在不对桥MAC地址最大的节点网络传输设备进行物理修复的情况下,实现视频监控系统环网中桥MAC地址最大的节点网络传输设备故障的自愈式修复。To sum up, the plug-and-play networking method, device and system provided by the embodiments of the present invention are the transmission equipment with the largest bridge MAC address found in the ring network, and its secondary port is blocked so that it can only receive the destination MAC address. In order to test packets with multicast addresses, packets with other destination MAC addresses are discarded and not forwarded, thus eliminating the possibility of broadcast storms in the ring network by changing the logical topology of the ring network. By releasing the blocked secondary port, it can realize self-healing repair of link failure and node network transmission equipment failure with non-maximum bridge MAC address by changing the logical topology without physical repair. Find the node network transmission device with the largest bridge MAC address through the node network transmission device in the normal operation of the ring network, that is, the node network transmission device with the second largest bridge MAC address in the ring network. When the equipment is physically repaired, the self-healing repair of the network transmission equipment failure of the node with the largest bridge MAC address in the video surveillance system ring network is realized.
Claims (11)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610559831.1A CN106209552B (en) | 2016-07-15 | 2016-07-15 | Plug and play networking method, device 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 networking method, device 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 networking method, device 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 | 河南理工大学 | A kind of 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 of ring 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 Realization 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 |
|---|---|---|
| CN102137009B (en) | Method, system and equipment for processing Dual-layer service in network | |
| CN109302578B (en) | Method and system for logging in conference terminal and video conference | |
| CN109068186B (en) | Method and device for processing packet loss rate | |
| CN110087040B (en) | A kind of monitoring video retrieval method and system | |
| CN109561072B (en) | Link detection method and system | |
| CN111447392B (en) | Data transmission method, device, server and computer-readable storage medium | |
| CN111200521A (en) | Video networking service recovery method, server, electronic device and storage medium | |
| CN109587002B (en) | State detection method and system for video network monitoring equipment | |
| CN106209552B (en) | Plug and play networking method, device and system | |
| CN111614953A (en) | A restart control method and system for a faulty IP camera | |
| CN101729307A (en) | Failure detecting method, communication equipment and network system | |
| CN110690989A (en) | Service data transmission method, device and computer readable storage medium | |
| US7719956B2 (en) | Trunk network system for multipoint-to-multipoint relay | |
| CN109729388B (en) | Method and device for switching video networking servers | |
| CN109889775B (en) | Data timeout processing method and device | |
| CN110138631B (en) | Connectivity detection method of video network tunnel and terminal equipment | |
| CN110049268B (en) | Video telephone connection method and device | |
| CN111614480B (en) | Service detection method, device and storage medium | |
| CN111245592B (en) | Signaling transmission method and device and computer readable storage medium | |
| US8837295B2 (en) | Diagnostic tool and method for retrieving subscriber information from nodes located within a layer 2 aggregation network | |
| CN110099307B (en) | Node connection method, Internet of Things and computer-readable storage medium | |
| CN111510341A (en) | Network testing method and device for video network | |
| CN109698953B (en) | State detection method and system for video network monitoring equipment | |
| US12368677B2 (en) | Dual internet protocol (IP) network input reference validation | |
| CN110418199B (en) | Information processing method and system based on video network |
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 |