Nothing Special   »   [go: up one dir, main page]

CN112769601A - Link switching method and device - Google Patents

Link switching method and device Download PDF

Info

Publication number
CN112769601A
CN112769601A CN202011597755.6A CN202011597755A CN112769601A CN 112769601 A CN112769601 A CN 112769601A CN 202011597755 A CN202011597755 A CN 202011597755A CN 112769601 A CN112769601 A CN 112769601A
Authority
CN
China
Prior art keywords
port
escape
upstream
notification message
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011597755.6A
Other languages
Chinese (zh)
Other versions
CN112769601B (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.)
New H3C Information Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN202011597755.6A priority Critical patent/CN112769601B/en
Publication of CN112769601A publication Critical patent/CN112769601A/en
Application granted granted Critical
Publication of CN112769601B publication Critical patent/CN112769601B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • H04L41/0836Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability to enhance reliability, e.g. reduce downtime

Landscapes

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

Abstract

The application relates to a link switching method and equipment, wherein the method is applied to a port expander of an expansion network bridge and comprises the following steps: sending an upstream port notification message with an upstream port identifier through an upstream port; sending an escape port notification message with an escape port identifier through an escape port to notify other port expanders of the escape port; receiving escape port notification messages of other port expanders through escape ports; detecting an uplink of an upstream port connection control bridge; when the uplink fails, sending a message with an upstream port notification through the escape port; the upstream port notification message carries the port identification of the upstream port, so that other port expanders connected with the escape port send the received upstream port notification message to the control network bridge, and the control network bridge switches the registration information of the port expander to which the upstream port notification message belongs to the cascade port to which the upstream port notification message is received.

Description

Link switching method and device
Technical Field
The present application relates to communications technologies, and in particular, to a method and an apparatus for link switching.
Background
The 802.1BR provides an Extended Bridge (EB) system to extend MAC services to virtual end stations, and extends the MAC service capability by breaking the physical limitation through the Extended Bridge, so as to provide the multi-port extension capability of the Bridge for connection of multiple physical servers, blade servers, and the like, and extend the management objects of the Bridge and the Bridge.
A typical 1BR networking is a loop-free pruned tree, a spanning tree protocol does not need to be run between a Control Bridge (CB) and a Port Extender (PE), if an upstream Port (upstream Port) of a PE fails through uplink single-link access control or multiple links all fail, the PE will leave the control Bridge, and a service accessed by an Extended Port (Extended Port) of the PE fails, and the PE is taken off-line.
Disclosure of Invention
The present application provides a link switching method and device for avoiding a port expander out of service in an uplink failure.
In order to achieve the above object, the present application provides a link switching method, including: sending an upstream port notification message with an upstream port identifier through an upstream port; sending an escape port notification message with an escape port identifier through an escape port to notify other port expanders of the escape port; receiving escape port notification messages of other port expanders through escape ports; detecting an uplink of an upstream port connection control bridge; when the uplink fails, sending a message with an upstream port notification through the escape port; the upstream port notification message carries the port identification of the upstream port, so that other port expanders connected with the escape port send the received upstream port notification message to the control network bridge, and the control network bridge switches the registration information of the port expander to which the upstream port notification message belongs to the cascade port to which the upstream port notification message is received.
To achieve the above object, the present application also provides a link switching device, which includes a processor and a memory; the memory is used for storing processor executable instructions; wherein the processor is configured to perform the following by executing the processor-executable instructions in the memory: sending an upstream port notification message through an upstream port; sending an escape port notification message through an escape port; receiving escape port notification messages of other port expanders through escape ports; detecting an uplink of an upstream port connection control bridge; when the uplink fails, sending a message with an upstream port notification through the escape port; the upstream port advertisement message carries the port identifier of the upstream port.
Drawings
Fig. 1 is a flowchart illustrating a link switching method according to an embodiment of the present application;
FIG. 2 is a schematic view illustrating maintenance of an escape port provided herein;
fig. 3 is a schematic diagram illustrating a link handover provided in the present application;
fig. 4 is a schematic diagram illustrating a link forwarding after handover according to the present application;
fig. 5 is a schematic diagram of a link switching device provided in the present application.
Detailed Description
A detailed description will be given of a number of examples shown in a number of figures. In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the present application. Well-known methods, procedures, components and circuits have not been described in detail so as not to obscure the examples.
The term "including" as that term is used is meant to include, but is not limited to; the term "comprising" means including but not limited to; the terms "above," "within," and "below" include the instant numbers; the terms "greater than" and "less than" mean that the number is not included. The term "based on" means based on at least a portion thereof.
The embodiment of the link switching method provided by the present application shown in fig. 1 may be used for a port expander of an expansion bridge, and the method includes:
step 101, an upstream port notification message is sent through an upstream port.
The upstream port advertisement message carries a port identifier of the upstream port.
And 102, sending an escape port notification message through the escape port.
The escape port notification message is provided with a port identifier of an escape port, and the escape port notification message is sent through the escape port to notify other port expanders connected with the escape port of a local escape port.
And 103, receiving the escape port notification messages of other port expanders through the escape ports.
Step 104, detecting the uplink of the upstream port connection control network bridge;
and step 105, detecting the uplink fault, and sending an upstream port notification message through the escape port.
The method has the advantages that the port expander sends the upstream port notification message through the escape port, so that other port expanders connected with the escape port send the received upstream port notification message to the control network bridge, and the control network bridge switches the registration information of the port expander to which the upstream port notification message belongs to the cascade port to which the upstream port notification message is received, so that the port expander connected with the uplink link with the fault is prevented from being disconnected.
Fig. 2 is a schematic view illustrating maintenance of an escape port provided by the present application. In this embodiment, the extension bridge is composed of a control bridge CB, a port extender PE1, and a PE 2. Based on the 801.1br protocol, PE1 and PE2 are registered with the CB's cascading ports C1 and C2, respectively.
The PE1 sends an LLDP (Link Layer Discovery Protocol) message 11 through the escape port T1, where a TLV field of the LLDP message 11 carries the escape port T1 as an ECID of the expansion port, and notifies the escape port T1 to the PE 2.
PE1 sends LLDP message 21 through upstream port U1, and the TLV field of LLDP protocol 21 carries ECID of upstream port U1, and maintains the management of CB to PE 1.
PE2 sends LLDP message 12 through escape port T2, the TLV field of LLDP message 12 carries escape port T2 as ECID of expansion port, and notifies escape port T2 to PE 1.
PE2 sends LLDP message 22 through upstream port U2, and the TLV field of LLDP protocol 22 carries ECID of upstream port U2, and maintains the management of CB to PE 2.
As shown in fig. 3, when an uplink connected to the upstream port U1 of PE1 fails, PE1 sends an LLDP packet 21 through the escape port T1, and the TLV field of the LLDP packet 21 carries U1 as the ECID of the upstream port, so as to notify PE2 of the uplink failure.
The PE2 receives the LLDP protocol message 21 through the escape port T2 and transparently transmits the LLDP protocol message to the control bridge CB through the upstream port U2.
The control bridge CB receives the LLDP protocol packet 21 through the upstream port U2, and migrates all the registration information of the PE1 belonging to the upstream port U1 in the LLDP protocol packet 21 from the registered tandem port C1 to the tandem port C2. The control bridge CB continues to manage the PE1 through a link of the cascade port C2, the upstream port U2, the escape port T2 and the escape port T1.
PE2 may continue to send LLDP messages 12 through escape port T2, notifying PE2 of escape port T2.
Fig. 4 is a schematic diagram illustrating a link forwarding after handover according to the present application; when the PE1 receives the uplink message 31 from the expansion port E1, the uplink message 31 is sent to the escape port T2 of the PE2 through the escape port T1. The PE2 sends the uplink message 31 received by the escape port T2 to the cascade port C2 of the control bridge CB via the upstream port U2. The controlling bridge CB performs addressing forwarding for the received upstream packet 31.
When the control bridge CB receives the downstream packet 32, it determines, according to the destination address addressing forwarding, that the downstream packet needs to be sent through the expansion port E1. The CB sends the downlink packet 32 to the PE2 through the cascade interface C2.
The PE2 receives the downlink message through the upstream port U2, and sends the downlink message 32 to the escape port T1 of the PE1 through the escape port T2 according to the ECID of the expansion port E1 in the downlink message.
The PE1 receives the downlink message 32 through the escape port T1, strips the ECID of the expansion port E1 according to the ECID in the downlink message 32, and sends the message to the host 1 through the expansion port E1.
When PE1 detects that upstream port U1 is recovered or the uplink connected to upstream port U1 is recovered, it sends LLDP packet 21 through upstream port U1, and control bridge CB receives LLDP packet 21 with the ECID of upstream port U1 through cascade port C1, and migrates the registration information of PE1 registered in cascade port C2 back to cascade port C1. The PE1 only sends LLDP message 11 through the escape port T1, and notifies the escape port T1 to the PE 2.
As can be seen from the above embodiments, in this embodiment, the disconnection after the failure of the uplink of the port expander in the expansion bridge can be avoided, it is ensured that the uplink message and the downlink message of the failed PE can be forwarded through the escape port, and the forwarding failure is avoided.
Fig. 5 is a schematic diagram of a link switching device 50 provided in the present application, and the device may be applied as a port expander of an expansion bridge system. The device 50 includes a switch chip, a processor, and a memory. The memory is to store processor-executable instructions.
The processor is operable by executing processor-executable instructions in the memory to perform the following: sending an upstream port notification message through an upstream port; sending an escape port notification message through an escape port; receiving escape port notification messages of other port expanders through escape ports; detecting an uplink of an upstream port connection control bridge; detecting an uplink fault, and sending an announcement message with an upstream port through an escape port; the upstream port advertisement message carries the port identifier of the upstream port.
The processor, by executing the processor-executable instructions in the memory, further performs the following: receiving an uplink message through an expansion port; and sending the uplink message through the escape port.
The processor, by executing the processor-executable instructions in the memory, further performs the following: receiving a downlink message through an escape port; and sending the downlink message with the expansion port identifier stripped through the expansion port according to the expansion port identifier carried in the downlink message.
The processor, by executing the processor-executable instructions in the memory, further performs the following: detecting an uplink recovery; and sending an upstream port notification message through the upstream port.
The processor, by executing the processor-executable instructions in the memory, further performs the following: receiving upstream port notification messages of other port expanders through the escape port; and sending and receiving an upstream port notification message through the upstream port.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (10)

1. A method of link switching, the method comprising:
sending an upstream port notification message with an upstream port identifier through an upstream port;
sending an escape port notification message with an escape port identifier through an escape port to notify other port expanders of the escape port;
receiving an escape port notification message of the other port expander through the escape port;
detecting an uplink of the upstream port connection control bridge;
detecting the uplink fault, and sending the upstream port notification message through an escape port; and other port expanders connected with the escape port transmit the received upstream port notification message to the control network bridge, and the control network bridge switches the registration information of the port expander to which the upstream port notification message belongs to the cascade port to which the upstream port notification message is received.
2. The method of claim 1, further comprising:
receiving an uplink message through an expansion port;
and sending the uplink message to the other port expanders through the escape port, so that the other port expanders connected with the escape port send the received uplink message to the control network bridge.
3. The method of claim 2, further comprising:
receiving a downlink message through the escape port;
and sending the downlink message with the expansion port identification stripped through the expansion port according to the expansion port identification carried in the downlink message.
4. The method of claim 3, further comprising:
detecting the uplink recovery;
and sending the upstream port notification message through the upstream port so that the upstream port notification message is sent to the control network bridge through the uplink, and the control network bridge switches and recovers the registration information of the port expander to which the upstream port notification message belongs to the cascade port of the upstream port notification message.
5. The method of claim 1, further comprising:
receiving an upstream port notification message of the other port expander through the escape port;
and sending and receiving the upstream port notification message through the upstream port.
6. A link switching device, characterized in that the device comprises a processor and a memory; the memory is to store processor-executable instructions; wherein the processor, by executing the processor-executable instructions in the memory, is to perform operations comprising:
sending an upstream port notification message with an upstream port identifier through an upstream port;
sending an escape port notification message with an escape port identifier through an escape port;
receiving an escape port notification message of the other port expander through the escape port;
detecting an uplink of the upstream port connection control bridge;
and when the uplink fault is detected, the uplink notification message is sent through the escape port.
7. The device of claim 6, wherein the processor, by executing the processor-executable instructions in the memory, further performs the following:
receiving an uplink message through an expansion port;
and sending the uplink message through the escape port.
8. The device of claim 7, wherein the processor, by executing the processor-executable instructions in the memory, further performs the following:
receiving a downlink message through the escape port;
and sending the downlink message with the expansion port identification stripped through the expansion port according to the expansion port identification carried in the downlink message.
9. The device of claim 8, wherein the processor, by executing the processor-executable instructions in the memory, further performs the following:
detecting the uplink recovery;
and sending the upstream port notification message through the upstream port.
10. The device of claim 6, wherein the processor, by executing the processor-executable instructions in the memory, further performs the following:
receiving an upstream port notification message of the other port expander through the escape port;
and sending and receiving the upstream port notification message through the upstream port.
CN202011597755.6A 2020-12-29 2020-12-29 Link switching method and device Active CN112769601B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011597755.6A CN112769601B (en) 2020-12-29 2020-12-29 Link switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011597755.6A CN112769601B (en) 2020-12-29 2020-12-29 Link switching method and device

Publications (2)

Publication Number Publication Date
CN112769601A true CN112769601A (en) 2021-05-07
CN112769601B CN112769601B (en) 2022-05-24

Family

ID=75697008

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011597755.6A Active CN112769601B (en) 2020-12-29 2020-12-29 Link switching method and device

Country Status (1)

Country Link
CN (1) CN112769601B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079795A (en) * 2007-07-27 2007-11-28 杭州华三通信技术有限公司 Data forwarding method and forwarding device
CN102821022A (en) * 2011-06-06 2012-12-12 美国博通公司 Method and system of frame forwarding with link aggregation in distributed Ethernet bridges
CN106899506A (en) * 2017-01-25 2017-06-27 新华三技术有限公司 A kind of method and apparatus of protocol massages forwarding
CN107347032A (en) * 2016-05-05 2017-11-14 中兴通讯股份有限公司 Message forwarding method and device
CN107547247A (en) * 2017-05-31 2018-01-05 新华三技术有限公司 Three-layer pipe reason net IP address distribution method and device in intelligent elastic framework
CN108123880A (en) * 2016-11-30 2018-06-05 新华三技术有限公司 Retransmission method, device and the system of multicast data message

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079795A (en) * 2007-07-27 2007-11-28 杭州华三通信技术有限公司 Data forwarding method and forwarding device
CN102821022A (en) * 2011-06-06 2012-12-12 美国博通公司 Method and system of frame forwarding with link aggregation in distributed Ethernet bridges
CN107347032A (en) * 2016-05-05 2017-11-14 中兴通讯股份有限公司 Message forwarding method and device
CN108123880A (en) * 2016-11-30 2018-06-05 新华三技术有限公司 Retransmission method, device and the system of multicast data message
CN106899506A (en) * 2017-01-25 2017-06-27 新华三技术有限公司 A kind of method and apparatus of protocol massages forwarding
CN107547247A (en) * 2017-05-31 2018-01-05 新华三技术有限公司 Three-layer pipe reason net IP address distribution method and device in intelligent elastic framework

Also Published As

Publication number Publication date
CN112769601B (en) 2022-05-24

Similar Documents

Publication Publication Date Title
CN104270298B (en) Message forwarding method and device in a kind of VXLAN networks
EP2417707B1 (en) In-band signaling for point-multipoint packet protection switching
CN102025646B (en) Link switching method and device thereof
US8483050B2 (en) Method and apparatus for ethernet ring protection
US7898943B2 (en) Method for switching route and network device thereof
CN102148677B (en) Method for updating address resolution protocol table entries and core switch
US20080068985A1 (en) Network redundancy method and middle switch apparatus
WO2014026512A1 (en) Processing method for applying rapid spanning tree protocol to single ring network topology
CN100563114C (en) A kind of chain circuit heat backup method and system
WO2013033868A9 (en) Protection group switching for circuit emulaton
CN105141493B (en) Business frame processing method and system when ring network fault
EP2426855B1 (en) Address refresh method and system
CN111490933A (en) Bidirectional forwarding detection switching method and edge device
CN102957588A (en) Method and system for protecting looped network from broadcast storm
CN101299722A (en) Improved quick rerouting method and network equipment
CN101997748B (en) Subring control channel without tunnel blocks the method and system of protocol massages
CN112769601B (en) Link switching method and device
CN103036781A (en) Method and device for processing main path link failures
CN113645312A (en) Method and device for protecting sub-ring network link based on ERPS protocol
CN111343040B (en) Port expander stacking and splitting detection method and device for expansion network bridge
CN101262400A (en) A method and system for flexible packet loop redundant protection under bride mode
CN113794635B (en) Message forwarding method and device
CN105391565A (en) Method for achieving synchronization of backup business configuration
CN105207792A (en) Non-linkage pseudo wire gateway protection system and pseudo wire gateway protection method thereof
CN114071458A (en) Distribution network differential protection method and device

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
TR01 Transfer of patent right

Effective date of registration: 20230627

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

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

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right