CN108881070A - Method and apparatus for the selection port in Smart Link group - Google Patents
Method and apparatus for the selection port in Smart Link group Download PDFInfo
- Publication number
- CN108881070A CN108881070A CN201811060552.6A CN201811060552A CN108881070A CN 108881070 A CN108881070 A CN 108881070A CN 201811060552 A CN201811060552 A CN 201811060552A CN 108881070 A CN108881070 A CN 108881070A
- Authority
- CN
- China
- Prior art keywords
- port
- selection
- state
- forwarding
- enabling
- 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.)
- Withdrawn
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/30—Peripheral units, e.g. input or output ports
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/25—Routing or path finding in a switch fabric
- H04L49/253—Routing or path finding in a switch fabric using establishment or release of connections between ports
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/30—Peripheral units, e.g. input or output ports
- H04L49/3009—Header conversion, routing tables or routing tags
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
The present invention provides a kind of method and apparatus for the selection port in Smart Link group, and the Smart Link group includes at least three ports, and every Single port is both provided with priority;The method of the selection port includes the following steps:When state at least three port meets preset condition or receives the instruction of selection port, selects and do not break down and the pre- enabling port of highest priority from least three port;Forwarding state is set by the pre- enabling port, remaining port at least three port is set as armed state.In several ports, as long as having some or certain port there is no failure, the method for the selection port can ensure that the smooth of network, to improve the reliability of Smart Link network.
Description
Technical field
The present invention relates to network communication technology field more particularly to a kind of selection ports in Smart Link group
Method and apparatus.
Background technique
Smart Link group is also referred to as flexible link group, and a Smart Link group includes two member ports, wherein one
A to be designated as master port (Master Port), another is designated as secondary port (Slave Port), different Smart
Link group may include the same port.Under normal circumstances, only one port (master port or secondary port) is in forwarding
(ACTIVE) state, also referred to as forwarding port, another port is blocked (BLOCK), in (STANDBY) state of awaiting orders,
Referred to as port blocked.When forwarding port that link failure occurs, Smart Link group is understood automatically by the forwarding port block, and will
Former port blocked is switched to forwarding state, that is, is switched to forwarding port.
For example, the port A1 and A2 of switch A constitute a Smart Link group in Fig. 1, port A1 is main side
Mouthful, port A2 is secondary port.When port A1 and A2 is all in normal condition, port A1 (i.e. master port) is forwarding port, end
Mouth A2 (i.e. secondary port) is port blocked.When A1 breaks down when port, according to Smart Link agreement, port can will be enabled
A2, and flow is switched on the A2 of port, so as to avoid the network paralysis caused due to port A1 breaks down.
In the long-term practice of inventor, port A1 and A2 break down simultaneously sometimes for discovery, so as to cause network paralysis.
Therefore, the side of selection port a kind of being grouped for Smart Link and with high reliability how is designed
Method just becomes a urgent problem to be solved.
Summary of the invention
The purpose of the present invention is to provide a kind of method and apparatus for the selection port in Smart Link group.
One of in order to achieve the above-mentioned object of the invention, an embodiment of the present invention provides a kind of in Smart Link group
Selection port method, the Smart Link group includes at least three ports, and every Single port is both provided with priority;
Include the following steps:When state at least three port meets preset condition or receives the instruction of selection port, from
It selects and does not break down and the pre- enabling port of highest priority at least three port;By the pre- enabling port
It is set as forwarding state, remaining port at least three port is set as armed state.
As the further improvement of an embodiment of the present invention, the state of at least three port meets preset condition,
Including:When detecting forwarding port failure, meet preset condition.
As the further improvement of an embodiment of the present invention, the state of at least three port meets preset condition,
Including:Forwarding port is greater than from the priority that malfunction becomes normal condition and port blocked detecting port blocked
When priority, meet preset condition.
It is further comprising the steps of as the further improvement of an embodiment of the present invention:It sends and turns for updating MAC Address
The FLUSH message of forwarding list item and ARP entry.
It is described to set forwarding state for the pre- enabling port as the further improvement of an embodiment of the present invention,
Including:Forwarding state is set by the pre- enabling port, and flow is switched to the pre- enabling port.
The embodiment of the invention also provides a kind of device for the selection port in Smart Link group, the Smart
Link group includes at least three ports, and every Single port is both provided with priority;It comprises the following modules:Selecting module is used for
When state at least three port meets preset condition or receives the instruction of selection port, from least three end
It selects and does not break down and the pre- enabling port of highest priority in mouthful;Switching module, for setting the pre- enabling port
It is set to forwarding state, remaining port at least three port is set as armed state.
As the further improvement of an embodiment of the present invention, the selecting module is also used to:Detecting forwarding port
When breaking down, meet preset condition.
As the further improvement of an embodiment of the present invention, the selecting module is also used to:Detecting port blocked
When the priority for becoming normal condition and port blocked from malfunction is greater than the priority of forwarding port, meet preset condition.
It further include with lower module as the further improvement of an embodiment of the present invention:Topological update module, for sending
For updating the FLUSH message of mac address forwarding table item and ARP entry.
As the further improvement of an embodiment of the present invention, the switching module is also used to:By the pre- enabling port
It is set as forwarding state, and flow is switched to the pre- enabling port.
Compared with the existing technology, the technical effects of the invention are that:The embodiment of the invention provides one kind in Smart
The method and apparatus of selection port in Link group, the Smart Link group include at least three ports, and every Single port
It is both provided with priority;The method of the selection port includes the following steps:State at least three port meets pre-
If condition or when receiving the instruction of selection port, selects and do not break down and priority from least three port
Highest pre- enabling port;Forwarding state is set by the pre- enabling port, remaining port at least three port
It is set as armed state.In several ports, as long as having some or certain port, there is no failure, the sides of the selection port
Method can ensure that the smooth of network, to improve the reliability of Smart Link network.
Detailed description of the invention
Fig. 1 is the network topological diagram of Smart Link in the prior art;
Fig. 2 is the flow diagram of the method for the selection port in the embodiment of the present invention;
Fig. 3 is the network topological diagram of the Smart Link in the embodiment of the present invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to various embodiments shown in the accompanying drawings.But these embodiments are not
The limitation present invention, structure that those skilled in the art are made according to these embodiments, method or change functionally
It changes and is included within the scope of protection of the present invention.
For the disadvantage in existing Smart Link agreement, in the present invention, same Smart Link group can be comprising extremely
Few three ports, and each port is both provided with priority, and does not repartition Primary port and secondary port.It is understood that
It is that the priority of each port can be set by the user, it can also be by processor sets itself, for example, the port that bandwidth is higher
Priority it is higher, the priority for perhaps postponing shorter port is more high or during long-term operation, processor
The performance of each port is monitored, so that the priority of the higher port of performance is higher.
In the present invention, port can be ethernet port (power port or optical port), be also possible to aggregation interface;And port
Failure can be:(1) port status switchs to DOWN, i.e., port shutdown, break down, for example, the cable that port is connected is unplugged
Perhaps administrator is held using the artificial close port of shutdown order or by the another port being connected with the port
Capable agreement is different or certification is not by closing, or since clock frequency is not closed pair, and the clock at port both ends is not
Match and closes;(2) Ethernet OAM (Operation, Administration, Maintenance, Operations, Administration and Maintenance) event
Barrier.
The embodiment of the invention provides a kind of method for the selection port in Smart Link group, the Smart
Link group includes at least three ports, and every Single port is both provided with priority;In the friendship for being configured with Smart Link agreement
It changes planes when starting, needs that a port is selected to send data, the embodiment of the present invention as forwarding port, and by the forwarding port
In the method for selection port be exactly to complete this function.For example, the method for the selection port can be handed over by the 5th in Fig. 3
The processor changed planes in 5 executes, which can be the module of hardware module, software module or soft or hard combination.
As shown in Fig. 2, the method for the selection port includes the following steps:
Step 201:When state at least three port meets preset condition or receives the instruction of selection port,
It selects and does not break down and the pre- enabling port of highest priority from least three port;
Here, the journey for realizing Smart Link agreement can be provided in the interchanger configured with Smart Link agreement
Sequence, it is to be understood that in interchanger starting, which can be also performed, and the method for the selection port will be by this time
It executes, namely receives the instruction of selection port.In the implementation procedure of the interchanger, the state of port is also possible to become
Change, for example, forwarding port failure or certain port become normal condition etc. by malfunction, these are likely to lead
Port switching is caused, therefore, when these conditions are met, then the state of port meets preset condition.
Here, interchanger can first detect the state of all of the port, and therefrom select that there is no failures
Port, then select from these ports highest priority as enabling port in advance.It is understood that at least three end
In mouthful, the priority of possible all of the port is different from, it is also possible to which there are the priority of section ports is identical;Therefore, if choosing
When the port number for the highest priority selected out is multiple, need that Single port is therefrom selected to enable port as pre-, for example, selection
Either port.
Step 202:Forwarding state is set by the pre- enabling port, remaining port at least three port is set
It is set to armed state.Here, after the pre- enabling port is set as forwarding state, data will be sent out from the pre- enabling port
It goes.It is understood that usually there is highest performance, so as to guarantee due to the highest priority for enabling port in advance
Data are sent in time, quickly.
Here, in scene shown in Fig. 3, first port 51, second port 52, third are provided in the 5th interchanger 5
Port 53 and the 4th port 54, it is assumed that the priority > third port 53 of the priority > second port 52 of first port 51
The priority of the 4th port 54 priority >.In practical applications, integer can be used to indicate priority, for example, numerical value is got over
Big priority is higher, can also be higher with the smaller priority of numerical value.
In the method implementation procedure of selection port in embodiments of the present invention, if the first, second, third and fourth end
All there is no failures for mouth, then can select first port 51 as pre- and enable port;If first port 51 breaks down, and
All there is no failures for second, third and the 4th port, then can select second port 52 as pre- and enable port.
In conclusion the method for selection port in embodiments of the present invention, Smart Link group includes several ports,
When needing selection port, the method for the selection port can select highest priority from all of the port and not break down
Port as new forwarding port.It is understood that in several ports, as long as thering is some or certain port not to send out
Raw failure, the method for the selection port can ensure that the smooth of network, to improve the reliability of Smart Link network.
Preferably, the state of at least three port meets preset condition, including:Event occurs detecting forwarding port
When barrier, meet preset condition.It is understood that once forwarding port failure, then interchanger can not just send data, this
When, the method for needing to be implemented the selection port, and data are sent using new forwarding port.
Here, in scene shown in Fig. 3, first port 51, second port 52, third are provided in the 5th interchanger 5
Port 53 and the 4th port 54, it is assumed that the priority > third port 53 of the priority > second port 52 of first port 51
The priority of the 4th port 54 priority >.
Assuming that first port 51 is forwarding port sometime, the 5th interchanger 5 detects first port 51 and event occurs
Barrier, data can not be sent to purpose network by first port 51;5th interchanger 5 can first find out the end that do not break down
Mouthful, for example, finding the port that do not break down and including:Second, third and the 4th port, and it is excellent due to second port 52
First grade highest, then enabling port in advance is second port 52;5th interchanger 5 starts second port 52, and first port 51 is arranged
It, will for armed state (since remaining port is standby, can only change the state of first port 51)
Second port 52 is set as forwarding state, and data can be sent to purpose network 6 from second port 52 later.
In operational process later, it is assumed that second port 52 breaks down, and the 5th interchanger 5 detects second port 52
It breaks down, data can not be sent to purpose network by second port 52;The port that do not break down, example can first be found out
Such as, finding the port that do not break down includes:Third, the 4th port are then opened in advance due to the highest priority of third port 53
It is third port 53 with port;Later, start third port 53, set armed state (due to remaining end for second port 52
Mouth is standby, therefore, can only change the state of second port 52), third port 53 is set as forwarding
State, data can be forwarded to purpose network 6 from third port 53 later.
Later, engineer is fixed first port 51 and second port 52.In operational process later, it is assumed that third
Port 53 is broken down, then in step 201, detects third port 53 and break down, data can not pass through third port 53
It is sent to purpose network;5th interchanger 5 can first find out the port that do not break down, not break down for example, finding
Port include:First, second and the 4th port, due to the highest priority of first port 51, then enabling port in advance is first
Port 51;Later, start first port 51, by third port 53 be set as armed state (due to remaining port be in
Therefore life state can only change the state of third port 53), forwarding state is set by first port 51, later data
Purpose network 6 can be sent to from first port 51.
Preferably, the state of at least three port meets preset condition, including:Port blocked is being detected by failure
When the priority that state becomes normal condition and port blocked is greater than the priority of forwarding port, meet preset condition.Here,
Assuming that first, second port has occurred and that failure in scene shown in Fig. 3, forwarding port at this time is third port 53, it
Afterwards, engineer is fixed first port 51 and second port 52.Detecting first port 51 becomes normal shape from malfunction
State;The priority that 5th interchanger 5 inquires first port 51 is greater than the priority of third port 53, and third port 53 is arranged
It, will for armed state (since remaining port is standby, can only change the state of third port 53)
First port 51 is set as forwarding state, and data can be sent to purpose network 6 from first port 51 later.
Preferably, further comprising the steps of:It sends for updating MAC (Media Access Control, media interviews control
System) address repeat listing and ARP (Address Resolution Protocol, address resolution protocol) list item FLUSH report
Text.Here it is possible to understand, since link has occurred that switching, original forwarding-table item has been no longer desirable for
New network topology needs to carry out whole network the update of mac address forwarding table item and ARP entry.It needs to send FLUSH
Message.
Preferably, described to set forwarding state for the pre- enabling port, including:It sets the pre- enabling port to
Forwarding state, and flow is switched to the pre- enabling port.
The embodiment of the present invention has been also provided to a kind of device for the selection port in Smart Link group, described
Smart Link group includes at least three ports, and every Single port is both provided with priority;It comprises the following modules:
Selecting module meets preset condition for the state at least three port or receives the finger of selection port
When enabling, selects and do not break down and the pre- enabling port of highest priority from least three port;
Switching module, for setting forwarding state for the pre- enabling port, remaining at least three port
Port is set as armed state.
Preferably, the selecting module, is also used to:When detecting forwarding port failure, meet preset condition.
Preferably, the selecting module, is also used to:Detect port blocked from malfunction become normal condition and
When the priority of port blocked is greater than the priority of forwarding port, meet preset condition.
It preferably, further include with lower module:Topological update module, for send for update mac address forwarding table item and
The FLUSH message of ARP entry.
Preferably, the switching module, is also used to:Forwarding state is set by the pre- enabling port, and flow is cut
Change to the pre- enabling port.
It should be appreciated that although this specification is described in terms of embodiments, but not each embodiment only includes one
A independent technical solution, this description of the specification is merely for the sake of clarity, and those skilled in the art should will say
As a whole, the technical solution in each embodiment may also be suitably combined to form those skilled in the art can for bright book
With the other embodiments of understanding.
The series of detailed descriptions listed above only for feasible embodiment of the invention specifically
Protection scope bright, that they are not intended to limit the invention, it is all without departing from equivalent implementations made by technical spirit of the present invention
Or change should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of method for the selection port in Smart Link group, which is characterized in that the Smart Link group includes
There are at least three ports, and every Single port is both provided with priority;Include the following steps:
When state at least three port meets preset condition or receives the instruction of selection port, from described at least three
It selects and does not break down and the pre- enabling port of highest priority in a port;
Forwarding state is set by the pre- enabling port, remaining port at least three port is set as shape of awaiting orders
State.
2. the method for selection port according to claim 1, which is characterized in that the state of at least three port meets
Preset condition, including:
When detecting forwarding port failure, meet preset condition.
3. the method for selection port according to claim 1, which is characterized in that the state of at least three port meets
Preset condition, including:
The excellent of forwarding port is greater than from the priority that malfunction becomes normal condition and port blocked detecting port blocked
When first grade, meet preset condition.
4. the method for selection port according to claim 1, which is characterized in that further comprising the steps of:
Send the FLUSH message for updating mac address forwarding table item and ARP entry.
5. the method for selection port according to claim 1, which is characterized in that described to set the pre- enabling port to
Forwarding state, including:
Forwarding state is set by the pre- enabling port, and flow is switched to the pre- enabling port.
6. a kind of device for the selection port in Smart Link group, which is characterized in that the Smart Link group includes
There are at least three ports, and every Single port is both provided with priority;It comprises the following modules:
Selecting module meets preset condition for the state at least three port or receives the instruction of selection port
When, it selects and does not break down and the pre- enabling port of highest priority from least three port;
Switching module, for setting forwarding state for the pre- enabling port, remaining port at least three port
It is set as armed state.
7. the device of selection port according to claim 6, which is characterized in that the selecting module is also used to:
When detecting forwarding port failure, meet preset condition.
8. the device of selection port according to claim 6, which is characterized in that the selecting module is also used to:
The excellent of forwarding port is greater than from the priority that malfunction becomes normal condition and port blocked detecting port blocked
When first grade, meet preset condition.
9. the device of selection port according to claim 6, which is characterized in that further include with lower module:
Topological update module, for sending the FLUSH message for updating mac address forwarding table item and ARP entry.
10. the device of selection port according to claim 6, which is characterized in that the switching module is also used to:
Forwarding state is set by the pre- enabling port, and flow is switched to the pre- enabling port.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811060552.6A CN108881070A (en) | 2018-09-12 | 2018-09-12 | Method and apparatus for the selection port in Smart Link group |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811060552.6A CN108881070A (en) | 2018-09-12 | 2018-09-12 | Method and apparatus for the selection port in Smart Link group |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108881070A true CN108881070A (en) | 2018-11-23 |
Family
ID=64323731
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811060552.6A Withdrawn CN108881070A (en) | 2018-09-12 | 2018-09-12 | Method and apparatus for the selection port in Smart Link group |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108881070A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115460125A (en) * | 2022-09-05 | 2022-12-09 | 苏州盛科通信股份有限公司 | Method and device for solving islanding problem in Multi-Link network |
CN116346585A (en) * | 2023-03-13 | 2023-06-27 | 北京腾达泰源科技有限公司 | Cloud-protogenesis-based network fault self-repairing method and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040190454A1 (en) * | 2002-12-19 | 2004-09-30 | Anritsu Corporation | Mesh network bridges making operable spanning tree protocol and line fault backup protocol in optimized forwarding environment |
CN1842020A (en) * | 2005-03-28 | 2006-10-04 | 华为技术有限公司 | Method for realizing data service backup |
CN102255750A (en) * | 2011-06-28 | 2011-11-23 | 中兴通讯股份有限公司 | Method and device for service disaster recovery protection |
CN103001787A (en) * | 2011-09-16 | 2013-03-27 | 中国银联股份有限公司 | System and method for disaster recovery backup of data processing center |
-
2018
- 2018-09-12 CN CN201811060552.6A patent/CN108881070A/en not_active Withdrawn
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040190454A1 (en) * | 2002-12-19 | 2004-09-30 | Anritsu Corporation | Mesh network bridges making operable spanning tree protocol and line fault backup protocol in optimized forwarding environment |
CN1842020A (en) * | 2005-03-28 | 2006-10-04 | 华为技术有限公司 | Method for realizing data service backup |
CN102255750A (en) * | 2011-06-28 | 2011-11-23 | 中兴通讯股份有限公司 | Method and device for service disaster recovery protection |
CN103001787A (en) * | 2011-09-16 | 2013-03-27 | 中国银联股份有限公司 | System and method for disaster recovery backup of data processing center |
Non-Patent Citations (1)
Title |
---|
佚名: "H3C--smartlink技术原理及配置指导", 《百度文库》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115460125A (en) * | 2022-09-05 | 2022-12-09 | 苏州盛科通信股份有限公司 | Method and device for solving islanding problem in Multi-Link network |
CN116346585A (en) * | 2023-03-13 | 2023-06-27 | 北京腾达泰源科技有限公司 | Cloud-protogenesis-based network fault self-repairing method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101557313B (en) | Method for protecting uplink plate card of carrier-grade broadband access equipment | |
JP5941404B2 (en) | Communication system, path switching method, and communication apparatus | |
CN103607293B (en) | A kind of flow rate protecting method and equipment | |
CN105656645B (en) | The decision-making technique and device of the troubleshooting of stacking system | |
JP5883743B2 (en) | Method for reducing communication interruption time in packet communication networks | |
CN102546222A (en) | Backup system and fault detection and processing method | |
CN103944746A (en) | Hot standby method and device | |
CN106059793A (en) | Router information processing method and apparatus based on graceful restart | |
CN103227725A (en) | Method and device for dual-server backup of firewall | |
CN106789521B (en) | A kind of ring network fault reverse method and link point | |
CN103856357A (en) | Stack system fault processing method and stack system | |
CN102209008A (en) | Multi-activation detection method and device used for intelligent elastic framework | |
JP2008167315A (en) | Redundant line connecting method and wide-area communication network node device | |
CN108881070A (en) | Method and apparatus for the selection port in Smart Link group | |
CN108989204B (en) | Link state determination method and device | |
CN109194592B (en) | Method and system for solving island problem in multi-link network | |
CN108282406B (en) | Data transmission method, stacking equipment and stacking system | |
CN112995002B (en) | Switch ring network design method, switch and storage medium | |
CN104702498A (en) | Method and device for reducing the number of optical connections through coordination protection | |
CN110011912A (en) | Case type switching equipment uplink switching method and device | |
KR101563133B1 (en) | System and method for virtual circuit protection in the dynamic multi-domain environment | |
CN108337162B (en) | System and method for supporting dual-homing protection | |
CN103840965B (en) | Method for enhancing quick fault convergence in RSTP | |
CN106533771A (en) | Network device and control information transmission method | |
CN107124316B (en) | Hardware based quick switching action implementation method in a kind of data communications equipment |
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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20181123 |