CN106341297B - Networking method and device for monitoring ring network - Google Patents

Networking method and device for monitoring ring network Download PDF

Info

Publication number
CN106341297B
CN106341297B CN201610663464.XA CN201610663464A CN106341297B CN 106341297 B CN106341297 B CN 106341297B CN 201610663464 A CN201610663464 A CN 201610663464A CN 106341297 B CN106341297 B CN 106341297B
Authority
CN
China
Prior art keywords
ring network
port
monitoring
switch
link
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610663464.XA
Other languages
Chinese (zh)
Other versions
CN106341297A (en
Inventor
周迪
任俊峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN201610663464.XA priority Critical patent/CN106341297B/en
Publication of CN106341297A publication Critical patent/CN106341297A/en
Application granted granted Critical
Publication of CN106341297B publication Critical patent/CN106341297B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • H04L12/437Ring fault isolation or reconfiguration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0695Management of faults, events, alarms or notifications the faulty arrangement being the maintenance, administration or management system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/20Support for services
    • H04L49/201Multicast operation; Broadcast operation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/55Prevention, detection or correction of errors
    • H04L49/557Error correction, e.g. fault recovery or fault tolerance

Landscapes

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

Abstract

The embodiment of the application discloses a networking method and a networking device for a monitoring ring network, the networking method realizes the networking of a monitoring ring network system through a ring network switch and a plurality of common switches, and when an open circuit occurs, a multicast/broadcast message with a source address being a gateway equipment MAC address is sent through an auxiliary port in time, so that the common switch affected by the open circuit transmits a monitoring data stream to the auxiliary port, and the loss of the monitoring data stream is avoided when the loop is open circuit. The networking mode can ensure the reliable transmission of the monitoring data stream only by one ring network switch, does not need to adopt all ring network switches to monitor the networking of the ring network system, ensures that the monitoring ring network system is compatible with the low-cost common switch and the conventional common switch of a user, avoids the waste of the conventional equipment, simultaneously, has the networking structure of only one ring network switch, also ensures the unification of the ring network protocol, and reduces the networking difficulty and the cost of the monitoring ring network system.

Description

Networking method and device for monitoring ring network
Technical Field
The present application relates to the field of monitoring data transmission, and in particular, to a networking method and apparatus for a monitoring ring network.
Background
The monitoring system is one of the most applied systems in the security system, and along with the development of the monitoring industry, the monitoring system needs to be installed in more and more places. When monitoring is performed on the perimeter of a park or an airport, a monitoring network often uses a ring network technology to provide link reliability, save optical fibers and the like.
Fig. 1 is a schematic diagram of a ring network networking method in the prior art. The ring network switch uses optical fibers to form a ring network. The network camera is connected to the ring network switch by using a network cable.
The applicant finds in the course of implementing the present application that the above-mentioned prior art treatment solutions have at least the following problems:
the ring network networking in the prior art needs a special ring network switch to realize, and the ring network switch is basically a network management switch, so that compared with a common switch, the ring network switch is higher in price, and the cost of the ring network networking is improved.
In the ring network networking structure in the prior art, all ring network switches must use the same ring network protocol, so that switches of different manufacturers cannot be used in a mixed mode if the unification of the ring network protocols is not realized, and the universality of equipment is reduced.
Moreover, in the ring network structure depending on the special ring network switch, the existing non-ring network switch of the user cannot be utilized, and the waste of resources is caused.
Disclosure of Invention
The embodiment of the application provides a networking method and a networking device for monitoring a looped network, wherein the networking of the looped network is monitored through a looped network switch and a plurality of common switches, and the transmission of monitoring data streams is carried out through the looped network state detection and the cooperation of a main port and an auxiliary port, so that the problem that networking equipment for monitoring the looped network is compatible with the existing switches of users and the low-cost common switches is solved, and the networking cost of the monitoring looped network is effectively reduced.
In order to achieve the above technical objective, the present application provides a networking method for monitoring a ring network, which is applied to a monitoring ring network system comprising a ring network switch and a plurality of ordinary switches, wherein the ring network switch comprises a main port, an auxiliary port and an uplink port, the ring network switch blocks the auxiliary port, receives a monitoring data stream forwarded by each ordinary switch through a link of the monitoring ring network system through the main port, and reports the monitoring data stream through a gateway device through the uplink port, and the method specifically comprises:
the ring network switch detects the state of the link of the monitoring ring network system;
when the ring network switch detects that the link of the monitoring ring network system is disconnected, the ring network switch sends a multicast/broadcast message through the auxiliary port, wherein the source address of the multicast/broadcast message is the Media Access Control (MAC) address of the gateway equipment;
the ring network switch receives monitoring data streams forwarded by the common switches which are not influenced by the broken circuit through the link at one side connected with the main port through the main port, and receives the monitoring data streams forwarded by the common switches which are influenced by the broken circuit through the link at one side connected with the auxiliary port through the auxiliary port;
and the ring network switch reports the monitoring data streams received by the main port and the auxiliary port through the uplink port by the gateway equipment.
Preferably, the detecting, by the ring network switch, the state of the link of the ring network system includes:
the ring network switch periodically passes through the main port and transmits a detection message to the auxiliary port through the link of the monitoring ring network system;
when the ring network switch receives the detection message through the auxiliary port within a preset time range, the ring network switch confirms that the current state of the link of the monitoring ring network system is a normal closed state;
and when the ring network switch does not receive the detection message through the auxiliary port within a preset time range, the ring network switch confirms that the link of the monitoring ring network system is currently broken.
Preferably, when the ring network switch detects that there is a broken link in the link monitoring the ring network system, the ring network switch sends a multicast/broadcast packet through the auxiliary port, and specifically includes:
when the ring network switch detects that the link of the monitoring ring network system is disconnected, the ring network switch opens the auxiliary port;
the ring network switch deletes the learned MAC table item on the main port;
and the ring network switch generates a multicast/broadcast message by taking the MAC address of the gateway equipment as a source address, and sends the multicast/broadcast message through the auxiliary port, so that each common switch influenced by the disconnection updates the learned MAC table item to the port of the link at one side connected with the auxiliary port.
Preferably, after the ring network switch detects that the link of the monitoring ring network system has an open circuit, the method further includes:
when the ring network switch detects that the current state of the link of the monitoring ring network system is recovered to be a normal closed state, the ring network switch blocks the auxiliary port;
the ring network switch deletes the learned MAC table item on the auxiliary port;
the ring network switch generates a multicast/broadcast message by taking the MAC address of the gateway equipment as a source address, and sends the multicast/broadcast message through the main port, so that each common switch in the monitoring ring network system updates the learned MAC table item to a port of a link at one side connected with the main port;
and the ring network switch receives the monitoring data flow forwarded by the link of the monitoring ring network system through each common switch through the main port, and reports the monitoring data flow through the gateway equipment through the uplink port.
Preferably, the method further comprises:
the ring network switch limits the sending quantity and frequency of the multicast/broadcast messages according to a preset threshold value;
and the ring network switch shields the multicast/broadcast message sent by the auxiliary port at the main port, and shields the multicast/broadcast message sent by the main port at the auxiliary port.
On the other hand, this application has still provided a looped netowrk switch, is applied to including a looped netowrk switch and the control looped netowrk system that many ordinary switches constitute, the looped netowrk switch includes main port, assists port and goes upward the port, and is further, still specifically includes:
the detection module is used for detecting the state of the link of the monitoring ring network system;
the port management module is used for blocking the auxiliary port when the detection module determines that the current state of the link of the monitoring ring network system is a normal closed state, or opening the auxiliary port when the detection module determines that the link of the monitoring ring network system is currently broken;
the updating module is used for sending a multicast/broadcast message through the auxiliary port when the detection module detects that the link of the monitoring ring network system has an open circuit, wherein the source address of the multicast/broadcast message is the MAC address of the gateway equipment;
a receiving module, configured to receive, through the master port, a monitoring data stream forwarded by each ordinary switch via a link of the monitoring ring network system when the detection module determines that the current state of the link of the monitoring ring network system is a normal closed state, or receive, through the master port, a monitoring data stream forwarded by each ordinary switch that is not affected by an open circuit via a link on one side connected to the master port when the detection module determines that the link of the monitoring ring network system currently has an open circuit, and receive, through the auxiliary port, a monitoring data stream forwarded by each ordinary switch that is affected by an open circuit via a link on one side connected to the auxiliary port;
and the reporting module is used for reporting the monitoring data stream received by the receiving module through the gateway equipment through the uplink port.
Preferably, the detection module is specifically configured to:
periodically sending a detection message to the auxiliary port through the primary port and a link of the monitoring ring network system;
when the detection message is received through the auxiliary port within a preset time range, determining that the current state of the link of the monitoring ring network system is a normal closed state;
and when the detection message is not received through the auxiliary port within a preset time range, determining that the link of the monitoring ring network system is currently broken.
Preferably, the update module is specifically configured to:
when the detection module detects that the link of the monitoring ring network system has an open circuit, deleting the learned MAC table entry on the main port;
and generating a multicast/broadcast message by taking the MAC address of the gateway equipment as a source address, and sending the multicast/broadcast message through the auxiliary port, so that each common switch influenced by the disconnection updates the learned MAC table entry to a port of a link at one side connected with the auxiliary port.
Preferably, the update module is further configured to:
when the detection module detects that the current state of the link of the monitoring ring network system is recovered to a normal closed state, deleting the learned MAC table entry on the auxiliary port;
and generating a multicast/broadcast message by taking the MAC address of the gateway equipment as a source address, and sending the multicast/broadcast message through the main port so as to enable each common switch in the monitoring ring network system to update the learned MAC table entry to a port of a link at one side connected with the main port.
Preferably, the ring network switch further comprises:
and the inhibiting module is used for limiting the number and the frequency of the multicast/broadcast messages sent by the updating module through the main port or the auxiliary port according to a preset threshold value, shielding the multicast/broadcast messages sent by the auxiliary port at the main port, and shielding the multicast/broadcast messages sent by the main port at the auxiliary port.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the beneficial technical effects that:
the embodiment of the application discloses a networking method and a networking device for a monitoring ring network, the networking method realizes the networking of a monitoring ring network system through a ring network switch and a plurality of common switches, a main port receives a monitoring data stream sent by the common switches, and the link state of the monitoring ring network system is detected, when the monitoring ring network system is broken, a multicast/broadcast message with a source address as a gateway equipment MAC address is sent through an auxiliary port in time, the MAC table item of the common switch affected by the broken circuit is updated, so that the monitoring data stream is transmitted to the auxiliary port, and the loss of the monitoring data stream is avoided when the ring network is broken. The networking mode can ensure the reliable transmission of the monitoring data stream in the monitoring ring network system only by one ring network switch, ensures the normal operation of the monitoring ring network system, does not need to adopt the ring network switches to carry out the networking of the monitoring ring network system, ensures that the monitoring ring network system is compatible with the low-cost common switch and the user existing common switch, effectively reduces the cost, avoids the waste of the existing equipment, simultaneously, only has the networking structure of one ring network switch, also ensures the unification of the ring network protocol, and reduces the networking difficulty and the cost of the monitoring ring network system.
Drawings
In order to more clearly illustrate the technical solutions of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic diagram of a ring network networking manner in the prior art;
fig. 2 is a schematic flowchart of a networking method for monitoring a ring network according to an embodiment of the present application;
fig. 3 is a schematic diagram of a networking structure of a monitoring ring network according to an embodiment of the present application;
fig. 4 is a schematic data interaction diagram of a monitoring ring network system in a normal state according to an embodiment of the present application;
fig. 5 is a schematic data interaction diagram of a monitoring ring network system in an open circuit state according to an embodiment of the present application;
fig. 6 is a schematic flowchart of a ring network networking method in a specific application scenario according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a ring network switch according to an embodiment of the present application.
Detailed Description
As stated in the background of the present application, the ring network networking in the prior art needs a special ring network switch to implement, and has higher networking cost compared with a common switch. And the existing common switch of the user cannot be utilized, so that the waste of equipment is caused. Moreover, since the ring network system requires the unification of the ring network protocols, the device compatibility in the networking process is also affected, so that the existing ring network networking scheme has harsh implementation conditions and high networking cost, and the difficulty of networking operation is increased.
The inventor of the application hopes that the method provided by the application can realize the networking of the monitoring ring network through one ring network switch and a plurality of common switches, effectively reduces the equipment cost, avoids the waste of equipment, and simultaneously, because only one ring network switch is provided, the ring network protocol is unified, thereby improving the compatibility of the monitoring ring network system. In the technical solution provided in the embodiment of the present application, the ring network switch has a self-management function of routing, and the ordinary switch does not have a self-management function of routing.
The networking method for monitoring the looped network is applied to a monitoring looped network system consisting of a looped network switch and a plurality of common switches, wherein the looped network switch comprises a main port, an auxiliary port and an uplink port.
When the monitoring ring network system is in a normally closed state, the ring network switch blocks the auxiliary port, the auxiliary port cannot send a message, and can only receive a special message sent by the main port (specific message content can be preset and will be described later, which is not described herein again), therefore, a monitoring data stream in the monitoring ring network system can only perform unidirectional transmission in the direction of the main port of the ring network switch, and the ring network switch receives a monitoring data stream forwarded by each common switch through a link of the monitoring ring network system through the main port, and reports the monitoring data stream through the gateway device through the uplink port.
However, in the above monitoring ring network system, except for one ring network switch, other switches are ordinary switches and do not have a routing self-management function, and once a link failure occurs, a problem that monitoring data cannot be normally transmitted due to a failure of link switching in time is solved, so to avoid such a problem, a corresponding solution is provided in the networking method for monitoring a ring network provided by the present application, as shown in fig. 2, a flow diagram of the networking method for monitoring a ring network provided by the embodiment of the present application specifically includes:
step S201, the ring network switch detects a state of a link of the monitoring ring network system.
In a specific application scenario, the following scheme may be adopted for the implementation process of this step:
the ring network switch periodically transmits a detection message to the auxiliary port through the main port and the link of the monitoring ring network system. The detection packet mentioned here is one of the special packets that can be received by the auxiliary port, and other types of special packets can also be used in the scheme provided in the embodiment of the present application, and such a change does not affect the protection scope of the present application. After the auxiliary port is blocked, only the special message sent by the main port can be received, so that the auxiliary port cannot be interfered by other messages, and only the detection message needs to be identified.
It should be noted that the operation of periodically sending the detection message is to enable the ring network switch to detect the fault state of the monitoring ring network in time, and the period length can be adjusted. Shortening the cycle means that the transmission frequency is higher, the timeliness of detection can be improved, but more system resources are consumed. Conversely, increasing the period means that the transmission frequency is lower, which reduces the timeliness of detection, but saves system resources. Therefore, the setting of the cycle time can be adjusted according to actual needs, and the balance of the timeliness of detection and the resource consumption is realized.
Taking the above detection message as an example, after the ring network switch sends the detection message, it is identified whether the auxiliary port receives the detection message, it should be noted that, in order to avoid resource waste caused by unlimited waiting or detection, a preset time range may be introduced here as a threshold value for the detection time length, and in this time range, if the link state is normal, the detection message can definitely reach the auxiliary port.
When the ring network switch receives the detection message through the auxiliary port within a preset time range, the ring network switch confirms that the current state of the link of the monitoring ring network system is a normal closed state;
and when the ring network switch does not receive the detection message through the auxiliary port within a preset time range, the ring network switch confirms that the link of the monitoring ring network system is currently broken.
Correspondingly, according to the above detection result, the technical solution provided in the embodiment of the present application continues to perform the following operations:
if the detection result is that the current state of the link of the monitoring ring network system is a normal closed state, the current transmission mode is maintained, and the step S201 is returned to continue the detection.
If the detection result is that the ring network switch detects that the link of the monitoring ring network system has an open circuit, step S202 is executed.
Step S202, the ring network switch sends a multicast/broadcast packet through the auxiliary port, where a source address of the multicast/broadcast packet is a Media Access Control (MAC) address of the gateway device.
In a specific application scenario, the following scheme may be adopted for the implementation process of this step:
step A1, when the ring network switch detects that there is a broken circuit in the link of the monitoring ring network system, the ring network switch opens the auxiliary port.
Because the auxiliary port is initially in a blocking state, the auxiliary port does not participate in data forwarding or address learning, and only can receive the special message sent by the main port. Therefore, in a normal state, all the monitoring data flows flow to the primary port, but not to the secondary port. However, when the monitoring ring network is disconnected, some links of the ordinary switches to the main port may not be connected, which may result in loss of the monitoring data stream. In this case, the auxiliary port needs to be enabled to receive the monitoring data stream, so that the ring network switch changes the state of the auxiliary port and adjusts the blocking state to the open state, and in such a state, the auxiliary port can perform operations such as sending a message and receiving data transmission.
Step a2, the ring network switch deletes the learned MAC entry on the primary port.
Because the main port has learned the port MAC address of each common switch in the monitoring ring network system through normal signaling interaction in the normal state of the monitoring ring network system. If these learned MAC entries are not deleted, when the multicast/broadcast packet is sent through the secondary port in the subsequent step a3, there is a possibility that the multicast/broadcast packet is sent from the primary port, and therefore, the ordinary switch not affected by the disconnection may also adjust the transmission direction of the subsequent monitoring data stream, resulting in the loss of the monitoring data stream.
Step A3, the ring network switch uses the MAC address of the gateway device as the source address to generate the multicast/broadcast message, and sends the multicast/broadcast message through the auxiliary port, so that each common switch affected by the open circuit updates the learned MAC table item to the port of the link at one side connected with the auxiliary port.
It should be noted that, in a specific application scenario, there may be multiple types of devices as the ring network switch. For example, the ring network switch may be a two-layer switch that itself has no IP address and no gateway. In this case, it cannot be a gateway device, and therefore, in such a scenario, it is necessary to access another gateway switch as a gateway device. In consideration of the various possibilities of the gateway device, the following schemes also exist for determining the MAC address:
if the ring network switch itself is directly used as gateway equipment, the monitoring ring network system composed of itself and other ordinary switches is connected to the backbone network, namely the gateway equipment is the ring network switch itself, then the source address of the multicast/broadcast message in this step is the MAC address of the ring network switch itself; if the ring network switch connects the monitoring ring network system composed of itself and other ordinary switches to the backbone network by connecting with another gateway switch, i.e. the gateway device is another gateway router, the source address of the multicast/broadcast message in this step is the MAC address of the gateway router, i.e. the MAC address learned by the ring network switch on the uplink port. However, it should be noted that the uplink port may learn a plurality of MAC addresses, and cannot determine which is the MAC address of the gateway device, at this time, each MAC address may be used as a source MAC address to generate a multicast/broadcast message, and the multicast/broadcast message is sent through the secondary port.
The method aims to ensure that the switch receiving the multicast/broadcast message can learn the MAC address of the gateway equipment in the uplink direction and use the MAC address as the destination MAC address of the subsequent monitoring data stream, thereby ensuring the report of the monitoring data stream.
Step S203, the ring network switch receives, through the primary port, the monitoring data stream forwarded by each common switch not affected by the open circuit via the link on the side connected to the primary port, and receives, through the secondary port, the monitoring data stream forwarded by each common switch affected by the open circuit via the link on the side connected to the secondary port.
By the step S202, the common switches near the auxiliary port can receive the multicast/broadcast packet sent by the auxiliary port, so that the reporting port of the monitoring data stream is switched to the port on the auxiliary port side, and the monitoring data stream is reported to the auxiliary port by using the MAC address of the gateway device as the destination address, and therefore, data reporting to the main port through the link including the open circuit is not required, and the influence of the open circuit on data transmission is avoided.
And taking the place of the broken circuit as the boundary, each ordinary exchanger near the main port side will not be influenced by the broken circuit, and will not receive the multicast/broadcast message sent by the auxiliary port, but still keep the normal data interaction with the main port, the reporting port of the monitoring data flow is still the port at the main port side, the monitoring data flow is reported to the main port normally.
Through the two monitoring data stream transmission paths, the monitoring data stream in the whole monitoring ring network system is divided into two parts which are respectively transmitted to the main port and the auxiliary port, so that all the common switches can report the monitoring data stream to the ring network switch, and the loss of the monitoring data stream cannot occur.
Step S204, the ring network switch reports the monitoring data streams received by the primary port and the secondary port through the uplink port, and the monitoring data streams are reported through the gateway device.
The ring network switch collects the monitoring data streams received by the main port and the auxiliary port, completes the reporting operation and transmits the monitoring data streams to the backbone network, so that all monitoring data in the monitoring ring network system can be continuously uploaded, and the monitoring ring network system is not influenced by the open circuit.
Through the operation, the continuous transmission of the monitoring data flow under the condition of disconnection is realized. Meanwhile, the ring network switch does not stop detecting the network state of the monitoring ring network system, i.e. the special message is still periodically sent from the main port to the auxiliary port. If the open circuit continues to exist, the special message cannot be transmitted to the secondary port. On the contrary, if the open circuit is recovered, the special message sent by the main port will be received by the auxiliary port, so that the ring network switch can determine that the link state of the monitoring ring network system is recovered to the normal closed state. In this case, the embodiment of the present application further provides a further transmission adjustment scheme for the monitoring data stream after the monitoring ring network system returns to the normal closed state, which corresponds to the emergency transmission scheme after the disconnection given in the foregoing steps a1 to C1, and the embodiment of the present application provides the following transmission recovery scheme.
And step B1, when the ring network switch detects that the current state of the link of the monitoring ring network system is recovered to be a normal closed state, the ring network switch blocks the auxiliary port.
Through the step, the ring network switch restores the port state to the state before the open circuit, namely, restores the auxiliary port from the open state to the blocking state, stops the transmission of the multicast/broadcast message, does not participate in data forwarding any more, and only can receive the special message transmitted by the main port.
And step B2, the ring network switch deletes the learned MAC table entry on the auxiliary port.
In the prior art, under the condition that the ring network system is monitored to have an open circuit, the auxiliary port in the open state learns the port MAC address information of each common switch affected by the open circuit. However, after switching back to the blocking state, these address table entries no longer have value, and are therefore deleted by this step.
Step B3, the ring network switch uses the MAC address of the gateway device as a source address to generate a multicast/broadcast message, and sends the multicast/broadcast message through the main port, so that each common switch in the monitoring ring network system updates the learned MAC entry to the port of the link on one side connected to the main port.
It should be noted that, if the gateway device is the ring network switch itself, the source address of the multicast/broadcast message in this step is the MAC address of the ring network switch itself; if the gateway device is another gateway router, the source address of the multicast/broadcast message in this step is the MAC address of the gateway router, that is, the MAC address learned by the ring network switch on the uplink port. The method aims to ensure that the switch receiving the multicast/broadcast message can learn the MAC address of the gateway equipment in the uplink direction and use the MAC address as the destination MAC address of the subsequent monitoring data stream, thereby ensuring the report of the monitoring data stream.
And step B4, the ring network switch receives the monitoring data flow forwarded by the link of the monitoring ring network system through the common switch via the main port, and reports the monitoring data flow via the gateway device via the uplink port.
Through the steps, each common switch in the monitoring ring network system switches the reporting port of the monitoring data stream back to the port at one side of the main port according to the source address information carried by the received multicast/broadcast message, and transmits the monitoring data stream along the link of the monitoring ring network system through the port and reports the monitoring data stream to the main port.
Through the port switching process, all monitoring data streams in the whole monitoring ring network system are transmitted to the main port, so that all the common switches can report the monitoring data streams to the ring network switch, and the monitoring data streams cannot be lost.
It should be further explained that, in order to avoid a broadcast storm occurring in the foregoing switching process, the technical solution provided in the embodiment of the present application performs speed limit control on multicast/broadcast messages sent by the primary port and the secondary port, that is, the ring network switch limits the sending number and frequency of the multicast/broadcast messages according to a preset threshold.
On the other hand, in order to avoid data circulation occurring in the temporary ring network state, especially at the moment of recovery from disconnection, the technical solution provided in the embodiment of the present application sets the main port to shield the multicast/broadcast packet sent by the auxiliary port on the ring network switch, and sets the auxiliary port to shield the multicast/broadcast packet sent by the main port at the same time.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the beneficial technical effects that:
the embodiment of the application discloses a networking method of a monitoring ring network, which realizes the networking of a monitoring ring network system through a ring network switch and a plurality of ordinary switches, receives a monitoring data stream sent by the ordinary switches through a main port, and timely sends a multicast/broadcast message with a source address as a gateway equipment MAC address through an auxiliary port when a monitoring ring system is broken through the detection of the link state of the monitoring ring network system, updates MAC table items of the ordinary switches affected by the broken circuit, so that the ordinary switches are enabled to transmit the monitoring data stream to the auxiliary port, thereby avoiding the loss of the monitoring data stream when the ring system is broken. The networking mode can ensure the reliable transmission of the monitoring data stream in the monitoring ring network system only by one ring network switch, ensures the normal operation of the monitoring ring network system, does not need to adopt the ring network switches to carry out the networking of the monitoring ring network system, ensures that the monitoring ring network system is compatible with the low-cost common switch and the user existing common switch, effectively reduces the cost, avoids the waste of the existing equipment, simultaneously, only has the networking structure of one ring network switch, also ensures the unification of the ring network protocol, and reduces the networking difficulty and the cost of the monitoring ring network system.
The technical solutions in the present application will be described clearly and completely with reference to the accompanying drawings in the present application, and it is obvious that the described embodiments are some, not all embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
As mentioned above, in the prior art, the ring network networking needs to be implemented by all special ring network switches, and requires the unification of ring network protocols, so that the implementation conditions of such a ring network networking scheme are harsh, the networking cost is high, and the difficulty of networking operation is increased.
In the process of providing the technical scheme of the embodiment of the application, the applicant fully considers the characteristics of the monitoring ring network system: data access sides connected to the switches on the ring network trunk are all IPC (IP Camera) devices, and the IPC devices do not need to communicate with each other.
Based on the above features, the embodiment of the present application provides a scheme for implementing networking of a monitoring ring network system by using one switch (ring network switch) with a routing management function and a plurality of low-end switches (ordinary switches, which refer to ordinary switches that do not support a ring network protocol in the description of the technical solution of the embodiment of the present application) without a routing management function.
In the technical solution provided in the embodiment of the present application, the ring network switch mainly includes the following three functions:
1. and a ring network link state detection function.
The ring network switch needs to detect whether the link of the whole monitoring ring network system is in a normal closed state or an open circuit state, and the specific monitoring scheme is mainly realized by continuously sending a special message from a main port and detecting and receiving the special message from an auxiliary port within a very small interval.
2. And updating the MAC address table items learned by each common switch.
When the link state of the monitoring ring network system changes, the ordinary switch without the routing management function can quickly update the learned MAC address, so that the transmission network of the monitoring data stream is quickly converged, and the loss of the monitoring data stream is avoided. The specific updating scheme is mainly realized by taking the MAC address of the gateway device (the MAC address learned by the uplink port or the MAC address of the ring network switch) as a source MAC address and sending the multicast/broadcast message from the main port or the auxiliary port.
3. And message flow inhibiting function.
When a temporary ring network is formed, broadcast storms are prevented, the specific processing scheme is mainly realized by limiting the message sending quantity and the sending frequency, and the specific message quantity counting is realized by port message counting.
Fig. 3 is a schematic diagram of a networking structure of a monitoring ring network according to an embodiment of the present application. In the networking scheme, a ring network switch is used as a main node of networking and is directly connected with a backbone network or connected with the backbone network through gateway equipment, the current monitoring ring network system is accessed into the backbone network, other switches in the ring network system are common switches without a routing management function, a ring network technology is not required to be supported, and access ends of the common switches are network cameras (IPC). The networking scheme enables the monitoring ring network system to be compatible with a low-cost common switch and a user's existing common switch, avoids the waste of the existing equipment, simultaneously, only has the networking structure of one ring network switch, also ensures the unification of the ring network protocol, and reduces the networking difficulty and the cost of the monitoring ring network system.
It should be noted that, the above networking structure knowledge provides a preferred embodiment in the embodiments of the present application, the ring network switch can be directly used as a gateway device to access the backbone network, and the number and the deployment mode of the common switches and the access number of the IPCs can also be adjusted according to actual needs, and such changes do not affect the protection scope of the present application.
Next, the packet interaction situation in the ring network monitoring system is described by taking the networking structure shown in fig. 3 as an example. Fig. 4 is a schematic diagram of data interaction of a monitoring ring network system in a normal state according to an embodiment of the present application.
In the initial state, the ring network switch releases the main port, and sets the auxiliary port to be in the blocking state (in the state, the auxiliary port only receives the ring network detection message sent by the main port, and other messages are discarded uniformly), so that a ring network cannot be formed.
The MAC address table items of the gateway equipment on each common switch in the monitoring ring network system are all learned on the port in the clockwise direction (namely, the side connected with the main port).
And each common switch receives the monitoring data stream acquired and recorded by the disconnected network camera (IPC), and reports the monitoring data stream to the main port according to the learned MAC address table entry of the gateway equipment.
The ring network switch sends a ring network detection message from the main port according to the detection period, and if the ring network detection message reaches the auxiliary port, the ring network switch indicates that the ring network system is in a normal closed state currently. On the contrary, if the message cannot arrive within the predetermined time range (the time range can be determined according to the time required for the actual transmission of the message in the monitoring ring network system), it indicates that the monitoring ring network system is currently in an abnormal disconnection state and has an open circuit.
Further, as shown in fig. 5, a schematic data interaction diagram of a monitoring ring network system in an open circuit state is provided in the embodiment of the present application.
In this embodiment, a link between the common switch C and the common switch D is broken, and a corresponding processing procedure is described, so as to monitor the state of other links in the ring network system to be normal.
In this application scenario, the primary port normally sends a ring network probe message according to a detection period, and after the ring network probe message is forwarded by the ordinary switch D, the ring network probe message cannot be transmitted to the ordinary switch C because of the link interruption, and naturally cannot reach the secondary port. The looped network switch does not receive the looped network detection message through the auxiliary port within the preset time range, so the looped network switch determines that the monitoring looped network system is abnormal at present and has broken circuit.
In this state, since the MAC address of the gateway device of each ordinary switch still learns on the clockwise port, the monitoring data stream of these ordinary switches is still sent to the master port in the clockwise direction. And the monitoring data flows of the common switch D, the common switch E, the common switch F and the common switch G are continuously and normally reported to the main port because the monitoring data flows are not influenced by the broken circuit. However, due to the influence of open circuit, the monitoring data streams of the ordinary switch a, the ordinary switch B, and the ordinary switch C cannot be sent to the host port, and if the MAC address is to be aged or refreshed naturally, a long time is required, which may cause the loss of the monitoring data streams, and thus the fast convergence characteristic required by the monitoring ring network system cannot be achieved. Therefore, in the technical solution provided in the embodiment of the present application, the ring network switch needs to perform further processing.
Firstly, the ring network switch opens the auxiliary port to prepare for receiving the monitoring data stream which can not be transmitted to the main port through the auxiliary port.
Meanwhile, the looped network switch deletes the MAC address table entry learned from the main port, so the reason for processing is that the MAC address table entries of the ordinary switch A, the ordinary switch B and the ordinary switch C are necessarily learned from the main port, and if the MAC address table entries are not deleted, the subsequent message sent through the auxiliary port may be sent through the main port.
Then, the ring network switch takes the MAC address learned by the uplink port (i.e. the MAC address of the gateway device) as the source MAC address, and constructs a plurality of multicast messages to be sent out from the auxiliary port. Due to the existence of the open circuit, such multicast messages can be received only by the ordinary switch A, the ordinary switch B and the ordinary switch C. After receiving the multicast message, the common switch a, the common switch B and the common switch C can rapidly refresh the learned MAC address table entry and learn the MAC address table entry to the port receiving the multicast message. Therefore, the common switch a, the common switch B and the common switch C learn the counterclockwise port by using the source MAC address of the multicast packet as the destination MAC address of the uplink traffic.
After the processing, the monitoring data flows of the common switch A, the common switch B and the common switch C are reported to the auxiliary port along the anticlockwise direction, the monitoring data flows of the common switch D, the common switch E, the common switch F and the common switch G are continuously and normally reported to the main port, and the monitoring data flows in the monitoring ring network system cannot be lost. Such a process allows for fast recovery of traffic, avoiding traffic loss due to waiting too long for MAC aging or automatic update procedures.
It should be noted that, in this process, the primary port still continues to periodically send the ring network detection packet to the secondary port, if the open circuit continues, the ring network detection packet still cannot reach the secondary port, and the ring network switch continues to receive the monitoring data stream through the primary port and the secondary port together. If the broken circuit is recovered, the ring network detection message will reach the auxiliary port, the ring network switch determines that the monitoring of the abnormal state of the ring network system is finished, and the ring network switch is recovered to a normal closed state, and the ring network switch needs to perform the following recovery processing.
First, the ring network switch blocks the auxiliary port and stops receiving the monitoring data stream through the auxiliary port.
And simultaneously, deleting the MAC address table entry learned on the auxiliary port by the ring network switch.
Then, the ring network switch takes the MAC address learned by the uplink port (i.e. the MAC address of the gateway device) as the source MAC address, and constructs a plurality of multicast messages to be sent out from the master port. Since the disconnection is recovered, such multicast packet will be sent to all the ordinary switches in the monitoring ring network system, and certainly, because of the blocking, the multicast packet will not be received by the auxiliary port. After receiving the multicast message, each common switch can rapidly refresh the MAC address table item learned by itself and learn the MAC address table item to the port receiving the multicast message. Therefore, each common switch in the monitoring ring network system learns the port in the clockwise direction by taking the source MAC address of the multicast message as the destination MAC address of the uplink flow.
After the above processing, the monitoring data flow of each ordinary switch will continue to be normally reported to the main port, and the data interaction state shown in fig. 4 is recovered.
It should be further noted that the multicast packet may also be replaced by a broadcast packet, and if the ring network switch is a gateway device, the source MAC address of the multicast/broadcast packet constructed by the ring network switch is the MAC address of the ring network switch, and such a change does not affect the protection scope of the present application.
The technical solution proposed in the embodiments of the present application is further described below with reference to specific application scenarios. As shown in fig. 6, a flowchart of a ring network networking method in a specific application scenario provided in the embodiment of the present application is shown, and for a specific networking structure diagram, reference may be made to the structure diagram shown in fig. 3. The method specifically comprises the following steps:
step S601, a monitoring ring network system is established through a ring network switch and a plurality of common switches, the ring network switch is connected with other common switches through a main port and an auxiliary port and is connected with gateway equipment through an uplink port, and an access end of each common switch is IPC.
Step S602, the ring network switch opens the primary port, blocks the secondary port, and uses the MAC address of the gateway device learned by the upstream port as the source MAC to construct a multicast packet and send the multicast packet, so that each ordinary switch learns the clockwise port by using the source MAC address of the multicast packet as the destination MAC address of the upstream traffic.
Through the step, each common switch determines an uplink route, and reports the uplink route to the main port along a clockwise path after the monitoring data flow is acquired through the IPC connected with the switch.
Because the auxiliary port is in the blocking state, the multicast message sent by the main port cannot be received.
In this embodiment, the MAC address of the gateway device is 0001:0001:0001, and each ordinary switch learns the MAC address on the clockwise port.
Step S603, the ring network switch periodically sends a ring network detection message to the auxiliary port through the main port, so as to detect whether the state of the monitoring ring network system is normal.
If the auxiliary port receives the ring network detection message within the preset time range, the detection result is determined to be normal, and the step S603 is returned to perform the next period of detection.
If the auxiliary port does not receive the ring network detection message within the predetermined time range, it is determined that the detection result is abnormal, and step S604 is executed.
Step S604, the ring network switch opens the auxiliary port, and deletes the MAC address table entry learned on the main port.
The detailed description refers to the foregoing embodiments and will not be repeated here.
Step S605, the ring network switch uses the MAC address learned by the uplink port as a source MAC address to construct a plurality of multicast messages and send the multicast messages from the auxiliary port.
Since the MAC address of the gateway device is 0001:0001:0001, the specific content example of the multicast packet constructed in this step is as follows:
source MAC address 0001:0001:0001
Destination MAC address 0100:5E00:FFFF
Ethernet frame type 0x0800
Data part Optionally filled
The multicast message is forwarded on the ordinary switches in a broadcasting mode, each ordinary switch refreshes the MAC address table item of the ordinary switch while forwarding, and the source MAC address is learned on the port receiving the multicast message and is used as the destination MAC address for reporting the monitoring data stream.
And the IPC directly discards the multicast message after receiving the multicast message.
Through the processing of the step, the uplink MAC address table entries of the common switches affected by the open circuit are refreshed, and the flow of the monitoring data flow can be quickly recovered.
Step S606, the ring network switch periodically sends a ring network detection message to the auxiliary port through the main port, so as to detect whether the state of the monitoring ring network system is recovered.
If the auxiliary port does not receive the ring network detection message within the preset time range, the detection result is determined that the state is not recovered, and the step S606 is returned to perform the detection of the next period.
If the auxiliary port receives the ring network detection message within the predetermined time range, it is determined that the detection result is status recovery, and step S607 is executed.
Step S607, the ring network switch blocks the auxiliary port, and deletes the MAC address table entry learned on the auxiliary port.
Step S608, the ring network switch uses the MAC address learned by the uplink port as a source MAC address to construct a plurality of multicast messages and send the multicast messages from the master port.
Since the disconnection is recovered, such multicast packet will be sent to all the ordinary switches in the monitoring ring network system, and certainly, because of the blocking, the multicast packet will not be received by the auxiliary port. After receiving the multicast message, each common switch can rapidly refresh the MAC address table item learned by itself and learn the MAC address table item to the port receiving the multicast message. Therefore, each common switch in the monitoring ring network system learns the port in the clockwise direction by taking the source MAC address of the multicast message as the destination MAC address of the uplink flow. The monitoring data flow of each ordinary switch will continue to be normally reported to the main port.
After the recovery is completed, the process returns to step S603 to continue the detection of the ring network monitoring state.
Through the processing process, the technical scheme provided by the embodiment of the application can adjust the reporting direction of the monitoring data stream in time according to the state change of the monitoring ring network system, ensure the timely recovery of the monitoring data stream under the condition of circuit breaking, avoid the loss of the monitoring data stream and ensure the rapid convergence characteristic required by the monitoring ring network system.
On the other hand, it should be noted that, because the intermediate ordinary switch does not support the ring network technology, when the ring network is switched from the open state to the closed state, there may be an instant ring network. Therefore, the ring network switch needs to limit the speed of the multicast/broadcast message of the port, and meanwhile, the multicast/broadcast message of the main port will not be forwarded to the auxiliary port, and the multicast/broadcast message of the auxiliary port will not be forwarded to the main port.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the beneficial technical effects that:
the embodiment of the application discloses a networking method of a monitoring ring network, which realizes the networking of a monitoring ring network system through a ring network switch and a plurality of ordinary switches, receives a monitoring data stream sent by the ordinary switches through a main port, and timely sends a multicast/broadcast message with a source address as a gateway equipment MAC address through an auxiliary port when a monitoring ring system is broken through the detection of the link state of the monitoring ring network system, updates MAC table items of the ordinary switches affected by the broken circuit, so that the ordinary switches are enabled to transmit the monitoring data stream to the auxiliary port, thereby avoiding the loss of the monitoring data stream when the ring system is broken. The networking mode can ensure the reliable transmission of the monitoring data stream in the monitoring ring network system only by one ring network switch, ensures the normal operation of the monitoring ring network system, does not need to adopt the ring network switches to carry out the networking of the monitoring ring network system, ensures that the monitoring ring network system is compatible with the low-cost common switch and the user existing common switch, effectively reduces the cost, avoids the waste of the existing equipment, simultaneously, only has the networking structure of one ring network switch, also ensures the unification of the ring network protocol, and reduces the networking difficulty and the cost of the monitoring ring network system.
To more clearly illustrate the solutions provided by the foregoing embodiments of the present application, based on the same inventive concept as the foregoing method, the embodiments of the present application further provide a ring network switch, whose schematic structural diagram is shown in fig. 7. This looped netowrk switch is applied to including a looped netowrk switch and the control looped netowrk system that many ordinary switches constitute, the looped netowrk switch includes main port 71, assists port 72 and goes up port 73, and is further, still specifically includes:
a detecting module 74, configured to detect a state of a link of the monitoring ring network system;
the port management module 75 is configured to block the auxiliary port 72 when the detection module 74 determines that the current state of the link of the monitoring ring network system is a normal closed state, or open the auxiliary port 72 when the detection module 74 determines that the link of the monitoring ring network system is currently open;
an updating module 76, configured to send a multicast/broadcast packet through the auxiliary port 72 when the detecting module 74 detects that there is an open circuit in the link of the monitoring ring network system, where a source address of the multicast/broadcast packet is an MAC address of the gateway device;
a receiving module 77, configured to receive, through the primary port 71, a monitoring data stream forwarded by each ordinary switch via a link of the monitoring ring network system when the detection module 74 determines that the current state of the link of the monitoring ring network system is a normal closed state, or receive, through the primary port 71, a monitoring data stream forwarded by each ordinary switch that is not affected by the disconnection via a link on one side connected to the primary port 71 when the detection module 74 determines that the link of the monitoring ring network system currently has a disconnection, and receive, through the secondary port 72, a monitoring data stream forwarded by each ordinary switch that is affected by the disconnection via a link on one side connected to the secondary port 72;
a reporting module 78, configured to report the monitoring data stream received by the receiving module 77 through a gateway device via the uplink port 73.
Preferably, the detection module 74 is specifically configured to:
periodically sending a detection message to the auxiliary port 72 through the primary port 71 and the link of the monitoring ring network system;
when the detection message is received through the auxiliary port 72 within a preset time range, determining that the current state of the link of the monitoring ring network system is a normal closed state;
and when the detection message is not received through the auxiliary port 72 within a preset time range, determining that the link of the monitoring ring network system is currently broken.
Preferably, the updating module 76 is specifically configured to:
when the detection module 74 detects that there is a broken link in the monitoring ring network system, deleting the learned MAC entry on the main port 71;
and generating a multicast/broadcast message by using the MAC address of the gateway device as a source address, and sending the multicast/broadcast message through the auxiliary port 72, so that each common switch affected by the disconnection updates the learned MAC entry to a port of a link on one side connected to the auxiliary port 72.
Preferably, the updating module 76 is further configured to:
when the detection module 74 detects that the current state of the link of the monitoring ring network system is restored to the normal closed state, deleting the learned MAC entry on the auxiliary port 72;
and generating a multicast/broadcast message by using the MAC address of the gateway device as a source address, and sending the multicast/broadcast message through the main port 71, so that each common switch in the monitoring ring network system updates the learned MAC entry to a port of a link on one side connected to the main port 71.
Preferably, the ring network switch further comprises:
a suppressing module 79, configured to limit, according to a preset threshold, the number and frequency of multicast/broadcast messages sent by the updating module 76 through the primary port 71 or the secondary port 72, shield, at the primary port 71, the multicast/broadcast message sent by the secondary port 72, and shield, at the secondary port 72, the multicast/broadcast message sent by the primary port 71.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the beneficial technical effects that:
the embodiment of the application discloses a networking method and a networking device for a monitoring ring network, the networking method realizes the networking of a monitoring ring network system through a ring network switch and a plurality of common switches, a main port receives a monitoring data stream sent by the common switches, and the link state of the monitoring ring network system is detected, when the monitoring ring network system is broken, a multicast/broadcast message with a source address as a gateway equipment MAC address is sent through an auxiliary port in time, the MAC table item of the common switch affected by the broken circuit is updated, so that the monitoring data stream is transmitted to the auxiliary port, and the loss of the monitoring data stream is avoided when the ring network is broken. The networking mode can ensure the reliable transmission of the monitoring data stream in the monitoring ring network system only by one ring network switch, ensures the normal operation of the monitoring ring network system, does not need to adopt the ring network switches to carry out the networking of the monitoring ring network system, ensures that the monitoring ring network system is compatible with the low-cost common switch and the user existing common switch, effectively reduces the cost, avoids the waste of the existing equipment, simultaneously, only has the networking structure of one ring network switch, also ensures the unification of the ring network protocol, and reduces the networking difficulty and the cost of the monitoring ring network system.
Through the above description of the embodiments, it is clear to those skilled in the art that the embodiments of the present invention may be implemented by hardware, or by software plus a necessary general hardware platform. Based on such understanding, the technical solution of the embodiment of the present invention may be embodied in the form of a software product, where the software product may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.), and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network-side device, etc.) to execute the method described in each embodiment of the present invention.
Those skilled in the art will appreciate that the figures are merely schematic representations of one preferred implementation scenario and that the blocks or flow diagrams in the figures are not necessarily required to implement embodiments of the present invention.
Those skilled in the art will appreciate that the modules in the devices in the implementation scenario may be distributed in the devices in the implementation scenario according to the description of the implementation scenario, or may be located in one or more devices different from the present implementation scenario with corresponding changes. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The sequence numbers of the embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the implementation scenarios.
The above disclosure is only a few specific implementation scenarios of the embodiments of the present invention, but the embodiments of the present invention are not limited thereto, and any variations that can be considered by those skilled in the art should fall within the scope of the business limitations of the embodiments of the present invention.

Claims (8)

1. A networking method for monitoring a ring network is characterized in that the networking method is applied to a monitoring ring network system composed of a ring network switch and a plurality of ordinary switches, the ring network switch comprises a main port, an auxiliary port and an uplink port, the ring network switch blocks the auxiliary port, monitoring data streams forwarded by the ordinary switches through links of the monitoring ring network system are received through the main port, and the monitoring data streams are reported through gateway equipment through the uplink port, and the method specifically comprises the following steps:
the ring network switch detects the state of the link of the monitoring ring network system;
when the ring network switch detects that the link of the monitoring ring network system is disconnected, the ring network switch sends a multicast/broadcast message through the auxiliary port, wherein the source address of the multicast/broadcast message is the Media Access Control (MAC) address of the gateway equipment;
the ring network switch receives monitoring data streams forwarded by the common switches which are not influenced by the broken circuit through the link at one side connected with the main port through the main port, and receives the monitoring data streams forwarded by the common switches which are influenced by the broken circuit through the link at one side connected with the auxiliary port through the auxiliary port;
the ring network switch reports the monitoring data streams received by the main port and the auxiliary port through the uplink port by the gateway equipment;
when the ring network switch detects that the link of the monitoring ring network system is disconnected, the ring network switch sends a multicast/broadcast message through the auxiliary port, and the method specifically includes the following steps:
when the ring network switch detects that the link of the monitoring ring network system is disconnected, the ring network switch opens the auxiliary port;
the ring network switch deletes the learned MAC table item on the main port;
and the ring network switch generates a multicast/broadcast message by taking the MAC address of the gateway equipment as a source address, and sends the multicast/broadcast message through the auxiliary port, so that each common switch influenced by the disconnection updates the learned MAC table item to the port of the link at one side connected with the auxiliary port.
2. The method of claim 1, wherein the ring network switch detecting the status of the link of the monitoring ring network system specifically comprises:
the ring network switch periodically passes through the main port and transmits a detection message to the auxiliary port through the link of the monitoring ring network system;
when the ring network switch receives the detection message through the auxiliary port within a preset time range, the ring network switch confirms that the current state of the link of the monitoring ring network system is a normal closed state;
and when the ring network switch does not receive the detection message through the auxiliary port within a preset time range, the ring network switch confirms that the link of the monitoring ring network system is currently broken.
3. The method of claim 1, wherein after the ring network switch detects that there is a broken link of the monitoring ring network system, the method further comprises:
when the ring network switch detects that the current state of the link of the monitoring ring network system is recovered to be a normal closed state, the ring network switch blocks the auxiliary port;
the ring network switch deletes the learned MAC table item on the auxiliary port;
the ring network switch generates a multicast/broadcast message by taking the MAC address of the gateway equipment as a source address, and sends the multicast/broadcast message through the main port, so that each common switch in the monitoring ring network system updates the learned MAC table item to a port of a link at one side connected with the main port;
and the ring network switch receives the monitoring data flow forwarded by the link of the monitoring ring network system through each common switch through the main port, and reports the monitoring data flow through the gateway equipment through the uplink port.
4. The method of claim 1 or 3, further comprising:
the ring network switch limits the sending quantity and frequency of the multicast/broadcast messages according to a preset threshold value;
and the ring network switch shields the multicast/broadcast message sent by the auxiliary port at the main port, and shields the multicast/broadcast message sent by the main port at the auxiliary port.
5. The utility model provides a looped netowrk switch which characterized in that is applied to in the control looped netowrk system that comprises a looped netowrk switch and many ordinary switches, the looped netowrk switch includes main port, assists port and goes upward the port, reports the control data stream through gateway equipment, still specifically includes:
the detection module is used for detecting the state of the link of the monitoring ring network system;
the port management module is used for blocking the auxiliary port when the detection module determines that the current state of the link of the monitoring ring network system is a normal closed state, or opening the auxiliary port when the detection module determines that the link of the monitoring ring network system is currently broken;
the updating module is used for sending a multicast/broadcast message through the auxiliary port when the detection module detects that the link of the monitoring ring network system has an open circuit, wherein the source address of the multicast/broadcast message is the MAC address of the gateway equipment;
a receiving module, configured to receive, through the master port, a monitoring data stream forwarded by each ordinary switch via a link of the monitoring ring network system when the detection module determines that the current state of the link of the monitoring ring network system is a normal closed state, or receive, through the master port, a monitoring data stream forwarded by each ordinary switch that is not affected by an open circuit via a link on one side connected to the master port when the detection module determines that the link of the monitoring ring network system currently has an open circuit, and receive, through the auxiliary port, a monitoring data stream forwarded by each ordinary switch that is affected by an open circuit via a link on one side connected to the auxiliary port;
a reporting module, configured to report, through the uplink port, the monitoring data stream received by the receiving module through a gateway device;
wherein the update module is specifically configured to:
when the detection module detects that the link of the monitoring ring network system has an open circuit, deleting the learned MAC table entry on the main port;
and generating a multicast/broadcast message by taking the MAC address of the gateway equipment as a source address, and sending the multicast/broadcast message through the auxiliary port, so that each common switch influenced by the disconnection updates the learned MAC table entry to a port of a link at one side connected with the auxiliary port.
6. The ring network switch of claim 5, wherein the detection module is specifically configured to:
periodically sending a detection message to the auxiliary port through the primary port and a link of the monitoring ring network system;
when the detection message is received through the auxiliary port within a preset time range, determining that the current state of the link of the monitoring ring network system is a normal closed state;
and when the detection message is not received through the auxiliary port within a preset time range, determining that the link of the monitoring ring network system is currently broken.
7. The ring network switch of claim 5, wherein the update module is further configured to:
when the detection module detects that the current state of the link of the monitoring ring network system is recovered to a normal closed state, deleting the learned MAC table entry on the auxiliary port;
and generating a multicast/broadcast message by taking the MAC address of the gateway equipment as a source address, and sending the multicast/broadcast message through the main port so as to enable each common switch in the monitoring ring network system to update the learned MAC table entry to a port of a link at one side connected with the main port.
8. The ring network switch as claimed in claim 5 or 7, further comprising:
and the inhibiting module is used for limiting the number and the frequency of the multicast/broadcast messages sent by the updating module through the main port or the auxiliary port according to a preset threshold value, shielding the multicast/broadcast messages sent by the auxiliary port at the main port, and shielding the multicast/broadcast messages sent by the main port at the auxiliary port.
CN201610663464.XA 2016-08-12 2016-08-12 Networking method and device for monitoring ring network Active CN106341297B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610663464.XA CN106341297B (en) 2016-08-12 2016-08-12 Networking method and device for monitoring ring network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610663464.XA CN106341297B (en) 2016-08-12 2016-08-12 Networking method and device for monitoring ring network

Publications (2)

Publication Number Publication Date
CN106341297A CN106341297A (en) 2017-01-18
CN106341297B true CN106341297B (en) 2020-01-14

Family

ID=57824125

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610663464.XA Active CN106341297B (en) 2016-08-12 2016-08-12 Networking method and device for monitoring ring network

Country Status (1)

Country Link
CN (1) CN106341297B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106899471A (en) * 2017-04-20 2017-06-27 无锡锐格思信息技术有限公司 A kind of Ring protection system and method
CN116248583A (en) * 2023-01-03 2023-06-09 重庆长安汽车股份有限公司 Communication redundancy configuration method and device of vehicle-mounted controller, vehicle and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252500A (en) * 2008-04-16 2008-08-27 杭州华三通信技术有限公司 Intersect looped network, node and realizing method of random topology intersect looped network
EP2051447A1 (en) * 2007-01-23 2009-04-22 Huawei Technologies Co Ltd Method, device and system for ring protection
CN102710492A (en) * 2012-03-29 2012-10-03 浙江宇视科技有限公司 Method and device for looped network protection

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252503B (en) * 2008-02-05 2010-12-08 华为技术有限公司 Method and apparatus for switching traffic of looped network
CN101557313B (en) * 2009-04-21 2012-09-26 烽火通信科技股份有限公司 Method for protecting uplink plate card of carrier-grade broadband access equipment
CN105338127B (en) * 2014-07-18 2018-12-07 华为技术有限公司 MAC address table updating method, interchanger and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2051447A1 (en) * 2007-01-23 2009-04-22 Huawei Technologies Co Ltd Method, device and system for ring protection
CN101252500A (en) * 2008-04-16 2008-08-27 杭州华三通信技术有限公司 Intersect looped network, node and realizing method of random topology intersect looped network
CN102710492A (en) * 2012-03-29 2012-10-03 浙江宇视科技有限公司 Method and device for looped network protection

Also Published As

Publication number Publication date
CN106341297A (en) 2017-01-18

Similar Documents

Publication Publication Date Title
US20080068985A1 (en) Network redundancy method and middle switch apparatus
JP4610621B2 (en) Network system
CN101771618B (en) Host routing reachable method and system in access ring of packet transport network
US8588060B2 (en) E-spring (G.8032) interworking to provide access protection
US9185036B2 (en) Method and apparatus for flow control of data in a network
CN104980372A (en) Relay System And Switching Device
CN103428060A (en) Seamless redundancy realization method of loop network
WO2009082825A1 (en) Interworking an ethernet ring network and an ethernet network with traffic engineered trunks
CN101072154B (en) Loop Ethernet switching method
CN103607293B (en) A kind of flow rate protecting method and equipment
CN103944828A (en) Method and equipment for transmitting protocol messages
CN102480409B (en) Method for realizing rapid ring protection protocol (RRPP) loop shunting uplink, RRPP loop and device
CN105897515A (en) Ethernet loop detecting and processing method based on IPRAN equipment
CN101854283A (en) Communication method and equipment of RPR (Resilient Packet Ring) looped network
CN102281165A (en) Fault detection method based on QoS, system and apparatus thereof
JP2013239807A (en) Communication device
CN102916862B (en) Intelligent looped network dynamic protection method of industrial Ethernet switch
CN106341297B (en) Networking method and device for monitoring ring network
US10489236B2 (en) Method and system for managing a communication network
CN104780104A (en) Packet forwarding method and device in Smart Link networking
CN112995002B (en) Switch ring network design method, switch and storage medium
US20120224488A1 (en) Method of connectivity monitoring by subscriber line terminating apparatus
CN110690989A (en) Service data transmission method, device and computer readable storage medium
US8649261B2 (en) Method and system for blocking protocol messages at a sub-ring control channel without virtual channel
CN101834770B (en) Ethernet multiple-ring network address refreshing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant