CN104468203A - Allocating method of fault switching of ports in switch aggregation group - Google Patents

Allocating method of fault switching of ports in switch aggregation group Download PDF

Info

Publication number
CN104468203A
CN104468203A CN201410695776.XA CN201410695776A CN104468203A CN 104468203 A CN104468203 A CN 104468203A CN 201410695776 A CN201410695776 A CN 201410695776A CN 104468203 A CN104468203 A CN 104468203A
Authority
CN
China
Prior art keywords
port
aggregation group
ports
state
failover
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.)
Pending
Application number
CN201410695776.XA
Other languages
Chinese (zh)
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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201410695776.XA priority Critical patent/CN104468203A/en
Publication of CN104468203A publication Critical patent/CN104468203A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides an allocating method of fault switching of ports in a switch aggregation group. The method includes the steps that firstly, information of all port members of the aggregation group is obtained; secondly, states of all port members are detected respectively, all port members are classified into two classes according to the state information of all port members, the ports in the class in the up state are normal ports, and the ports in the class in the non-up state are fault ports. Information of the fault ports and the normal ports are allocated to a register of a switching chip of a service plate, the switching chip determines to select the normal ports to transmit messages according to the allocation information, it is guaranteed that disturbance and packet losses of service data are avoided, and fault switching of the ports is achieved.

Description

The collocation method of switch aggregation group middle port failover
Technical field
The present invention relates to the method for a kind of switch middle port failover, particularly relate to the port failure changing method of machine frame-type switch.
Background technology
In machine frame switch device, each machine frame comprises master control borad and business board (interface card), and the business datum between master control borad and business board carries out communication forwarding by the HG mouth (full name HiGig mouth) interconnected between them.Usually, one piece of master control borad and one piece of business board are interconnected by the HG mouth of more than 2 or 2, normally forward for making business datum, on master control borad and business board, respectively need configuring a TRUNK, (TRUNK refers to multiple physical port to bundle and is used as logic port and uses, also known as aggregation group), form a logic port in the aggregation group HG mouth of interconnection being put into configuration and interconnect.
In prior art, if the port failure handoff functionality of incorrect configuration aggregation group, in aggregation group, there is 1 or several port egress fault, will the problems such as the data packetloss of forwarding be caused.
Summary of the invention
The technical problem that the present invention need solve is to provide the collocation method of a kind of aggregation group of switch fast and efficiently middle port failover.
In order to solve the above problems, the present invention devises the collocation method of a kind of switch aggregation group middle port failover, and it comprises the following steps:
Step 1: the information getting all of the port member in aggregation group;
Step 2: the state detecting all of the port member respectively;
Step 3: all port members are divided into 2 classes by the state information according to port, a class is normal port, and a class is non-working port;
Step 4: by the information configuration of non-working port and normal port in the register of the exchange chip of business board, exchange chip is determined to select normal port repeat message according to the information of configuration, thus realizes the failover of port.
Improve further as the present invention, when port changes, meeting triggers callback function, described call back function obtains the aggregation group at place according to the port changed.
Improve further as the present invention, described call back function is " st_ext_rapid_recovery " function.
Improve further as the present invention, the state information of described port comprises " up " state and non-" up " state, and the port of " up " state is normal port, and the port of non-" up " state is non-working port.
Improve further as the present invention, in aggregation group, all of the port member is HiGig mouth.
When the port of the present invention in aggregation group breaks down, ensure that business datum is not interrupted, not packet loss.
Accompanying drawing explanation
Fig. 1 is the structural representation of embodiment of the present invention switch aggregation group.
Embodiment
Technical scheme of the present invention is understood better in order to make relevant technical staff in the field, below in conjunction with figure and execution mode, technical scheme in embodiment of the present invention is clearly and completely described, obviously, described execution mode is only the present invention's part execution mode, instead of whole execution modes.
The invention provides the collocation method of a kind of switch aggregation group middle port failover, for in machine frame-type switch, as shown in Figure 1, the master control borad of machine frame-type switch is connected by 2 Higig mouths with multiple business board, to reach the object increasing bandwidth, simultaneously after 2 Higig mouths will be configured to aggregation group by main control card end, the Higig mouth be connected with main control card also will be configured to aggregation group by business board, as shown in figure centre circle circle.
When in machine frame during Insert service plate, business department first carries out initializes itself, the initialization of stacking task is comprised in initializes itself, during stacking task initialization, a call back function " st_ext_rapid_recovery " can be registered in linkscan task, on master control borad, the Higig port arrangement be connected with business board can be become TRUNK aggregation group mouth, the Higig port arrangement that business board is connected with master control borad is TRUNK aggregation group mouth simultaneously.
The Higig port status be connected between master control borad with business board can trigger the call back function " st_ext_rapid_recovery " of registration when changing.That is, when Higig mouths some in aggregation group break down, can triggers callback function " st_ext_rapid_recovery ", this function obtains the aggregation group at place according to the break down port of change of state.
The collocation method of switch aggregation group middle port of the present invention failover, first the information of all of the port member of aggregation group is obtained, then, detect the state of all of the port member respectively, and according to the state information of port, all port members are divided into 2 classes, one class of " up " state is normal port, and a class of non-" up " state is non-working port.By the information configuration of these non-working ports and normal port in the register of the exchange chip of business board, exchange chip is determined to select normal port repeat message according to the information of configuration, ensures that business datum is not interrupted, not packet loss, realizes the failover of port.
Below only have expressed one embodiment of the present invention, it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.

Claims (5)

1. a collocation method for switch aggregation group middle port failover, is characterized in that, comprise the following steps:
Step 1: the information getting all of the port member in aggregation group;
Step 2: the state detecting all of the port member respectively;
Step 3: all port members are divided into 2 classes by the state information according to port, a class is normal port, and a class is non-working port;
Step 4: by the information configuration of non-working port and normal port in the register of the exchange chip of business board, exchange chip is determined to select normal port repeat message according to the information of configuration, thus realizes the failover of port.
2. the collocation method of switch aggregation group middle port according to claim 1 failover, is characterized in that, when port changes, meeting triggers callback function, described call back function obtains the aggregation group at place according to the port changed.
3. the collocation method of switch aggregation group middle port according to claim 2 failover, is characterized in that, described call back function is " st_ext_rapid_recovery " function.
4. the collocation method of switch aggregation group middle port according to claim 1 failover, it is characterized in that, the state information of described port comprises " up " state and non-" up " state, and the port of " up " state is normal port, and the port of non-" up " state is non-working port.
5. the collocation method of switch aggregation group middle port according to claim 1 failover, is characterized in that, in aggregation group, all of the port member is HiGig mouth.
CN201410695776.XA 2014-11-26 2014-11-26 Allocating method of fault switching of ports in switch aggregation group Pending CN104468203A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410695776.XA CN104468203A (en) 2014-11-26 2014-11-26 Allocating method of fault switching of ports in switch aggregation group

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410695776.XA CN104468203A (en) 2014-11-26 2014-11-26 Allocating method of fault switching of ports in switch aggregation group

Publications (1)

Publication Number Publication Date
CN104468203A true CN104468203A (en) 2015-03-25

Family

ID=52913614

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410695776.XA Pending CN104468203A (en) 2014-11-26 2014-11-26 Allocating method of fault switching of ports in switch aggregation group

Country Status (1)

Country Link
CN (1) CN104468203A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105656772A (en) * 2016-03-09 2016-06-08 上海斐讯数据通信技术有限公司 Interchanger port failover polymerization method and system
CN106559327A (en) * 2015-09-29 2017-04-05 北京东土科技股份有限公司 A kind of 100,000,000 optical port restoration methods and device
CN108111354A (en) * 2017-12-28 2018-06-01 杭州迪普科技股份有限公司 A kind of frame type equipment port status mark setting method and device
CN109151620A (en) * 2017-06-28 2019-01-04 中兴通讯股份有限公司 Aggregation group port switching method and device and Optical Line Terminal (OLT) equipment
CN111049765A (en) * 2019-12-12 2020-04-21 北京东土军悦科技有限公司 Aggregation port switching method, device, chip, switch and storage medium
CN112165429A (en) * 2020-09-11 2021-01-01 烽火通信科技股份有限公司 Link aggregation convergence method and device for distributed switching equipment
CN113055286A (en) * 2021-04-27 2021-06-29 融智通科技(北京)股份有限公司 Switch port static convergence detection and protection method, switch and storage medium
CN115250232A (en) * 2022-07-28 2022-10-28 苏州盛科通信股份有限公司 Method and device for configuring main management port and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094157A (en) * 2007-08-20 2007-12-26 中兴通讯股份有限公司 Method for implementing network interconnection by using link aggregation
CN101217424A (en) * 2008-01-21 2008-07-09 中兴通讯股份有限公司 A detecting method and device of aggregated link failures
CN101252532A (en) * 2008-03-18 2008-08-27 华为技术有限公司 Equipment and method for collocating Ethernet link polymerization terminal port
CN102073503A (en) * 2011-01-19 2011-05-25 上海交通大学 Context aware-based intemetware evolution method
CN103501250A (en) * 2013-09-30 2014-01-08 杭州华三通信技术有限公司 Data flow processing method and device in distribution type link aggregation network
CN103944776A (en) * 2014-03-26 2014-07-23 杭州华三通信技术有限公司 Self-loop link aggregation method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094157A (en) * 2007-08-20 2007-12-26 中兴通讯股份有限公司 Method for implementing network interconnection by using link aggregation
CN101217424A (en) * 2008-01-21 2008-07-09 中兴通讯股份有限公司 A detecting method and device of aggregated link failures
CN101252532A (en) * 2008-03-18 2008-08-27 华为技术有限公司 Equipment and method for collocating Ethernet link polymerization terminal port
CN102073503A (en) * 2011-01-19 2011-05-25 上海交通大学 Context aware-based intemetware evolution method
CN103501250A (en) * 2013-09-30 2014-01-08 杭州华三通信技术有限公司 Data flow processing method and device in distribution type link aggregation network
CN103944776A (en) * 2014-03-26 2014-07-23 杭州华三通信技术有限公司 Self-loop link aggregation method and device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559327A (en) * 2015-09-29 2017-04-05 北京东土科技股份有限公司 A kind of 100,000,000 optical port restoration methods and device
CN105656772A (en) * 2016-03-09 2016-06-08 上海斐讯数据通信技术有限公司 Interchanger port failover polymerization method and system
CN105656772B (en) * 2016-03-09 2020-02-04 上海斐讯数据通信技术有限公司 Method and system for aggregating failover of switch ports
CN109151620A (en) * 2017-06-28 2019-01-04 中兴通讯股份有限公司 Aggregation group port switching method and device and Optical Line Terminal (OLT) equipment
CN109151620B (en) * 2017-06-28 2022-05-13 中兴通讯股份有限公司 Aggregation group port switching method and device and Optical Line Terminal (OLT) equipment
CN108111354A (en) * 2017-12-28 2018-06-01 杭州迪普科技股份有限公司 A kind of frame type equipment port status mark setting method and device
CN111049765A (en) * 2019-12-12 2020-04-21 北京东土军悦科技有限公司 Aggregation port switching method, device, chip, switch and storage medium
CN111049765B (en) * 2019-12-12 2022-03-11 北京东土军悦科技有限公司 Aggregation port switching method, device, chip, switch and storage medium
CN112165429A (en) * 2020-09-11 2021-01-01 烽火通信科技股份有限公司 Link aggregation convergence method and device for distributed switching equipment
CN113055286A (en) * 2021-04-27 2021-06-29 融智通科技(北京)股份有限公司 Switch port static convergence detection and protection method, switch and storage medium
CN115250232A (en) * 2022-07-28 2022-10-28 苏州盛科通信股份有限公司 Method and device for configuring main management port and storage medium
CN115250232B (en) * 2022-07-28 2024-03-15 苏州盛科通信股份有限公司 Configuration method and device of main management port and storage medium

Similar Documents

Publication Publication Date Title
CN104468203A (en) Allocating method of fault switching of ports in switch aggregation group
US9571335B2 (en) Computer network method and device using link aggregation
EP3031175B1 (en) Extending virtual station interface discovery protocol (vdp) and vdp-like protocols for dual-homed deployments in data center environments
US20140301401A1 (en) Providing aggregation link groups in logical network device
EP3316555B1 (en) Mac address synchronization method, device and system
US9769027B2 (en) Topology discovery in a stacked switches system
CN104272684A (en) Dynamic service insertion in a fabric switch
CN106533736A (en) Network device reboot method and apparatus
EP3242446A1 (en) Failure protection method, device and system for ring protection link
US9246751B2 (en) Ethernet ring protection switching method, network device and system
CN103166811A (en) Multi-active detection (MAD) detection method and device
EP3249853B1 (en) Ethernet ring protection switching method and node
WO2016034127A1 (en) System and method for achieving dual-node interconnection pseudo-wire
CN104506546A (en) Bidirectional forwarding detection method and device of aggregation link
WO2015168947A1 (en) Path switching method and device
CN105553866A (en) Traffic load balancing method and routing equipment
EP3240251A1 (en) Line card determination, determination processing method and device, and line card determination system
US20150215169A1 (en) Guaranteeing Bandwidth For Dual-Homed Hosts In Fabric Extender Topologies
CN105790995B (en) Automatic service switching method and device
CN103441934B (en) A kind of learning method of stacking topology and device
CN103840965B (en) Method for enhancing quick fault convergence in RSTP
EP3915231A1 (en) Method and system to selectively flush filtering databases in a major ring of an ethernet ring protection switching network
CN103944781A (en) Method and system for preventing unilateral splitting of stacking system
CN108270589B (en) Message processing method and related device
CN105871524A (en) Method and system for achieving hot standby on basis of TIPC protocol

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150325

RJ01 Rejection of invention patent application after publication