CN104780138A - Transparent transmission method and device for STP (Spanning Tree Protocol)/RSTP (Rapid Spanning Tree Protocol) message in private redundancy protocol network - Google Patents

Transparent transmission method and device for STP (Spanning Tree Protocol)/RSTP (Rapid Spanning Tree Protocol) message in private redundancy protocol network Download PDF

Info

Publication number
CN104780138A
CN104780138A CN201410009605.7A CN201410009605A CN104780138A CN 104780138 A CN104780138 A CN 104780138A CN 201410009605 A CN201410009605 A CN 201410009605A CN 104780138 A CN104780138 A CN 104780138A
Authority
CN
China
Prior art keywords
network
rstp
stp
port
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410009605.7A
Other languages
Chinese (zh)
Other versions
CN104780138B (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

Landscapes

  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a transparent transmission method and a device for a STP (Spanning Tree Protocol)/RSTP (Rapid Spanning Tree Protocol) message in a private redundancy protocol network, so as to solve the problems that a communication message can not be sent to corresponding equipment in the prior transparent transmission method and normal message transmission is thus influenced. The method comprises steps: when an equipment port in the private redundancy protocol network receives a BPDU message sent by equipment in a STP/RSTP protocol network, whether a STP/RSTP network topological change flag bit is included in the message is recognized, when the message includes the STP/RSTP network topological change flag bit, the port ages the self MAC address table, and subsequent transparent transmission accuracy of the STP/RSTP message can be ensured. As the port in the embodiment of the invention ages the self MAC address table, the communication message is broadcasted after the STP/RSTP network communication message is ensured to be received, and forwarding to an abnormal link does not happen.

Description

The transmitting method of STP/RSTP message and device in privately owned redundancy protocol network
Technical field
The present invention relates to proprietary protocol data transmission in network technical field, particularly relate to Spanning-Tree Protocol (Spanning Tree Protocol in a kind of privately owned redundancy protocol network, the transmitting method of STP)/RSTP (Rapid Spanning Tree Protocol, RSTP) message and device.
Background technology
Spanning-Tree Protocol STP/ RSTP RSTP can apply and loop network, by certain algorithm realization path redundancy, loop network is trimmed to loop-free tree network simultaneously, thus avoid message hyperplasia and Infinite Cyclic in loop network, solve the problem producing network storm in the loop network that in ethernet link, redundancy backup causes.Therefore known STP/RSTP mainly applies is exactly network loopback in order to avoid in local area network (LAN), solves into " broadcast storm " problem of ring ethernet network.
The transparent transmission of general STP/RSTP message refers to and does not process BPDU (Bridge Protocol Data Unit, BPDU) message, the function of transparent transmission.When embedding other privately owned redundancy protocol networks in Spanning-Tree Protocol network and forming mixed networking, the equipment run in the privately owned redundancy protocol network of other redundancy protocols just needs to carry out transparent transmission to BPDU message, thus ensures the correctness of the STP/RSTP network operation.But during transparent transmission BPDU message, transmission path often can be caused not switch in time, affect the normal transmission of communication packet in privately owned redundancy protocol network in prior art.
Fig. 1 embeds the structure chart that other privately owned redundancy protocol networks form mixed networking in Spanning-Tree Protocol network, Spanning-Tree Protocol network comprises equipment 1, equipment 2 and equipment 3, privately owned redundancy protocol network comprises device A, equipment B, equipment C and equipment D, and the A3 port of device A is connected with the equipment 1 in Spanning-Tree Protocol network and equipment 3 with the B3 port of equipment B.The wherein port block be connected with equipment 2 of equipment 1, the A1 port block of device A.Equipment 1 is connected with equipment E, and equipment B is connected with equipment F.
When communication packet is from equipment E to the message of equipment F, due to open circuit between equipment 1 and equipment 2, therefore communication packet is by equipment 1-A3 port-A2 port-B1 port transmission, and the mac address table that each port learns is kept in port.When the equipment 1 that Spanning-Tree Protocol network is connected with privately owned redundancy protocol network and device A open circuit, if communication packet is still from equipment E to equipment F, each equipment is according to the mac address table learning to arrive, communication packet cannot be sent to corresponding equipment, thus affect the normal transmission of communication packet in Spanning-Tree Protocol network.
Summary of the invention
The embodiment of the present invention provides transmitting method and the device of STP/RSTP message in a kind of privately owned redundancy protocol network, in order to solve the method for transparent transmission STP/RSTP message in existing privately owned redundancy protocol network, cause communication packet cannot be sent to corresponding equipment, affect the problem of message normal transmission.
The embodiment of the present invention provides the transmitting method of STP/RSTP message in a kind of privately owned redundancy protocol network, and described method comprises:
The BPDU BPDU message that the equipment of the port accepts spanning tree STP protocol network of privately owned redundancy protocol equipment in network or rapid spanning-tree RSTP protocol network sends, wherein in this privately owned redundant network each unblock central port of equipment for the message in transparent transmission STP/RSTP network;
Whether identify in described BPDU message containing STP/RSTP network topology change flag bit;
When identifying containing STP/RSTP network topology change flag bit, determine that in described STP protocol network or RSTP protocol network, network topology structure changes, the mac address table self preserved is removed;
And set up transparent transmission path according to the blocked state of privately owned redundancy protocol network middle port.
The embodiment of the present invention provides the transparent transmission device of STP/RSTP message in a kind of privately owned redundancy protocol network, and described device comprises:
Receiver module, for the BPDU BPDU message that the equipment of the port accepts spanning tree STP protocol network of privately owned redundancy protocol equipment in network or rapid spanning-tree RSTP protocol network sends, wherein in this privately owned redundant network each unblock central port of equipment for the message in transparent transmission STP/RSTP network;
Whether identification module, for identifying in described BPDU message containing STP/RSTP network topology change flag bit;
Removing module, for when identifying containing STP/RSTP network topology change flag bit, determining that in described STP protocol network or RSTP protocol network, network topology structure changes, the mac address table self preserved is removed;
Transparent transmission module, for setting up transparent transmission path according to the blocked state of privately owned redundancy protocol network middle port.
The embodiment of the present invention provides transmitting method and the device of STP/RSTP message in a kind of privately owned redundancy protocol network, the method comprises the BPDU message when privately owned redundancy protocol equipment in network port accepts sends to the equipment in STP/RSTP protocol network, and identify in this message containing STP/RSTP network topology change flag bit time, this port by aging for the mac address table of self, to ensure the correctness of follow-up STP/RSTP message transmission.Due in embodiments of the present invention when the device port in privately owned redundancy protocol network is receiving BPDU message, and identify in this message containing STP/RSTP network topology change flag bit time, determine network topology structure change in this STP/RSTP network, in order to ensure the normal transparent transmission of subsequent packet, this port is by aging for the mac address table of self in embodiments of the present invention, to ensure after the communication packet receiving this STP/RSTP network, communication message is broadcasted, instead of forward to there is abnormal link, ensure that the normal transparent transmission of STP/RSTP message.
 
Accompanying drawing explanation
Fig. 1 embeds the structure chart that other privately owned redundancy protocol networks form mixed networking in Spanning-Tree Protocol network;
The transparent transmission process schematic of STP/RSTP message in a kind of privately owned redundancy protocol network that Fig. 2 provides for the embodiment of the present invention;
Fig. 3 is the structural representation of privately owned redundancy protocol network provided by the invention and STP/RSTP network linking;
The detailed transparent transmission embodiment of STP/RSTP message in this privately owned redundancy protocol network that Fig. 4 provides for the embodiment of the present invention;
Fig. 5 for the embodiment of the present invention provide based on the networking structure figure shown in Fig. 3, another detailed transparent transmission embodiment of STP/RSTP message in this privately owned redundancy protocol network;
The concrete transparent transmission mode embodiment of STP/RSTP message in the privately owned redundancy protocol network that Fig. 6 provides for the embodiment of the present invention;
The structural representation of the transparent transmission device of STP/RSTP message in a kind of privately owned redundancy protocol network that Fig. 7 provides for the embodiment of the present invention.
 
Embodiment
The present invention, in order to ensure STP/RSTP message normal transparent transmission in privately owned redundancy protocol network, provides transmitting method and the device of STP/RSTP message in a kind of privately owned redundancy protocol network.
Below in conjunction with Figure of description, the present invention is described in detail.
The transparent transmission process schematic of STP/RSTP message in a kind of privately owned redundancy protocol network that Fig. 2 provides for the embodiment of the present invention, this process comprises the following steps:
S201: the BPDU BPDU message that the port accepts spanning tree STP protocol network of privately owned redundancy protocol equipment in network or the equipment of rapid spanning-tree RSTP protocol network send.
In embodiments of the present invention in order to ensure that every platform equipment in privately owned redundancy protocol network can transparent transmission STP/RSTP message, in this privately owned redundant network, each unblock port of equipment can message in transparent transmission STP/RSTP network, as long as the i.e. port unblock port of equipment in this privately owned redundant network, this port can message in transparent transmission STP/RSTP network, i.e. transparent transmission STP/RSTP message.
S202: identifying whether containing STP/RSTP network topology change flag bit in described BPDU message, when containing STP/RSTP network topology change flag bit in this BPDU message of identification, carrying out step S203, otherwise, carry out step S201.
When in STP protocol network or RSTP protocol network, network topology structure changes, relevant device in STP/RSTP network sends BPDU message, wherein contain STP/RSTP network topology change flag bit in this message, namely the TC position of this BPDU message is 1, changes to identify its network topology structure.
S203: determine that in described STP protocol network or RSTP protocol network, network topology structure changes, removes the mac address table self preserved.
When containing STP/RSTP network topology change flag bit in this BPDU message of identification, namely when the TC position of this BPDU message is 1, can determine that this STP/RSTP topology of networks changes, in order to ensure follow-up can the message of normal transmission STP/RSTP network, recognizing this TC position is the port of 1, is removed by the mac address table self preserved.
S204: the blocked state according to privately owned redundancy protocol network middle port sets up transparent transmission path.
Wherein, set up transparent transmission path according to the blocked state of privately owned redundancy protocol network middle port to comprise:
When in described privately owned redundant network, the port of equipment is port blocked, this port does not receive and does not forward this BPDU message, when this port is unblock central port, and this BPDU message of transparent transmission.
Due in embodiments of the present invention when the device port in privately owned redundancy protocol network is receiving BPDU message, and identify in this message containing STP/RSTP network topology change flag bit time, determine network topology structure change in this STP/RSTP network, in order to ensure the normal transparent transmission of subsequent packet, this port is by aging for the mac address table of self in embodiments of the present invention, to ensure after the communication packet receiving this STP/RSTP network, communication message is broadcasted, instead of forward to there is abnormal link, ensure that the normal transparent transmission of STP/RSTP message.
In embodiments of the present invention, in privately owned redundancy protocol network, each unblock port of every platform equipment can transparent transmission STP/RSTP message, wherein this each port comprises the port be connected with STP/RSTP network, thus can realize the object of STP/RSTP message redundancy backup in privately owned redundancy protocol network.And for the port blocked in privately owned redundancy protocol network, do not receive in embodiments of the present invention and also do not forward STP/RSTP message.
Therefore, the forwarding rule of privately owned redundancy protocol network middle port comprises in embodiments of the present invention: the transparent transmission port in privately owned redundancy protocol network, and namely in privately owned redundancy protocol network, state is the port of forwarding state, then receive, forward STP/RSTP message; Port blocked in privately owned redundancy protocol network, then do not receive, do not forward STP/RSTP message.
The forwarding rule of composition graphs 1 to above-mentioned port is described, and the redundancy port in privately owned redundancy protocol network comprises: A1, A2, B1, B2, C1, C2, D1, D2, and port adjacent with STP/RSTP network in privately owned redundancy protocol network is A3, B3.Wherein A1 port is port blocked, and all the other above-mentioned each ports open the forwarding capability of STP/RSTP message.STP/RSTP message forwards between the above-mentioned port opening forwarding capability, and A1 port is the port blocked in privately owned redundancy protocol network, does not receive, does not forward STP/RSTP message.
Below in conjunction with concrete execution mode, 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 linking, privately owned redundancy protocol network comprises device A, equipment B, equipment C and equipment D, STP/RSTP network comprises equipment E and equipment F, wherein, in privately owned redundancy protocol network, A1, A3, B1, B3, C2, D1, D2 port is configured to transparent transmission port, C1 is port blocked, the port that privately owned redundancy protocol network is adjacent with STP/RSTP network is A2, B2 port, and device A, equipment B, equipment C and the interconnective link of equipment D are transparent transmission link.
When the equipment G(hung under A is not shown) not shown with the equipment H(hung under F) communicate, and open circuit between equipment B and equipment F.If now the communication packet of STP/RSTP network is transferred to equipment H from equipment G, then the MAC address learning of the equipment H of device A is to A2 port, and now this communication packet is transferred to equipment H by A2 port-equipment E-equipment F.
But between equipment E and equipment F during open circuit, if now or from equipment G to equipment H send communication packet, port A2 sends this communication packet according to the mac address table to equipment H of study, and now in fact open circuit between equipment E and equipment F, therefore this communication packet can only be sent on A2 port, and equipment H cannot receive this communication packet.
Therefore in embodiments of the present invention, between STP/RSTP equipment in network E and equipment F after open circuit, equipment in STP/RSTP network sends BPDU message, and containing STP/RSTP network topology change flag bit in this BPDU message, namely the TC position of this BPDU message is 1, after A2 port accepts to this BPDU message, whether identify in this message containing STP/RSTP network topology change flag bit, recognize this BPDU message when containing STP/RSTP network topology change flag bit, determine that in this STP/RSTP network, network topology structure changes, in order to ensure that subsequent communications message can normal transmission, the mac address table self preserved is removed by A2 port.
After A2 port is removed and self learnt the mac address table arrived, when this port receives the communication packet of this STP/RSTP network transmission again, the method also comprises:
The communication packet that in STP protocol network described in described port accepts or RSTP protocol network, equipment sends, according to described communication packet learning MAC address table.
For the port deleting local mac address table, when this port receives the communication packet of this STP/RSTP network transmission again, in order to ensure the transmission of this communication packet, need to relearn mac address table.
Concrete, in embodiments of the present invention when A2 port comprises according to during communication packet learning MAC address table again:
Described port judges the mac address table self whether preserving described communication packet destination address;
When determining not preserve, broadcast, according to the message that other ports return, learning MAC address table.
In embodiments of the present invention, after the port deleting mac address table receives the communication packet that STP/RSTP network sends again, when this port determines self do not have corresponding mac address table, this port broadcasts this message, this message is sent from other ports outside this port, eventually through equipment B-this link of equipment F, this communication packet is sent to equipment H, thus by this MAC address learning in port.
The detailed transparent transmission embodiment of STP/RSTP message in this privately owned redundancy protocol network that Fig. 4 provides for the embodiment of the present invention, this process comprises the following steps:
S401: the BPDU BPDU message that the port accepts spanning tree STP protocol network of privately owned redundancy protocol equipment in network or the equipment of rapid spanning-tree RSTP protocol network send.
S402: identify whether containing STP/RSTP network topology change flag bit in described BPDU message, when this BPDU message of identification contains STP/RSTP network topology change flag bit, carries out step S403, otherwise, carry out step S401.
S403: determine that in described STP protocol network or RSTP protocol network, network topology structure changes, removes the mac address table self preserved.
The communication packet that S404: this port accepts STP/RSTP network sends.
S405: described port judges the mac address table self whether preserving described communication packet destination address, when judged result is for being, carries out step S406, otherwise, carry out step S407.
S406: the mac address table according to preserving forwards this communication packet.
S407: this communication packet is broadcasted, according to the message that other network equipments return, learning MAC address table.
Due in embodiments of the present invention when the device port in privately owned redundancy protocol network is receiving BPDU message, and identify in this message containing STP/RSTP network topology change flag bit, namely when the TC position of this message is 1, determine network topology structure change in this STP/RSTP network, in order to ensure the normal transparent transmission of subsequent packet, this port is by aging for the mac address table of self in embodiments of the present invention, to ensure after the communication packet receiving this STP/RSTP network, communication message is broadcasted, instead of forward to there is abnormal link, ensure that the normal transparent transmission of STP/RSTP message.
According to the description of above-described embodiment, when network topology structure in STP/RSTP network changes, equipment in STP/RSTP network sends BPDU message, when the corresponding port accepts in privately owned redundancy protocol network is to this BPDU message, and identify in this message containing STP/RSTP network topology change flag bit time, namely when the TC position of this BPDU message is 1, by aging for the mac address table of self.In addition, the embodiment of the present invention is applicable to the situation that the privately owned redundancy protocol network of STP/RSTP internet startup disk forms mixed networking, when privately owned redundancy protocol network generation link switching, and the link broken down on this mac address table also have affect time, in order to ensure the correctness of STP/RSTP message transmission, in embodiments of the present invention, described method also comprises:
During the privately owned redundancy protocol network generation link switching of the port identification of privately owned redundancy protocol equipment in network, according to the link after switching, the mac address table that self preserves is upgraded.
As above shown in Fig. 3, C1 is the port blocked in privately owned redundancy protocol network, when communicating between equipment E with equipment F, in the mac address table that A2 port learns, by A1 port-B1 port B2 port, corresponding message is sent to equipment F, but when the link occurs fault between privately owned redundancy protocol equipment in network A and equipment B, if A2 port also carries out the transmission of message according to the mac address table learnt, also message will be caused normally to send to, affect the efficiency of transmission of message.Therefore in embodiments of the present invention, in order to improve the accuracy of message transmissions further, ensure that message sends the timely switching of link, when carrying out the transparent transmission of STP/RSTP message, this port is also for judging whether the privately owned redundancy protocol network at self place link switching occurs, when determining this privately owned redundancy protocol network generation link switching, according to the link after switching, the mac address table that self preserves is upgraded.
Concrete, the described mac address table preserved self upgrades and specifically comprises in embodiments of the present invention:
Judge that whether the member port of the mac address table self preserved is the port of the clear statistical tables and reports literary composition containing STP/RSTP network topology change flag bit;
If it is delete this mac address table, then allow equipment relearn mac address table;
Otherwise, keep this mac address table constant.
As foregoing description is known, owing to now there is the link between the link device A of open circuit and equipment B, in the address table that this link learns at A2 port, and now this link there occurs open circuit, in order to ensure the normal transmission of message, A2 port needs to modify to self being saved in mac address table, thus ensures the normal transmission of message.And when if the link that open circuit now occurs is the link between equipment B and equipment D, when carrying out message transmissions between equipment E and equipment F, this link is not comprised in the mac address table that A2 port learns, even if therefore in privately owned redundancy protocol network, this link there occurs open circuit, A2 port, also without the need to revising the mac address table of self, keeps the constant transmission that also can ensure two equipment room messages of the mac address table of self.
Fig. 5 for the embodiment of the present invention provide based on the networking structure figure shown in Fig. 3, another detailed transparent transmission embodiment of STP/RSTP message in this privately owned redundancy protocol network, this process comprises the following steps:
S501: whether the privately owned redundancy protocol network at port identification self place of privately owned redundancy protocol equipment in network link switching occurs, when judging the network generation link switching at self place, carries out step S502, otherwise, carry out step S501.
S502: judging that whether the member port of the mac address table self preserved is the port of the clear statistical tables and reports literary composition containing STP/RSTP network topology change flag bit, when judged result is for being, carrying out step S503, otherwise, carry out step S504.
S503: delete the mac address table preserved, then relearn mac address table.
S504: keep this mac address table constant.
Above-mentioned for this port is to the treatment measures occurred in the privately owned redundancy protocol network at self place under link open circuit conditions, in order to the integrality of assured plan, existing being combined by two kinds of execution modes is described in detail to the embodiment of the present invention.
The concrete transparent transmission mode embodiment of STP/RSTP message in the privately owned redundancy protocol network that Fig. 6 provides for the embodiment of the present invention, this process comprises the following steps:
S601: have the BPDU BPDU message that the port accepts spanning tree STP protocol network of redundancy protocol equipment in network or the equipment of rapid spanning-tree RSTP protocol network send.
S602: identify that whether described BPDU message is containing STP/RSTP network topology change flag bit, when identifying that this BPDU message contains STP/RSTP network topology change flag bit, carries out step S603, otherwise, carry out step S601.
S603: determine that in described STP protocol network or RSTP protocol network, network topology structure changes, removes the mac address table self preserved.
The communication packet that S604: this port accepts STP/RSTP network sends.
S605: described port relearns mac address table according to described communication packet.
S606: whether the privately owned redundancy protocol network at port identification self place of privately owned redundancy protocol equipment in network link switching occurs, when judging the network generation link switching at self place, carries out step S607, otherwise, carry out step S606.
S607: judging that whether the member port of the mac address table self preserved is the port of the clear statistical tables and reports literary composition containing STP/RSTP network topology change flag bit, when judged result is for being, carrying out step S608, otherwise, carry out step S609.
S608: delete this mac address table preserved, then relearn mac address table.
S609: keep this mac address table constant.
Due in embodiments of the present invention when the device port in privately owned redundancy protocol network is receiving BPDU message, and identify in this message containing STP/RSTP network topology change flag bit time, namely when the TC position of this message is 1, determine network topology structure change in this STP/RSTP network, in order to ensure the normal transparent transmission of subsequent packet, this port is by aging for the mac address table of self in embodiments of the present invention, to ensure after the communication packet receiving this STP/RSTP network, communication message is broadcasted, instead of forward to there is abnormal link, ensure that the normal transparent transmission of STP/RSTP message.In addition, in embodiments of the present invention when port identification is to the privately owned redundancy protocol network generation link switching at self place, in order to ensure that the link after switching can be timely further, effective transparent transmission STP/RSTP message, this port needs the link after according to switching in embodiments of the present invention, the mac address table that self preserves is upgraded, concrete when upgrading, the link judging to occur in this privately owned redundancy protocol network open circuit is needed whether to be included in the mac address table of self, if comprised, then the mac address table that self preserves is modified, otherwise, keep the constant transparent transmission that also can carry out STP/RSTP message of this mac address table.
The structural representation of the transparent transmission device of STP/RSTP message in a kind of privately owned redundancy protocol network that Fig. 7 provides for the embodiment of the present invention, described device comprises:
Receiver module 71, for the BPDU BPDU message that the equipment of the port accepts spanning tree STP protocol network of privately owned redundancy protocol equipment in network or rapid spanning-tree RSTP protocol network sends, wherein in this privately owned redundant network each unblock port of equipment for the message in transparent transmission STP/RSTP network;
Whether identification module 72, for identifying in described BPDU message containing STP/RSTP network topology change flag bit;
Removing module 73, for when identifying containing STP/RSTP network topology change flag bit, determining that in described STP protocol network or RSTP protocol network, network topology structure changes, the mac address table self preserved is removed;
Transparent transmission module 74, for setting up 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 message, and identify in this message containing STP/RSTP network topology change flag bit, namely when TC position is 1, determine network topology structure change in this STP/RSTP network, in order to ensure the normal transparent transmission of subsequent packet, this port is by aging for the mac address table of self in embodiments of the present invention, to ensure after the communication packet receiving this STP/RSTP network, communication message is broadcasted, instead of forward to there is abnormal link, ensure that the normal transparent transmission of STP/RSTP message.
Described transparent transmission module 74, specifically for when identifying when as port blocked, not receiving and not forwarding this BPDU message, when identifying when as unblock central port, and this BPDU message of transparent transmission.
In privately owned redundancy protocol network, when in described privately owned redundant network, the port of equipment is port blocked, this port does not receive and does not forward this BPDU message, when this port is unblock central port, and this BPDU message of transparent transmission.
Described device also comprises:
Study module 75, for receiving the communication packet that in described STP protocol network or RSTP protocol network, equipment sends, according to described communication packet learning MAC address table.
Described study module 75, specifically for judging the mac address table self whether preserving described communication packet destination address; When determining not preserve, broadcast, according to the message that other network equipments return, learning MAC address table.
Described device also comprises:
Update module 76, during for identifying privately owned redundancy protocol network generation link switching, judge that whether the member port of the mac address table self preserved is the port of the clear statistical tables and reports literary composition containing STP/RSTP network topology change flag bit, if it is delete this mac address table, then allow equipment relearn mac address table; Otherwise, keep this mac address table constant.
In embodiments of the present invention, in order to improve the accuracy of message transmissions further, ensure that message sends the timely switching of link, when the privately owned redundancy protocol network generation link switching of the port identification of privately owned redundancy protocol equipment in network, according to the link after switching, the mac address table that self preserves is upgraded.
In embodiments of the present invention when port identification is to the privately owned redundancy protocol network generation link switching at self place, in order to ensure that the link after switching can be timely further, effective transparent transmission STP/RSTP message, this port needs the link after according to switching in embodiments of the present invention, the mac address table that self preserves is upgraded, concrete when upgrading, the link judging to occur in this privately owned redundancy protocol network open circuit is needed whether to be included in the mac address table of self, if comprised, then the mac address table that self preserves is modified, otherwise, keep the constant transparent transmission that also can carry out STP/RSTP message of this mac address table.
The embodiment of the present invention provides transmitting method and the device of STP/RSTP message in a kind of privately owned redundancy protocol network, the method comprises the BPDU message when privately owned redundancy protocol equipment in network port accepts sends to the equipment in STP/RSTP protocol network, and the TC identifying in this message is when being 1, this port by aging for the mac address table of self, to ensure the correctness of follow-up STP/RSTP message transmission.Due in embodiments of the present invention when the device port in privately owned redundancy protocol network is receiving BPDU message, and the TC position identifying in this message is when being 1, determine network topology structure change in this STP/RSTP network, in order to ensure the normal transparent transmission of subsequent packet, this port is by aging for the mac address table of self in embodiments of the present invention, to ensure after the communication packet receiving this STP/RSTP network, communication message is broadcasted, instead of forward to there is abnormal link, ensure that the normal transparent transmission of STP/RSTP message.
Those skilled in the art should understand, the embodiment of the application can be provided as method, system or computer program.Therefore, the application can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the application can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
The application describes with reference to according to the flow chart of the method for the embodiment of the present application, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although described the preferred embodiment of the application, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the application's scope.
Obviously, those skilled in the art can carry out various change and modification to the application and not depart from the spirit and scope of the application.Like this, if these amendments of the application and modification belong within the scope of the application's claim and equivalent technologies thereof, then the application is also intended to comprise these change and modification.

Claims (10)

1. the transmitting method of STP/RSTP message in privately owned redundancy protocol network, it is characterized in that, described method comprises:
The BPDU BPDU message that the equipment of the port accepts spanning tree STP protocol network of privately owned redundancy protocol equipment in network or rapid spanning-tree RSTP protocol network sends, wherein in this privately owned redundant network each unblock central port of equipment for the message in transparent transmission STP/RSTP network;
Whether identify in described BPDU message containing STP/RSTP network topology change flag bit;
When identifying containing STP/RSTP network topology change flag bit, determine that in described STP protocol network or RSTP protocol network, network topology structure changes, the mac address table self preserved is removed;
And set up transparent transmission path according to the blocked state of privately owned redundancy protocol network middle port.
2. the method for claim 1, is characterized in that, the described blocked state according to privately owned redundancy protocol network middle port is set up transparent transmission path and comprised:
When in described privately owned redundant network, the port of equipment is port blocked, this port does not receive and does not forward this BPDU message, when this port is unblock central port, and this BPDU message of transparent transmission.
3. the method for claim 1, is characterized in that, described method also comprises:
The communication packet that in STP protocol network described in described port accepts or RSTP protocol network, equipment sends, according to described communication packet learning MAC address table.
4. method as claimed in claim 3, is characterized in that, describedly comprises according to described communication packet learning MAC address table:
Described port judges the mac address table self whether preserving described communication packet destination address;
When determining not preserve, broadcast, according to the message that other network equipments return, learning MAC address table.
5. the method for claim 1, is characterized in that, described method also comprises:
During the privately owned redundancy protocol network generation link switching of the port identification of privately owned redundancy protocol equipment in network, judge that whether the member port of the mac address table self preserved is the port of the clear statistical tables and reports literary composition containing STP/RSTP network topology change flag bit;
If it is delete this mac address table, then allow equipment relearn mac address table;
Otherwise, keep this mac address table constant.
6. the transparent transmission device of STP/RSTP message in privately owned redundancy protocol network, it is characterized in that, described device comprises:
Receiver module, for the BPDU BPDU message that the equipment of the port accepts spanning tree STP protocol network of privately owned redundancy protocol equipment in network or rapid spanning-tree RSTP protocol network sends, wherein in this privately owned redundant network each unblock central port of equipment for the message in transparent transmission STP/RSTP network;
Whether identification module, for identifying in described BPDU message containing STP/RSTP network topology change flag bit;
Removing module, for when identifying containing STP/RSTP network topology change flag bit, determining that in described STP protocol network or RSTP protocol network, network topology structure changes, the mac address table self preserved is removed;
Transparent transmission module, for setting up transparent transmission path according to the blocked state of privately owned redundancy protocol network middle port.
7. device as claimed in claim 6, is characterized in that, described transparent transmission module, specifically for when identifying when as port blocked, not receiving and not forwarding this BPDU message, when identifying when as unblock central port, and this BPDU message of transparent transmission.
8. device as claimed in claim 6, it is characterized in that, described device also comprises:
Study module, for receiving the communication packet that in described STP protocol network or RSTP protocol network, equipment sends, according to described communication packet learning MAC address table.
9. device as claimed in claim 6, is characterized in that, described study module, specifically for judging the mac address table self whether preserving described communication packet destination address; When determining not preserve, broadcast, according to the message that other network equipments return, learning MAC address table.
10. device as claimed in claim 6, it is characterized in that, described device also comprises:
Update module, during for identifying privately owned redundancy protocol network generation link switching, judge that whether the member port of the mac address table self preserved is the port of the clear statistical tables and reports literary composition containing STP/RSTP network topology change flag bit, if it is delete this mac address table, then allow equipment relearn mac address table;
Otherwise, keep this mac address table constant.
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 true CN104780138A (en) 2015-07-15
CN104780138B 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)

Cited By (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
CN112543142A (en) * 2019-09-20 2021-03-23 南京南瑞继保电气有限公司 Method and device for realizing RSTP (remote site transport protocol) ring network protocol based on FPGA (field programmable gate array)
CN113395261A (en) * 2021-05-19 2021-09-14 浪潮思科网络科技有限公司 Method, equipment and medium for spanning tree protocol fast convergence in MLAG environment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060203735A1 (en) * 2005-03-14 2006-09-14 Fujitsu Limited Bridge apparatus and control packet processing apparatus in a spanning tree protocol network
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060203735A1 (en) * 2005-03-14 2006-09-14 Fujitsu Limited Bridge apparatus and control packet processing apparatus in a spanning tree protocol network
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

Cited By (5)

* 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
CN112543142A (en) * 2019-09-20 2021-03-23 南京南瑞继保电气有限公司 Method and device for realizing RSTP (remote site transport protocol) ring network protocol based on FPGA (field programmable gate array)
CN112543142B (en) * 2019-09-20 2023-05-12 南京南瑞继保电气有限公司 Method and device for realizing RSTP ring network protocol based on FPGA
CN113395261A (en) * 2021-05-19 2021-09-14 浪潮思科网络科技有限公司 Method, equipment and medium for spanning tree protocol fast convergence in MLAG environment
CN113395261B (en) * 2021-05-19 2022-03-22 浪潮思科网络科技有限公司 Method, equipment and medium for spanning tree protocol fast convergence in MLAG environment

Also Published As

Publication number Publication date
CN104780138B (en) 2017-12-19

Similar Documents

Publication Publication Date Title
US11637755B2 (en) SDN network system, controller, and controlling method
CN109672550B (en) Simplified configuration for a multi-level network architecture
EP2533475A1 (en) Method and system for host route reachability in packet transport network access ring
EP2883334B1 (en) Techniques for flooding optimization for link state protocols in a network topology
US8619785B2 (en) Pre-computing alternate forwarding state in a routed ethernet mesh network
EP3934183A1 (en) Service function chain sfc-based communication method, and apparatus
US9832098B2 (en) Connecting a booting switch to a network
US9800521B2 (en) Network switching systems and methods
CN105162704A (en) Multicast replication method and device in Overlay network
CN103475583A (en) Method and equipment for removing media access control forwarding table entries
US9515881B2 (en) Method, device, and system for packet processing
CN104980355A (en) Source controllable multicast data transmission method and system thereof under SDN Environment
EP3249853A1 (en) Ethernet ring protection switching method and node
CN101483571B (en) RRPP configuring method, system and device
CN105634952A (en) Fast notification method and apparatus for LSP message
CN105049373A (en) APS-based MLAG switching protection method
CN104780138A (en) Transparent transmission method and device for STP (Spanning Tree Protocol)/RSTP (Rapid Spanning Tree Protocol) message in private redundancy protocol network
CN102916885B (en) MSTP-based (Multiple Spanning Tree Protocol) network topology convergence method, equipment and system
CN112995002B (en) Switch ring network design method, switch and storage medium
CN105262686B (en) Network connectivity verification method and device
CN104320322A (en) Message control method and equipment
CN105681229A (en) Method for extending port serial numbers and switch
CN105338127A (en) Media access control MAC address table updating method, switch and system
US20210119826A1 (en) Layer-2 dedicated line network system and configuration method
KR20160072718A (en) System and method for neighbor discovery based on ethernet in the software defined networks

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