CN103384217A - State switching method and routing bridge - Google Patents

State switching method and routing bridge Download PDF

Info

Publication number
CN103384217A
CN103384217A CN2012101334250A CN201210133425A CN103384217A CN 103384217 A CN103384217 A CN 103384217A CN 2012101334250 A CN2012101334250 A CN 2012101334250A CN 201210133425 A CN201210133425 A CN 201210133425A CN 103384217 A CN103384217 A CN 103384217A
Authority
CN
China
Prior art keywords
mac address
state
port
hello packet
trill
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
CN2012101334250A
Other languages
Chinese (zh)
Other versions
CN103384217B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210133425.0A priority Critical patent/CN103384217B/en
Priority to PCT/CN2013/074767 priority patent/WO2013163937A1/en
Publication of CN103384217A publication Critical patent/CN103384217A/en
Application granted granted Critical
Publication of CN103384217B publication Critical patent/CN103384217B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4604LAN interconnection over a backbone network, e.g. Internet, Frame Relay
    • H04L12/462LAN interconnection over a bridge based backbone
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/66Layer 2 routing, e.g. in Ethernet based MAN's

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a state switching method and a routing bridge. The method comprises the steps of a first RB switching the neighborhood state of the first RB and a second RB from a Report state to a transition state when the MAC address of a port, connected with the second RB, on the first RB is changed from an old MAC address to a new MAC address; the first RB transmitting TRILL Hello messages which are not less than preset number in number and carry the new MAC address; after the first RB receives the TRILL Hello messages carrying the new MAC address, the neighborhood state of the first RB and the second RB being switched back to the Report state. The method solves the problem that after the port MAC address of an RB is changed due to network management reasons, RBs originally in a Report neighborhood state need to conduct neighborhood relationship negotiation with each other again, and reduces cut-off time of data message forwarding.

Description

A kind of state switching method and routing bridge
Technical field
The present invention relates to network communications technology field, more particularly, relate to a kind of state switching method and routing bridge (English full name is Router Bridge, and english abbreviation is RB).
Background technology
(English full name is intermediate system-intermediate system two layers of autonomous system-autonomous system, english abbreviation is IS-IS) in network, neighbor state between RB is divided into following 4 kinds: fault (English is Down), and the expression neighbours do not exist; Detect (English is Detect), expression detects neighbours and exists; Two-way (English is 2-way), the expression neighbours find each other, do not consult but complete MTU (English full name is Maximum Transmission Unit, and english abbreviation is MTU); Report (English be Report), neighbours are discovery each other, and MTU consults successfully, neighborhood foundation.Wherein, only having neighbor state is could carry out smoothly the transmission of Layer 2 data message between the RB of Report.
Can saying hello by the multilink transparent interconnection between existing RB, (English full name is Transparent Interconnection of Lots of Links Hello, english abbreviation is TRILL Hello) message carries out the negotiation of neighborhood, and the TRILL hello packet carries the neighbor list of transmitting terminal RB of this TRILL hello packet and the relevant information of this transmitting terminal RB.wherein, record the information that has all RB of neighborhood (neighbor state is Report) with this transmitting terminal RB in the neighbor list of transmitting terminal RB, the information of a neighbours RB can record record by neighbours in neighbor list, the content that every neighbour record record comprises following 4 aspects: (English full name is Media Access Control in the medium access control of the port of neighbours RB, english abbreviation is MAC) address, (English full name is Port Identity to port-mark, english abbreviation is Port ID) and system banner (English full name is System Identity, english abbreviation is System ID), neighbours RB of these three attribute unique identifications, and port-mark and system banner also can be used for identifying a RB, the TRILL hello packet is held time, the priority of neighbours RB, (English full name is Virtual Local Area Nerwork to the appointment VLAN of neighbours RB expectation, english abbreviation is VLAN), this VLAN is used for sending Layer 2 data message and IS-IS Link State bag (English full name is Link State Packet, and english abbreviation is LSP) protocol massages.The relevant information of transmitting terminal RB comprises port mac address, Port ID and the System ID etc. of transmitting terminal RB.
After neighborhood consulted to complete, neighbor state was can the periodic TRILL of transmission hello packet between the RB of Report, is used for the maintenance of neighbor relation.due to the network management reason, the port mac address of RB can change, if the port mac address of transmitting terminal RB becomes new MAC Address by old MAC Address, the neighbours RB of transmitting terminal RB is after the TRILL hello packet that receives described transmitting terminal RB transmission, the System ID of the corresponding transmitting terminal RB that puts down in writing in the System ID of the transmitting terminal RB that this TRILL hello packet of meeting discovery carries and self neighbor list is consistent, but MAC Address is also inconsistent, described neighbours RB is the MAC Address saltus step that prevents transmitting terminal RB, can abandon this TRILLHello message, and after reaching the time-out time of predetermined TRILL hello packet, to switch to Down for the neighbor state of transmitting terminal RB, end the data-message transmission with transmitting terminal RB, again carrying out neighborhood with transmitting terminal RB consults.
Can find out from such scheme, there is following shortcoming in prior art: after the port mac address of RB changes, originally neighbor state is can interrupt neighborhood between the RB of Report, and carry out the negotiation again of neighborhood, can make the data message forwarding between RB interrupt the long time, affect the normal transmission of the data message between RB.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of state switching method and device, to solve after the port mac address modification of RB, neighbor state is that neighborhood between the RB of Report needs to rebuild originally, causes data message forwarding between RB to interrupt the problem of long time.
For achieving the above object, the embodiment of the present invention provides following technical scheme:
A kind of state switching method comprises:
After medium access control (english abbreviation the is MAC) address of the port that is connected with the 2nd RB when the first routing bridge (english abbreviation is RB) is upper becomes new MAC Address by old MAC Address, a described RB switches to transition state with the neighbor state of described the 2nd RB that a described RB safeguards by report (the English Report of being) state, and a wherein said RB and described the 2nd RB be multilink transparent interconnection (english abbreviation is TRILL) neighbours each other;
A described RB sends to described the 2nd RB and is no less than the first multilink transparent interconnection predetermined quantity, that carry described new MAC Address (English be TRILL Hello) message of saying hello;
A described RB receives described the 2nd RB and is receiving described the 2nd TRILL hello packet that carries described new MAC Address of responding after TRILL hello packet predetermined quantity, that carry described new MAC Address that is no less than;
A described RB is after receiving described the 2nd TRILL hello packet that carries described new MAC Address, and the neighbor state of described the 2nd RB that a described RB is safeguarded switches back described Report state by described transition state.
A kind of state switching method comprises:
The 2nd RB receives the TRILL hello packet as the TRILL neighbours' of described the 2nd RB a RB transmission;
The MAC Address that described the 2nd RB determines the upper port that is connected from described the 2nd RB of a described RB that a described TRILL hello packet carries is the different new MAC Address of MAC Address of the described port that recorded with described the 2nd RB;
Described the 2nd RB is after the MAC Address of determining the described port that a described TRILL hello packet carries is described new MAC Address, and the neighbor state of the described RB that described the 2nd RB is safeguarded switches to transition state by the Report state;
Described the 2nd RB determines the quantity of the TRILL hello packet that includes described new MAC Address received;
Described the 2nd RB is after the quantity of a described TRILL hello packet of determining to receive reaches predetermined value, and the MAC Address of the described port that described the 2nd RB has been recorded replaces with described new MAC Address;
Described the 2nd RB is after the quantity of a described TRILL hello packet of determining to receive reaches predetermined value, and described the 2nd RB sends to a described RB the 2nd TRILLHello message that includes described new MAC Address;
Described the 2nd RB is after the quantity of a described TRILL hello packet of determining to receive reaches predetermined value, and described the 2nd RB switches to described Report state with the neighbor state of the described RB that described the 2nd RB safeguards by described transition state.
A kind of the first routing bridge RB comprises:
The first state handover module, be used for after the MAC Address of the port that is connected with the 2nd RB on a described RB becomes new MAC Address by old MAC Address, the neighbor state of described the 2nd RB that a described RB is safeguarded switches to transition state by the Report state, and a wherein said RB and described the 2nd RB be TRILL neighbours each other;
Sending module is used for being no less than TRILL hello packet predetermined quantity, that carry described new MAC Address to described the 2nd RB transmission;
Receiver module is used for receiving described the 2nd RB and is receiving described the 2nd TRILL hello packet that carries described new MAC Address of responding after TRILL hello packet predetermined quantity, that carry described new MAC Address that is no less than;
The second state handover module, be used for after described receiver module receives described the 2nd TRILL hello packet that carries described new MAC Address, the neighbor state of described the 2nd RB that a described RB is safeguarded switches back described Report state by described transition state.
A kind of the 2nd RB comprises:
Receiver module is used for receiving the TRILL hello packet that a RB sends, and a described RB is the TRILL neighbours of described the 2nd RB;
The first determination module, MAC Address that be used for to determine the upper port that is connected from described the 2nd RB of a described RB that a described TRILL hello packet carries is the different new MAC Address of MAC Address of the described port that recorded with described the 2nd RB;
The first state handover module is used for after the MAC Address of determining the described port that a described TRILL hello packet carries is described new MAC Address, and the neighbor state of the described RB that described the 2nd RB is safeguarded switches to transition state by the Report state;
The second determination module is for the quantity of a TRILLHello message that includes described new MAC Address of determining to receive;
The address replacement module is used for after the quantity of a described TRILL hello packet of determining to receive reaches predetermined value, and the MAC Address of the described port that described the 2nd RB has been recorded replaces with described new MAC Address;
Sending module is used for after the quantity of a described TRILL hello packet of determining to receive reaches predetermined value, sends to a described RB the 2nd TRILL hello packet that includes described new MAC Address;
The second state handover module is used for after the quantity of a described TRILL hello packet of determining to receive reaches predetermined value, and the neighbor state of the described RB that described the 2nd RB is safeguarded switches to described Report state by described transition state.
The embodiment of the present invention has increased transition state on the basis of neighbor state between existing RB.By the setting of transition state, a RB enters transition state and the 2nd RB carries out the processing of neighborhood when the port mac address modification.Under transition state, a RB sends to described the 2nd RB and is no less than TRILL hello packet predetermined quantity, that carry described new MAC Address.Receive the 2nd TRILL hello packet that carries described new MAC Address of the 2nd RB transmission as a RB after, the current MAC Address of described port that can determine the MAC Address of the described port of a described RB of current record in described the 2nd RB and a described RB is consistent, therefore the neighbor state that has satisfied the 2nd RB that a RB is safeguarded is switched back the condition of Report state by transition state, thereby a RB switches back the Report state with the neighbor state of the 2nd RB of a RB maintenance by transition state.So just avoided after the port mac address modification of a RB, a RB and the 2nd RB need the long time of cost re-start the problem that neighborhood is consulted because neighborhood is thoroughly interrupted, and have reduced data message forwarding break period.
Description of drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in embodiment or description of the Prior Art, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The flow chart of a kind of state switching method that Fig. 1 provides for the embodiment of the present invention;
The RB that Fig. 2 provides for the embodiment of the present invention and the annexation schematic diagram of the 2nd RB;
The flow chart of a kind of state switching method that Fig. 3 provides for the embodiment of the present invention;
The structured flowchart of the RB that Fig. 4 provides for the embodiment of the present invention;
Another structured flowchart of the RB that Fig. 5 provides for the embodiment of the present invention;
The structured flowchart of the 2nd RB that Fig. 6 provides for the embodiment of the present invention;
The structured flowchart of the first determination module that Fig. 7 provides for as shown in Figure 6 the embodiment of the present invention;
The structured flowchart of the acquiring unit that Fig. 8 provides for as shown in Figure 6 the embodiment of the present invention;
Another structured flowchart of the 2nd RB that Fig. 9 provides for the embodiment of the present invention;
The neighbor state variation diagram of the RB that Figure 10 provides for the embodiment of the present invention;
The neighbor state variation diagram of the RB that Figure 11 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.
The flow chart of a kind of state switching method that Fig. 1 provides for the embodiment of the present invention, with reference to Fig. 1, the method can comprise the following steps.
(English full name is Media Access Control in the medium access control of step S110, the port that is connected with the 2nd RB when a RB is upper, english abbreviation is MAC) after the address becomes new MAC Address by old MAC Address, a described RB switches to transition state with the neighbor state of described the 2nd RB that a described RB safeguards by report (the English Report of being) state, a wherein said RB and described the 2nd RB be multilink transparent interconnection (English full name is Transparent Interconnection of Lots of Links, and english abbreviation is TRILL) neighbours each other.
The embodiment of the present invention has increased transition state on the basis of the neighbor state between existing RB, so between the RB of the embodiment of the present invention, neighbor state can comprise following 5 kinds: fault (English is Down), and the expression neighbours do not exist; Detect (English is Detect), expression detects neighbours and exists; Two-way (English is 2-way), the expression neighbours find each other, do not consult but complete MTU; Report (English be Report), the expression neighbours are discovery each other, and MTU consults successfully, neighborhood foundation; Transition state, expression RB port mac address change, and need switch to this state, the handling process that the state that carrying out the embodiment of the present invention provides switches.
The neighbor state of the 2nd RB that the one RB safeguards is Report, and the neighbor state of the RB that the 2nd RB safeguards is also Report, and a RB and the 2nd RB be TRILL neighbours each other.Whether the MAC Address that can the TRILL protocol component by a RB detects a RB port that be connected with the 2nd RB changes, with the port mac address situation of a clear and definite RB.After the MAC Address of this port changed, a RB switched to newly-increased transition state with the neighbor state of the 2nd RB of its maintenance by Report.
The upper port that is connected with described the 2nd RB of a RB described in the present embodiment refers to and the signal connecting media that is connected a described RB and the 2nd RB, such as optical fiber, wire rope etc., the port that is connected.
Fig. 2 is the annexation schematic diagram of a RB and the 2nd RB, and with reference to Fig. 2, the upper port that is connected with described the 2nd RB of a RB refers to port A shown in Figure 2.In the present embodiment, port B shown in Figure 2 can not be regarded as the upper port that is connected with described the 2nd RB of a RB.
Alternatively, described step S110 is carried out by a processor in a described RB.
Step S120, a described RB send to described the 2nd RB and are no less than the first multilink transparent interconnection predetermined quantity, that carry described new MAC Address (English full name is Transparent Interconnection of Lots of Links Hello, and english abbreviation is TRILL Hello) message of saying hello.
Because the MAC Address of the port of a RB who is connected with the 2nd RB changes, a RB sends to the TRILL hello packet of the 2nd RB will carry new MAC Address so.The one RB will send a TRILL hello packet that comprises new MAC Address to the 2nd RB.The predetermined quantity of the TRILL hello packet that the one RB sends can be defaulted as more than 3, also can set according to actual conditions.
Alternatively, described step S120 is carried out by a physical port in a described RB.
Step S130, a described RB receive described the 2nd RB receive described be no less than TRILL hello packet predetermined quantity, that carry described new MAC Address after, the 2nd TRILL hello packet that carries described new MAC Address of response.
The one RB receives the 2nd TRILLHello message that includes described new MAC Address that the 2nd RB responds, and shows that the 2nd RB upgrades the MAC Address of the RB that records in its neighbor list, has accepted the situation that the MAC Address of a RB changes.
Alternatively, described step S130 is carried out by a physical port in a described RB.
Step S140, a described RB are after receiving described the 2nd TRILL hello packet that carries described new MAC Address, and the neighbor state of described the 2nd RB that a described RB is safeguarded switches back described Report state by described transition state.
Alternatively, described step S140 is carried out by a processor in a described RB.
When a RB receives the 2nd TRILLHello message that carries described new MAC Address that the 2nd RB responds, the MAC Address that can show the described port of a RB of current record in the neighbor list of the 2nd RB is consistent with the current MAC Address of a described port of RB, and the neighbor state that satisfies the 2nd RB that a RB safeguards is set to the requirement of Report.Therefore the neighbor state of a RB the 2nd RB that the one RB can be safeguarded switches back the Report state by transition state.
Method shown in Figure 1 has increased transition state on the basis of neighbor state between existing RB.By the setting of transition state, a RB enters transition state and the 2nd RB carries out the processing of neighborhood when the port mac address modification.Under transition state, a RB sends to described the 2nd RB and is no less than TRILL hello packet predetermined quantity, that carry described new MAC Address.Receive the 2nd TRILL hello packet that carries described new MAC Address of the 2nd RB response as a RB after, the current MAC Address of described port that can determine the MAC Address of the described port of a described RB of current record in described the 2nd RB and a described RB is consistent, therefore the neighbor state that has satisfied the 2nd RB that a RB is safeguarded is switched back the condition of Report state by transition state, thereby a RB switches back the Report state with the neighbor state of the 2nd RB of a RB maintenance by transition state.So just avoided after the port mac address modification of a RB, a RB and the 2nd RB need the long time of cost re-start the problem that neighborhood is consulted because neighborhood is thoroughly interrupted, and have reduced data message forwarding break period.
Alternatively, in embodiment of the method as shown in Figure 1, when a described RB is no less than TRILL hello packet predetermined quantity, that carry described new MAC Address to described the 2nd RB transmission, the neighbor state of described the 2nd RB that a described RB safeguards is described transition state, and the MAC Address of described port is described new MAC Address.
Alternatively, in embodiment of the method as shown in Figure 1, when a described RB receive that described the 2nd RB responds carry the 2nd TRILL hello packet of described new MAC Address the time, the neighbor state of described the 2nd RB that a described RB safeguards is described transition state, and the MAC Address of described port is described new MAC Address.
In addition, alternatively, if a described RB is before receiving described the 2nd TRILL hello packet that carries described new MAC Address, received the TRILL hello packet that carries described old MAC Address that described the 2nd RB sends, to keep the neighbor state of described the 2nd RB that a described RB safeguards be described transition state to a described RB.
Optionally, there is certain survival phase in embodiment of the present invention transition state.Step S120, step S130 and step S140 carry out within this survival phase.The one RB receives the 2nd TRILL hello packet that carries described new MAC Address that described the 2nd RB responds within this survival phase, will switch back described Report state by described transition state for the neighbor state of described the 2nd RB within this survival phase.After the survival phase finishes, if the neighbor state of a RB and the 2nd RB still can't switch to Report, both neighbor states will be Down.The transitional period overtime timer can be set, indicate the survival phase of described transition state with the time-out time of its setting, when the neighbor state of a RB and the 2nd RB switches to transition state by Report, start the transitional period overtime timer.The time-out time that the transitional period overtime timer arranges is configurable, but should be not more than predetermined permission the one RB of prior art and the 2nd RB carries out by the TRILL hello packet time-out time that state is consulted.Certainly, also can be set the described survival phase in the present embodiment.
Technical scheme described above is that the angle of the RB that changes with the port mac address describes, for making technical scheme of the present invention more clear complete, the below will be with the angle as the TRILL neighbours' of a RB the 2nd RB, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.
The flow chart of a kind of state switching method that Fig. 3 provides for the embodiment of the present invention, with reference to Fig. 3, the method can comprise following content.
(English full name is Routing Bridge for step S210, secondary route bridge, english abbreviation is RB) (English full name is TransparentInterconnection ofLots ofLinks to receive multilink transparent interconnection as described the 2nd RB, english abbreviation is TRILL) the first multilink transparent interconnection of sending of neighbours' a RB (English full name is Transparent Interconnection of Lots of Links Hello, and english abbreviation is TRILL Hello) message of saying hello.
The receive mode of the one TRILL hello packet can be same as the prior art, no longer introduces herein.
Alternatively, described step S210 is carried out by a physical port in described the 2nd RB.
Step S220, described the 2nd RB determine that medium access control (English full name is Media Access Control, and english abbreviation the is MAC) address of the upper port that is connected with described the 2nd RB of a described RB that a described TRILL hello packet carries is the different new MAC Address of MAC Address of the described port that recorded from described the 2nd RB.
Alternatively, the 2nd RB can be after receiving a TRILL hello packet, obtains the MAC Address of the described port that described the 2nd RB recorded; The MAC Address of determining the described port that described the 2nd RB has recorded is different with the MAC Address of the described port that a described TRILL hello packet carries; The MAC Address of determining the described port that a described TRILL hello packet carries is described new MAC Address.Wherein, the specific implementation of MAC Address of obtaining the described port of described the 2nd RB record can comprise: described the 2nd RB determines the system banner of the described RB that a described TRILL hello packet carries and the port-mark of described port, and described the 2nd RB is according to described system banner and port-mark inquiry neighbor list; Obtain the neighbours record corresponding with described system banner and port-mark; Obtain the MAC Address of the described port of described the 2nd RB record according to described neighbours' record.The system banner of a described RB can be understood to the identification information of a kind of sign the one RB.
In addition, the 2nd RB can determine by other means that also the MAC Address of the upper port that is connected with described the 2nd RB of a described RB that a described TRILL hello packet carries is new MAC Address, an advertising identification position for example can carrying by a described TRILL hello packet, a notification packet that also can receive by the 2nd RB.
Implication in the implication of the port that is connected with described the 2nd RB on a described RB in the present embodiment, and embodiment illustrated in figures 1 and 2 is identical.
Alternatively, described step S220 is carried out by a processor in described the 2nd RB.
Step S230, described the 2nd RB are after the MAC Address of determining the described port that a described TRILL hello packet carries is described new MAC Address, and the neighbor state of the described RB that described the 2nd RB is safeguarded switches to transition state by report (English be Report) state.
After the MAC Address of determining a RB changes, the 2nd RB switches to transition state with the neighbor state of the RB that the 2nd RB safeguards by Report, this transition state is newly-increased a kind of neighbor state on the neighbor state basis between existing RB, the transition state of describing in concrete meaning and method shown in Figure 1 is identical, can mutually contrast.
Alternatively, described step S230 is carried out by a processor in described the 2nd RB.
Step S240, described the 2nd RB determine the quantity of the TRILL hello packet that includes described new MAC Address received.
Alternatively, described step S240 is carried out by a processor in described the 2nd RB.
Step S250, described the 2nd RB are after the quantity of a described TRILL hello packet of determining to receive reaches predetermined value, and the old MAC Address of the described port that described the 2nd RB has been recorded replaces with described new MAC Address.
If the 2nd RB receives a plurality of TRILL hello packet that include described new MAC Address continuously, and number reaches predetermined quantity, the MAC Address that can determine the described port of a RB changes and described new MAC Address is stable, thereby can upgrade the MAC Address of the described port of a RB of record before in the 2nd RB neighbor list, with this described new MAC Address replace described before the MAC Address of described port of a RB of record.Before described, the relatively described new MAC Address of MAC Address of the described port of a RB of record is Geju City MAC Address.
Alternatively, described step S250 is carried out by a processor in described the 2nd RB.
Step S260, described the 2nd RB are after the quantity of a described TRILL hello packet of determining to receive reaches predetermined value, and described the 2nd RB sends to a described RB the 2nd TRILL hello packet that includes described new MAC Address.
The 2nd RB includes described new MAC Address by transmission the 2nd TRILL hello packet shows that to a RB the 2nd RB has accepted the situation that the MAC Address of the port that is connected with described the 2nd RB of a RB changes.
Alternatively, described step S260 is carried out by a physical port in described the 2nd RB.
Step S270, described the 2nd RB are after the quantity of a described TRILL hello packet of determining to receive reaches predetermined value, and described the 2nd RB switches to described Report state with the neighbor state of the described RB that described the 2nd RB safeguards by described transition state.
Due to described the 2nd RB after the quantity of a described TRILL hello packet of determining to receive reaches predetermined value, the described old MAC Address of the described port that records in described the 2nd RB is replaced with described new MAC Address, therefore the MAC Address of the described port of a RB of current record in the neighbor list of the 2nd RB, consistent with the current MAC Address of the described port of a RB, the neighbor state that satisfies the RB that the 2nd RB safeguards is set to the requirement of Report.Therefore the neighbor state of the 2nd RB the one RB that the 2nd RB can be safeguarded switches back the Report state by transition state.
Alternatively, described step S270 is carried out by a processor in described the 2nd RB.
Optionally, in method shown in Figure 3, there is certain survival phase in transition state.
In addition, it needs to be noted, in the present embodiment, there are not precedence relationship in step S250, S260 and S270 on execution sequence.For example, can first carry out S250, again carry out S260, carry out S270 at last, also can first carry out S260, carrying out S270, carrying out S250 at last, can also have other execution sequence.
method shown in Figure 3 is with the neighbours RB of a described RB, the i.e. angle of the 2nd RB, the coping style of the 2nd RB when receiving a TRILL hello packet that includes described new MAC Address has been described: the 2nd RB will switch to transition state with the neighbor state of a RB, and after the new MAC Address of the described port of determining a RB is stable, upgrade the MAC Address of a RB who records in the 2nd RB, the neighbor state that has satisfied a RB of the 2nd RB maintenance is set to the requirement of Report, thereby the neighbor state of the RB that the 2nd RB can safeguard the 2nd RB switches back the Report state by transition state.Because said process is in the situation that the neighborhood that does not have thoroughly to interrupt a RB and the 2nd RB is carried out, therefore the time that rebulids neighborhood after the time of cost ratio interruption neighborhood is short a lot, when having avoided the port mac address modification of a RB, the one RB and the 2nd RB neighborhood are interrupted, cause to take a long time the problem of again consulting neighborhood, reduce data message forwarding break period, guaranteed the normal transmission of the data message between RB.
Method shown in Figure 3, determine can also comprise step after the quantity of the described TRILL hello packet received reaches predetermined value at described the 2nd RB:
Upgrade the next-hop mac address of the upper port that is connected with a described RB of the 2nd RB described in the TRILL unicast routing table in the 2nd RB.
Preferably, there is certain survival phase in embodiment of the present invention transition state, can be by the transitional period overtime timer be set, indicate the survival phase of described transition state with the time-out time of its setting, the time-out time that the transitional period overtime timer arranges is configurable, but should be not more than predetermined permission the one RB of prior art and the 2nd RB by the time-out time of TRILL hello packet.If the TRILL hello packet quantity that comprises new MAC Address that the 2nd RB receives within the described survival phase does not arrive predetermined quantity, the 2nd RB can switch to Down with the neighbor state with a RB, re-starts neighborhood with a RB and consults.
The structured flowchart of the first routing bridge that Fig. 4 provides for the embodiment of the present invention (English full name is Routing Bridge, and english abbreviation is RB), with reference to Fig. 4, a RB can comprise:
the first state handover module 110, (English full name is Media Access Control to be used for the medium access control of the port be connected with the 2nd RB on a described RB, english abbreviation is MAC) after the address becomes new MAC Address by old MAC Address, the neighbor state of described the 2nd RB that a described RB is safeguarded switches to transition state by report (English be Report) state, a wherein said RB and described the 2nd RB each other the multilink transparent interconnection (English full name is Transparent Interconnection of Lots ofLinks, english abbreviation is TRILL) neighbours.
The embodiment of the present invention has increased transition state on the basis of the neighbor state between existing RB, so between the RB of the embodiment of the present invention, neighbor state can comprise following 5 kinds: fault (English is Down), and the expression neighbours do not exist; Detect (English is Detect), expression detects neighbours and exists; Two-way (English is 2-way), the expression neighbours find each other, do not consult but complete MTU; Report (English be Report), the expression neighbours are discovery each other, and MTU consults successfully, neighborhood foundation; Transition state, expression RB port mac address change, and the neighbor state of described the 2nd RB that the first state handover module 110 will a described RB maintenance switches to transition state by the Report state.
The neighbor state of the 2nd RB that the one RB safeguards is Report, and the neighbor state of the RB that the 2nd RB safeguards is also Report, and a RB and the 2nd RB be TRILL neighbours each other.Whether the MAC Address that can detect by the TRILL protocol component of a RB RB port that is connected with the 2nd RB changes, port mac address situation with a clear and definite RB, after the MAC Address of this port changed, the first state handover module 110 of a RB switched to newly-increased transition state with the neighbor state of the 2nd RB that a RB safeguards by Report.
Implication in the implication of the port that is connected with described the 2nd RB on a described RB in the present embodiment, and embodiment illustrated in figures 1 and 2 is identical.
Sending module 120 is used for sending to described the 2nd RB and is no less than the first multilink transparent interconnection predetermined quantity, that carry described new MAC Address (TRILL Hello) message of saying hello.
When the MAC Address of the port of a described RB who is connected with the 2nd RB changes, the sending module 120 of a RB sends to the TRILL hello packet of the 2nd RB will carry new MAC Address.The predetermined quantity of the TRILL hello packet that sending module 120 sends can be defaulted as more than 3, also can set according to actual conditions.
Receiver module 130, be used for receiving described the 2nd RB receive described be no less than TRILL hello packet predetermined quantity, that carry described new MAC Address after, the 2nd TRILL hello packet that carries described new MAC Address of response.
The receiver module 130 of the one RB receives the 2nd TRILL hello packet that includes described new MAC Address that the 2nd RB responds, show that the 2nd RB upgrades the MAC Address of the RB that records in its neighbor list, accepted the situation that the MAC Address of the described port of a RB changes.
The second state handover module 140, be used for after described receiver module 130 receives described the 2nd TRILL hello packet that carries described new MAC Address, the neighbor state of described the 2nd RB that a described RB is safeguarded switches back described Report state by described transition state.
Receiver module 130 receives the 2nd TRILLHello message that carries described new MAC Address that the 2nd RB responds, information after showing the RB information that records in the neighbor list of the 2nd RB and a RB changing MAC Address is consistent, and the neighbor state that satisfies the 2nd RB that a RB safeguards is set to the requirement of Report.Therefore the neighbor state of the second state handover module 140 of a RB the 2nd RB that a RB can be safeguarded switches back the Report state by transition state.
A RB shown in Figure 4 has increased transition state on the basis of neighbor state between existing RB.By the setting of transition state, a RB enters transition state and the 2nd RB carries out the processing of neighborhood when the port mac address modification.Under transition state, a RB sends to described the 2nd RB and is no less than TRILL hello packet predetermined quantity, that carry described new MAC Address.Receive the 2nd TRILL hello packet that carries described new MAC Address of the 2nd RB response as a RB after, the current MAC Address of described port that can determine the MAC Address of the described port of a described RB of current record in described the 2nd RB and a described RB is consistent, therefore the neighbor state that has satisfied the 2nd RB that a RB is safeguarded is switched back the condition of Report state by transition state, thereby a RB switches back the Report state with the neighbor state of the 2nd RB of a RB maintenance by transition state.So just avoided after the port mac address modification of a RB, a RB and the 2nd RB need the long time of cost re-start the problem that neighborhood is consulted because neighborhood is thoroughly interrupted, and have reduced data message forwarding break period.
Alternatively, a RB shown in Figure 4 can be for as Fig. 1 and/or a RB shown in Figure 3.Realized by the one or more modules in a RB as shown in Figure 4 as Fig. 1 and/or the performed step of a RB shown in Figure 3.
Optionally, the structure of a RB shown in the embodiment of the present invention also can be as shown in Figure 5, another structured flowchart of the RB that Fig. 5 provides for the embodiment of the present invention, and in conjunction with Fig. 5 and a RB shown in Figure 4, a RB shown in Figure 5 also comprises:
State is kept module 150, be used for before receiver module 130 receives described the 2nd TRILL hello packet that carries described new MAC Address, a described RB receives in the situation of the TRILL hello packet that carries described old MAC Address that described the 2nd RB sends, and the neighbor state of keeping described the 2nd RB that a described RB safeguards is described transition state.
Concrete, the mode of the TRILLHello message that carries described old MAC Address that the one RB reception the 2nd RB sends can be same as the prior art, also can pass through the mode of the function of increase receiver module 130, make receiver module 130 can also be used for receiving the TRILL hello packet that carries described old MAC Address that described the 2nd RB sends.
Alternatively, when sending module 120 is no less than TRILL hello packet predetermined quantity, that carry described new MAC Address to described the 2nd RB transmission, the neighbor state of described the 2nd RB that a described RB safeguards is described transition state, and the MAC Address of described port is described new MAC Address; When receiver module 130 receive that described the 2nd RB responds carry the 2nd TRILLHello message of described new MAC Address the time, the neighbor state of described the 2nd RB that a described RB safeguards is described transition state, and the MAC Address of described port is described new MAC Address.
Concrete, can keep the function of module 150 by newly-increased state, make in these cases, keeping module 150, to keep the neighbor state of described the 2nd RB that a described RB safeguards be described transition state
The structured flowchart of the secondary route bridge that Fig. 6 provides for the embodiment of the present invention (English full name is Routing Bridge, and english abbreviation is RB), with reference to Fig. 6, the 2nd RB can comprise:
Receiver module 210, saying hello for the first multilink transparent interconnection that receives a RB transmission, (English full name is Transparent Interconnection of Lots of Links Hello, english abbreviation is TRILLHello) message, the multilink transparent interconnection that a described RB is described the 2nd RB (English full name is Transparent Interconnection of Lots of Links, and english abbreviation is TRILL) neighbours.
The mode that receiver module 210 receives the TRILL hello packet can be same as the prior art, no longer introduces herein.
The first determination module 220, medium access control (English full name is Media Access Control, and english abbreviation is MAC) address that be used for to determine the upper port that is connected with described the 2nd RB of a described RB that a described TRILL hello packet carries is the different new MAC Address of MAC Address of the described port that recorded from described the 2nd RB.
Implication in the implication of the port that is connected with described the 2nd RB on a described RB in the present embodiment, and embodiment illustrated in figures 1 and 2 is identical.
Alternatively, the structured flowchart of the first determination module 220 can be as shown in Figure 7, and the first determination module 220 can comprise:
Acquiring unit 221 is used for obtaining the MAC Address of the described port that described the 2nd RB recorded;
Determining unit 222 be used for to determine that the MAC Address of the MAC Address of the described port that described the 2nd RB has recorded and the described port that a described TRILL hello packet carries is different;
New MAC Address determining unit 223 is described new MAC Address for the MAC Address of determining the described port that a described TRILL hello packet carries.
Optionally, the structured flowchart of acquiring unit 221 can be as shown in Figure 8, and acquiring unit 221 can comprise:
Sign is determined subelement 2211, for the system banner of determining the described RB that a described TRILL hello packet carries and the port-mark of described port;
Inquiry subelement 2212 is used for the neighbor list according to described system banner and described the 2nd RB of port-mark inquiry, obtains the neighbours record corresponding with described system banner and port-mark;
Address acquisition subelement 2213 is for obtain the MAC Address of the described port of described the 2nd RB record according to described neighbours' record.
In addition, the first determination module 220 can determine by other means that also the MAC Address of the upper port that is connected with described the 2nd RB of a described RB that a described TRILL hello packet carries is new MAC Address, an advertising identification position for example can carrying by a described TRILL hello packet, a notification packet that also can receive by the 2nd RB.
The first state handover module 230, be used for after the MAC Address of determining the described port that a described TRILL hello packet carries is described new MAC Address, the neighbor state of the described RB that described the 2nd RB is safeguarded switches to transition state by report Report state;
After the first determination module 220 determines that the MAC Address of a RB changes, the first state handover module 230 of the 2nd RB switches to transition state with the neighbor state of the RB that the 2nd RB safeguards by Report, this transition state is newly-increased a kind of neighbor state on the neighbor state basis between existing RB, the transition state of describing in concrete meaning and a RB shown in Figure 4 is identical, can mutually contrast.
The second determination module 240 is for the quantity of a TRILL hello packet that includes described new MAC Address of determining to receive.
Address replacement module 250 is used for after the quantity of a described TRILL hello packet of determining to receive reaches predetermined value, and the old MAC Address of the described port that recorded described in described the 2nd RB is replaced with described new MAC Address.
If the receiver module 210 of the 2nd RB is received a plurality of TRILL hello packet that include described new MAC Address continuously, and number reaches predetermined quantity, the MAC Address that can determine the described port of a RB changes and described new MAC Address is stable, thereby address replacement module 250 can upgrade the described port mac address of the RB that recorded in the 2nd RB neighbor list, the MAC Address of replacing the described port of a described RB who has recorded with this described new MAC Address.
Sending module 260 is used for after the quantity of a described TRILL hello packet of determining to receive reaches predetermined value, sends to a described RB the 2nd TRILL hello packet that includes described new MAC Address.
Sending module 260 includes described new MAC Address by transmission the 2nd TRILL hello packet shows that to a RB the 2nd RB has accepted the situation that the MAC Address of the port that is connected with described the 2nd RB of a RB changes.
The second state handover module 270 is used for after the quantity of a described TRILL hello packet of determining to receive reaches predetermined value, and the neighbor state of the described RB that described the 2nd RB is safeguarded switches to described Report state by described transition state.
Due to the second determination module 240 of described the 2nd RB after the quantity of a described TRILLHello message of determining to receive reaches predetermined value, the MAC Address of the described port that recorded in described the 2nd RB is replaced with described new MAC Address, therefore the information of a RB who records in the neighbor list of the 2nd RB, consistent with the actual information of a RB, the neighbor state that satisfies a RB of the 2nd RB maintenance is set to the requirement of Report, so the neighbor state of the RB that the second state handover module 270 can be safeguarded the 2nd RB switches to Report by transition.
Alternatively, the 2nd RB shown in Figure 6 can be for as Fig. 1 and/or the 2nd RB shown in Figure 3.Realized by a plurality of modules in the 2nd RB as shown in Figure 6 as Fig. 1 and/or the performed step of the 2nd RB shown in Figure 3.
Another structured flowchart of the 2nd RB that Fig. 9 provides for the embodiment of the present invention, in conjunction with Fig. 6 and the 2nd RB shown in Figure 9, the 2nd RB shown in Figure 9 also comprises:
Update module 280 is for the next-hop mac address of upgrading the outbound port that described in the TRILL unicast routing table, a RB is corresponding;
Concrete, update module 280 can after the second determination module 240 is determined to receive a described TRILL hello packet of predetermined quantity, be upgraded the next-hop mac address of the outbound port that described in the TRILL unicast routing table, a RB is corresponding.
The neighbours RB of the RB that embodiment shown in Figure 6 changes with the port mac address, the i.e. angle of the 2nd RB, the coping style of the 2nd RB when receiving a TRILL hello packet that includes described new MAC Address has been described: the 2nd RB switches to transition state with the neighbor state of the RB that the 2nd RB safeguards, and after the new MAC Address of the described port of determining a RB is stable, upgrade the MAC Address of a RB who records in the 2nd RB, thereby the neighbor state that has satisfied the RB that the 2nd RB safeguards is set to the requirement of Report.Afterwards, the 2nd RB switches to described Report state with the neighbor state of a described RB of described the 2nd RB maintenance by described transition state.Due to the 2nd RB be in the situation that there is no thoroughly to interrupt the state switching that the neighborhood of a RB and the 2nd RB is carried out, therefore the time that rebulids neighborhood after the time of cost ratio interruption neighborhood is short a lot, when having avoided the port mac address modification of a RB, the one RB and the 2nd RB neighborhood are interrupted, cause to take a long time the problem of again consulting neighborhood, reduce data message forwarding break period, guaranteed the normal transmission of the data message between RB.
Need to prove, the RB that the embodiment of the present invention is described with different angles can be same RB as Fig. 4 and a RB and the 2nd RB shown in Figure 6.
For technical scheme that the embodiment of the present invention is provided is more clear, the angle of the RB that the below will change with MAC Address is by a RB and its neighbours RB(the 2nd RB) the variation explanation technical scheme of the present invention of neighbor state.Scheme hereinafter exists on the basis of survival phase based on transition state.
The RB neighbor state variation diagram that Figure 10 provides for the embodiment of the present invention, with reference to Figure 10, the band letter lines in Figure 10 represent respectively:
A, a RB port mac address modification enter transition state, enable the transitional period overtime timer;
B, receive the TRILL hello packet from the 2nd RB, comprise old MAC Address in message, keep transition state;
C, receive the TRILL hello packet from the 2nd RB, the new port mac address that comprises a RB in message, switch back the Report state, the port mac address of the one RB can formally switch to new MAC Address, remove the transitional period overtime timer, restart TRILL hello packet overtime timer, TRILL hello packet overtime timer is the device of the time-out time of the predetermined TRILL hello packet of prior art indicating;
D, transitional period overtime timer are overtime, enter the Down state, remove neighbours;
E, TRILL hello packet overtime timer reach predetermined time-out time (overtime more than 3 times), enter the Down state.
Neighbours RB(the 2nd RB of the RB that the below changes with MAC Address) angle is by the variation explanation technical scheme of the present invention of its neighbor state.
The neighbor state variation diagram of the RB that Figure 11 provides for the embodiment of the present invention, with reference to Figure 11, the band letter lines in Figure 11 represent respectively:
A, the 2nd RB receive the TRILL hello packet that comprises new MAC Address, the port mac address of transmitting terminal the one RB of judgement message changes, enter transition state, enable the transitional period overtime timer, record this new MAC Address, and add up the TRILL hello packet number that comprises this new MAC Address of receiving;
B, reception TRILL hello packet, if carry this new MAC Address in message, the message number of statistics adds 1;
The message number of C, statistics reaches predetermined number, predetermined number can be the default time of the 2nd RB, predetermined number is more than 3, to switch back Report with the neighbor state of a RB, remove the transitional period overtime timer, restart TRILL hello packet overtime timer, upgrade the neighbours' record of the one RB of institute in the 2nd RB neighbor list, comprise the TRILL hello packet of new MAC Address to a RB transmission;
D, transitional period overtime timer are overtime, or TRILL hello packet overtime timer reaches predetermined time-out time, enter the Down state;
F, TRILL hello packet overtime timer reach predetermined time-out time, enter the Down state.
The state switching method that the embodiment of the present invention provides and RB, by transition state is set, the reason of checking RB port mac address modification, in the port mac address stable of RB after changing, avoided the neighborhood of RB and its neighbours RB to be interrupted fully, consult thereby do not need to re-start complete neighborhood, reduced data message forwarding break period.
In this specification, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment that between each embodiment, identical similar part is mutually referring to getting final product.For the disclosed device of embodiment, because it is corresponding with the disclosed method of embodiment, so description is fairly simple, relevant part partly illustrates referring to method and gets final product.
The professional can also further recognize, unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein, can realize with electronic hardware, computer software or combination both, for the interchangeability of hardware and software clearly is described, composition and the step of each example described in general manner according to function in the above description.These functions are carried out with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.The professional and technical personnel can specifically should be used for realizing described function with distinct methods to each, but this realization should not thought and exceeds scope of the present invention.
The method of describing in conjunction with embodiment disclosed herein or the step of algorithm can directly use the software module of hardware, processor execution, and perhaps both combination is implemented.Software module can be placed in the storage medium of any other form known in random asccess memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
To the above-mentioned explanation of the disclosed embodiments, make this area professional and technical personnel can realize or use the present invention.Multiple modification to these embodiment will be apparent concerning those skilled in the art, and General Principle as defined herein can be in the situation that do not break away from the spirit or scope of the present invention, realization in other embodiments.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (12)

1. a state switching method, is characterized in that, comprising:
After the medium access control MAC Address of the upper port that is connected with the 2nd RB of the first routing bridge RB becomes new MAC Address by old MAC Address, a described RB switches to transition state with the neighbor state of described the 2nd RB that a described RB safeguards by report Report state, and a wherein said RB and described the 2nd RB be multilink transparent interconnection TRILL neighbours each other;
A described RB sends to described the 2nd RB and is no less than the first multilink transparent interconnection predetermined quantity, that carry described new MAC Address TRILL hello packet of saying hello;
A described RB receive described the 2nd RB receive described be no less than TRILL hello packet predetermined quantity, that carry described new MAC Address after, the 2nd TRILL hello packet that carries described new MAC Address of response;
A described RB is after receiving described the 2nd TRILL hello packet that carries described new MAC Address, and the neighbor state of described the 2nd RB that a described RB is safeguarded switches back described Report state by described transition state.
2. method according to claim 1, is characterized in that, also comprises:
If a described RB had received the TRILLHello message that carries described old MAC Address that described the 2nd RB sends before receiving described the 2nd TRILLHello message that carries described new MAC Address, to keep the neighbor state of described the 2nd RB that a described RB safeguards be described transition state to a described RB.
3. method according to claim 1 and 2, is characterized in that,
When a described RB is no less than TRILL hello packet predetermined quantity, that carry described new MAC Address to described the 2nd RB transmission, the neighbor state of described the 2nd RB that a described RB safeguards is described transition state, and the MAC Address of described port is described new MAC Address;
When a described RB receive that described the 2nd RB responds carry the 2nd TRILL hello packet of described new MAC Address the time, the neighbor state of described the 2nd RB that a described RB safeguards is described transition state, and the MAC Address of described port is described new MAC Address.
4. a state switching method, is characterized in that, comprising:
Secondary route bridge RB receives the first multilink transparent interconnection that the RB as the multilink transparent interconnection TRILL neighbours of described the 2nd RB sends TRILL hello packet of saying hello;
The medium access control MAC Address that described the 2nd RB determines the upper port that is connected from described the 2nd RB of a described RB that a described TRILL hello packet carries is the different new MAC Address of MAC Address of the described port that recorded with described the 2nd RB;
Described the 2nd RB is after the MAC Address of determining the described port that a described TRILL hello packet carries is described new MAC Address, and the neighbor state of the described RB that described the 2nd RB is safeguarded switches to transition state by report Report state;
Described the 2nd RB determines the quantity of the TRILL hello packet that includes described new MAC Address received;
Described the 2nd RB is after the quantity of a described TRILL hello packet of determining to receive reaches predetermined value, and the MAC Address of the described port that described the 2nd RB has been recorded replaces with described new MAC Address;
Described the 2nd RB is after the quantity of a described TRILL hello packet of determining to receive reaches predetermined value, and described the 2nd RB sends to a described RB the 2nd TRILLHello message that includes described new MAC Address;
Described the 2nd RB is after the quantity of a described TRILL hello packet of determining to receive reaches predetermined value, and described the 2nd RB switches to described Report state with the neighbor state of the described RB that described the 2nd RB safeguards by described transition state.
5. method according to claim 4, it is characterized in that, the MAC Address that described the 2nd RB determines the upper port that is connected from described the 2nd RB of a described RB that a described TRILL hello packet carries comprises for the different new MAC Address of MAC Address of the described port that recorded with described the 2nd RB:
Obtain the MAC Address of the described port that described the 2nd RB recorded;
The MAC Address of determining the described port that described the 2nd RB has recorded is different with the MAC Address of the described port that a described TRILLHello message carries;
The MAC Address of determining the described port that a described TRILL hello packet carries is described new MAC Address.
6. method according to claim 5, is characterized in that, the described MAC Address of obtaining the described port of described the 2nd RB record comprises:
Described the 2nd RB determines the system banner of the described RB that a described TRILL hello packet carries and the port-mark of described port;
Described the 2nd RB obtains the neighbours record corresponding with described system banner and port-mark according to the neighbor list of described system banner and described the 2nd RB of port-mark inquiry;
Obtain the MAC Address of the described port of described the 2nd RB record according to described neighbours' record.
7. a routing bridge RB, is characterized in that, comprising:
The first state handover module, be used for after the medium access control MAC Address of the port that is connected with the 2nd RB on a described RB becomes new MAC Address by old MAC Address, the neighbor state of described the 2nd RB that a described RB is safeguarded switches to transition state by report Report state, and a wherein said RB and described the 2nd RB be multilink transparent interconnection TRILL neighbours each other;
Sending module is used for sending to described the 2nd RB and is no less than the first multilink transparent interconnection predetermined quantity, that carry described new MAC Address TRILL hello packet of saying hello;
Receiver module, be used for receiving described the 2nd RB receive described be no less than TRILL hello packet predetermined quantity, that carry described new MAC Address after, the 2nd TRILL hello packet that carries described new MAC Address of response;
The second state handover module, be used for after described receiver module receives described the 2nd TRILL hello packet that carries described new MAC Address, the neighbor state of described the 2nd RB that a described RB is safeguarded switches back described Report state by described transition state.
8. a RB according to claim 7, is characterized in that, also comprises:
State is kept module, be used for before described receiver module receives described the 2nd TRILL hello packet that carries described new MAC Address, a described RB receives in the situation of the TRILL hello packet that carries described old MAC Address that described the 2nd RB sends, and the neighbor state of keeping described the 2nd RB that a described RB safeguards is described transition state.
9. according to claim 7 or 8 described RB, is characterized in that,
When described sending module is no less than TRILL hello packet predetermined quantity, that carry described new MAC Address to described the 2nd RB transmission, the neighbor state of described the 2nd RB that a described RB safeguards is described transition state, and the MAC Address of described port is described new MAC Address;
When described receiver module receive that described the 2nd RB responds carry the 2nd TRILL hello packet of described new MAC Address the time, the neighbor state of described the 2nd RB that a described RB safeguards is described transition state, and the MAC Address of described port is described new MAC Address.
10. a secondary route bridge RB, is characterized in that, comprising:
Receiver module be used for to receive the first multilink transparent interconnection that a RB sends TRILLHello message of saying hello, the multilink transparent interconnection TRILL neighbours that a described RB is described the 2nd RB;
The first determination module, medium access control MAC Address that be used for to determine the upper port that is connected from described the 2nd RB of a described RB that a described TRILL hello packet carries is the different new MAC Address of MAC Address of the described port that recorded with described the 2nd RB;
The first state handover module, be used for after the MAC Address of determining the described port that a described TRILL hello packet carries is described new MAC Address, the neighbor state of the described RB that described the 2nd RB is safeguarded switches to transition state by report Report state;
The second determination module is for the quantity of a TRILLHello message that includes described new MAC Address of determining to receive;
The address replacement module is used for after the quantity of a described TRILL hello packet of determining to receive reaches predetermined value, and the MAC Address of the described port that described the 2nd RB has been recorded replaces with described new MAC Address;
Sending module is used for after the quantity of a described TRILL hello packet of determining to receive reaches predetermined value, sends to a described RB the 2nd TRILL hello packet that includes described new MAC Address;
The second state handover module is used for after the quantity of a described TRILL hello packet of determining to receive reaches predetermined value, and the neighbor state of the described RB that described the 2nd RB is safeguarded switches to described Report state by described transition state.
11. the 2nd RB according to claim 10 is characterized in that, described the first determination module comprises:
Acquiring unit is used for obtaining the MAC Address of the described port that described the 2nd RB recorded;
Determining unit be used for to determine that the MAC Address of the MAC Address of the described port that described the 2nd RB has recorded and the described port that a described TRILL hello packet carries is different;
New MAC Address determining unit is described new MAC Address for the MAC Address of determining the described port that a described TRILL hello packet carries.
12. the 2nd RB according to claim 11 is characterized in that, described acquiring unit comprises:
Sign is determined subelement, for the system banner of determining the described RB that a described TRILL hello packet carries and the port-mark of described port;
The inquiry subelement is used for the neighbor list according to described system banner and described the 2nd RB of port-mark inquiry, obtains the neighbours record corresponding with described system banner and port-mark;
The address acquisition subelement is for obtain the MAC Address of the described port of described the 2nd RB record according to described neighbours' record.
CN201210133425.0A 2012-05-02 2012-05-02 A kind of state switching method and routing bridge Active CN103384217B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201210133425.0A CN103384217B (en) 2012-05-02 2012-05-02 A kind of state switching method and routing bridge
PCT/CN2013/074767 WO2013163937A1 (en) 2012-05-02 2013-04-26 State switching method and router bridge

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210133425.0A CN103384217B (en) 2012-05-02 2012-05-02 A kind of state switching method and routing bridge

Publications (2)

Publication Number Publication Date
CN103384217A true CN103384217A (en) 2013-11-06
CN103384217B CN103384217B (en) 2016-09-07

Family

ID=49491916

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210133425.0A Active CN103384217B (en) 2012-05-02 2012-05-02 A kind of state switching method and routing bridge

Country Status (2)

Country Link
CN (1) CN103384217B (en)
WO (1) WO2013163937A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110324248A (en) * 2018-03-30 2019-10-11 中移(苏州)软件技术有限公司 A kind of bare metal server route renewing method, device, electronic equipment and medium
CN116528095A (en) * 2023-07-05 2023-08-01 宇洪通信技术(武汉)有限公司 ONU local connection quick copying and replacing method, medium and ONU equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113472593B (en) * 2021-07-30 2022-05-17 天津卓越信通科技有限公司 Solution method for link instantaneous change caused by clutter in PHY in auto-negotiation mode

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841450A (en) * 2010-04-08 2010-09-22 深圳市金宏威实业发展有限公司 Method and topological structure for realizing stable communication by forming multiple ring topologies into intersecting ring
US20110305143A1 (en) * 2009-02-23 2011-12-15 Eric Gray Maximum transmission unit (mtu) size discovery mechanism and method for data-link layers
CN102299845A (en) * 2011-09-20 2011-12-28 神州数码网络(北京)有限公司 Multi-link transparent interconnection multicast frame transmission method and system thereof
CN102333000A (en) * 2011-10-31 2012-01-25 杭州华三通信技术有限公司 Neighbor maintenance method and equipment based on transparent interconnection network of lots of links
CN102404216A (en) * 2011-11-23 2012-04-04 华为技术有限公司 Method for TRILL (transparent interconnection of lots of links) network protection, routing bridge and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8345697B2 (en) * 2010-08-17 2013-01-01 Dell Products, Lp System and method for carrying path information
CN102223303A (en) * 2011-06-14 2011-10-19 杭州华三通信技术有限公司 Load equilibrium method based on transparent interconnection of lots of links (TRILL) and routing bridge (RB)
CN102333028B (en) * 2011-06-22 2013-02-13 杭州华三通信技术有限公司 Method and communication equipment for sending messages by using layered bi-layer virtual private network
CN102387078B (en) * 2011-10-19 2014-11-12 杭州华三通信技术有限公司 Method and routing bridge for maintaining neighbourship in TRILL (Transparent Interconnection of Lots of Links) network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110305143A1 (en) * 2009-02-23 2011-12-15 Eric Gray Maximum transmission unit (mtu) size discovery mechanism and method for data-link layers
CN101841450A (en) * 2010-04-08 2010-09-22 深圳市金宏威实业发展有限公司 Method and topological structure for realizing stable communication by forming multiple ring topologies into intersecting ring
CN102299845A (en) * 2011-09-20 2011-12-28 神州数码网络(北京)有限公司 Multi-link transparent interconnection multicast frame transmission method and system thereof
CN102333000A (en) * 2011-10-31 2012-01-25 杭州华三通信技术有限公司 Neighbor maintenance method and equipment based on transparent interconnection network of lots of links
CN102404216A (en) * 2011-11-23 2012-04-04 华为技术有限公司 Method for TRILL (transparent interconnection of lots of links) network protection, routing bridge and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
D. EASTLAKE 3RD, R. PERLMAN, A. GHANWANI,D. DUTT,V. MANRAL: "Routing Bridges (RBridges): Adjacency", 《INTERNET ENGINEERING TASK FORCE (IETF),RFC6327》 *
R.PERLMAN,D. EASTLAKE 3RD,D.DUTT,S.GAI, A. GHANWANI: "Routing Bridges (RBridges): Base Protocol Specification", 《INTERNET ENGINEERING TASK FORCE (IETF),RFC6325》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110324248A (en) * 2018-03-30 2019-10-11 中移(苏州)软件技术有限公司 A kind of bare metal server route renewing method, device, electronic equipment and medium
CN116528095A (en) * 2023-07-05 2023-08-01 宇洪通信技术(武汉)有限公司 ONU local connection quick copying and replacing method, medium and ONU equipment

Also Published As

Publication number Publication date
WO2013163937A1 (en) 2013-11-07
CN103384217B (en) 2016-09-07

Similar Documents

Publication Publication Date Title
US8825844B2 (en) Notifying network operator when virtual addresses do not match on network elements configured for interchassis redundancy
CN103200601B (en) The fat or thin mode switching method of WAP
EP1278342B1 (en) Method and system for controlling communication network and router used in the network
CN112868206A (en) Method, system and computer readable medium for providing service broker functionality in a telecommunications network core using a service based architecture
CN102546427B (en) OSPF (Open Shortest Path First) protocol-based graceful restart (GR) method and router
CN101141382A (en) Routing update method and router
WO2014022564A1 (en) Bgp peer prioritization in networks
CN101155118A (en) BGP routing processing method and device
EP3713160A1 (en) Packet transmission method and apparatus
CN106789619B (en) Method for determining mapping server, routing node and autonomous system
WO2015070383A1 (en) Link aggregation method, apparatus, and system
CN104301226A (en) Designated routing bridge (DRB) election method, equipment and system
US20160134477A1 (en) Collaboration Method and System in Distributed Resilient Network Interconnect System
EP3319377B1 (en) Anchor master node management method and node
CN103384217A (en) State switching method and routing bridge
CN102611566B (en) Method and device for recovering customer service
CN102857316A (en) Method and system for realizing source looped network protection
CN102932249B (en) A kind of transmission method of VRRP message and device
CN101616095B (en) Method and router for voting designated intermediate system
CN101478484A (en) Method, equipment and communication system for route selection
CN106789623B (en) Link communication support method and system based on ospf protocol
US10771284B2 (en) Troubleshooting method and apparatus for edge routing bridge in TRILL campus
CN103840965A (en) Method for enhancing quick fault convergence in RSTP
CN111327524A (en) Flow forwarding method and system, SDN controller and computer readable storage medium
CN102740388B (en) Method and terminal for residing network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant