CN104219126A - Automatic learning method and equipment for subring protocol VLAN (virtual local area network) in virtual channel mode - Google Patents

Automatic learning method and equipment for subring protocol VLAN (virtual local area network) in virtual channel mode Download PDF

Info

Publication number
CN104219126A
CN104219126A CN201410380435.3A CN201410380435A CN104219126A CN 104219126 A CN104219126 A CN 104219126A CN 201410380435 A CN201410380435 A CN 201410380435A CN 104219126 A CN104219126 A CN 104219126A
Authority
CN
China
Prior art keywords
vlan
node
check
subring
main ring
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.)
Granted
Application number
CN201410380435.3A
Other languages
Chinese (zh)
Other versions
CN104219126B (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201410380435.3A priority Critical patent/CN104219126B/en
Publication of CN104219126A publication Critical patent/CN104219126A/en
Application granted granted Critical
Publication of CN104219126B publication Critical patent/CN104219126B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses an automatic learning method and equipment for a subring protocol VLAN (virtual local area network) in a virtual channel mode. The method includes that an interconnection node determines a protocol VLAN of a subring; the interconnection node transmits the protocol VLAN of the subring on a main ring, and each node on the main ring adds the protocol VLAN of the subring to a data VLAN list of the main ring. In the automatic learning method, each node on the main ring can automatically create the protocol VLAN of the subring and can automatically add the protocol VLAN of the subring into the data VLAN list of the main ring, so that workload in manual configuration is saved, and mistake configuration in manual configuration is reduced.

Description

A kind of Auto-learning Method and equipment having subring agreement VLAN under tunnel mode
Technical field
The present invention relates to communication technical field, especially relate to Auto-learning Method and equipment that one has subring agreement VLAN (Virtual Local Area Network, VLAN) under tunnel mode.
Background technology
ERPS (Ethernet Ring Protection Switching, Ethernet ring protection switching switches) is a link layer protocol being specifically applied to Ethernet ring.When Ethernet ring is complete, ERPS can prevent the broadcast storm caused by data loopback.When on Ethernet ring, a link disconnects, ERPS can recover rapidly the communication path on Ethernet ring between each node (i.e. the network equipment), possesses higher convergence rate.
As shown in Figure 1, be the networking schematic diagram of ERPS network, ERPS network comprises a main ring and a subring.Wherein, main ring comprises node A, Node B, node C and node D, node A is host node; Node B is neighbor node; node C and node D is interlink node, and the link between node A and Node B is RPL (Ring Protection Link, looped network protection link).Subring comprises node E, node F, node C and node D, node E is host node, and node F is neighbor node, and node C and node D is interlink node, and the node connecting main ring and subring is interlink node, and the link between node E and node F is RPL.
In ERPS network, if loop does not have link occurs fault, then host node and neighbor node are by blocking the port at RPL two ends, in case the formation of loops; As shown in Figure 1, node A port blocked 1, Node B port blocked 3, node E port blocked 12, node F port blocked 13.If loop has link occurs fault, then malfunctioning node blocks non-working port, and periodically sends SF (Signal fail, link failure) message.Host node and neighbor node, after receiving SF message, by the port at RPL two ends blocked before opening, thus business can be switched to RPL link, and the protection completing loop switch.
In prior art, subring support has tunnel mode and without tunnel mode.When subring support has tunnel mode, the protocol massages of subring needs to be taken at main ring to make data-message transmission, and each node namely on main ring needs to allow the protocol massages of subring to pass through.In order to realize said process, need to configure as follows respectively on each node of main ring: the agreement VLAN (Virtual Local Area Network, VLAN) of manual creation subring on each node; The agreement VLAN of subring manually adds to the data vlan list of main ring by each node, the agreement VLAN of subring to be used as the data vlan process of main ring, then to make the protocol massages of subring be taken at main ring and make data-message transmission.
But, aforesaid way needs the agreement VLAN manually creating subring on each node of main ring, and need the data vlan list manually the agreement VLAN of subring being added to main ring on each node of main ring, the process more complicated of its manual configuration, configuration effort amount is comparatively large, and easily occurs configuration error.Especially, when main ring existing a large amount of nodes, the workload of manual configuration will be very large.
Summary of the invention
The embodiment of the present invention provides a kind of Auto-learning Method having subring Protocol virtual local area network (LAN) VLAN under tunnel mode, and the method is applied in the network comprising main ring and subring, and described method comprises:
Interlink node determines the agreement VLAN of described subring;
Described interlink node transmits the agreement VLAN of described subring on described main ring, by each node on described main ring, the agreement VLAN of described subring is added to the data vlan list of described main ring.
Described interlink node transmits the agreement VLAN of described subring on described main ring, by each node on described main ring, the agreement VLAN of described subring is added to the process of the data vlan list of described main ring, specifically comprises:
Described interlink node sends VLAN-Check-Request message to the host node on described main ring, and carries the agreement VLAN of described subring in described VLAN-Check-Request message;
Described interlink node receives the VLAN-Check-Response message that described host node sends, and carries the agreement VLAN of described subring in described VLAN-Check-Response message;
The agreement VLAN of described subring is added to the data vlan list of described main ring by described interlink node, and on described main ring, continue the described VLAN-Check-Response message of transmission.
Described interlink node sends the process of VLAN-Check-Request message to the host node on described main ring, specifically comprises:
Described interlink node periodically sends VLAN-Check-Request message by the port on described main ring, and carries the node identification of this interlink node in described VLAN-Check-Request message;
Described interlink node is when receiving the VLAN-Check-Request message that another interlink node in subring sends, if the node identification carried in this VLAN-Check-Request message is greater than the node identification of this interlink node, then stopping is sent VLAN-Check-Request message by described interlink node; If the node identification carried in this VLAN-Check-Request message is less than the node identification of this interlink node, then continuation is sent VLAN-Check-Request message by described interlink node; Or,
If the node identification carried in this VLAN-Check-Request message is less than the node identification of this interlink node, then stopping is sent VLAN-Check-Request message by described interlink node; If the node identification carried in this VLAN-Check-Request message is greater than the node identification of this interlink node, then continuation is sent VLAN-Check-Request message by described interlink node.
Described interlink node transmits the agreement VLAN of described subring on described main ring, and after by each node on described main ring the agreement VLAN of described subring being added to the data vlan list of described main ring, described method comprises further:
Described interlink node, when receiving protocol massages from described subring, judges agreement VLAN that described protocol massages is corresponding whether in the data vlan list of described main ring; If not, then described protocol massages is abandoned; If so, then described protocol massages is sent by the port on described main ring.
The embodiment of the present invention provides a kind of Auto-learning Method having subring Protocol virtual local area network (LAN) VLAN under tunnel mode, and the method is applied in the network comprising main ring and subring, and described method comprises:
Non-interconnected node receives the agreement VLAN of the described subring that interlink node transmits on described main ring, and the agreement VLAN of described subring is added to the data vlan list of described main ring.
Described non-interconnected node receives the agreement VLAN of the described subring that interlink node transmits on described main ring, and the agreement VLAN of described subring is added to the process of the data vlan list of described main ring, specifically comprises:
When described non-interconnected node is host node, described host node receives the VLAN-Check-Request message that described interlink node sends to described host node, and carries the agreement VLAN of described subring in described VLAN-Check-Request message; The agreement VLAN of described subring, after receiving described VLAN-Check-Request message, is added to the data vlan list of described main ring by described host node;
Described host node periodically sends VLAN-Check-Response message on described main ring, and carries the agreement VLAN of described subring in described VLAN-Check-Response message;
Described host node is when receiving the described VLAN-Check-Response message that this host node sends, and stopping is sent described VLAN-Check-Response message by described host node;
When described non-interconnected node is not host node, described non-interconnected node receives the VLAN-Check-Response message that described host node sends, and carries the agreement VLAN of described subring in described VLAN-Check-Response message; The agreement VLAN of described subring, after receiving described VLAN-Check-Response message, is added to the data vlan list of described main ring by described non-interconnected node, and on described main ring, continue the described VLAN-Check-Response message of transmission.
Described non-interconnected node receives the agreement VLAN of the described subring that interlink node transmits on described main ring, and after the agreement VLAN of described subring being added to the data vlan list of described main ring, described method comprises further:
Described non-interconnected node, when receiving the protocol massages for described subring, judges agreement VLAN that described protocol massages is corresponding whether in the data vlan list of described main ring; If agreement VLAN corresponding to described protocol massages be not in the data vlan list of described main ring, then described non-interconnected node abandons described protocol massages; If agreement VLAN corresponding to described protocol massages is in the data vlan list of described main ring, then described non-interconnected node continues to transmit described protocol massages on described main ring.
The embodiment of the present invention provides a kind of interlink node having subring Protocol virtual local area network (LAN) VLAN under tunnel mode, and be applied in the network comprising main ring and subring, described interlink node specifically comprises:
Determination module, for determining the agreement VLAN of described subring;
Processing module, for transmitting the agreement VLAN of described subring on described main ring, is added to the data vlan list of described main ring by the agreement VLAN of described subring by each node on described main ring.
Described processing module, specifically for sending VLAN-Check-Request message to the host node on main ring, and carries the agreement VLAN of described subring in described VLAN-Check-Request message;
Receive the VLAN-Check-Response message that described host node sends, and in described VLAN-Check-Response message, carry the agreement VLAN of described subring;
The agreement VLAN of described subring is added to the data vlan list of described main ring, and on described main ring, continue the described VLAN-Check-Response message of transmission.
Described processing module, is further used for periodically sending described VLAN-Check-Request message by the port on described main ring, and carries the node identification of this interlink node in described VLAN-Check-Request message; When receiving the VLAN-Check-Request message that another interlink node in subring sends, if the node identification carried in the VLAN-Check-Request message that another interlink node sends is greater than the node identification of this interlink node, then stop sending VLAN-Check-Request message; If the node identification carried in the VLAN-Check-Request message that another interlink node sends is less than the node identification of this interlink node, then continuation is sent VLAN-Check-Request message; Or, if the node identification carried in the VLAN-Check-Request message of another interlink node transmission is less than the node identification of this interlink node, then stopping is sent VLAN-Check-Request message; If the node identification carried in the VLAN-Check-Request message that another interlink node sends is greater than the node identification of this interlink node, then continuation is sent VLAN-Check-Request message.
Described processing module, also for when receiving protocol massages from described subring, judges agreement VLAN that described protocol massages is corresponding whether in the data vlan list of described main ring; If not, then described protocol massages is abandoned; If so, then described protocol massages is sent by the port on described main ring.
The embodiment of the present invention provides a kind of non-interconnected node having subring Protocol virtual local area network (LAN) VLAN under tunnel mode, and be applied in the network comprising main ring and subring, described non-interconnected node specifically comprises:
Receiver module, for receiving the agreement VLAN of the described subring that interlink node transmits on main ring;
Processing module, for adding the data vlan list of main ring to by the agreement VLAN of described subring.
When non-interconnected node is host node, described receiver module, specifically for receiving the VLAN-Check-Request message that described interlink node sends to described host node, and carries the agreement VLAN of described subring in described VLAN-Check-Request message; Described processing module, specifically for after receiving described VLAN-Check-Request message, adds the data vlan list of described main ring to by the agreement VLAN of subring; Main ring periodically sends VLAN-Check-Response message, and in described VLAN-Check-Response message, carries the agreement VLAN of described subring; When receiving the VLAN-Check-Response message self sent, stop sending VLAN-Check-Response message;
When non-interconnected node is not host node, described receiver module, specifically for receiving the VLAN-Check-Response message that described host node sends, and carries the agreement VLAN of described subring in described VLAN-Check-Response message; Described processing module, specifically for after receiving described VLAN-Check-Response message, adds the data vlan list of described main ring to by the agreement VLAN of described subring, and on described main ring, continue the described VLAN-Check-Response message of transmission.
Described processing module, is further used for when receiving the protocol massages for described subring, judges agreement VLAN that described protocol massages is corresponding whether in the data vlan list of described main ring; If agreement VLAN corresponding to described protocol massages not in the data vlan list of described main ring, then abandons described protocol massages; If agreement VLAN corresponding to described protocol massages in the data vlan list of described main ring, then continues to transmit described protocol massages on described main ring.
Based on technique scheme, in the embodiment of the present invention, each node on main ring can create the agreement VLAN of subring automatically, and automatically the agreement VLAN of subring is added in the data vlan list of main ring, and do not need the agreement VLAN manually creating subring on each node of main ring, do not need manually on each node of main ring, the agreement VLAN of subring to be added in the data vlan list of main ring, thus save the workload of manual configuration, reduce mismatching of manual configuration and put yet.
Accompanying drawing explanation
Fig. 1 is the networking schematic diagram of ERPS network;
A kind of Auto-learning Method schematic flow sheet having subring agreement VLAN under tunnel mode that Fig. 2 is that the embodiment of the present invention provides;
Fig. 3 is the application scenarios schematic diagram of the multiple subrings proposed in the embodiment of the present invention;
Fig. 4 is the structural representation of a kind of interlink node that the embodiment of the present invention provides;
Fig. 5 is the structural representation of a kind of non-interconnected node that the embodiment of the present invention provides.
Embodiment
For problems of the prior art, the embodiment of the present invention provides a kind of Auto-learning Method having subring agreement VLAN under tunnel mode, the method is applied to and comprises in the ERPS network of main ring and subring, take Fig. 1 as the application scenarios schematic diagram of the embodiment of the present invention, this ERPS network comprises a main ring and a subring, in actual applications, the quantity of subring can be multiple, and the quantity of main ring can be multiple.Be described for a subring and a main ring in the embodiment of the present invention.In FIG, main ring comprises node A, Node B, node C and node D, node A is host node, and Node B is neighbor node, and node C and node D is interlink node, and the link between node A and Node B is RPL.Subring comprises node E, node F, node C and node D, node E is host node, and node F is neighbor node, and node C and node D is interlink node, and the link between node E and node F is RPL.
Under above-mentioned application scenarios, as shown in Figure 2, this has the Auto-learning Method of subring agreement VLAN under tunnel mode, specifically can comprise the following steps:
Step 201, the agreement VLAN of interlink node determination subring.Wherein, because interlink node is positioned in subring, therefore, interlink node directly can determine the agreement VLAN of subring.
In a kind of specific implementation, interlink node can be configured with VLAN contingency table, record ring information, agreement vlan information, data vlan information, and ring information is specially main ring or subring in this VLAN contingency table.Based on this VLAN contingency table, interlink node can utilize the ring information and agreement vlan information that record in VLAN contingency table, determines the agreement VLAN of subring.
As shown in table 1, be a kind of example of VLAN contingency table, based on the VLAN contingency table shown in table 1, interlink node can determine that the agreement VLAN of subring is VLAN12.
Table 1
Ring information Agreement vlan information Data vlan information
Main ring VLAN11 VLAN21、VLAN22
Subring VLAN12 VLAN21、VLAN23
In the embodiment of the present invention, data vlan can be called again protection VLAN, for convenience of description, is described in the embodiment of the present invention for data vlan.Agreement VLAN can be called control VLAN again, for convenience of description, is described in the embodiment of the present invention for agreement VLAN.
Step 202, interlink node transmits the agreement VLAN of subring on main ring, by each node on main ring, the agreement VLAN of subring is added to the data vlan list of main ring.
Step 203, non-interconnected node receives the agreement VLAN of the subring that interlink node transmits on main ring, and the agreement VLAN of subring is added to the data vlan list of main ring.
Under the application scenarios shown in Fig. 1, suppose that the agreement VLAN of subring is VLAN12, then VLAN12 is sent to Node B by port 5 by node C, by Node B, VLAN12 is added to the data vlan list of main ring, and by port 3, VLAN12 is sent to node A, by node A, VLAN12 is added to the data vlan list of main ring, and by port 2, VLAN12 is sent to node D, by node D, VLAN12 is added to the data vlan list of main ring.So far, the agreement VLAN of subring is added in the data vlan list of main ring by each node on main ring.
Tunnel mode is had in order to make subring support, thus make the protocol massages of subring can main ring be taken in make data-message transmission, in the embodiment of the present invention, interlink node initiatively transmits the agreement VLAN of subring on main ring, by each node on main ring, the agreement VLAN of subring is added to the data vlan list of main ring, thus do not need manually on each node of main ring, the agreement VLAN of subring to be added in the data vlan list of main ring, save the workload of manual configuration, reduce mismatching of manual configuration and put.
In embodiments of the present invention, interlink node transmits the agreement VLAN of subring on main ring, the agreement VLAN of the subring that interlink node transmits on main ring is received (each node comprises interlink node on main ring and non-interconnected node) by each node on main ring, and the agreement VLAN of subring is added to the process of the data vlan list of main ring, specifically include but not limited to following steps:
Step 1, interlink node send VLAN-Check-Request (VLAN checks request) message to the host node on main ring, and carry the agreement VLAN of subring in this VLAN-Check-Request message.
Wherein, VLAN-Check-Request message is the message of new definition in the embodiment of the present invention, when interlink node knows the data vlan list needing the agreement VLAN of subring to be added to main ring, interlink node can send VLAN-Check-Request message to the host node on main ring.Such as, interlink node, when receiving the order of the data vlan list agreement VLAN of subring being added to main ring, knows the current data vlan list needing the agreement VLAN of subring to add to main ring.
In the embodiment of the present invention, interlink node is used for making host node after receiving VLAN-Check-Request message to the VLAN-Check-Request message that host node sends, the agreement VLAN of subring is added to the data vlan list of main ring, and periodically send VLAN-Check-Response message on main ring, and in VLAN-Check-Response message, carry the agreement VLAN of subring.Further, VLAN-Check-Request message also for making host node after receiving VLAN-Check-Request message, creates the agreement VLAN of corresponding subring on the primary node.
In the embodiment of the present invention, interlink node sends the process of VLAN-Check-Request message to the host node on main ring, specifically include but not limited to: interlink node periodically sends VLAN-Check-Request message by the port on main ring, and carries the node identification of this interlink node in VLAN-Check-Request message; Further, this interlink node is when receiving the VLAN-Check-Request message that another interlink node in subring sends, if the node identification carried in the VLAN-Check-Request message that another interlink node sends is greater than the node identification of this interlink node, then stopping is sent VLAN-Check-Request message by interlink node, namely no longer periodically sends VLAN-Check-Request message; If the node identification carried in the VLAN-Check-Request message that another interlink node sends is less than the node identification of this interlink node, then continuation is sent VLAN-Check-Request message by interlink node, namely continues periodically to send VLAN-Check-Request message.Or, if the node identification carried in the VLAN-Check-Request message that another interlink node sends is less than the node identification of this interlink node, then stopping is sent VLAN-Check-Request message by interlink node, namely no longer periodically sends VLAN-Check-Request message; If the node identification carried in the VLAN-Check-Request message that another interlink node sends is greater than the node identification of this interlink node, then continuation is sent VLAN-Check-Request message by interlink node, namely continues periodically to send VLAN-Check-Request message.
Under the application scenarios shown in Fig. 1, node D periodically can send VLAN-Check-Request message by port 8 to host node (node A), and periodically sends VLAN-Check-Request message by port 9 to host node (node A).In addition, node C periodically can send VLAN-Check-Request message by port 5 to host node (node A), and periodically sends VLAN-Check-Request message by port 6 to host node (node A).Wherein, the agreement VLAN of the subring of carrying in the VLAN-Check-Request message that each port above-mentioned sends is VLAN12.
Node D is when receiving the VLAN-Check-Request message from node C by port 8, if find that the node identification (as MAC Address) that VLAN-Check-Request message is corresponding is larger than the node identification of this node D, node D stops sending VLAN-Check-Request message; If find that the node identification that VLAN-Check-Request message is corresponding is less than the node identification of this node D, node D continues to send VLAN-Check-Request message.Node C is when receiving the VLAN-Check-Request message from node D by port 6, if find that the node identification that VLAN-Check-Request message is corresponding is larger than the node identification of this node C, then node C stops sending VLAN-Check-Request message; If find that the node identification that VLAN-Check-Request message is corresponding is less than the node identification of this node C, then node C continues to send VLAN-Check-Request message.
Based on above-mentioned process, can ensure to only have an interlink node (as node C or node D) periodically to send VLAN-Check-Request message to host node.In aforesaid way, be send VLAN-Check-Request message by the interlink node that node identification is large to host node, in actual applications, also can send VLAN-Check-Request message by the interlink node that node identification is little to host node.
Step 2, host node are after receiving VLAN-Check-Request message, the agreement VLAN of subring is added to the data vlan list of main ring, main ring sends VLAN-Check-Response (VLAN checks response) message, and in VLAN-Check-Response message, carries the agreement VLAN of subring.
In the embodiment of the present invention, host node is after receiving VLAN-Check-Request message, and before the data vlan list agreement VLAN of subring being added to main ring, host node also needs the agreement VLAN creating this subring on the primary node.If create successfully, then the agreement VLAN of subring is added to the data vlan list of main ring by host node.If create unsuccessfully, illustrate that the agreement VLAN of this subring is used, process ends, not in the data vlan list agreement VLAN of subring being added to main ring.
Be created successfully at the agreement VLAN of subring, and after the agreement VLAN of subring being added to the data vlan list of main ring, host node cycle on main ring, send VLAN-Check-Response message, this VLAN-Check-Response message is for making each node (interlink node and non-interconnected node) on main ring after receiving VLAN-Check-Response message, the agreement VLAN of subring is added to the data vlan list of main ring, and on main ring, continue transmission VLAN-Check-Response message, until VLAN-Check-Response message is returned to host node, stopped sending this VLAN-Check-Response message by host node.Further, this VLAN-Check-Response message is also for making each node on main ring (interlink node and non-interconnected node) after receiving VLAN-Check-Response message, this node create the agreement VLAN of corresponding subring.
Under the application scenarios shown in Fig. 1, node A is after receiving VLAN-Check-Request message, and the agreement VLAN parsing subring from this VLAN-Check-Request message is VLAN12.If node A exists VLAN12, and VLAN12 is current is used, then node A creates VLAN12 failure, and process ends; If node A does not have VLAN12, then node A creates VLAN12 on this node A, and VLAN12 is added to the data vlan list of main ring, and periodically send VLAN-Check-Response message by non-RPL port (i.e. port 2), and the agreement VLAN of the subring of carrying in this VLAN-Check-Response message is VLAN12.
Step 3, each node on main ring is after receiving VLAN-Check-Response message, the agreement VLAN of subring is added to the data vlan list of main ring, and continue to send this VLAN-Check-Response message to other node on main ring, until VLAN-Check-Response message transmissions is to neighbor node, by neighbor node, the agreement VLAN of subring is added to the data vlan list of main ring, and by VLAN-Check-Response message transmissions to host node, by host node when receiving the VLAN-Check-Response message that this host node sends, stop sending VLAN-Check-Response message.
In the embodiment of the present invention, each node (interlink node and non-interconnected node) on main ring is after receiving VLAN-Check-Response message, before the data vlan list agreement VLAN of subring being added to main ring, each node on main ring also needs the agreement VLAN creating this subring on this node.If create successfully, then the agreement VLAN of subring is added to the data vlan list of main ring by this node.If create unsuccessfully, illustrate that the agreement VLAN of this subring is used, process ends, this node is not in the data vlan list agreement VLAN of subring being added to main ring.
Under the application scenarios shown in Fig. 1, node D is after receiving VLAN-Check-Response message, if node D is current periodically send VLAN-Check-Request message, then node D stops sending VLAN-Check-Request message.The agreement VLAN that node D parses subring from VLAN-Check-Response message is VLAN12.If node D exists VLAN12, and VLAN12 is current is used, then node D creates VLAN12 failure, and process ends; If node D does not have VLAN12, then node D creates VLAN12 on this node D, and VLAN12 is added to the data vlan list of main ring, and send VLAN-Check-Response message by port 8, and the agreement VLAN of the subring of carrying in VLAN-Check-Response message is VLAN12.
Under the application scenarios shown in Fig. 1, node C is after receiving VLAN-Check-Response message, if node C is current periodically send VLAN-Check-Request message, then node C stops sending VLAN-Check-Request message.The agreement VLAN that node C parses subring from VLAN-Check-Response message is VLAN12.If node C exists VLAN12, and VLAN12 is current is used, then node C creates VLAN12 failure, and process ends; If node C does not have VLAN12, then node C creates VLAN12 on this node C, and VLAN12 is added to the data vlan list of main ring, and send VLAN-Check-Response message by port 5, and the agreement VLAN of the subring of carrying in VLAN-Check-Response message is VLAN12.
Under the application scenarios shown in Fig. 1, Node B is after receiving VLAN-Check-Response message, and the agreement VLAN parsing subring from VLAN-Check-Response message is VLAN12.If Node B exists VLAN12, and VLAN12 is current is used, then Node B creates VLAN12 failure, and process ends; If Node B does not have VLAN12, then Node B creates VLAN12 in this Node B, and VLAN12 is added to the data vlan list of main ring, and sends VLAN-Check-Response message by port 3.Afterwards, host node, after receiving VLAN-Check-Response message by port one, determines that the agreement VLAN of subring has all been added to the data vlan list of main ring by all nodes on main ring, stops sending VLAN-Check-Response message.
Step 204, each node on main ring is when receiving agreement VLAN and being the protocol massages of the agreement VLAN of subring, and each node judges agreement VLAN that protocol massages is corresponding whether in the data vlan list of main ring; If not, protocol massages is abandoned; If so, protocol massages is sent by the port on main ring.
Concrete, interlink node, when receiving protocol massages from subring, judges agreement VLAN that this protocol massages is corresponding whether in the data vlan list of main ring; If not, then interlink node abandons this protocol massages; If so, then interlink node sends this protocol massages by the port on main ring, and by each non-interconnected node on main ring when receiving this protocol massages, judges agreement VLAN that this protocol massages is corresponding whether in the data vlan list of main ring; If agreement VLAN corresponding to this protocol massages not in the data vlan list of main ring, then abandons this protocol massages; If agreement VLAN corresponding to this protocol massages in the data vlan list of main ring, then continues to transmit this protocol massages on main ring.
Wherein, this protocol massages (protocol massages namely subring transmitted) specifically includes but not limited to the protocol massages needing transparent transmission on main ring, as SF (Signal Fault, link failure) message etc.
Under the application scenarios shown in Fig. 1, node C, when receiving the protocol massages that subring is transmitted, judges agreement VLAN that protocol massages is corresponding whether in the data vlan list of main ring; If not, then node C abandons protocol massages; If so, then node C sends protocol massages by the port (port 5) on main ring, namely by port 5, protocol massages is sent to Node B.Node B, when receiving protocol massages, judges agreement VLAN that protocol massages is corresponding whether in the data vlan list of main ring; If not, then Node B abandons protocol massages; If so, then Node B sends this protocol massages by the port (port 3) on main ring, namely by port 3, protocol massages is sent to node A.Node A, when receiving protocol massages, judges agreement VLAN that protocol massages is corresponding whether in the data vlan list of main ring; If not, then node A abandons protocol massages; If so, then node A sends protocol massages by the port (port 2) on main ring, namely by port 2, protocol massages is sent to node D.So far, protocol massages is transferred to another interlink node (i.e. node D), and the transmitting procedure of protocol massages on main ring terminates.In like manner, the processing procedure of node D when receiving the protocol massages that subring is transmitted, similar with the processing procedure of above-mentioned node C when receiving the protocol massages that subring is transmitted, at this, it is no longer repeated.
In the embodiment of the present invention, when needing the agreement VLAN adding new subring, only need the agreement VLAN being redefined new subring by interlink node, and pass through the handling process of step 202, namely by each node on main ring, the agreement VLAN of new subring can be added to the data vlan list of main ring.Further, when the agreement VLAN of subring changes, agreement VLAN before after each node needs elder generation's deletion from data vlan list to change, and redefine the agreement VLAN after changing by interlink node, and by the handling process of step 202, namely by each node on main ring, the agreement VLAN after changing can be added to the data vlan list of main ring.
In sum, based on technique scheme, in the embodiment of the present invention, subring is supported to the mode of tunnel, and when there is incidence relation between main ring and subring, each node on main ring can create the agreement VLAN of subring automatically, and automatically the agreement VLAN of subring is added in the data vlan list of main ring, and do not need the agreement VLAN manually creating subring on each node of main ring, do not need manually on each node of main ring, the agreement VLAN of subring to be added in the data vlan list of main ring yet, thus save the workload of manual configuration, reduce mismatching of manual configuration to put.Further, as shown in Figure 3, be the application scenarios schematic diagram of multiple subring, in the prior art, need the manual data vlan list agreement VLAN of each subring all being added to main ring, the quantity of subring is more, then the workload of manual configuration is larger.And in the embodiment of the present invention, the interlink node in each subring is only needed the agreement VLAN of this subring to be informed to host node on main ring, namely can be triggered the data vlan list of the agreement VLAN of this subring to main ring by host node, thus save the extensive work amount of manual configuration.
Based on the inventive concept same with said method, the embodiment of the present invention provides a kind of interlink node having subring Protocol virtual local area network (LAN) VLAN under tunnel mode, described interlink node is applied in the network comprising main ring and subring, and as shown in Figure 4, described interlink node specifically comprises:
Determination module 11, for determining the agreement VLAN of described subring;
Processing module 12, for transmitting the agreement VLAN of described subring on described main ring, is added to the data vlan list of described main ring by the agreement VLAN of described subring by each node on described main ring.
Described processing module, specifically for sending VLAN-Check-Request message to the host node on main ring, and carries the agreement VLAN of described subring in described VLAN-Check-Request message;
Receive the VLAN-Check-Response message that described host node sends, and in described VLAN-Check-Response message, carry the agreement VLAN of described subring;
The agreement VLAN of described subring is added to the data vlan list of described main ring, and on described main ring, continue the described VLAN-Check-Response message of transmission.
Described processing module 12, is further used for periodically sending described VLAN-Check-Request message by the port on described main ring, and carries the node identification of this interlink node in described VLAN-Check-Request message; When receiving the VLAN-Check-Request message that another interlink node in subring sends, if the node identification carried in the VLAN-Check-Request message that another interlink node sends is greater than the node identification of this interlink node, then stop sending VLAN-Check-Request message; If the node identification carried in the VLAN-Check-Request message that another interlink node sends is less than the node identification of this interlink node, then continuation is sent VLAN-Check-Request message; Or, if the node identification carried in the VLAN-Check-Request message of another interlink node transmission is less than the node identification of this interlink node, then stopping is sent VLAN-Check-Request message; If the node identification carried in the VLAN-Check-Request message that another interlink node sends is greater than the node identification of this interlink node, then continuation is sent VLAN-Check-Request message.
Described processing module 12, also for when receiving protocol massages from described subring, judges agreement VLAN that described protocol massages is corresponding whether in the data vlan list of described main ring; If not, then described protocol massages is abandoned; If so, then described protocol massages is sent by the port on described main ring.
Wherein, the modules of apparatus of the present invention can be integrated in one, and also can be separated deployment.Above-mentioned module can merge into a module, also can split into multiple submodule further.
Based on the inventive concept same with said method, the embodiment of the present invention provides a kind of non-interconnected node having subring Protocol virtual local area network (LAN) VLAN under tunnel mode, described non-interconnected node is applied in the network comprising main ring and subring, as shown in Figure 5, described non-interconnected node specifically comprises: receiver module 21, for receiving the agreement VLAN of the described subring that interlink node transmits on main ring; Processing module 22, for adding the data vlan list of main ring to by the agreement VLAN of described subring.
In the embodiment of the present invention, when non-interconnected node is host node, described receiver module 21, specifically for receiving the VLAN-Check-Request message that described interlink node sends to described host node, and carries the agreement VLAN of described subring in described VLAN-Check-Request message; Described processing module 22, specifically for after receiving described VLAN-Check-Request message, adds the data vlan list of described main ring to by the agreement VLAN of subring; Main ring periodically sends VLAN-Check-Response message, and in described VLAN-Check-Response message, carries the agreement VLAN of described subring; When receiving the VLAN-Check-Response message self sent, stop sending VLAN-Check-Response message;
In the embodiment of the present invention, when non-interconnected node is not host node, described receiver module 21, specifically for receiving the VLAN-Check-Response message that described host node sends, and carries the agreement VLAN of described subring in described VLAN-Check-Response message; Described processing module 22, specifically for after receiving described VLAN-Check-Response message, the agreement VLAN of described subring is added to the data vlan list of described main ring, and on described main ring, continue the described VLAN-Check-Response message of transmission.
Described processing module 22, is further used for when receiving the protocol massages for described subring, judges agreement VLAN that described protocol massages is corresponding whether in the data vlan list of described main ring; If agreement VLAN corresponding to described protocol massages not in the data vlan list of described main ring, then abandons described protocol massages; If agreement VLAN corresponding to described protocol massages in the data vlan list of described main ring, then continues to transmit described protocol massages on described main ring.
Wherein, the modules of apparatus of the present invention can be integrated in one, and also can be separated deployment.Above-mentioned module can merge into a module, also can split into multiple submodule further.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required general hardware platform by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform method described in each embodiment of the present invention.It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.It will be appreciated by those skilled in the art that the module in the device in embodiment can carry out being distributed in the device of embodiment according to embodiment description, also can carry out respective change and be arranged in the one or more devices being different from the present embodiment.The module of above-described embodiment can merge into a module, also can split into multiple submodule further.The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.Be only several specific embodiment of the present invention above, but the present invention is not limited thereto, the changes that any person skilled in the art can think of all should fall into protection scope of the present invention.

Claims (14)

1. have an Auto-learning Method of subring Protocol virtual local area network (LAN) VLAN under tunnel mode, the method is applied in the network comprising main ring and subring, it is characterized in that, described method comprises:
Interlink node determines the agreement VLAN of described subring;
Described interlink node transmits the agreement VLAN of described subring on described main ring, by each node on described main ring, the agreement VLAN of described subring is added to the data vlan list of described main ring.
2. the method for claim 1, it is characterized in that, described interlink node transmits the agreement VLAN of described subring on described main ring, by each node on described main ring, the agreement VLAN of described subring is added to the process of the data vlan list of described main ring, specifically comprises:
Described interlink node sends VLAN-Check-Request message to the host node on described main ring, and carries the agreement VLAN of described subring in described VLAN-Check-Request message;
Described interlink node receives the VLAN-Check-Response message that described host node sends, and carries the agreement VLAN of described subring in described VLAN-Check-Response message;
The agreement VLAN of described subring is added to the data vlan list of described main ring by described interlink node, and on described main ring, continue the described VLAN-Check-Response message of transmission.
3. method as claimed in claim 2, is characterized in that, described interlink node sends the process of VLAN-Check-Request message to the host node on described main ring, specifically comprises:
Described interlink node periodically sends VLAN-Check-Request message by the port on described main ring, and carries the node identification of this interlink node in described VLAN-Check-Request message;
Described interlink node is when receiving the VLAN-Check-Request message that another interlink node in subring sends, if the node identification carried in this VLAN-Check-Request message is greater than the node identification of this interlink node, then stopping is sent VLAN-Check-Request message by described interlink node; If the node identification carried in this VLAN-Check-Request message is less than the node identification of this interlink node, then continuation is sent VLAN-Check-Request message by described interlink node; Or,
If the node identification carried in this VLAN-Check-Request message is less than the node identification of this interlink node, then stopping is sent VLAN-Check-Request message by described interlink node; If the node identification carried in this VLAN-Check-Request message is greater than the node identification of this interlink node, then continuation is sent VLAN-Check-Request message by described interlink node.
4. the method for claim 1, it is characterized in that, described interlink node transmits the agreement VLAN of described subring on described main ring, and after by each node on described main ring the agreement VLAN of described subring being added to the data vlan list of described main ring, described method comprises further:
Described interlink node, when receiving protocol massages from described subring, judges agreement VLAN that described protocol massages is corresponding whether in the data vlan list of described main ring; If not, then described protocol massages is abandoned; If so, then described protocol massages is sent by the port on described main ring.
5. have an Auto-learning Method of subring Protocol virtual local area network (LAN) VLAN under tunnel mode, the method is applied in the network comprising main ring and subring, it is characterized in that, described method comprises:
Non-interconnected node receives the agreement VLAN of the described subring that interlink node transmits on described main ring, and the agreement VLAN of described subring is added to the data vlan list of described main ring.
6. method as claimed in claim 5, it is characterized in that, described non-interconnected node receives the agreement VLAN of the described subring that interlink node transmits on described main ring, and the agreement VLAN of described subring is added to the process of the data vlan list of described main ring, specifically comprises:
When described non-interconnected node is host node, described host node receives the VLAN-Check-Request message that described interlink node sends to described host node, and carries the agreement VLAN of described subring in described VLAN-Check-Request message; The agreement VLAN of described subring, after receiving described VLAN-Check-Request message, is added to the data vlan list of described main ring by described host node;
Described host node periodically sends VLAN-Check-Response message on described main ring, and carries the agreement VLAN of described subring in described VLAN-Check-Response message;
Described host node is when receiving the described VLAN-Check-Response message that this host node sends, and stopping is sent described VLAN-Check-Response message by described host node;
When described non-interconnected node is not host node, described non-interconnected node receives the VLAN-Check-Response message that described host node sends, and carries the agreement VLAN of described subring in described VLAN-Check-Response message; The agreement VLAN of described subring, after receiving described VLAN-Check-Response message, is added to the data vlan list of described main ring by described non-interconnected node, and on described main ring, continue the described VLAN-Check-Response message of transmission.
7. method as claimed in claim 5, it is characterized in that, described non-interconnected node receives the agreement VLAN of the described subring that interlink node transmits on described main ring, and after the agreement VLAN of described subring being added to the data vlan list of described main ring, described method comprises further:
Described non-interconnected node, when receiving the protocol massages for described subring, judges agreement VLAN that described protocol massages is corresponding whether in the data vlan list of described main ring; If agreement VLAN corresponding to described protocol massages be not in the data vlan list of described main ring, then described non-interconnected node abandons described protocol massages; If agreement VLAN corresponding to described protocol massages is in the data vlan list of described main ring, then described non-interconnected node continues to transmit described protocol massages on described main ring.
8. have an interlink node of subring Protocol virtual local area network (LAN) VLAN under tunnel mode, be applied in the network comprising main ring and subring, it is characterized in that, described interlink node specifically comprises:
Determination module, for determining the agreement VLAN of described subring;
Processing module, for transmitting the agreement VLAN of described subring on described main ring, is added to the data vlan list of described main ring by the agreement VLAN of described subring by each node on described main ring.
9. interlink node as claimed in claim 8, is characterized in that,
Described processing module, specifically for sending VLAN-Check-Request message to the host node on main ring, and carries the agreement VLAN of described subring in described VLAN-Check-Request message;
Receive the VLAN-Check-Response message that described host node sends, and in described VLAN-Check-Response message, carry the agreement VLAN of described subring;
The agreement VLAN of described subring is added to the data vlan list of described main ring, and on described main ring, continue the described VLAN-Check-Response message of transmission.
10. interlink node as claimed in claim 9, is characterized in that,
Described processing module, is further used for periodically sending described VLAN-Check-Request message by the port on described main ring, and carries the node identification of this interlink node in described VLAN-Check-Request message; When receiving the VLAN-Check-Request message that another interlink node in subring sends, if the node identification carried in the VLAN-Check-Request message that another interlink node sends is greater than the node identification of this interlink node, then stop sending VLAN-Check-Request message; If the node identification carried in the VLAN-Check-Request message that another interlink node sends is less than the node identification of this interlink node, then continuation is sent VLAN-Check-Request message; Or, if the node identification carried in the VLAN-Check-Request message of another interlink node transmission is less than the node identification of this interlink node, then stopping is sent VLAN-Check-Request message; If the node identification carried in the VLAN-Check-Request message that another interlink node sends is greater than the node identification of this interlink node, then continuation is sent VLAN-Check-Request message.
11. interlink nodes as claimed in claim 8, is characterized in that,
Described processing module, also for when receiving protocol massages from described subring, judges agreement VLAN that described protocol massages is corresponding whether in the data vlan list of described main ring; If not, then described protocol massages is abandoned; If so, then described protocol massages is sent by the port on described main ring.
12. 1 kinds of non-interconnected nodes having a subring Protocol virtual local area network (LAN) VLAN under tunnel mode, be applied in the network comprising main ring and subring, it is characterized in that, described non-interconnected node specifically comprises:
Receiver module, for receiving the agreement VLAN of the described subring that interlink node transmits on main ring;
Processing module, for adding the data vlan list of main ring to by the agreement VLAN of described subring.
13. non-interconnected nodes as claimed in claim 12, is characterized in that,
When non-interconnected node is host node, described receiver module, specifically for receiving the VLAN-Check-Request message that described interlink node sends to described host node, and carries the agreement VLAN of described subring in described VLAN-Check-Request message; Described processing module, specifically for after receiving described VLAN-Check-Request message, adds the data vlan list of described main ring to by the agreement VLAN of subring; Main ring periodically sends VLAN-Check-Response message, and in described VLAN-Check-Response message, carries the agreement VLAN of described subring; When receiving the VLAN-Check-Response message self sent, stop sending VLAN-Check-Response message;
When non-interconnected node is not host node, described receiver module, specifically for receiving the VLAN-Check-Response message that described host node sends, and carries the agreement VLAN of described subring in described VLAN-Check-Response message; Described processing module, specifically for after receiving described VLAN-Check-Response message, adds the data vlan list of described main ring to by the agreement VLAN of described subring, and on described main ring, continue the described VLAN-Check-Response message of transmission.
14. non-interconnected nodes as claimed in claim 12, is characterized in that,
Described processing module, is further used for when receiving the protocol massages for described subring, judges agreement VLAN that described protocol massages is corresponding whether in the data vlan list of described main ring; If agreement VLAN corresponding to described protocol massages not in the data vlan list of described main ring, then abandons described protocol massages; If agreement VLAN corresponding to described protocol massages in the data vlan list of described main ring, then continues to transmit described protocol massages on described main ring.
CN201410380435.3A 2014-08-04 2014-08-04 A kind of Auto-learning Method and equipment having subring agreement VLAN under virtual channel mode Active CN104219126B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410380435.3A CN104219126B (en) 2014-08-04 2014-08-04 A kind of Auto-learning Method and equipment having subring agreement VLAN under virtual channel mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410380435.3A CN104219126B (en) 2014-08-04 2014-08-04 A kind of Auto-learning Method and equipment having subring agreement VLAN under virtual channel mode

Publications (2)

Publication Number Publication Date
CN104219126A true CN104219126A (en) 2014-12-17
CN104219126B CN104219126B (en) 2018-07-13

Family

ID=52100278

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410380435.3A Active CN104219126B (en) 2014-08-04 2014-08-04 A kind of Auto-learning Method and equipment having subring agreement VLAN under virtual channel mode

Country Status (1)

Country Link
CN (1) CN104219126B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106059824A (en) * 2016-06-30 2016-10-26 杭州华三通信技术有限公司 Fault processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483571A (en) * 2009-02-26 2009-07-15 杭州华三通信技术有限公司 RRPP configuring method, system and device
CN101662421A (en) * 2008-08-28 2010-03-03 中兴通讯股份有限公司 Method and device for transmitting control message based on ethernet multi-ring network
US20110019536A1 (en) * 2009-07-24 2011-01-27 Electronics And Telecommunications Research Institute Method for managing ethernet ring network of vlan-based bridge
CN102130912A (en) * 2011-03-09 2011-07-20 杭州华三通信技术有限公司 Rapid ring protection protocol (RRPP)-based multiple virtual local area network (VLAN) register protocol (MVRP) realization method and equipment
CN103532811A (en) * 2013-10-16 2014-01-22 杭州华三通信技术有限公司 Method and equipment for configuring RRPP (Rapid Ring Protection Protocol) ring assembly

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662421A (en) * 2008-08-28 2010-03-03 中兴通讯股份有限公司 Method and device for transmitting control message based on ethernet multi-ring network
CN101483571A (en) * 2009-02-26 2009-07-15 杭州华三通信技术有限公司 RRPP configuring method, system and device
US20110019536A1 (en) * 2009-07-24 2011-01-27 Electronics And Telecommunications Research Institute Method for managing ethernet ring network of vlan-based bridge
CN102130912A (en) * 2011-03-09 2011-07-20 杭州华三通信技术有限公司 Rapid ring protection protocol (RRPP)-based multiple virtual local area network (VLAN) register protocol (MVRP) realization method and equipment
CN103532811A (en) * 2013-10-16 2014-01-22 杭州华三通信技术有限公司 Method and equipment for configuring RRPP (Rapid Ring Protection Protocol) ring assembly

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106059824A (en) * 2016-06-30 2016-10-26 杭州华三通信技术有限公司 Fault processing method and device
CN106059824B (en) * 2016-06-30 2019-12-06 新华三技术有限公司 fault processing method and device

Also Published As

Publication number Publication date
CN104219126B (en) 2018-07-13

Similar Documents

Publication Publication Date Title
CN101189837B (en) Packet ring network system, packet transfer method, and node
CN104104570A (en) Aggregation processing method in IRF (Intelligent Resilient Framework) system and device
CN103944828A (en) Method and equipment for transmitting protocol messages
CN102882704B (en) Link protection method in the soft reboot escalation process of a kind of ISSU and equipment
CN102223312B (en) Flow control method and equipment based on link status
CN101483571B (en) RRPP configuring method, system and device
EP3242446B1 (en) Failure protection method, device and system for ring protection link
CN101252503A (en) Method and apparatus for switching traffic of looped network
CN105554175A (en) ARP backup method in PW (Pseudo-wires) redundancy scene
CN101631060B (en) Method and device for managing edge port
CN104104596A (en) Intelligent resilient framework (IRF) split processing method and device
CN103825839A (en) Message transmission method and equipment based on aggregated link
CN102326370A (en) Message processing method, apparatus and system
CN104168169A (en) MAC entry deleting method and equipment
CN104639437A (en) Forwarding method and apparatus of broadcast messages in stack system
CN103414591A (en) Method and system for fast converging when port failure is recovered
CN104219126A (en) Automatic learning method and equipment for subring protocol VLAN (virtual local area network) in virtual channel mode
CN102917370B (en) Method, device and system for determining corresponding near-end unit of far-end unit and far-end unit
EP3232617A1 (en) Protection switching method and system, and nodes
CN105577484A (en) EAPS failure detection method and system, and EAPS network
CN108667640B (en) Communication method and device, and network access system
CN102215165B (en) A kind of message processing method of tangent ring networks and Ethernet switch
CN104184639A (en) Processing method and device for multi-point fault of EPRS loop circuit
CN104394075A (en) Message transmission method and equipment
CN100499500C (en) Method for realizing management for multistage communication device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
EXSB Decision made by sipo to initiate substantive examination
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant before: Huasan Communication Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant