CN114866394A - Method and device for automatically electing blocked port by FRRP ring - Google Patents
Method and device for automatically electing blocked port by FRRP ring Download PDFInfo
- Publication number
- CN114866394A CN114866394A CN202210471226.4A CN202210471226A CN114866394A CN 114866394 A CN114866394 A CN 114866394A CN 202210471226 A CN202210471226 A CN 202210471226A CN 114866394 A CN114866394 A CN 114866394A
- Authority
- CN
- China
- Prior art keywords
- node
- port
- election
- bandwidth information
- interactive 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 230000002452 interceptive effect Effects 0.000 claims abstract description 144
- 230000000903 blocking effect Effects 0.000 claims abstract description 49
- 230000005540 biological transmission Effects 0.000 claims description 36
- 238000004891 communication Methods 0.000 claims description 8
- 230000002265 prevention Effects 0.000 claims description 3
- 230000003993 interaction Effects 0.000 description 17
- 230000008569 process Effects 0.000 description 12
- 230000006870 function Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000011084 recovery Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000002955 isolation Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000002776 aggregation Effects 0.000 description 1
- 238000004220 aggregation Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000036541 health Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/30—Decision processes by autonomous network management units using voting and bidding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0876—Aspects of the degree of configuration automation
- H04L41/0886—Fully automatic configuration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0896—Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/50—Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Automation & Control Theory (AREA)
- Small-Scale Networks (AREA)
Abstract
The present disclosure relates to a method and a device for automatically electing a blocked port by an FRRP ring, wherein the method comprises the following steps: all devices of a control VLAN in an FRRP ring are taken as election nodes, and the election nodes automatically collect bandwidth information values of ports belonging to the control VLAN; the election nodes respectively generate interactive messages comprising bandwidth information fields and MAC fields; the election nodes respectively send interactive messages to the control VLAN; after receiving the interactive message, the election node compares the received interactive message with the generated interactive message, only forwards the interactive message which is smaller than the bandwidth information field value of the generated interactive message and is the same as the bandwidth information field value, and sets the election node as a main node when the election node finally receives the interactive message sent to the control VLAN by the election node; and setting the port with the small bandwidth information value in the ports belonging to the control VLAN and included by the main node as a blocking port.
Description
Technical Field
The disclosure relates to the technical field of fast ring network recovery protocol (FRRP), in particular to a method and a device for automatically electing a blocked port by an FRRP ring.
Background
The FRRP Protocol (Fast Ring Recovery Protocol) is a link layer Protocol specially applied to an ethernet Ring, and when a link or a device on the ethernet Ring fails, a backup link can be quickly switched to, thereby ensuring quick Recovery of a service. The FRRP protocol supports VLAN division in a ring network, and transmits ring network control information by using a special control channel (control VLAN) to realize the isolation of the control information and service data; the method supports the link aggregation group to elastically expand the bandwidth of the looped network; the method supports real-time looped network health state detection, can quickly find network faults and realize quick fault link switching, has the convergence time of the whole FRRP network not exceeding 30ms, and has the obvious advantage that the convergence time is irrelevant to the number of nodes on the looped network. Compared with the ring network technology based on the improved schemes such as RSTP and the like, the FRRP has the characteristics of high topology convergence speed, flexible networking, complete technology and the like, and is suitable for large-scale industrial networks.
The technical scheme of the existing FRRP is that a user manually configures a main node, a transmission node and a main port and an auxiliary port of each node in an FRRP ring. The bandwidth of each link is not necessarily consistent for the whole FRRP ring, and when the manual configuration mode of the user is adopted, the blocked ports may have higher bandwidth, and other links which are not blocked in the links may have lower bandwidth, so that the bandwidth is wasted unnecessarily.
Therefore, there is a need for a method and apparatus for FRRP rings to automatically elect a low bandwidth port as a blocked port.
Disclosure of Invention
In view of the above, the present disclosure provides a method and apparatus for an FRRP ring to automatically elect a blocked port. According to an aspect of the present application, a method for automatically electing a blocked port by an FRRP ring is provided, which includes: collecting bandwidth information, taking all devices included in a control VLAN in an FRRP ring as election nodes, and automatically collecting bandwidth information values of ports of the election nodes, which belong to the control VLAN; generating interactive messages, wherein the election nodes respectively generate interactive messages comprising bandwidth information fields and MAC fields, and the values of the bandwidth information fields are the minimum bandwidth value in the collected bandwidth information values of the ports belonging to the control VLAN and the MAC addresses of the ports belonging to the control VLAN; sending an interactive message, wherein the election nodes send the interactive message to the control VLAN respectively; the election node compares the received interactive message with the generated interactive message after receiving the interactive message, only forwards the interactive message of which the bandwidth information field value is smaller than that of the generated interactive message and the interactive message of which the bandwidth information field value is the same as that of the generated interactive message, and sets the election node as a master node when the election node finally receives the interactive message sent to the control VLAN by the election node; setting a blocking port, setting a port with a large bandwidth information value in the ports belonging to the control VLAN and included in the main node as a main port, and setting a port with a small bandwidth information value in the ports belonging to the control VLAN and included in the main node as a blocking port.
According to the FRRP ring automatic election blocked port method of the present disclosure, it also includes: and setting a transmission node, comparing the received interactive message with the generated interactive message after the election node receives the interactive message, and setting the election node as the transmission node if the bandwidth information field value in the received interactive message is smaller than the bandwidth information field value of the generated interactive message or the bandwidth information field value is the same as the bandwidth information field value of the generated interactive message, and the MAC field value of the received interactive message is smaller than the MAC field value of the generated interactive message.
According to the FRRP ring automatic election blocked port method of the present disclosure, it also includes: and setting a port with a small bandwidth information value in ports belonging to the control VLAN and included in the transmission node as a secondary port.
According to the FRRP ring automatic election blocked port method of the present disclosure, it also includes: the main node sends a HELLO message from a main port of the main node, blocks a blocking port to prevent a data loop when the main node receives the HELLO message at the blocking port, and releases the blocking port to ensure normal communication of all nodes in the FRRP loop when the main node does not receive the HELLO message from the blocking port within a specified time.
According to another aspect of the present application, an FRRP ring auto-election blocking port device is provided, the device comprising: the system comprises a bandwidth information collection component, a control VLAN (virtual local area network) in an FRRP (radio frequency identification device) ring and a control VLAN (virtual local area network) in the FRRP ring, wherein all devices included in the control VLAN are elected nodes, and the elected nodes automatically collect bandwidth information values of ports of the elected nodes, which belong to the control VLAN; an interactive message generating component, configured to generate interactive messages including a bandwidth information field and an MAC field for each election node, where a value of the bandwidth information field is a minimum bandwidth value among the collected bandwidth information values belonging to the ports of the control VLAN, and a value of the MAC field is an MAC address of the MAC field; the interactive message sending component is used for sending the interactive message to the control VLAN by the election nodes respectively; the main node election component is used for comparing the received interactive message with the generated interactive message after the election node receives the interactive message, only forwarding the interactive message of which the MAC field value is smaller than that of the generated interactive message when the bandwidth information field value is smaller than that of the generated interactive message and is the same as that of the generated interactive message, and setting the election node as a main node when the election node finally receives the interactive message sent to the control VLAN by the election node; and a blocked port setting component, configured to set, as a master port, a port with a large bandwidth information value among ports belonging to the control VLAN included in the master node, and set, as a blocked port, a port with a small bandwidth information value among ports belonging to the control VLAN included in the master node.
According to the FRRP ring automatic election that this disclosure blocks port device, it still includes: and the transmission node setting component is used for comparing the received interactive message with the generated interactive message after the election node receives the interactive message, and setting the election node as a transmission node if the bandwidth information field value in the received interactive message is smaller than the bandwidth information field value of the generated interactive message or the bandwidth information field value in the received interactive message is the same as the bandwidth information field value of the generated interactive message.
According to the FRRP ring automatic election that this disclosure blocks port device, it still includes: a transport node port setting component configured to set, as a secondary port, a port having a small bandwidth information value among ports belonging to the control VLAN included in the transport node.
According to the FRRP ring automatic election that this disclosure blocks port device, it still includes: and the loop prevention component is used for sending a HELLO message from a main port of the main node, blocking the blocking port to prevent a data loop when the main node receives the HELLO message at the blocking port, and releasing the blocking port to ensure normal communication of all nodes in the FRRP loop when the main node does not receive the HELLO message from the blocking port within a specified time.
In summary, by adopting the method and the device for automatically electing the blocked port by the FRRP ring, the device with the low bandwidth in the FRRP ring is automatically elected as the master node, so that the port with the lowest bandwidth on the FRRP ring is automatically blocked purposefully, the bandwidth utilization rate of the whole link is improved, and the user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The above and other objects, features and advantages of the present application will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings. The drawings described below are only some embodiments of the present application, and other drawings may be derived from those drawings by those skilled in the art without inventive effort.
Fig. 1 is a schematic flow chart illustrating a method for automatically electing a blocked port by an FRRP ring according to an embodiment of the present disclosure.
Fig. 2 is a schematic flow chart illustrating the main node election in the FRRP ring automatic port-blocking election method according to the embodiment of the present disclosure.
Fig. 3 is a schematic block diagram of an FRRP ring auto-opt blocking port arrangement according to an embodiment of the disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals denote the same or similar parts in the drawings, and thus, a repetitive description thereof will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, systems, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
It is to be understood by those skilled in the art that the drawings are merely schematic representations of exemplary embodiments, and that the blocks or processes shown in the drawings are not necessarily required to practice the present disclosure and are, therefore, not intended to limit the scope of the present disclosure.
Each device on the FRRP ring is called a node on the FRRP ring, the nodes of the FRRP ring are divided into a main node and a transmission node, wherein each FRRP ring is provided with only one main node, and the main node can actively send a detection message to check the link state; all other nodes except the main node on the FRRP ring are transmission nodes, and the transmission nodes are responsible for transmitting protocol messages and monitoring the state of own adjacent links. If the transmission node detects that the adjacent link fails, the transmission node actively sends a protocol message to the ring network to notify the host node of the DOWN event of the link. The devices (main node and transmission node) in the FRRP ring are accessed to two ports of the ethernet ring, one is a main port, the other is a sub port, and the roles of the ports are determined by the configuration of a user.
The FRRP protocol supports VLAN division in a ring network, wherein a control VLAN is used for transmitting an FRRP protocol message, and a service VLAN is used for transmitting a data message, so that the isolation of control information and service data is realized.
According to the method for automatically electing the blocked port by the FRRP ring, after a user starts the FRRP function of the port of the equipment included in the FRRP ring and completes the configuration of the control VLAN and the service VLAN, the configuration of the main node and the blocked port can be automatically completed without manually configuring the main node. Through an election process, electing equipment where a port with the lowest bandwidth in the whole FRRP link is located as a unique main node, wherein the other equipment are all transmission nodes; and automatically selecting the port with low bandwidth as the secondary port through a comparison process. And then according to the existing flow, blocking the secondary port of the main node to prevent the data message from forming a broadcast loop on the ring topology.
In the method for automatically electing the blocked port by the FRRP ring, all equipment belonging to the control VLAN in the FRRP ring before the main node is generated in the non-electing process is called as an electing node, and the electing node participates in the electing of the main node.
Fig. 1 is a schematic flow chart illustrating a method for automatically electing a blocked port by an FRRP ring according to an embodiment of the present disclosure.
As shown in fig. 1, in step S102, bandwidth information is collected, and all devices included in a control VLAN in an FRRP ring are taken as election nodes, and each of the election nodes automatically collects a bandwidth information value of its port belonging to the control VLAN.
In step S104, an interactive packet is generated, and the election nodes each generate an interactive packet including a bandwidth information field and an MAC field, where a value of the bandwidth information field is a minimum bandwidth value among the collected bandwidth information values of the ports belonging to the control VLAN, and a value of the MAC field is an MAC address thereof.
More specifically, in step S102 and step S104, after the user activates the FRRP function to the port of the device participating in the FRRP ring, the election node automatically collects the bandwidth information of the port under the control VLAN, and records the minimum bandwidth information in the collected bandwidth information of the port under the control VLAN in a newly added message for exchanging information of each node. The message data structure is as follows:
bandwidth information | MAC address |
And then each election node in the initial state before election generates the interactive message which is the main node. The bandwidth information records the bandwidth information of the port with the minimum bandwidth belonging to the control VLAN port of the FRRP ring, and the MAC address of the MAC recording device.
In step S106, each election node sends an interaction packet to a control VLAN, and each election node sends the interaction packet to the control VLAN.
In step S108, the election host node compares the received interactive packet with the generated interactive packet after receiving the interactive packet, only forwards the interactive packet whose MAC field value is smaller than the MAC field value of the generated interactive packet if the bandwidth information field value is smaller than the bandwidth information field value of the generated interactive packet and if the bandwidth information field value is the same as the bandwidth information field value of the generated interactive packet, and sets the election node as the host node when the election node finally receives the interactive packet itself sends to the control VLAN.
More specifically, in step S106 and step S108, each election node sends its own configuration message to the outside, and after receiving the message, other election nodes in the ring first view the bandwidth information: when the bandwidth information field value in the message received by the election node is smaller than the bandwidth information field value in the message generated by the election node, forwarding the message; when the bandwidth information field value in the message received by the election node is larger than the bandwidth information field value in the message generated by the election node, discarding the message and not forwarding the message; when the bandwidth information in the message received by the electing node is the same as the bandwidth information in the message generated by the electing node, comparing the MAC address value, forwarding the interactive message smaller than the MAC address value of the equipment, and discarding the interactive message larger than the MAC address value of the equipment. Therefore, only the election node with the minimum bandwidth information (or the election node with the minimum MAC) can receive the interactive message sent by the election node, and the election node is elected as the main node.
In step S110, a blocking port is set, a port having a large bandwidth information value among the ports belonging to the control VLAN included in the master node is set as a master port, and a port having a small bandwidth information value among the ports belonging to the control VLAN included in the master node is set as a blocking port.
More specifically, after the elected node is elected as the master node, the bandwidth information collected from the ports under the control VLAN in the FRRP ring is compared, and the port with the smaller bandwidth information value is selected as the secondary port (blocked port) of the master node.
The method for automatically electing the blocked port by the FRRP ring according to the embodiment of the disclosure further comprises the following steps: and setting a transmission node, comparing the received interactive message with the generated interactive message after the election node receives the interactive message, and setting the election node as the transmission node if the bandwidth information field value in the received interactive message is smaller than the bandwidth information field value of the generated interactive message or the bandwidth information field value is the same as the bandwidth information field value of the generated interactive message, and the MAC field value of the received interactive message is smaller than the MAC field value of the generated interactive message.
More specifically, in step S106 and step S108, each election node sends its own configuration message to the outside, and after receiving the message, other election nodes in the ring first view the bandwidth information: when the value of the bandwidth information field in the message received by the election node is lower than that in the message generated by the election node, the message is forwarded, and the equipment is set as a transmission node; when the bandwidth information field value in the message received by the election node is the same as the bandwidth information field value in the message generated by the election node, comparing the MAC address values, forwarding the interactive message smaller than the MAC address value of the equipment, and setting the equipment as a transmission node.
The method for automatically electing the blocked port by the FRRP ring according to the embodiment of the disclosure further comprises the following steps: and setting a port with a small bandwidth information value in ports belonging to the control VLAN and included in the transmission node as a secondary port. More specifically, for the transmission node, the primary and secondary ports have no difference in function, but may also be determined by the primary node determining the primary and secondary ports, that is: and setting the port with the small bandwidth information value of the port of the transmission node belonging to the control VLAN as the auxiliary port.
The method for automatically electing the blocked port by the FRRP ring according to the embodiment of the disclosure further comprises the following steps: the main node sends a HELLO message from a main port of the main node, when the main node receives the HELLO message at a blocking port, the blocking port is blocked to prevent a data loop, and when the main node does not receive the HELLO message from the blocking port within a specified time, the blocking port is released to ensure normal communication of all nodes in an FRRP loop.
More specifically, according to the method for automatically electing a blocked port by an FRRP ring of the embodiment of the present disclosure, after the VLAN, the service VLAN, the master node, the transmission node, and the master and slave ports of each node are configured or elected in the FRRP ring, the flow of entering the FRRP blocked port is performed, that is: the main node sends a HELLO message from a main port, if the main node can receive the message from a secondary port (a blocking port), the FRRP looped network where the main node is located is complete, and the secondary port (the blocking port) is blocked to prevent a data loop; if the message can not be received within the specified time, the ring network failure is indicated, and the secondary port (blocking port) is released to ensure the normal communication of all the nodes on the ring.
Fig. 2 is a schematic flow chart illustrating the main node election in the FRRP ring automatic port-blocking election method according to the embodiment of the present disclosure.
As shown in fig. 2, in step S202, the election node collects bandwidth information of ports under the control VLAN.
In step S204, the election node generates an interaction packet.
In step S206, the election node regards itself as the master node and sends the generated interaction packet to the control VLAN.
In step S208, it is determined whether the bandwidth of the interactive message received by the node is smaller than that of the node itself. If the result of determining in step S208 whether the bandwidth of the interactive message received by the node is smaller than that of the node itself is yes, the process proceeds to step S210. In step S210, the received interactive packet is forwarded, and the node is set as a transmission node.
If the result of determining in step S208 whether the bandwidth of the interactive message received by the node is smaller than that of the node itself is "no", the process proceeds to step S212. In step S212, it is determined whether the bandwidth of the interactive message received by the node is equal to that of the node itself. If it is determined in step S212 that the result of the node receiving the interactive message is equal to the bandwidth of the node itself is yes, the flow proceeds to step S214. In step S214, it is determined whether the MAC in the interactive message received by the node is smaller than the MAC of the node itself. If it is determined in step S214 that the result of determining whether the MAC in the interactive message received by the node is smaller than the MAC value of the node itself is yes, the flow proceeds to step S218. In step S218, the received interactive packet is forwarded, and the node is set as a transmission node.
If the result of determining whether the bandwidth of the interactive message received by the node is smaller than itself in step S208 is "no", if the result of determining whether the bandwidth of the interactive message received by the node is equal to itself in step S212 is "yes", and if the result of determining whether the MAC of the interactive message received by the node is smaller than itself in step S214 is "no", the process proceeds to step S220. In step S220, it is determined whether the MAC in the interactive message received by the node is equal to itself. If it is determined in step S220 that the result of the MAC in the interactive message received by the node being equal to itself is yes, the flow proceeds to step S222. In step S222, it is verified that the interaction packet sent by the node itself is received, and the node is set as the master node.
If the result of determining whether the bandwidth of the interactive message received by the node is smaller than the bandwidth of the node is "no" in step S208, the result of determining whether the bandwidth of the interactive message received by the node is equal to the bandwidth of the node is "yes" in step S212, the result of determining whether the MAC of the interactive message received by the node is smaller than the MAC of the node is "no" in step S214, and the result of determining whether the MAC of the interactive message received by the node is equal to the MAC of the node is "no" in step S220, the process proceeds to step S224. In step S224, the received interactive packet is discarded and is not forwarded.
If it is determined in step S208 that the bandwidth of the interactive message received by the node is smaller than that of the node itself, the process proceeds to step S216, and if it is determined in step S212 that the bandwidth of the interactive message received by the node is equal to that of the node itself, the process proceeds to step S216. In step S216, the received interactive packet is discarded and is not forwarded.
Fig. 3 is a schematic block diagram of an FRRP ring auto-opt blocking port arrangement according to an embodiment of the present disclosure.
As shown in fig. 3, an FRRP ring according to an embodiment of the present disclosure elects automatically a blocking port device, the device comprising: a bandwidth information collection component 302, an interaction message generation component 304, an interaction message sending component 306, a master node election component 308, and a blocked port setting component 310.
The bandwidth information collecting component 302 is configured to use all devices included in a control VLAN in an FRRP ring as election nodes, where the election nodes each automatically collect a bandwidth information value of a port belonging to the control VLAN;
an interactive packet generating component 304, configured to generate interactive packets including a bandwidth information field and an MAC field for each election node, where a value of the bandwidth information field is a minimum bandwidth value among the collected bandwidth information values belonging to the ports of the control VLAN, and a value of the MAC field is an MAC address of the MAC field;
an interactive packet sending component 306, configured to send the interactive packet to the control VLAN by each election node;
a master node election component 308, configured to, after an election node receives an interaction packet, compare the received interaction packet with a generated interaction packet, forward only an interaction packet whose MAC field value is smaller than that of the generated interaction packet when a bandwidth information field value of the interaction packet is smaller than that of the generated interaction packet and when the bandwidth information field value of the interaction packet is the same as that of the generated interaction packet, and set the election node as a master node when the election node finally receives an interaction packet which is sent to the control VLAN by itself;
a blocked port setting component 310, configured to set, as a master port, a port with a large bandwidth information value among the ports belonging to the control VLAN included in the master node, and set, as a blocked port, a port with a small bandwidth information value among the ports belonging to the control VLAN included in the master node.
According to the FRRP ring automatic election port blocking device of the embodiment of the present disclosure, it further includes: a transmission node setting component 312, configured to compare the received interactive packet with the generated interactive packet after the election node receives the interactive packet, and set the election node as a transmission node if a bandwidth information field value in the received interactive packet is smaller than a bandwidth information field value of the generated interactive packet or the bandwidth information field value in the received interactive packet is the same as the bandwidth information field value of the generated interactive packet.
According to the FRRP ring automatic election port blocking device of the embodiment of the present disclosure, it further includes: a transport node port setting component 314 configured to set a port having a small bandwidth information value among ports belonging to the control VLAN included in the transport node as a secondary port.
According to the FRRP ring automatic election port blocking device of the embodiment of the present disclosure, it further includes: a loop prevention component 316, configured to send a HELLO packet from its master port, block a blocking port to prevent a data loop when the master node receives the HELLO packet at the blocking port, and release the blocking port to ensure normal communication of all nodes in the FRRP loop when the master node does not receive the HELLO packet from the blocking port within a specified time.
In summary, by adopting the method and the device for automatically electing the blocked port by the FRRP ring, the device with the low bandwidth in the FRRP ring is automatically elected as the master node, so that the port with the lowest bandwidth on the FRRP ring is automatically blocked purposefully, the bandwidth utilization rate of the whole link is improved, and the user experience is improved.
In general, in order to improve the bandwidth utilization in the frrp loop and avoid the situation that the link bandwidth may be wasted unnecessarily in the frrp loop, a method and an apparatus capable of automatically electing a blocked link are needed to improve the bandwidth utilization. The prior art blocks the secondary port by default to prevent loops by the user manually configuring the primary node and its primary and secondary ports in the frrp loop. The invention does not need to configure the main node manually, and only needs the user to enable the frrp function of the port in the frrp ring and configure the control vlan and the service vlan. Adding a comparison process, and automatically selecting a port with low bandwidth as a secondary port; and meanwhile, an election process is added, the equipment where the port with the lowest bandwidth in the whole frrp link is located is elected as a unique main node, and the rest equipment are all transmission nodes. And then according to the existing flow, blocking the secondary port of the data message to prevent the data message from forming a broadcast loop on the ring topology. The master nodes in the frrp ring are first automatically elected. Specifically, after the user enables the frrp function of the port participating in the frrp ring, the device automatically collects bandwidth information of the port under the control vlan, and records the minimum bandwidth information in a newly added message for exchanging information of each node, where the data structure of the message includes the bandwidth information and the MAC address. In an initial state, each device generates the interactive message which is a main node, wherein bandwidth information records bandwidth information of a port with the minimum bandwidth under the frrp ring control vlan; the MAC records the MAC of the device itself. Each device sends its own configuration message to the outside, and after receiving the message, other devices in the ring first check the bandwidth information: when the bandwidth information in the message received by the equipment is lower than the bandwidth information in the message generated by the equipment, forwarding the message and setting the equipment as a transmission node; when the bandwidth information in the message received by the equipment is higher than the bandwidth information in the message generated by the equipment, discarding the message and not forwarding the message; when the bandwidth information in the message received by the equipment is the same as the bandwidth information in the message generated by the equipment, the MAC is compared, the forwarding is smaller, the equipment is set as a transmission node, and the MAC is discarded in a larger mode. Thus, only the device with the minimum bandwidth information (or the device with the minimum MAC) can receive the interactive message sent by itself, and the device is elected as the master node. The master node then determines the primary port and the secondary port. After the device is elected as a main node, the bandwidth information collected from the ports under the control vlan in the frrp ring is compared, and the port with the low bandwidth is selected as a secondary port. The transmission node then determines the primary port and the secondary port. There is no difference in the functionality of the primary and secondary ports for the transmission node. The method for determining the primary and secondary ports by the main node can also be adopted. The secondary port is then blocked to ensure no loops in the link. So far, the main node, the transmission node, the main and auxiliary ports of each node, the control vlan, the service vlan, etc. in the frrp ring are configured or elected, and the flow of frrp blocking ports in the prior art is entered: the main node sends a HELLO message from a main port of the main node, if the main node can receive the message from a secondary port, the FRRP looped network where the main node is located is complete, and the secondary port is blocked to prevent a data loop; if the message can not be received within the specified time, the ring network failure is indicated, and the secondary port is opened to ensure the normal communication of all the nodes on the ring.
The software product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Those skilled in the art will appreciate that the modules described above may be distributed in the apparatus according to the description of the embodiments, or may be modified accordingly in one or more apparatuses unique from the embodiments. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiment of the present application.
Exemplary embodiments of the present application are specifically illustrated and described above. It is to be understood that the application is not limited to the details of construction, arrangement, or method of implementation described herein; on the contrary, the intention is to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.
Claims (8)
1. A method for automatically electing a blocked port by an FRRP ring comprises the following steps:
collecting bandwidth information, taking all devices included in a control VLAN in an FRRP ring as election nodes, and automatically collecting bandwidth information values of ports of the election nodes, which belong to the control VLAN;
generating interactive messages, wherein the election nodes respectively generate interactive messages comprising bandwidth information fields and MAC fields, and the values of the bandwidth information fields are the minimum bandwidth value in the collected bandwidth information values of the ports belonging to the control VLAN and the MAC addresses of the ports belonging to the control VLAN;
sending an interactive message, wherein the election nodes respectively send the interactive message to the control VLAN;
the election node compares the received interactive message with the generated interactive message after receiving the interactive message, only forwards the interactive message of which the bandwidth information field value is smaller than that of the generated interactive message and the interactive message of which the bandwidth information field value is the same as that of the generated interactive message, and sets the election node as a master node when the election node finally receives the interactive message sent to the control VLAN by the election node;
setting a blocking port, setting a port with a large bandwidth information value in the ports belonging to the control VLAN and included in the main node as a main port, and setting a port with a small bandwidth information value in the ports belonging to the control VLAN and included in the main node as a blocking port.
2. The FRRP ring auto-election blocked port method of claim 1 further comprising:
and setting a transmission node, comparing the received interactive message with the generated interactive message after the election node receives the interactive message, and setting the election node as the transmission node if the bandwidth information field value in the received interactive message is smaller than the bandwidth information field value of the generated interactive message or the bandwidth information field value is the same as the bandwidth information field value of the generated interactive message, and the MAC field value of the received interactive message is smaller than the MAC field value of the generated interactive message.
3. The FRRP ring auto-election blocked port method of claim 2 further comprising:
and setting a port with a small bandwidth information value in ports belonging to the control VLAN and included in the transmission node as a secondary port.
4. The FRRP ring auto-election blocked port method of claim 3 further comprising:
the main node sends a HELLO message from a main port of the main node, blocks a blocking port to prevent a data loop when the main node receives the HELLO message at the blocking port, and releases the blocking port to ensure normal communication of all nodes in the FRRP loop when the main node does not receive the HELLO message from the blocking port within a specified time.
5. An FRRP ring auto-election blocked port device comprising:
the system comprises a bandwidth information collection component, a control VLAN (virtual local area network) in an FRRP (radio frequency identification device) ring and a control VLAN (virtual local area network) in the FRRP ring, wherein all devices included in the control VLAN are elected nodes, and the elected nodes automatically collect bandwidth information values of ports of the elected nodes, which belong to the control VLAN;
an interactive message generating component, configured to generate interactive messages including a bandwidth information field and an MAC field for each election node, where a value of the bandwidth information field is a minimum bandwidth value among the collected bandwidth information values belonging to the ports of the control VLAN, and a value of the MAC field is an MAC address of the MAC field;
the interactive message sending component is used for sending the interactive message to the control VLAN by the election nodes respectively;
the main node election component is used for comparing the received interactive message with the generated interactive message after the election node receives the interactive message, only forwarding the interactive message of which the MAC field value is smaller than that of the generated interactive message when the bandwidth information field value is smaller than that of the generated interactive message and is the same as that of the generated interactive message, and setting the election node as a main node when the election node finally receives the interactive message sent to the control VLAN by the election node;
and a blocked port setting component, configured to set, as a master port, a port with a large bandwidth information value among ports belonging to the control VLAN included in the master node, and set, as a blocked port, a port with a small bandwidth information value among ports belonging to the control VLAN included in the master node.
6. The FRRP ring auto-election blocking port device of claim 5 further comprising:
and the transmission node setting component is used for comparing the received interactive message with the generated interactive message after the election node receives the interactive message, and setting the election node as a transmission node if the bandwidth information field value in the received interactive message is smaller than the bandwidth information field value of the generated interactive message or the bandwidth information field value in the received interactive message is the same as the bandwidth information field value of the generated interactive message.
7. The FRRP ring auto-election blocking port device of claim 6 further comprising:
a transport node port setting component configured to set, as a secondary port, a port having a small bandwidth information value among ports belonging to the control VLAN included in the transport node.
8. The FRRP ring auto-election blocking port device of claim 7 further comprising:
and the loop prevention component is used for sending a HELLO message from a main port of the main node, blocking the blocking port to prevent a data loop when the main node receives the HELLO message at the blocking port, and releasing the blocking port to ensure normal communication of all nodes in the FRRP loop when the main node does not receive the HELLO message from the blocking port within a specified time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210471226.4A CN114866394A (en) | 2022-04-28 | 2022-04-28 | Method and device for automatically electing blocked port by FRRP ring |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210471226.4A CN114866394A (en) | 2022-04-28 | 2022-04-28 | Method and device for automatically electing blocked port by FRRP ring |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114866394A true CN114866394A (en) | 2022-08-05 |
Family
ID=82635476
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210471226.4A Pending CN114866394A (en) | 2022-04-28 | 2022-04-28 | Method and device for automatically electing blocked port by FRRP ring |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114866394A (en) |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101499948A (en) * | 2008-02-01 | 2009-08-05 | 杭州华三通信技术有限公司 | Arbitrarily topological intersected ring network protecting method, node and intersected ring network |
CN101499949A (en) * | 2008-02-01 | 2009-08-05 | 杭州华三通信技术有限公司 | Failure recovery processing method in intersected ring network, node and intersected ring network |
CN102014001A (en) * | 2010-12-08 | 2011-04-13 | 迈普通信技术股份有限公司 | Method and exchange equipment for realizing fast Ethernet ring |
CN102158384A (en) * | 2011-01-25 | 2011-08-17 | 武汉迈威光电技术有限公司 | Novel MRing Ethernet ring network protection technology |
CN102364900A (en) * | 2011-09-13 | 2012-02-29 | 杭州华三通信技术有限公司 | FRR (Fast ReRoute) based data transmission method and device in IRF (Intelligent Resilient Framework) system |
CN102726006A (en) * | 2011-11-23 | 2012-10-10 | 华为技术有限公司 | Ethernet ring protection switching method, node and system |
CN103001799A (en) * | 2012-11-23 | 2013-03-27 | 北京东土科技股份有限公司 | Method and node for achieving redundancy on basis of chain network |
CN103190121A (en) * | 2011-11-23 | 2013-07-03 | 华为技术有限公司 | Ethernet ring protection switching method, node and system |
US20140359364A1 (en) * | 2013-05-30 | 2014-12-04 | Dell Products L.P. | System and method for failure detection in rings |
CN105516658A (en) * | 2015-11-30 | 2016-04-20 | 浙江宇视科技有限公司 | Monitoring equipment control method and device |
CN105591859A (en) * | 2015-09-02 | 2016-05-18 | 杭州华三通信技术有限公司 | Method and device for dynamically adjusting blocked port for ERPS ring |
CN106685783A (en) * | 2016-12-29 | 2017-05-17 | 瑞斯康达科技发展股份有限公司 | Ring network protection method and system |
CN112995002A (en) * | 2021-04-27 | 2021-06-18 | 融智通科技(北京)股份有限公司 | Switch ring network design method, switch and storage medium |
-
2022
- 2022-04-28 CN CN202210471226.4A patent/CN114866394A/en active Pending
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101499949A (en) * | 2008-02-01 | 2009-08-05 | 杭州华三通信技术有限公司 | Failure recovery processing method in intersected ring network, node and intersected ring network |
CN101499948A (en) * | 2008-02-01 | 2009-08-05 | 杭州华三通信技术有限公司 | Arbitrarily topological intersected ring network protecting method, node and intersected ring network |
CN102014001A (en) * | 2010-12-08 | 2011-04-13 | 迈普通信技术股份有限公司 | Method and exchange equipment for realizing fast Ethernet ring |
CN102158384A (en) * | 2011-01-25 | 2011-08-17 | 武汉迈威光电技术有限公司 | Novel MRing Ethernet ring network protection technology |
CN102364900A (en) * | 2011-09-13 | 2012-02-29 | 杭州华三通信技术有限公司 | FRR (Fast ReRoute) based data transmission method and device in IRF (Intelligent Resilient Framework) system |
CN103190121A (en) * | 2011-11-23 | 2013-07-03 | 华为技术有限公司 | Ethernet ring protection switching method, node and system |
CN102726006A (en) * | 2011-11-23 | 2012-10-10 | 华为技术有限公司 | Ethernet ring protection switching method, node and system |
CN103001799A (en) * | 2012-11-23 | 2013-03-27 | 北京东土科技股份有限公司 | Method and node for achieving redundancy on basis of chain network |
US20140359364A1 (en) * | 2013-05-30 | 2014-12-04 | Dell Products L.P. | System and method for failure detection in rings |
CN105591859A (en) * | 2015-09-02 | 2016-05-18 | 杭州华三通信技术有限公司 | Method and device for dynamically adjusting blocked port for ERPS ring |
CN105516658A (en) * | 2015-11-30 | 2016-04-20 | 浙江宇视科技有限公司 | Monitoring equipment control method and device |
CN106685783A (en) * | 2016-12-29 | 2017-05-17 | 瑞斯康达科技发展股份有限公司 | Ring network protection method and system |
CN112995002A (en) * | 2021-04-27 | 2021-06-18 | 融智通科技(北京)股份有限公司 | Switch ring network design method, switch and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7233991B2 (en) | Self-healing tree network | |
US8305907B2 (en) | Network system and data transfer device | |
US8942250B2 (en) | Systems and methods for providing service (“SRV”) node selection | |
US20210274418A1 (en) | Information Transmission Method and Apparatus | |
US9832039B2 (en) | Network monitoring method, relay device, and network monitoring system | |
US20100014527A1 (en) | Packet ring network system, packet forwarding method and node | |
KR20050104364A (en) | Determination of groupmembers prior of monitoring groups of network nodes | |
WO2008083395A2 (en) | Unknown destination traffic repetition | |
KR20140072343A (en) | Method for handling fault in softwate defined networking networks | |
CN103944828A (en) | Method and equipment for transmitting protocol messages | |
US9497077B2 (en) | Apparatus for performing loop-free transmission in a communication network | |
US20230049788A1 (en) | Data transmission method, apparatus, and device | |
CN101252503B (en) | Method and apparatus for switching traffic of looped network | |
JP5678678B2 (en) | Provider network and provider edge device | |
CN103843291B (en) | Communication equipment, communication means and program | |
CN102035741B (en) | The retransmission method of unicast message and equipment in a kind of ring topology network | |
CN102546265B (en) | Fault processing method, device and system for virtual private local area network | |
US20190327170A1 (en) | Establish a source routing tree for gateway node in a mesh network | |
CN103746912B (en) | Data message transmission method and equipment based on subring link | |
CN100539513C (en) | Fault/alarm and control system and method based on Simple Network Management Protocol | |
CN113890848A (en) | Topology discovery system and method for layered domain-division SDN multi-controller architecture | |
CN114866394A (en) | Method and device for automatically electing blocked port by FRRP ring | |
CN103685079A (en) | Self-adaptive Ethernet single-loop network algorithm | |
CN107071825A (en) | A kind of wireless mesh network message interaction method and system | |
CN104796345A (en) | Message transmission control method and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |