CN108173757A - Port status setting method and device - Google Patents
Port status setting method and device Download PDFInfo
- Publication number
- CN108173757A CN108173757A CN201711428960.8A CN201711428960A CN108173757A CN 108173757 A CN108173757 A CN 108173757A CN 201711428960 A CN201711428960 A CN 201711428960A CN 108173757 A CN108173757 A CN 108173757A
- Authority
- CN
- China
- Prior art keywords
- bpdu messages
- bpdu
- equipment
- messages
- port
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/24—Multipath
- H04L45/245—Link aggregation, e.g. trunking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4604—LAN interconnection over a backbone network, e.g. Internet, Frame Relay
- H04L12/462—LAN interconnection over a bridge based backbone
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling
Abstract
This disclosure relates to a kind of port status setting method and device.This method includes:It receives the first BPDU messages and receives the 2nd BPDU messages;In the case where the bridge identification code of the first BPDU messages carrying is identical with the bridge identification code that the 2nd BPDU messages carry, whether the sender for judging the first BPDU messages and the 2nd BPDU messages is same equipment, obtains judging result;According to the judging result, the state setting of the port for controlling and receiving the first BPDU messages and the port for receiving the 2nd BPDU messages.The port status setting method and device of the disclosure can avoid the tunnel in the DRNI networkings of no Peer Link as IPL links from being blocked by STP protocol, so as to ensure that IPL links are unimpeded, ensure that DR systems normally effectively work, improve the stability of DR systems.
Description
Technical field
This disclosure relates to field of communication technology more particularly to a kind of port status setting method and device.
Background technology
DRNI (Distributed Resilient Network Interconnect, distributed elastic network interconnection) is
Two physical equipments are invented an equipment to realize striding equipment link by a kind of striding equipment link aggregation technology in polymerization level
Polymerization, so as to provide device level redundancy protecting and flow load sharing.Two DR (Distributed in DRNI typical case's networking
Relay) equipment forms DR systems by Ethernet link clustering.Fig. 1 shows the schematic diagram of the DRNI networkings in the relevant technologies.Such as
Shown in Fig. 1, device A and equipment B form load balancing, common to carry out flow forwarding, when a wherein device fails, stream
Amount can be quickly switched into another equipment, ensure the normal operation of business.
In the relevant technologies, DRNI is the following interface role of every DR device definition:DR interfaces are for DR equipment and outside
The two layers of polymer interface of portion's equipment connection.DR equipment belongs to same DR with the DR interfaces that same polymeric group on external equipment is connect
Group.As shown in Figure 1, the DR interfaces on DR interface and equipment B in device A belong to same DR groups.IPP(Intra-Portal
Port, internal control LI(link interface)) for connection neighbours DR equipment and for the two layers of polymer interface of internal control.It can between IPP mouthfuls
To establish and pass through IPL (Intra-Portal Link, internal control link) in DR equipment rooms transmission DRCP (Distributed
Relay Control Protocol, distribution polymerization control protocol) message.DR equipment rooms can pass through Keepalive links
Detect neighbor state.
Invention content
In view of this, the present disclosure proposes a kind of port status setting method and device, to solve in the relevant technologies in nothing
The problem of being blocked in the DRNI networkings of Peer-Link as the tunnel of IPL links.
According to the one side of the disclosure, a kind of port status setting method is provided, for the DRNI groups of no Peer-Link
In the remote equipment of net, the method includes:
It receives the first BPDU messages and receives the 2nd BPDU messages;
In the bridge identification code that the bridge identification code that the first BPDU messages carry is carried with the 2nd BPDU messages
In the case of identical, whether the sender for judging the first BPDU messages and the 2nd BPDU messages is same equipment, is obtained
To judging result;
According to the judging result, control and receive the port of the first BPDU messages and receive the 2nd BPDU messages
Port state setting.
According to another aspect of the present disclosure, a kind of port status setting method is provided, for the DRNI of no Peer-Link
In the DR equipment of networking, the method includes:
In the case where detecting port setting addition identification function, bridge identification code is determined and by the DR equipment
DR System Numbers or the MAC Address of the DR equipment be determined as identifying;
According to identified bridge identification code and mark, BPDU messages are generated;
The BPDU messages are sent by the port, so that receiving the equipment of the BPDU messages according to
Bridge identification code and mark that BPDU messages carry control and receive the state setting of the port of the BPDU messages.
According to another aspect of the present disclosure, a kind of port status setting device is provided, for the DRNI of no Peer-Link
In the remote equipment of networking, described device includes:
Receiving module, for receiving the first BPDU messages and receiving the 2nd BPDU messages;
Judgment module, bridge identification code and the 2nd BPDU messages for being carried in the first BPDU messages carry
Bridge identification code it is identical in the case of, judge the first BPDU messages and the 2nd BPDU messages sender whether be
Same equipment, obtains judging result;
First setup module, for according to the judging result, controlling and receiving the port of the first BPDU messages and connecing
Receive the state setting of the port of the 2nd BPDU messages.
According to another aspect of the present disclosure, a kind of port status setting device is provided, for the DRNI of no Peer-Link
In the DR equipment of networking, described device includes:
Determining module, for detect port setting addition identification function in the case of, determine bridge identification code and
The MAC Address of the DR System Numbers of the DR equipment or the DR equipment is determined as identifying;
Generation module, for according to identified bridge identification code and mark, generating BPDU messages;
Sending module sends the BPDU messages, so that receiving the BPDU messages for passing through the port
The state of port that the bridge identification code and mark that equipment is carried according to the BPDU messages control and receive the BPDU messages is set
It puts.
According to another aspect of the present disclosure, a kind of port status setting device is provided, including:Processor;For storing
The memory of processor-executable instruction;Wherein, the processor is configured as performing the above method.
According to another aspect of the present disclosure, a kind of non-volatile computer readable storage medium storing program for executing is provided, is stored thereon with
Computer program instructions, wherein, the computer program instructions realize the above method when being executed by processor.
The port status setting method and device of the disclosure, by receiving the first BPDU messages and receiving the 2nd BPDU
Message, in the bridge identification code that the first BPDU messages the carry situation identical with the bridge identification code that the 2nd BPDU messages carry
Under, whether the sender for judging the first BPDU messages and the 2nd BPDU messages is same equipment, obtains judging result, and according to this
The state setting of judging result, the port for controlling and receiving the first BPDU messages and the port for receiving the 2nd BPDU messages, thus, it is possible to
The tunnel in the DRNI networkings of no Peer-Link as IPL links is enough avoided to be blocked by STP protocol, so as to ensure that IPL links are smooth
It is logical, ensure that DR systems normally effectively work, improve the stability of DR systems.
According to below with reference to the accompanying drawings to detailed description of illustrative embodiments, the other feature and aspect of the disclosure will become
It is clear.
Description of the drawings
Comprising in the description and the attached drawing of a part for constitution instruction and specification together illustrate the disclosure
Exemplary embodiment, feature and aspect, and the principle for explaining the disclosure.
Fig. 1 shows the schematic diagram of the DRNI networkings in the relevant technologies.
Fig. 2 shows the schematic diagrames of the DRNI networkings without Peer-Link in the relevant technologies.
Fig. 3 shows the flow chart of the port status setting method according to one embodiment of the disclosure.
Fig. 4 shows the schematic diagram of the DRNI networkings without Peer-Link according to one embodiment of the disclosure.
Fig. 5 shows the schematic diagram of the DRNI networkings without Peer-Link according to one embodiment of the disclosure.
Fig. 6 shows the flow chart of the port status setting method according to one embodiment of the disclosure.
Fig. 7 shows to set the block diagram of device according to the port status of one embodiment of the disclosure.
Fig. 8 shows to set the block diagram of device according to the port status of one embodiment of the disclosure.
Fig. 9 is according to a kind of block diagram for port status setting device 900 shown in an exemplary embodiment.
Specific embodiment
Various exemplary embodiments, feature and the aspect of the disclosure are described in detail below with reference to attached drawing.It is identical in attached drawing
Reference numeral represent functionally the same or similar element.Although the various aspects of embodiment are shown in the drawings, remove
It non-specifically points out, it is not necessary to attached drawing drawn to scale.
Dedicated word " exemplary " means " being used as example, embodiment or illustrative " herein.Here as " exemplary "
Illustrated any embodiment should not necessarily be construed as preferred or advantageous over other embodiments.
In addition, in order to better illustrate the disclosure, numerous details is given in specific embodiment below.
It will be appreciated by those skilled in the art that without certain details, the disclosure can equally be implemented.In some instances, for
Method well known to those skilled in the art, means, element and circuit are not described in detail, in order to highlight the purport of the disclosure.
In the relevant technologies, the basic thought of STP (Spanning Tree Protocl, Spanning-Tree Protocol) agreement be according to
The topological structure of the structure tectonic network of tree.The root of tree can be the equipment of referred to as root bridge, form one step by step by root bridge
Tree.Root bridge can be determined that the equipment of BID minimums becomes two by the BID of interchanger or bridge (Bridge ID, bridge identification code)
Root bridge in layer network.BID can be by bridge priority and Mac (Media Access Control, media access control layer)
Address is formed.The timing of root bridge sends configuration bpdu (Bridge Protocol Data Unit, Bridge Protocol Data Unit), non-
Root bridge joint receives configuration bpdu, refreshes best BPDU and forwards.Wherein, best BPDU can refer to the BPDU transmitted by current root bridge.
If receiving inferior bpdu (equipment newly accessed can send BPDU, but the BID of the equipment is bigger than current root bridge), this is received
The equipment of inferior bpdu will send the best BPDU of oneself storage to the equipment newly accessed, to inform root in its current network
Bridge.If the BPDU received is more excellent, it will recalculates the topological structure of simultaneously tectonic network.
In order to reduce the line of DR equipment rooms in DR systems, it is proposed the DRNI networkings of no Peer-Link.Fig. 2 shows phases
The schematic diagram of the DRNI networkings without Peer-Link in the technology of pass.As shown in Fig. 2, device A and equipment B are DR equipment, equipment C
It is external equipment with equipment D.Device A and equipment B form DR systems, but the link not being directly connected between device A and equipment B.
Tunnel, such as VXLAN tunnels can be established between device A and equipment B.The tunnel face of device A and equipment B can be used as IPP mouthfuls, if
Link where standby tunnel between A and equipment B can be used as IPL links, pass through IPL links between device A and equipment B to realize
Transmit DRCP messages.The link structure that Keepalive links can then be connect by the gateway mouth of device A and equipment B with interchanger
Into.
As shown in Fig. 2, the process that DR systems are established between device A and equipment B is as follows:Terminal device is regular by IPL links
Send DRCP messages.After the DRCP messages for receiving opposite end, can judge DR interface indexes in DRCP messages whether with local terminal phase
Together.If the DR interface indexes at both ends are identical, this two equipment composition DR systems.After successful matching, terminal device can determine whether
Go out master slave mode.First compare DR device role priority, be worth that smaller priority is higher, and priority is high for main equipment.It is if excellent
First grade is identical, then compares the bridge Mac of two equipment, bridge Mac smaller is main equipment.Terminal device passes through Keepalive chains
Road periodically sends Keepalive messages, when terminal device can receive the Keepalive messages of opposite end transmission,
DRNI networkings start normally to work.After DR system starts, the information of meeting real-time synchronization opposite end between terminal device, such as
Mac list items, ARP entry etc., any one equipment fault in such device A and equipment B all do not interfere with the forwarding of flow, protect
Demonstrate,proving normal business will not interrupt.
As shown in Fig. 2, Port1 be device A physical port, Port2 be equipment B physical port, if Port1 and
Port2 is configured as tunnel face, tunnel being established between device A and equipment B.The tunnel face of device A and equipment B can be used as IPP mouthfuls,
The link where tunnel between device A and equipment B can be used as IPL links.After IPL link establishments and DR systems are formed,
Since DR systems are the equal of an equipment for STP protocol processing, device A and equipment B pass through Port1 and Port2 respectively
The BPDU messages sent to equipment D, the BID that BPDU messages carry are identical.For example, if DR systems are root bridge, device A and equipment
B thinks it oneself is root bridge, sends BPDU messages and gives equipment D.DR system Mac (Distributed-Relay may be used in BID
System-Mac it) fills.Equipment D is received after BPDU messages, it will is considered two different ports hair of same equipment
The BPDU messages sent.Equipment D can block a physical port in Port3 and Port4 according to the operation result of STP protocol
Fall.For example, Port4 is set as blocked state.The tunnel between device A and equipment B will be obstructed as a result, and IPL links is caused to close
It closes, IPP mouthfuls can not normally receive and dispatch DRCP messages, and then DR systems is caused to detach, DR system cisco unity malfunctions.
The technical issues of in the presence of above-mentioned the relevant technologies, Fig. 3 show the port shape according to one embodiment of the disclosure
The flow chart of state setting method.In remote equipment of this method for the DRNI networkings of no Peer-Link.Wherein, remote equipment
Can be the public network equipment in the DRNI networkings of no Peer-Link.As shown in figure 3, the method comprising the steps of S31 to S33.
In step S31, receive the first BPDU messages and receive the 2nd BPDU messages.
In step s 32, know in the first BPDU messages the bridge identification code carried and the bridge that the 2nd BPDU messages carry
In the case that other code is identical, whether the sender for judging the first BPDU messages and the 2nd BPDU messages is same equipment, is sentenced
Disconnected result.
In step S33, according to the judging result, control and receive the port of the first BPDU messages and receive the 2nd BPDU reports
The state setting of the port of text.
The port status setting method of the disclosure, by judging any two senders for carrying the BPDU messages of identical BID
Whether it is same equipment, and in the case where judging sender not for same equipment, makes the end of reception any two BPDU messages
Mouth remains unimpeded state, and thus, it is possible to avoid in the DRNI networkings of no Peer-Link as the tunnel of IPL links by STP
Protocol blocks so as to ensure that IPL links are unimpeded, ensure that DR systems normally effectively work, improve the stability of DR systems.
In one implementation, whether the sender for judging the first BPDU messages and the 2nd BPDU messages is same set
Standby, obtaining judging result (step S32) can include:Judge whether the first BPDU messages and the 2nd BPDU messages carry mark respectively
Know;Judge whether the first BPDU messages and the 2nd BPDU messages carry mark respectively;It is reported in the first BPDU messages and the 2nd BPDU
In the case of literary carrying identifies, and the mark of the first BPDU messages carrying and the mark of the 2nd BPDU messages carrying are different,
The sender for being judged as the first BPDU messages and the 2nd BPDU messages is not same equipment.
In one implementation, it can increase mark in BPDU messages, such as TLV (Type Length Value,
Type lengths values) field.In the case where the BID of any two BPDU messages carrying is identical, the mark in BPDU messages can be passed through
Knowledge judges whether the sender of two BPDU messages is same equipment.It is for example, identical in the BID that any two BPDU messages carry
In the case of, if the mark in the first BPDU messages is identical with the mark in the 2nd BPDU messages, it may determine that the first BPDU
The sender of message and the 2nd BPDU messages is same equipment;If in the mark and the 2nd BPDU messages in the first BPDU messages
Mark differs, then the sender that may determine that the first BPDU messages and the 2nd BPDU messages is not same equipment.
It should be noted that it will be appreciated by those skilled in the art that the mark that the disclosure is not limited in BPDU messages determines
Method, whether the sender that can distinguish any two BPDU messages for carrying identical BID is same equipment.For example, BPDU
Mark in message can determine that DR equipment may be used in the mark that is, in BPDU messages by the DR System Numbers of DR equipment
DR System Numbers are filled.For another example the mark in BPDU messages can be determined by the MAC Address of DR equipment, i.e. BPDU messages
In mark the MAC Address of DR equipment may be used.
Fig. 4 shows the schematic diagram of the DRNI networkings without Peer-Link according to one embodiment of the disclosure.As shown in figure 4, it sets
Standby A and equipment B is DR equipment, and equipment C and equipment D are external equipment.Device A and equipment B form DR systems.But it device A and sets
The link not being directly connected between standby B.Port1 is the physical port of device A, and Port2 is the physical port of equipment B, if Port1
It is configured as tunnel face, tunnel being established between device A and equipment B with Port2.The tunnel face of device A and equipment B can be used as IPP
Mouthful, the link where tunnel between device A and equipment B can be used as IPL links.It is achieved in passing through between device A and equipment B
IPL link transmission DRCP messages.What Keepalive links can then be connect by the gateway mouth of device A and equipment B with interchanger
Link is formed.
In one implementation, according to the judging result, the port of the first BPDU messages and reception second are controlled and received
The state setting (step S33) of the port of BPDU messages can include:It is being judged as the first BPDU messages and the 2nd BPDU messages
Sender it is unequal for the port that in the case of same equipment, receives the first BPDU messages and the port for receiving the 2nd BPDU messages
Remain unimpeded state.
As an example, as shown in figure 4, the DR systems Mac of device A and equipment B can be denoted as Macs, the DR of device A
System Number can be 1, and the DR System Numbers of equipment B can be 2.The Mac of equipment C can be denoted as Macc, and the Mac of equipment D can
To be denoted as Macd, and Macs<Macd<Macc.
As shown in figure 4, since DR systems Mac is less than the bridge Mac of equipment C and equipment D, if DR systems are root bridge, device A
All think it oneself is root bridge with equipment B, BPDU messages can be sent and give equipment D.Equipment D is received by Port3 comes from DR
The BPDU messages 1 of system and the BPDU messages 2 for coming from DR systems by Port4 receptions.Wherein, BPDU messages 1 carry
BID is Macs, is identified as 1.The BID that BPDU messages 2 carry is Macs, is identified as 2.Due to BPDU messages 1 carry BID with
The BID that BPDU messages 2 carry is identical, but the mark in BPDU messages 1 is differed with the mark in BPDU messages 2, and equipment D judges
The sender of BPDU messages 1 and BPDU messages 2 is the different DR equipment of same DR systems, and thus equipment D is by Port3 and Port4
Unimpeded state is remained, the tunnel in the DRNI networkings of no Peer-Link as IPL links can be avoided to be hindered by STP protocol
Plug so as to ensure that IPL links are unimpeded, ensures that DR systems normally effectively work, improves the stability of DR systems.
In one implementation, equipment receives BPDU messages by root port, and BPDU messages are sent by designated port.
When choosing root port, the smaller BPDU messages higher BPDU messages of grade as priority can will be identified.Equipment D is being received
After BPDU messages 1 and BPDU messages 2, the BPDU messages 1 received are found as the higher BPDU messages of priority, by equipment D
Port3 be selected as root port.The BPDU messages 1 that equipment D is received by Port4 forwardings from root port Port3.Equipment B is being received
To after BPDU messages 1, it is found that for the higher BPDU messages of priority, the Port2 of equipment B is selected for the BPDU messages 1 received
For root port, equipment B stops sending BPDU messages to equipment D by Port2.
As an example, as shown in figure 4, the DR systems Mac of device A and equipment B can be denoted as Macs, the DR of device A
System Number can be 1, and the DR System Numbers of equipment B can be 2.The Mac of equipment C can be denoted as Macc, and the Mac of equipment D can
To be denoted as Macd, and Macc<Macs<Macd.
As shown in figure 4, since the bridge Mac of equipment C is less than the bridge Mac of DR systems Mac and equipment D, equipment C is root bridge, then
Equipment C can send BPDU messages to device A and equipment B.Device A and equipment B are respectively received the BPDU reports for coming from equipment C
Text 3.Wherein, the BID that BPDU messages 3 carry is Macc, does not carry mark.The BPDU messages 3 that device A discovery receives are preferential
The higher BPDU messages of grade, thus device A BPDU messages 4 are sent to equipment D by Port1.Wherein, BPDU messages 4 carry
BID is Macc, is identified as 1.The BPDU messages 3 that equipment and B discoveries receive are the higher BPDU messages of priority, thus equipment
B sends BPDU messages 5 by Port2 to equipment D.Wherein, the BID that BPDU messages 5 carry is Macc, is identified as 2.Equipment D leads to
It crosses Port3 and receives the BPDU messages 4 for coming from DR systems and the BPDU messages for coming from DR systems by Port4 receptions
5.Since the BID that BPDU messages 4 carry is identical with the BID that BPDU messages 5 carry, but the mark in BPDU messages 4 is reported with BPDU
Mark in text 5 differs, and equipment D judges that the sender of BPDU messages 4 and BPDU messages 5 sets for the different DR of same DR systems
Standby, thus Port3 and Port4 is remained unimpeded state by equipment D, can avoid making in the DRNI networkings of no Peer-Link
Tunnel for IPL links is blocked by STP protocol, so as to ensure that IPL links are unimpeded, ensures that DR systems normally effectively work, carries
The stability of high DR systems.
Fig. 5 shows the schematic diagram of the DRNI networkings without Peer-Link according to one embodiment of the disclosure.As shown in figure 5, it sets
Standby A and equipment B is DR equipment, and equipment C and equipment D are external equipment.Device A and equipment B form DR systems.But it device A and sets
The link not being directly connected between standby B.Port1 is the physical port of device A, and Port2 is the physical port of equipment B, and Port5 is
The physical port of equipment B, if Port1 and Port2 are configured as tunnel face, tunnel being established between device A and equipment B.It device A and sets
The tunnel face of standby B can be used as IPP mouthfuls, and the link where tunnel between device A and equipment B can be used as IPL links.Thus it is real
Pass through IPL link transmission DRCP messages between device A and equipment B now.Keepalive links can then pass through device A and equipment B
The link that is connect with interchanger of gateway mouth form.
In one implementation, this method further includes:In the case where receiving the 3rd BPDU messages, if the 3rd BPDU
The bridge that the bridge identification code or the 2nd BPDU messages that the bridge identification code that message carries is carried with the first BPDU messages carry is known
In the case that other code is identical, and the 3rd BPDU messages do not carry mark, the port for receiving the 3rd BPDU messages is set as blocking
State.
As an example, as shown in figure 5, the DR systems Mac of device A and equipment B can be denoted as Macs, the DR of device A
System Number can be 1, and the DR System Numbers of equipment B can be 2.The Mac of equipment C can be denoted as Macc, and the Mac of equipment D can
To be denoted as Macd, and Macs<Macd<Macc.
As shown in figure 5, since DR systems Mac is less than the bridge Mac of equipment C and equipment D, if DR systems are root bridge, device A
All think it oneself is root bridge with equipment B, BPDU messages can be sent and give equipment D.Equipment D is received by Port3 comes from DR
The BPDU messages 1 of system, the BPDU messages 2 and being received by Port6 that DR systems are come from by Port4 receptions come from
In the BPDU messages 6 of DR systems.Wherein, the BID that BPDU messages 1 carry is Macs, is identified as 1.The BID that BPDU messages 2 carry
For Macs, it is identified as 2.The BID that BPDU messages 6 carry is Macs, does not carry mark.Due to BPDU messages 1 carry BID with
The BID that BPDU messages 2 carry is identical, but the mark in BPDU messages 1 is differed with the mark in BPDU messages 2, and equipment D judges
The sender of BPDU messages 1 and BPDU messages 2 is the different DR equipment of same DR systems, and thus equipment D is by Port3 and Port4
Unimpeded state is remained, the tunnel in the DRNI networkings of no Peer-Link as IPL links can be avoided to be hindered by STP protocol
Plug so as to ensure that IPL links are unimpeded, ensures that DR systems normally effectively work, improves the stability of DR systems.Since BPDU is reported
The BID that text 2 carries is identical with the BID that BPDU messages 6 carry, but BPDU messages 6 do not carry mark, and equipment D judges BPDU messages 2
Sender with BPDU messages 6 is the same DR equipment of same DR systems, and thus Port4 is remained unimpeded state by equipment D, will
Port6 is set as blocked state, being capable of anti-loops.
The port status setting method of the disclosure is added mark in BPDU messages, is sentenced by the mark in BPDU messages
Whether the sender of any two BPDU messages for carrying identical BID of breaking is same equipment, and is judging that sender do not set to be same
In the case of standby, the port of reception any two BPDU messages is made to remain unimpeded state, thus, it is possible to avoid no Peer-
Tunnel in the DRNI networkings of Link as IPL links is blocked by STP protocol, so as to ensure that IPL links are unimpeded, ensures DR systems
Normal effective work improves the stability of DR systems.
Fig. 6 shows the flow chart of the port status setting method according to one embodiment of the disclosure.This method is for no Peer-
In the DR equipment of the DRNI networkings of Link.As shown in fig. 6, the method comprising the steps of S61 and S63.
In step S61 detect port setting addition identification function in the case of, determine bridge identification code and
The MAC Address of the DR System Numbers of DR equipment or DR equipment is determined as identifying.
In step S62, according to identified bridge identification code and mark, BPDU messages are generated.
In step S63, which is sent by port, so that receiving the equipment of the BPDU messages according to this
Bridge identification code and mark that BPDU messages carry control and receive the state setting of the port of the BPDU messages.
In one implementation, this method further includes:Before BPDU messages are generated, this method further includes:It is detecting
In the case of being configured to tunnel face to port, which is set into addition identification function;Wherein, which, should as IPP mouthfuls
The tunnel established between tunnel face is as IPL links.
As an example, as shown in figure 4, the Port2 of the Port1 of device A and equipment B are configured to tunnel face.Device A
The Port2 of Port1 and equipment B enable the function (i.e. setting addition identification function) of increasing mark in BPDU messages.Thus from
Mark is carried in the BPDU messages that Port1 and Port2 are sent out.If DR systems are root bridge, the BID that BPDU messages carry can be with
It is filled using DR systems Mac, the DR System Numbers of DR equipment or the MAC Address of DR equipment may be used in the mark in BPDU messages
Filling.Device A sends BPDU messages 1 by Port1 to equipment D, and the BID that BPDU messages 1 carry is Macs, is identified as 1.Equipment
B sends BPDU messages 2 by Port2 to equipment D, and the BID that BPDU messages 2 carry is Macs, is identified as 2.
As an example, as shown in figure 5, the Port2 of the Port1 of device A and equipment B are configured to tunnel face.Device A
The Port2 of Port1 and equipment B enable the function (i.e. setting addition identification function) of increasing mark in BPDU messages.Thus from
Mark is carried in the BPDU messages that Port1 and Port2 are sent out.The Port5 of equipment B is non-tunnel face.The Port5 of equipment B
Increase the function (being not provided with addition identification function) of mark in not enabled BPDU messages, be thus sent out from Port5
Mark is not carried in BPDU messages.If DR systems are root bridge, DR systems Mac fillings may be used in the BID that BPDU messages carry,
The DR System Numbers of DR equipment or the MAC Address filling of DR equipment may be used in mark in BPDU messages.Device A passes through
Port1 sends BPDU messages 1 to equipment D, and the BID that BPDU messages 1 carry is Macs, is identified as 1.Equipment B is by Port2 to setting
Standby D sends BPDU messages 2, and the BID that BPDU messages 2 carry is Macs, is identified as 2.Equipment B is sent by Port5 to equipment D
BPDU messages 4, the BID that BPDU messages 4 carry are Macs, do not carry mark.
The port status setting method of the disclosure by judging whether port sets addition identification function, and is judging end
In the case of mouth setting addition identification function, mark is added in the BPDU messages of generation, so that receiving the BPDU messages
The BID that is carried according to the BPDU messages of equipment and mark control and receive the BPDU messages port state setting.
Fig. 7 shows to set the block diagram of device according to the port status of one embodiment of the disclosure.The device is for no Peer-
In the remote equipment of the DRNI networkings of Link.As shown in fig. 7, the device includes:
Receiving module 71, for receiving the first BPDU messages and receiving the 2nd BPDU messages;Judgment module 72, is used for
In the bridge identification code that the first BPDU messages the carry feelings identical with the bridge identification code that the 2nd BPDU messages carry
Under condition, whether the sender for judging the first BPDU messages and the 2nd BPDU messages is same equipment, obtains judging knot
Fruit;First setup module 73, for according to the judging result, controlling and receiving the port of the first BPDU messages and receiving institute
State the state setting of the port of the 2nd BPDU messages.
In one implementation, the judgment module 72 is used for:The first BPDU messages and described are judged respectively
Whether two BPDU messages carry mark;Mark is carried, and described in the first BPDU messages and the 2nd BPDU messages
In the case of the mark that first BPDU messages carry and the mark that the 2nd BPDU messages carry are different, it is judged as described the
The sender of one BPDU messages and the 2nd BPDU messages is not same equipment.
In one implementation, first setup module 73 is used for:It is being judged as the first BPDU messages and institute
The sender of the 2nd BPDU messages is stated not in the case of same equipment, to receive the port of the first BPDU messages and receiving institute
The port for stating the 2nd BPDU messages remains unimpeded state.
In one implementation, described device further includes:Second setup module 74, for receiving the 3rd BPDU reports
In the case of text, if the 3rd BPDU messages bridge identification code carried and the bridge that the first BPDU messages carry identify
The bridge identification code that code or the 2nd BPDU messages carry is identical, and the 3rd BPDU messages do not carry the situation of mark
Under, the port for receiving the 3rd BPDU messages is set as blocked state.
The port status setting device of the disclosure, by judging any two senders for carrying the BPDU messages of identical BID
Whether it is same equipment, and in the case where judging sender not for same equipment, makes the end of reception any two BPDU messages
Mouth remains unimpeded state, and thus, it is possible to avoid in the DRNI networkings of no Peer-Link as the tunnel of IPL links by STP
Protocol blocks so as to ensure that IPL links are unimpeded, ensure that DR systems normally effectively work, improve the stability of DR systems.
Fig. 8 shows to set the block diagram of device according to the port status of one embodiment of the disclosure.The device is for no Peer-
In the DR equipment of the DRNI networkings of Link.As shown in figure 8, the device includes:
Determining module 81, in the case where detecting port setting addition identification function, determining bridge identification code, with
And the MAC Address of the DR System Numbers of the DR equipment or the DR equipment is determined as identifying;Generation module 82, for basis
Identified bridge identification code and mark generate BPDU messages;Sending module 83 sends the BPDU for passing through the port
Message, so that bridge identification code and mark that the equipment for receiving the BPDU messages is carried according to the BPDU messages control
Receive the state setting of the port of the BPDU messages.
In one implementation, described device further includes:Third setup module 84, for detecting that the port matches
In the case of being set to tunnel face, the port is set into addition identification function;Wherein, the tunnel face is as IPP mouthfuls, the tunnel
The tunnel established between road junction is as IPL links.
The port status setting device of the disclosure, by judging whether port sets addition identification function, and is judging end
In the case of mouth setting addition identification function, mark is added in the BPDU messages of generation, so that receiving the BPDU messages
The BID that is carried according to the BPDU messages of equipment and mark control and receive the BPDU messages port state setting.
Fig. 9 is according to a kind of block diagram for port status setting device 900 shown in an exemplary embodiment.With reference to figure
9, which may include processor 901, the machine readable storage medium 902 for being stored with machine-executable instruction.Processor
901 can communicate with machine readable storage medium 902 via system bus 903.Also, processor 901 is readable by read machine
Machine-executable instruction corresponding with port status setting logic is set with performing port status described above in storage medium 902
Put method.
Machine readable storage medium 902 referred to herein can be any electronics, magnetism, optics or other physical stores
Device can include or store information, such as executable instruction, data, etc..For example, machine readable storage medium can be:
RAM (Radom Access Memory, random access memory), volatile memory, nonvolatile memory, flash memory, storage are driven
Dynamic device (such as hard disk drive), solid state disk, any kind of storage dish (such as CD, dvd) or similar storage are situated between
Matter or combination thereof.
The presently disclosed embodiments is described above, above description is exemplary, and non-exclusive, and
It is not limited to disclosed each embodiment.In the case of without departing from the scope and spirit of illustrated each embodiment, for this skill
Many modifications and changes will be apparent from for the those of ordinary skill in art field.The selection of term used herein, purport
In the principle for best explaining each embodiment, practical application or to the technological improvement of the technology in market or lead this technology
Other those of ordinary skill in domain are understood that each embodiment disclosed herein.
Claims (12)
1. a kind of port status setting method, which is characterized in that in the remote equipment for the DRNI networkings of no Peer-Link,
The method includes:
It receives the first BPDU messages and receives the 2nd BPDU messages;
It is identical with the bridge identification code that the 2nd BPDU messages carry in the bridge identification code that the first BPDU messages carry
In the case of, whether the sender for judging the first BPDU messages and the 2nd BPDU messages is same equipment, is sentenced
Disconnected result;
According to the judging result, control and receive the port of the first BPDU messages and receive the end of the 2nd BPDU messages
The state setting of mouth.
2. according to the method described in claim 1, it is characterized in that, judge the first BPDU messages and the 2nd BPDU reports
Whether the sender of text is same equipment, obtains judging result, including:
Judge whether the first BPDU messages and the 2nd BPDU messages carry mark respectively;
Mark, and the mark that the first BPDU messages carry are carried in the first BPDU messages and the 2nd BPDU messages
In the case of the mark of knowledge and the 2nd BPDU messages carrying is different, it is judged as the first BPDU messages and described second
The sender of BPDU messages is not same equipment.
3. according to the method described in claim 1, it is characterized in that, according to the judging result, described first is controlled and received
The port of BPDU messages and the state setting of the port of reception the 2nd BPDU messages, including:
In the case where the sender for being judged as the first BPDU messages and the 2nd BPDU messages is not for same equipment, connect
The port for receiving the first BPDU messages and the port for receiving the 2nd BPDU messages remain unimpeded state.
4. according to the method described in claim 1, it is characterized in that, the method further includes:
In the case where receiving the 3rd BPDU messages, if the bridge identification code and described first that the 3rd BPDU messages carry
The bridge identification code that the bridge identification code or the 2nd BPDU messages that BPDU messages carry carry is identical, and the 3rd BPDU
In the case that message does not carry mark, the port for receiving the 3rd BPDU messages is set as blocked state.
5. a kind of port status setting method, which is characterized in that in the DR equipment for the DRNI networkings of no Peer-Link, institute
The method of stating includes:
In the case where detecting port setting addition identification function, bridge identification code and the DR by the DR equipment are determined
System Number or the MAC Address of the DR equipment are determined as identifying;
According to identified bridge identification code and mark, BPDU messages are generated;
The BPDU messages are sent by the port, so that the equipment for receiving the BPDU messages is reported according to the BPDU
Bridge identification code and mark that text carries control and receive the state setting of the port of the BPDU messages.
6. according to the method described in claim 5, it is characterized in that, before BPDU messages are generated, the method further includes:
In the case where detecting that the port is configured to tunnel face, the port is set into addition identification function;Wherein, it is described
Tunnel face is as IPP mouthfuls, and the tunnel established between the tunnel face is as IPL links.
7. a kind of port status sets device, which is characterized in that in the remote equipment for the DRNI networkings of no Peer-Link,
Described device includes:
Receiving module, for receiving the first BPDU messages and receiving the 2nd BPDU messages;
Judgment module, the net that the bridge identification code for being carried in the first BPDU messages is carried with the 2nd BPDU messages
In the case that bridge identification code is identical, whether the sender for judging the first BPDU messages and the 2nd BPDU messages is same
Equipment obtains judging result;
First setup module, for according to the judging result, controlling and receiving the port of the first BPDU messages and receiving institute
State the state setting of the port of the 2nd BPDU messages.
8. device according to claim 7, which is characterized in that the judgment module is used for:
Judge whether the first BPDU messages and the 2nd BPDU messages carry mark respectively;
Mark, and the mark that the first BPDU messages carry are carried in the first BPDU messages and the 2nd BPDU messages
In the case of the mark of knowledge and the 2nd BPDU messages carrying is different, it is judged as the first BPDU messages and described second
The sender of BPDU messages is not same equipment.
9. device according to claim 7, which is characterized in that first setup module is used for:
In the case where the sender for being judged as the first BPDU messages and the 2nd BPDU messages is not for same equipment, connect
The port for receiving the first BPDU messages and the port for receiving the 2nd BPDU messages remain unimpeded state.
10. device according to claim 7, which is characterized in that described device further includes:
Second setup module, in the case where receiving the 3rd BPDU messages, if the net that the 3rd BPDU messages carry
The bridge identification code that the bridge identification code or the 2nd BPDU messages that bridge identification code is carried with the first BPDU messages carry
It is identical, and in the case that the 3rd BPDU messages do not carry mark, the port for receiving the 3rd BPDU messages is set as
Blocked state.
11. a kind of port status sets device, which is characterized in that in the DR equipment for the DRNI networkings of no Peer-Link, institute
Device is stated to include:
Determining module, in the case where detecting port setting addition identification function, determining bridge identification code and by institute
It states the DR System Numbers of DR equipment or the MAC Address of the DR equipment is determined as identifying;
Generation module, for according to identified bridge identification code and mark, generating BPDU messages;
Sending module sends the BPDU messages, so that receiving the equipment of the BPDU messages for passing through the port
The state that the bridge identification code and mark that are carried according to the BPDU messages control and receive the port of the BPDU messages is set.
12. according to the devices described in claim 11, which is characterized in that described device further includes:
Third setup module, in the case where detecting that the port is configured to tunnel face, the port being set and is added
Identification function;Wherein, the tunnel face is as IPP mouthfuls, and the tunnel established between the tunnel face is as IPL links.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711428960.8A CN108173757B (en) | 2017-12-26 | 2017-12-26 | Port state setting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711428960.8A CN108173757B (en) | 2017-12-26 | 2017-12-26 | Port state setting method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108173757A true CN108173757A (en) | 2018-06-15 |
CN108173757B CN108173757B (en) | 2020-08-11 |
Family
ID=62520731
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711428960.8A Active CN108173757B (en) | 2017-12-26 | 2017-12-26 | Port state setting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108173757B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109462515A (en) * | 2018-09-11 | 2019-03-12 | 锐捷网络股份有限公司 | Loop circuit processing method, the network equipment, MLAG networking and storage medium |
CN110049138A (en) * | 2019-04-26 | 2019-07-23 | 新华三技术有限公司 | A kind of equipment starting communication and data transmission method, apparatus and system |
CN110086657A (en) * | 2019-04-10 | 2019-08-02 | 北京华三通信技术有限公司 | A kind of configuration and synchronization method and device |
WO2021083172A1 (en) * | 2019-10-30 | 2021-05-06 | 中兴通讯股份有限公司 | Device virtualization method, apparatus, system, device, and storage medium |
CN114338563A (en) * | 2021-12-23 | 2022-04-12 | 迈普通信技术股份有限公司 | Method and device for preventing port from being blocked, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103873336A (en) * | 2012-12-14 | 2014-06-18 | 中兴通讯股份有限公司 | Distributed resilient network interconnection-based service bearing method and device |
CN104243259A (en) * | 2013-06-20 | 2014-12-24 | 中兴通讯股份有限公司 | Method and system for cooperation of distributed elastic network interconnection systems |
CN105122749A (en) * | 2013-04-23 | 2015-12-02 | 瑞典爱立信有限公司 | A method and system of updating conversation allocation in link aggregation |
CN105610670A (en) * | 2015-12-29 | 2016-05-25 | 北京华为数字技术有限公司 | Communication method and device of Ethernet switched network |
US20170063726A1 (en) * | 2013-04-23 | 2017-03-02 | Telefonaktiebolaget Lm Ericsson (Publ) | Method and system for network and intra-portal link (ipl) sharing in distributed relay control protocol (drcp) |
CN106878164A (en) * | 2016-12-13 | 2017-06-20 | 新华三技术有限公司 | A kind of message transmitting method and device |
-
2017
- 2017-12-26 CN CN201711428960.8A patent/CN108173757B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103873336A (en) * | 2012-12-14 | 2014-06-18 | 中兴通讯股份有限公司 | Distributed resilient network interconnection-based service bearing method and device |
CN105122749A (en) * | 2013-04-23 | 2015-12-02 | 瑞典爱立信有限公司 | A method and system of updating conversation allocation in link aggregation |
US20170063726A1 (en) * | 2013-04-23 | 2017-03-02 | Telefonaktiebolaget Lm Ericsson (Publ) | Method and system for network and intra-portal link (ipl) sharing in distributed relay control protocol (drcp) |
US20170126501A1 (en) * | 2013-04-23 | 2017-05-04 | Telefonaktiebolaget Lm Ericsson (Publ) | Method and system for synchronizing with neighbor in a distributed resilient network interconnect (drni) link aggregation group |
CN104243259A (en) * | 2013-06-20 | 2014-12-24 | 中兴通讯股份有限公司 | Method and system for cooperation of distributed elastic network interconnection systems |
CN105610670A (en) * | 2015-12-29 | 2016-05-25 | 北京华为数字技术有限公司 | Communication method and device of Ethernet switched network |
CN106878164A (en) * | 2016-12-13 | 2017-06-20 | 新华三技术有限公司 | A kind of message transmitting method and device |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109462515A (en) * | 2018-09-11 | 2019-03-12 | 锐捷网络股份有限公司 | Loop circuit processing method, the network equipment, MLAG networking and storage medium |
CN110086657A (en) * | 2019-04-10 | 2019-08-02 | 北京华三通信技术有限公司 | A kind of configuration and synchronization method and device |
CN110049138A (en) * | 2019-04-26 | 2019-07-23 | 新华三技术有限公司 | A kind of equipment starting communication and data transmission method, apparatus and system |
WO2021083172A1 (en) * | 2019-10-30 | 2021-05-06 | 中兴通讯股份有限公司 | Device virtualization method, apparatus, system, device, and storage medium |
CN114338563A (en) * | 2021-12-23 | 2022-04-12 | 迈普通信技术股份有限公司 | Method and device for preventing port from being blocked, electronic equipment and storage medium |
CN114338563B (en) * | 2021-12-23 | 2024-02-23 | 迈普通信技术股份有限公司 | Method and device for preventing port from blocking, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108173757B (en) | 2020-08-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108173757A (en) | Port status setting method and device | |
CN101964746B (en) | Routing frames in shortest path computer network for multi-homed legacy bridge node | |
CN101471875B (en) | Passage transmission method based on loop, network system and node equipment | |
US8694664B2 (en) | Active-active multi-homing support for overlay transport protocol | |
US8619785B2 (en) | Pre-computing alternate forwarding state in a routed ethernet mesh network | |
CN106936939A (en) | A kind of message processing method, relevant apparatus and NVO3 network systems | |
CN102118277A (en) | Method and device for packet loss detection, and a router | |
CN101854283B (en) | Communication method and equipment of RPR (Resilient Packet Ring) looped network | |
CN106789635B (en) | Message forwarding method and device | |
CN109474495B (en) | Tunnel detection method and device | |
CN103139075B (en) | A kind of message transmitting method and equipment | |
CN105340230A (en) | Virtual chassis topology management | |
CN105656715B (en) | Method and apparatus for monitoring the state of cloud computing environment lower network equipment | |
CN102299835A (en) | Ring network fault switching method and apparatus | |
CN104518936B (en) | Link dynamic aggregation method and apparatus | |
CN104798350A (en) | Virtual link aggregations across multiple fabric switches | |
CN105379201A (en) | Path switching method and device | |
CN108322338A (en) | A kind of broadcast suppressing method and VTEP equipment | |
CN104618189B (en) | Link failure detection method and device | |
CN101783743A (en) | Business protection method and switching node | |
CN102158422B (en) | Message forwarding method and equipment for layer 2 ring network | |
CN103200107B (en) | Message transmitting method and message transmitting equipment | |
CN103152283B (en) | A kind of method and apparatus of aggregated links load balancing | |
CN103368863A (en) | Method and equipment for sharing load in SPB (Shortest Path Bridging) network | |
CN103414642A (en) | Maintaining method and device of information forwarding |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |