CN104780138B - The transmitting method and device of STP/RSTP messages in privately owned redundancy protocol network - Google Patents

The transmitting method and device of STP/RSTP messages in privately owned redundancy protocol network Download PDF

Info

Publication number
CN104780138B
CN104780138B CN201410009605.7A CN201410009605A CN104780138B CN 104780138 B CN104780138 B CN 104780138B CN 201410009605 A CN201410009605 A CN 201410009605A CN 104780138 B CN104780138 B CN 104780138B
Authority
CN
China
Prior art keywords
stp
rstp
network
port
privately owned
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410009605.7A
Other languages
Chinese (zh)
Other versions
CN104780138A (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.)
Kyland Technology Co Ltd
Original Assignee
Kyland Technology 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 Kyland Technology Co Ltd filed Critical Kyland Technology Co Ltd
Priority to CN201410009605.7A priority Critical patent/CN104780138B/en
Publication of CN104780138A publication Critical patent/CN104780138A/en
Application granted granted Critical
Publication of CN104780138B publication Critical patent/CN104780138B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses the transmitting method and device of STP/RSTP messages in a kind of privately owned redundancy protocol network, solving existing transmitting method causes communication packet can not be sent to corresponding equipment, the problem of influenceing message normal transmission.This method includes:When the BPDU messages that the equipment that privately owned redundancy protocol equipment in network port is received in STP/RSTP protocol networks is sent, and identify in the message whether contain STP/RSTP network topology change flag bits, when containing the STP/RSTP network topology change flag bits in the message, the port is by the mac address table aging of itself, to ensure the correctness of follow-up STP/RSTP message transmissions.Because the port in embodiments of the present invention is by the mac address table aging of itself, to ensure after the communication packet of the STP/RSTP networks is received, communication message is broadcasted, rather than is forwarded to abnormal link has occurred.

Description

The transmitting method and device of STP/RSTP messages in privately owned redundancy protocol network
Technical field
The present invention relates to proprietary protocol data transmission in network technical field, more particularly to a kind of privately owned redundancy protocol network Middle Spanning-Tree Protocol(Spanning Tree Protocol, STP)/ RSTP(Rapid Spanning Tree Protocol, RSTP)The transmitting method and device of message.
Background technology
Spanning-Tree Protocol STP/ RSTPs RSTP can be applied and loop network, and road is realized by certain algorithm Footpath redundancy, while loop network is trimmed to the tree network of loop free, so as to avoid message hyperplasia and nothing in loop network Limit circulation, solve the problems, such as to produce network storm in ethernet link in loop network caused by redundancy backup.It may thus be appreciated that Mainly application is exactly in order to avoid the network loopback in LAN to STP/RSTP, is solved " broadcast storm " of cyclic ethernet network Problem.
The transparent transmission of general STP/RSTP messages refers to BPDU(Bridge Protocol Data Unit, BPDU)Message does not process, the function of transparent transmission.When other embedded privately owned redundancy protocols in Spanning-Tree Protocol network When network forms mixed networking, the equipment run in the privately owned redundancy protocol network of other redundancy protocols is just needed to BPDU messages Transparent transmission is carried out, so as to ensure the correctness of the STP/RSTP network operations.But in the prior art in privately owned redundancy protocol network During transparent transmission BPDU messages, often cause transmission path to switch in time, influence the normal transmission of communication packet.
Fig. 1 is the structure chart that other embedded privately owned redundancy protocol networks form mixed networking in Spanning-Tree Protocol network, raw Include equipment 1, equipment 2 and equipment 3 into tree protocol network, privately owned redundancy protocol network includes device A, equipment B, equipment C With equipment D, the A3 ports of device A and equipment B B3 ports are connected with the equipment 1 in Spanning-Tree Protocol network and equipment 3.Wherein The port block being connected with equipment 2 of equipment 1, the A1 port blocks of device A.Equipment 1 is connected with equipment E, and equipment B, which is connected with, to be set Standby F.
When communication packet is slave unit E to equipment F message, due to breaking between equipment 1 and equipment 2, therefore communicate By equipment 1-A3 ports-A2 ports-B1 port transmissions, the mac address table that each port learns is stored in port message. When equipment 1 and the device A open circuit of Spanning-Tree Protocol network and privately owned redundancy protocol network connection, if communication packet still from If equipment E to equipment F, each equipment will be unable to communication packet being sent to corresponding set according to the mac address table learnt It is standby, so as to influence the normal transmission of communication packet in Spanning-Tree Protocol network.
The content of the invention
The embodiment of the present invention provides the transmitting method and device of STP/RSTP messages in a kind of privately owned redundancy protocol network, uses To solve the method for transparent transmission STP/RSTP messages in existing privately owned redundancy protocol network, cause communication packet can not be sent to correspondingly Equipment, the problem of influenceing message normal transmission.
The embodiment of the present invention provides a kind of transmitting method of STP/RSTP messages in privately owned redundancy protocol network, methods described Including:
The port of privately owned redundancy protocol equipment in network receives spanning tree STP protocol network or quickly generates tree RSTP agreements The BPDU BPDU messages that the equipment of network is sent, each non-obstruction of equipment wherein in the privately owned redundant network The message that central port is all used in transparent transmission STP/RSTP networks;
Identify in the BPDU messages and whether contain STP/RSTP network topology change flag bits;
When identification contains STP/RSTP network topology change flag bits, the STP protocol network or RSTP agreements are determined Network topology structure is changed in network, and the mac address table itself preserved is removed;
And transparent transmission path is established according to the blocked state of privately owned redundancy protocol network middle port.
The embodiment of the present invention provides a kind of transparent transmission device of STP/RSTP messages in privately owned redundancy protocol network, described device Including:
Receiving module, the port for privately owned redundancy protocol equipment in network receive spanning tree STP protocol network or quick The BPDU BPDU messages that the equipment of spanning tree RSTP protocol networks is sent, wherein set in the privately owned redundant network The message that standby each non-obstruction central port is used in transparent transmission STP/RSTP networks;
Identification module, for identifying in the BPDU messages whether contain STP/RSTP network topology change flag bits;
Module is removed, for when identification contains STP/RSTP network topology change flag bits, determining the STP protocol net Network topology structure is changed in network or RSTP protocol networks, and the mac address table itself preserved is removed;
Transparent transmission module, for establishing transparent transmission path according to the blocked state of privately owned redundancy protocol network middle port.
The embodiment of the present invention provides the transmitting method and device of STP/RSTP messages in a kind of privately owned redundancy protocol network, should Method includes the BPDU sent when the equipment that privately owned redundancy protocol equipment in network port is received in STP/RSTP protocol networks Message, and identify that the port is old by the mac address table of itself when containing STP/RSTP network topology change flag bits in the message Change, to ensure the correctness of follow-up STP/RSTP message transmissions.Due in embodiments of the present invention when privately owned redundancy protocol network In device port receiving BPDU messages, and identify when containing STP/RSTP network topology change flag bits in the message, Determine that network topology structure changes in the STP/RSTP networks, in order to ensure the normal transparent transmission of subsequent packet, implement in the present invention The port is by the mac address table aging of itself in example, will be logical to ensure after the communication packet of the STP/RSTP networks is received Letter message is broadcasted, rather than forwarded to abnormal link has occurred, and ensure that the normal transparent transmission of STP/RSTP messages.
Brief description of the drawings
Fig. 1 is the structure chart that other embedded privately owned redundancy protocol networks form mixed networking in Spanning-Tree Protocol network;
Fig. 2 is that the transparent transmission process of STP/RSTP messages in a kind of privately owned redundancy protocol network provided in an embodiment of the present invention is shown It is intended to;
Fig. 3 is privately owned redundancy protocol network provided by the invention and the structural representation of STP/RSTP network linkings;
Fig. 4 is that the detailed transparent transmission of STP/RSTP messages in the privately owned redundancy protocol network provided in an embodiment of the present invention is implemented Example;
Fig. 5 is the networking structure figure provided in an embodiment of the present invention based on shown in Fig. 3, in the privately owned redundancy protocol network Another transparent transmission embodiment in detail of STP/RSTP messages;
Fig. 6 is that the specific transparent transmission mode of STP/RSTP messages in privately owned redundancy protocol network provided in an embodiment of the present invention is real Apply example;
Fig. 7 is the transparent transmission device of STP/RSTP messages in a kind of privately owned redundancy protocol network provided in an embodiment of the present invention Structural representation.
Embodiment
The present invention is in order to ensure STP/RSTP messages normal transparent transmission in privately owned redundancy protocol network, there is provided a kind of privately owned The transmitting method and device of STP/RSTP messages in redundancy protocol network.
With reference to Figure of description, the present invention is described in detail.
Fig. 2 is that the transparent transmission process of STP/RSTP messages in a kind of privately owned redundancy protocol network provided in an embodiment of the present invention is shown It is intended to, the process comprises the following steps:
S201:The port of privately owned redundancy protocol equipment in network receives spanning tree STP protocol network or quickly generates tree The BPDU BPDU messages that the equipment of RSTP protocol networks is sent.
In embodiments of the present invention in order to which the every equipment ensured in privately owned redundancy protocol network can transparent transmission STP/RSTP Message, the message that each non-port blocked of equipment can be in transparent transmission STP/RSTP networks in the privately owned redundant network, i.e., only Will in the privately owned redundant network equipment the non-port blocked in port, the message that the port can be in transparent transmission STP/RSTP networks, That is transparent transmission STP/RSTP messages.
S202:Identify in the BPDU messages and whether contain STP/RSTP network topology change flag bits, when identification should When containing STP/RSTP network topology change flag bits in BPDU messages, step S203 is carried out, otherwise, carries out step S201.
When network topology structure changes in STP protocol network or RSTP protocol networks, the phase in STP/RSTP networks Answer equipment to send BPDU messages, contain STP/RSTP network topology change flag bits wherein in the message, be i.e. the BPDU messages TC positions are 1, are changed with identifying its network topology structure.
S203:Determine that network topology structure is changed in the STP protocol network or RSTP protocol networks, and itself is protected The mac address table deposited is removed.
When identify contain STP/RSTP network topology change flag bits in the BPDU messages when, i.e. TC positions of the BPDU messages For 1 when, it may be determined that the topological structure of the STP/RSTP networks changes, in order to which ensure subsequently being capable of normal transmission STP/ The message of RSTP networks, the port that the TC positions are 1 is recognized, the mac address table itself preserved is removed.
S204:Transparent transmission path is established according to the blocked state of privately owned redundancy protocol network middle port.
Wherein, establishing transparent transmission path according to the blocked state of privately owned redundancy protocol network middle port includes:
When the port of equipment in the privately owned redundant network is port blocked, the port does not receive and does not forward this BPDU messages, when the port is non-obstruction central port, the transparent transmission BPDU messages.
Due in embodiments of the present invention when the device port in privately owned redundancy protocol network is receiving BPDU messages, and Identify when containing STP/RSTP network topology change flag bits in the message, determine network topology structure in the STP/RSTP networks Change, in order to ensure the normal transparent transmission of subsequent packet, the port is by the mac address table aging of itself in embodiments of the present invention, To ensure after the communication packet of the STP/RSTP networks is received, communication message is broadcasted, rather than it is different to having occurred Normal link forwarding, ensure that the normal transparent transmission of STP/RSTP messages.
In embodiments of the present invention, each non-port blocked of every equipment can transparent transmission in privately owned redundancy protocol network STP/RSTP messages, wherein each port include the port with STP/RSTP network connections, so as to realize STP/RSTP The purpose of message redundancy backup in privately owned redundancy protocol network.And for the port blocked in privately owned redundancy protocol network, Do not received in the embodiment of the present invention and do not forward STP/RSTP messages yet.
Therefore, the forwarding rule of privately owned redundancy protocol network middle port includes in embodiments of the present invention:Privately owned redundancy association The transparent transmission port in network is discussed, i.e., state is the port of forwarding state in privately owned redundancy protocol network, then receives, forwards STP/ RSTP BPDUs;Port blocked in privately owned redundancy protocol network, then do not receive, do not forward STP/RSTP messages.
Illustrated with reference to forwarding rules of the Fig. 1 to above-mentioned port, the redundancy port in privately owned redundancy protocol network includes: A1, A2, B1, B2, C1, C2, D1, D2, the port adjacent with STP/RSTP networks is A3, B3 in privately owned redundancy protocol network.Its Middle A1 ports are port blocked, and remaining above-mentioned each port has been switched on the forwarding capability of STP/RSTP messages.STP/RSTP is reported Text is forwarded between the above-mentioned port for opening forwarding capability, and A1 ports are the port blocked in privately owned redundancy protocol network, Do not receive, do not forward STP/RSTP messages.
With reference to specific embodiment, the present invention is described in detail.
Fig. 3 is the structural representation of privately owned redundancy protocol network provided by the invention and STP/RSTP network linkings, privately owned Redundancy protocol network, which includes device A, equipment B, equipment C and equipment D, STP/RSTP network, includes equipment E and equipment F, its In, A1, A3, B1, B3, C2, D1, D2 port are configured as transparent transmission port in privately owned redundancy protocol network, and C1 is port blocked, private It is A2, B2 port to have the redundancy protocol network port adjacent with STP/RSTP networks, device A, equipment B, equipment C and equipment D phases The link to connect is transparent transmission link.
As the equipment G hung under A(Not shown in figure)With the equipment H hung under F(Not shown in figure)Communication, and equipment B and set Open circuit between standby F.Now if the communication packet slave unit G of STP/RSTP networks is transferred into equipment H, then the equipment H of device A MAC address learning to A2 ports, now the communication packet is transferred to equipment H by A2 ports-equipment E- equipment F.
But when breaking between equipment E and equipment F, if now or slave unit G sends communication packet, end to equipment H Mouth A2 sends the communication packet according to the mac address table to equipment H of study, and now actually disconnected between equipment E and equipment F Road, therefore the communication packet can only be sent on A2 ports, equipment H can not receive the communication packet.
Therefore in embodiments of the present invention, between STP/RSTP equipment in network E and equipment F after open circuit, STP/RSTP nets Equipment in network sends BPDU messages, and contains STP/RSTP network topology change flag bits in the BPDU messages, i.e., should The TC positions of BPDU messages are after 1, A2 ports receive the BPDU messages, to identify in the message whether opened up containing STP/RSTP networks Change flag position is flutterred, when recognizing the BPDU messages and containing STP/RSTP network topology change flag bits, determines the STP/RSTP Network topology structure changes in network, in order to ensure subsequent communications message can normal transmission, A2 ports preserve itself Mac address table remove.
After A2 removes port the mac address table itself learnt, sent when the port receives the STP/RSTP networks again Communication packet when, this method also includes:
The port receives the communication packet that equipment is sent in the STP protocol network or RSTP protocol networks, according to institute State communication packet study mac address table.
Port for having deleted local mac address table, when the port receives STP/RSTP networks transmission again During communication packet, in order to ensure the transmission of the communication packet, it is necessary to relearn mac address table.
Specifically, include in embodiments of the present invention when A2 ports learn mac address table according to communication packet again:
The port judges itself whether preserve the mac address table of the communication packet destination address;
When it is determined that not preserving, broadcasted, the message returned according to other ports, learn mac address table.
In embodiments of the present invention, the port for deleting mac address table receives the communication of STP/RSTP networks transmission again After message, when the port determines that itself does not have corresponding mac address table, the message is broadcasted in the port, by the message from the port Outside other ports send, eventually through this link of equipment B- equipment F, the communication packet is sent to equipment H, so as to will The MAC address learning is into port.
Fig. 4 is that the detailed transparent transmission of STP/RSTP messages in the privately owned redundancy protocol network provided in an embodiment of the present invention is implemented Example, the process comprise the following steps:
S401:The port of privately owned redundancy protocol equipment in network receives spanning tree STP protocol network or quickly generates tree The BPDU BPDU messages that the equipment of RSTP protocol networks is sent.
S402:Identify in the BPDU messages and whether contain STP/RSTP network topology change flag bits, when identification should When BPDU messages contain STP/RSTP network topology change flag bits, step S403 is carried out, otherwise, carries out step S401.
S403:Determine that network topology structure is changed in the STP protocol network or RSTP protocol networks, and itself is protected The mac address table deposited is removed.
S404:The port receives the communication packet that STP/RSTP networks are sent.
S405:The port judges itself whether preserve the mac address table of the communication packet destination address, when sentencing Disconnected result is when being, carries out step S406, otherwise, carries out step S407.
S406:The communication packet is forwarded according to the mac address table of preservation.
S407:The communication packet is broadcasted, the message returned according to other network equipments, learns mac address table.
Due in embodiments of the present invention when the device port in privately owned redundancy protocol network is receiving BPDU messages, and Identify and contain STP/RSTP network topology change flag bits in the message, i.e., when the TC positions of the message are 1, determine the STP/RSTP Network topology structure changes in network, and in order to ensure the normal transparent transmission of subsequent packet, the port will be certainly in embodiments of the present invention The mac address table aging of body, to ensure after the communication packet of the STP/RSTP networks is received, communication message is carried out wide Broadcast, rather than forwarded to abnormal link has occurred, ensure that the normal transparent transmission of STP/RSTP messages.
It can be seen from the description of above-described embodiment, when network topology structure changes in STP/RSTP networks, STP/RSTP Equipment in network sends BPDU messages, when the corresponding port in privately owned redundancy protocol network receives the BPDU messages, and Identify when containing STP/RSTP network topology change flag bits in the message, i.e., when the TC positions of the BPDU messages are 1, by itself Mac address table aging.In addition, the embodiment of the present invention, which is applied to the privately owned redundancy protocol network of STP/RSTP internet startup disks, forms mixing The situation of networking, when link switching occurs for privately owned redundancy protocol network, and the link pair to break down the mac address table also has During influence, in order to ensure the correctness of STP/RSTP message transmissions, in embodiments of the present invention, methods described also includes:
When link switching occurs for the port identification of privately owned redundancy protocol equipment in network privately owned redundancy protocol network, according to cutting Link after changing, the mac address table preserved to itself are updated.
As shown in figure 3 above, C1 is the port blocked in privately owned redundancy protocol network, is communicated when between equipment E and equipment F When, in the mac address table that A2 ports learn, corresponding message is sent to by equipment F by A1 ports-B1 ports B2 ports, but When the link between privately owned redundancy protocol equipment in network A and equipment B breaks down, if A2 ports are according further to learning Mac address table carries out the transmission of message, also message will be caused not to be sent to normally, influence the efficiency of transmission of message.Therefore exist In the embodiment of the present invention, in order to further improve the accuracy of message transmissions, ensure the timely switching of message transmission link, entering During the transparent transmission of row STP/RSTP messages, whether the privately owned redundancy protocol network that the port is additionally operable to where judging itself occurs link Switching, when it is determined that link switching occurs for the privately owned redundancy protocol network, according to the link after switching, the MAC preserved to itself Address table is updated.
Specifically, the mac address table preserved to itself is updated and specifically included in embodiments of the present invention:
Whether the member port for the mac address table for judging itself to preserve is containing STP/RSTP network topology change flag bits Clear statistical tables and reports text port;
If it is the mac address table is deleted, then allows equipment to relearn mac address table;
Otherwise, keep the mac address table constant.
It is described above and understands, the link between link device A and equipment B due to open circuit now occurs, the link exists In the address table that A2 ports learn, and now the link is there occurs open circuit, and in order to ensure the normal transmission of message, A2 ports need Mac address table is saved in itself to modify, so as to ensure the normal transmission of message.And if the chain of open circuit now occurs When message transmissions are carried out when road is the link between equipment B and equipment D, between equipment E and equipment F, MAC that A2 ports learn Do not include the link in address table, therefore even if the link is there occurs open circuit in privately owned redundancy protocol network, A2 ports without The mac address table of itself is changed, keeps the constant transmission that also can guarantee that two equipment room messages of the mac address table of itself.
Fig. 5 is the networking structure figure provided in an embodiment of the present invention based on shown in Fig. 3, in the privately owned redundancy protocol network Another transparent transmission embodiment, process in detail of STP/RSTP messages comprise the following steps:
S501:Whether the privately owned redundancy protocol network where the port identification itself of privately owned redundancy protocol equipment in network is sent out Raw link switching, when link switching occurs for the network where judging itself, step S502 is carried out, otherwise, carries out step S501.
S502:Whether the member port for the mac address table for judging itself to preserve is containing STP/RSTP network topology changes The port of the clear statistical tables and reports text of flag bit, when judged result when being, to carry out step S503, otherwise, carry out step S504.
S503:The mac address table preserved is deleted, then relearns mac address table.
S504:Keep the mac address table constant.
It is above-mentioned to be arranged for the port to the processing under link open circuit conditions occurs in the privately owned redundancy protocol network where itself Apply, in order to ensure the integrality of scheme, now two kinds of embodiments are combined the embodiment of the present invention is described in detail.
Fig. 6 is that the specific transparent transmission mode of STP/RSTP messages in privately owned redundancy protocol network provided in an embodiment of the present invention is real Example is applied, the process comprises the following steps:
S601:The port for having redundancy protocol equipment in network receives spanning tree STP protocol network or quickly generates tree RSTP The BPDU BPDU messages that the equipment of protocol network is sent.
S602:Identify whether the BPDU messages contain STP/RSTP network topology change flag bits, as the identification BPDU When message contains STP/RSTP network topology change flag bits, step S603 is carried out, otherwise, carries out step S601.
S603:Determine that network topology structure is changed in the STP protocol network or RSTP protocol networks, and itself is protected The mac address table deposited is removed.
S604:The port receives the communication packet that STP/RSTP networks are sent.
S605:The port relearns mac address table according to the communication packet.
S606:Whether the privately owned redundancy protocol network where the port identification itself of privately owned redundancy protocol equipment in network is sent out Raw link switching, when link switching occurs for the network where judging itself, step S607 is carried out, otherwise, carries out step S606.
S607:Whether the member port for the mac address table for judging itself to preserve is containing STP/RSTP network topology changes The port of the clear statistical tables and reports text of flag bit, when judged result when being, to carry out step S608, otherwise, carry out step S609.
S608:The mac address table preserved is deleted, then relearns mac address table.
S609:Keep the mac address table constant.
Due in embodiments of the present invention when the device port in privately owned redundancy protocol network is receiving BPDU messages, and Identify when containing STP/RSTP network topology change flag bits in the message, i.e., when the TC positions of the message are 1, determine the STP/ Network topology structure changes in RSTP networks, in order to ensure the normal transparent transmission of subsequent packet, the port in embodiments of the present invention By the mac address table aging of itself, to ensure after the communication packet of the STP/RSTP networks is received, communication message is carried out Broadcast, rather than forwarded to abnormal link has occurred, it ensure that the normal transparent transmission of STP/RSTP messages.In addition, in the present invention In embodiment when link switching occurs for the privately owned redundancy protocol network where port identification to itself, cut to be further ensured that Link after changing can timely, effective transparent transmission STP/RSTP messages, in embodiments of the present invention the port need according to switching Link afterwards, the mac address table preserved to itself is updated, specifically when being updated, it is necessary to judge the privately owned redundancy Whether the link that open circuit occurs in protocol network is included in the mac address table of itself, if comprising to itself preservation Mac address table is modified, and otherwise, keeps the constant transparent transmission that can also carry out STP/RSTP messages of the mac address table.
Fig. 7 is the transparent transmission device of STP/RSTP messages in a kind of privately owned redundancy protocol network provided in an embodiment of the present invention Structural representation, described device include:
Receiving module 71, the port for privately owned redundancy protocol equipment in network receive spanning tree STP protocol network or fast The BPDU BPDU messages that the equipment of fast spanning tree RSTP protocol networks is sent, wherein in the privately owned redundant network The message that each non-port blocked of equipment is used in transparent transmission STP/RSTP networks;
Identification module 72, for identifying in the BPDU messages whether contain STP/RSTP network topology change flag bits;
Module 73 is removed, for when identification contains STP/RSTP network topology change flag bits, determining the STP protocol Network topology structure is changed in network or RSTP protocol networks, and the mac address table itself preserved is removed;
Transparent transmission module 74, for establishing transparent transmission path according to the blocked state of privately owned redundancy protocol network middle port.
Due in embodiments of the present invention when the device port in privately owned redundancy protocol network is receiving BPDU messages, and Identify and contain STP/RSTP network topology change flag bits in the message, i.e., when TC positions are 1, determine net in the STP/RSTP networks Network topologies change, in order to ensure the normal transparent transmission of subsequent packet, the port is by the MAC of itself in embodiments of the present invention Location table aging, to ensure after the communication packet of the STP/RSTP networks is received, communication message is broadcasted, rather than to Abnormal link forwarding has occurred, ensure that the normal transparent transmission of STP/RSTP messages.
The transparent transmission module 74, specifically for when identification itself is port blocked, not receiving and not forwarding the BPDU Message, when it itself is non-obstruction central port to identify, the transparent transmission BPDU messages.
In privately owned redundancy protocol network, when the port of equipment in the privately owned redundant network is port blocked, the end Mouth does not receive and does not forward the BPDU messages, when the port is non-obstruction central port, the transparent transmission BPDU messages.
Described device also includes:
Study module 75, for receiving the communication packet that equipment is sent in the STP protocol network or RSTP protocol networks, Mac address table is learnt according to the communication packet.
The study module 75, the MAC specifically for judging itself whether to preserve the communication packet destination address Address table;When it is determined that not preserving, broadcasted, the message returned according to other network equipments, learn mac address table.
Described device also includes:
Update module 76, during for identifying that link switching occurs for privately owned redundancy protocol network, with judging the MAC that itself preserves Whether the member port of location table is the literary port of the clear statistical tables and reports containing STP/RSTP network topology change flag bits, is if it is deleted Except the mac address table, then equipment is allowed to relearn mac address table;Otherwise, keep the mac address table constant.
In embodiments of the present invention, in order to further improve the accuracy of message transmissions, ensure message transmission link and When switch, when link switching occurs for the privately owned redundancy protocol network of the port identification of privately owned redundancy protocol equipment in network, according to Link after switching, the mac address table preserved to itself are updated.
In embodiments of the present invention when link switching occurs for the privately owned redundancy protocol network where port identification to itself, In order to be further ensured that switching after link can timely, effective transparent transmission STP/RSTP messages, in embodiments of the present invention should Port is needed according to the link after switching, and the mac address table preserved to itself is updated, and specifically when being updated, is needed Judge whether the link that open circuit occurs in the privately owned redundancy protocol network is included in the mac address table of itself, if comprising, The mac address table then preserved to itself is modified, and otherwise, keeps the mac address table is constant can also carry out STP/RSTP reports The transparent transmission of text.
The embodiment of the present invention provides the transmitting method and device of STP/RSTP messages in a kind of privately owned redundancy protocol network, should Method includes the BPDU sent when the equipment that privately owned redundancy protocol equipment in network port is received in STP/RSTP protocol networks Message, and when to identify the TC in the message be 1, the port is by the mac address table aging of itself, to ensure that follow-up STP/RSTP is reported The correctness of literary transparent transmission.Due in embodiments of the present invention when the device port in privately owned redundancy protocol network is receiving BPDU Message, and when to identify the TC positions in the message be 1, determine in the STP/RSTP networks that network topology structure changes, in order to ensure The normal transparent transmission of subsequent packet, the port is by the mac address table aging of itself in embodiments of the present invention, to ensure receiving After the communication packet of the STP/RSTP networks, communication message is broadcasted, rather than forwarded to abnormal link has occurred, is protected The normal transparent transmission of STP/RSTP messages is demonstrate,proved.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program Product.Therefore, the application can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the application can use the computer for wherein including computer usable program code in one or more Usable storage medium(Including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)The computer program production of upper implementation The form of product.
The application is with reference to method, the equipment according to the embodiment of the present application(System)And the flow of computer program product Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
Although having been described for the preferred embodiment of the application, those skilled in the art once know basic creation Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent Select embodiment and fall into having altered and changing for the application scope.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the application to the application God and scope.So, if these modifications and variations of the application belong to the scope of the application claim and its equivalent technologies Within, then the application is also intended to comprising including these changes and modification.

Claims (8)

1. the transmitting method of STP/RSTP messages in a kind of privately owned redundancy protocol network, it is characterised in that methods described is applied to The mixed networking structure of STP/RSTP networks and privately owned redundancy protocol network, methods described include:
The port of privately owned redundancy protocol equipment in network receives spanning tree STP protocol network or quickly generates tree RSTP protocol networks Equipment send BPDU BPDU messages, each non-choke ring end of equipment wherein in the privately owned redundant network The message that mouth is all used in transparent transmission STP/RSTP networks;
Identify in the BPDU messages and whether contain STP/RSTP network topology change flag bits;
When identification contains STP/RSTP network topology change flag bits, the STP protocol network or RSTP protocol networks are determined Middle network topology structure is changed, and the mac address table itself preserved is removed;
And transparent transmission path is established according to the blocked state of privately owned redundancy protocol network middle port;
Methods described also includes:
When link switching occurs for the port identification privately owned redundancy protocol network of privately owned redundancy protocol equipment in network, judge that itself is protected Whether the member port for the mac address table deposited is the literary port of the clear statistical tables and reports containing STP/RSTP network topology change flag bits;
If it is the mac address table is deleted, then allows equipment to relearn mac address table;
Otherwise, keep the mac address table constant.
2. the method as described in claim 1, it is characterised in that the obstruction shape according to privately owned redundancy protocol network middle port State, which establishes transparent transmission path, to be included:
When the port of equipment in the privately owned redundant network is port blocked, the port does not receive and does not forward the BPDU to report Text, when the port is non-obstruction central port, the transparent transmission BPDU messages.
3. the method as described in claim 1, it is characterised in that methods described also includes:
The port receives the communication packet that equipment is sent in the STP protocol network or RSTP protocol networks, according to described logical Interrogate message study mac address table.
4. method as claimed in claim 3, it is characterised in that described to be included according to communication packet study mac address table:
The port judges itself whether preserve the mac address table of the communication packet destination address;
When it is determined that not preserving, broadcasted, the message returned according to other network equipments, learn mac address table.
5. the transparent transmission device of STP/RSTP messages in a kind of privately owned redundancy protocol network, it is characterised in that described device is applied to The mixed networking structure of STP/RSTP networks and privately owned redundancy protocol network, described device include:
Receiving module, the port for privately owned redundancy protocol equipment in network receive spanning tree STP protocol network or quickly generated Set the BPDU BPDU messages that the equipment of RSTP protocol networks is sent, equipment wherein in the privately owned redundant network The message that each non-obstruction central port is used in transparent transmission STP/RSTP networks;
Identification module, for identifying in the BPDU messages whether contain STP/RSTP network topology change flag bits;
Remove module, for when identification contain STP/RSTP network topology change flag bits when, determine the STP protocol network or Network topology structure is changed in RSTP protocol networks, and the mac address table itself preserved is removed;
Transparent transmission module, for establishing transparent transmission path according to the blocked state of privately owned redundancy protocol network middle port;
Described device also includes:
Update module, during for identifying that link switching occurs for privately owned redundancy protocol network, the mac address table that judges itself to preserve Whether member port is the literary port of the clear statistical tables and reports containing STP/RSTP network topology change flag bits, and if it is deleting should Mac address table, then equipment is allowed to relearn mac address table;
Otherwise, keep the mac address table constant.
6. device as claimed in claim 5, it is characterised in that the transparent transmission module, specifically for blocking when identifying itself During port, do not receive and do not forward the BPDU messages, when it itself is non-obstruction central port to identify, the transparent transmission BPDU messages.
7. device as claimed in claim 5, it is characterised in that described device also includes:
Study module, for receiving the communication packet that equipment is sent in the STP protocol network or RSTP protocol networks, according to institute State communication packet study mac address table.
8. device as claimed in claim 7, it is characterised in that the study module, specifically for judging whether itself preserves There is the mac address table to the communication packet destination address;When it is determined that not preserving, broadcasted, according to other network equipments The message of return, learn mac address table.
CN201410009605.7A 2014-01-09 2014-01-09 The transmitting method and device of STP/RSTP messages in privately owned redundancy protocol network Active CN104780138B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410009605.7A CN104780138B (en) 2014-01-09 2014-01-09 The transmitting method and device of STP/RSTP messages in privately owned redundancy protocol network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410009605.7A CN104780138B (en) 2014-01-09 2014-01-09 The transmitting method and device of STP/RSTP messages in privately owned redundancy protocol network

Publications (2)

Publication Number Publication Date
CN104780138A CN104780138A (en) 2015-07-15
CN104780138B true CN104780138B (en) 2017-12-19

Family

ID=53621385

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410009605.7A Active CN104780138B (en) 2014-01-09 2014-01-09 The transmitting method and device of STP/RSTP messages in privately owned redundancy protocol network

Country Status (1)

Country Link
CN (1) CN104780138B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111526078A (en) * 2019-06-26 2020-08-11 上海自恒信息科技有限公司 Sub-ring network redundancy expansion protocol applied to diversified network topology
CN112543142B (en) * 2019-09-20 2023-05-12 南京南瑞继保电气有限公司 Method and device for realizing RSTP ring network protocol based on FPGA
CN113395261B (en) * 2021-05-19 2022-03-22 浪潮思科网络科技有限公司 Method, equipment and medium for spanning tree protocol fast convergence in MLAG environment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060485A (en) * 2007-05-11 2007-10-24 杭州华三通信技术有限公司 Topology changed messages processing method and processing device
CN102118303A (en) * 2010-01-04 2011-07-06 华为技术有限公司 Method, system and edge device for sending data messages
CN102437967A (en) * 2012-02-01 2012-05-02 杭州华三通信技术有限公司 Method and device for forwarding messages
WO2014139175A1 (en) * 2013-03-15 2014-09-18 华为技术有限公司 Method, device, and system for convergence of dual-uplink tangent ring

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006254341A (en) * 2005-03-14 2006-09-21 Fujitsu Ltd Bridge device in spanning tree protocol network and control packet processing method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060485A (en) * 2007-05-11 2007-10-24 杭州华三通信技术有限公司 Topology changed messages processing method and processing device
CN102118303A (en) * 2010-01-04 2011-07-06 华为技术有限公司 Method, system and edge device for sending data messages
CN102437967A (en) * 2012-02-01 2012-05-02 杭州华三通信技术有限公司 Method and device for forwarding messages
WO2014139175A1 (en) * 2013-03-15 2014-09-18 华为技术有限公司 Method, device, and system for convergence of dual-uplink tangent ring

Also Published As

Publication number Publication date
CN104780138A (en) 2015-07-15

Similar Documents

Publication Publication Date Title
US10454806B2 (en) SDN controller, data center system, and routing connection method
CN104980349B (en) Relay system and exchange apparatus
US11025537B2 (en) Multiple RSTP domain separation
US8306024B2 (en) Preventing forwarding of a packet to a control plane
US10498607B2 (en) SDN network system, controller, and controlling method
US8619785B2 (en) Pre-computing alternate forwarding state in a routed ethernet mesh network
US9559863B2 (en) MAC flush optimizations for ethernet rings
CN103475583B (en) The method and apparatus for removing medium education forwarding-table item
CN104980372A (en) Relay System And Switching Device
EP3039830B1 (en) Network switching systems and methods
CN103944828A (en) Method and equipment for transmitting protocol messages
CN104219115B (en) It is a kind of to enable the method and system of Ethernet ring agreement and Spanning-Tree Protocol isomery mixed networking
CN103053139A (en) Message processing method and system
CN102326370B (en) Message processing method, apparatus and system
CN104780138B (en) The transmitting method and device of STP/RSTP messages in privately owned redundancy protocol network
CN103200107B (en) Message transmitting method and message transmitting equipment
CN112995002B (en) Switch ring network design method, switch and storage medium
WO2021042674A1 (en) Method for configuring port state and network device
CN104734874B (en) A kind of method and device of definite network failure
CN103618630B (en) A kind of data safe transmission method and equipment based on double up-links
US20120257539A1 (en) Method for mac addresses withdrawal in telecommunication networks
CN104486216B (en) A kind of state switching method and router
JP2013005143A (en) Ring type network system, network management apparatus, and layer 2 switch
CN106506378B (en) The update method and device of mac address table
CN106559331B (en) Message transmission method, device and network system in MSTP (Multi-service transport platform) network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant