CN101599906B - Method and device for setting port state - Google Patents

Method and device for setting port state Download PDF

Info

Publication number
CN101599906B
CN101599906B CN2009101522597A CN200910152259A CN101599906B CN 101599906 B CN101599906 B CN 101599906B CN 2009101522597 A CN2009101522597 A CN 2009101522597A CN 200910152259 A CN200910152259 A CN 200910152259A CN 101599906 B CN101599906 B CN 101599906B
Authority
CN
China
Prior art keywords
port
state
local
member device
activation
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.)
Active
Application number
CN2009101522597A
Other languages
Chinese (zh)
Other versions
CN101599906A (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 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 CN2009101522597A priority Critical patent/CN101599906B/en
Publication of CN101599906A publication Critical patent/CN101599906A/en
Application granted granted Critical
Publication of CN101599906B publication Critical patent/CN101599906B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Massaging Devices (AREA)

Abstract

The invention discloses a method for setting a port state, which is applied in a stack system comprising at least two member devices. Each stack opening of the member devices comprises a plurality of member ports. The method comprises the following steps that: a first member device sends stack protocol message from a local member port in an active state to a second member device in turn, and periodically detects request message from the local member port in an inactive state to a sending port of the second member device; and the first member device switches the local member port in the active state into the non-active state according to the message receiving condition of the local member port, or switches the local member port in the inactive state into the active state. In the method and the device, as long as the connection of all member ports and an opposite end device is interrupted, the stack does not scatter so as to improve the reliability of the stack system.

Description

Method and device that port status is provided with
Technical field
The present invention relates to communication technical field, relate in particular to method and device that a kind of port status is provided with.
Background technology
Pile up (Stack) and typically refer to a management domain of forming by some Ethernet switches that links to each other through stacking opening; Many Ethernet switches that are stacked can be used as an equipment and use, and the user can realize the management to all switches in piling up through a switch wherein.
IRF (Intelligent Resilient Framework, intelligent resilient infrastructure) a kind ofly piles up multiple devices to invent the technology that an equipment is managed and used.As shown in Figure 1, the user realizes the management to all devices in piling up through the management of virtual unit during IRF is piled up.Form each equipment pile up during IRF piles up and be called member device, member device is different according to function, can be divided into Master (master) equipment and Slave (from) equipment.Wherein, Master equipment is in charge of whole piling up, and one is piled up middle synchronization and can only have a member device to become Master equipment.Slave equipment is under the jurisdiction of Master equipment, can have many, as the operation of the alternate device of Master equipment, when the Master equipment fault, can produce new whole the piling up of Master equipment control in the Slave equipment automatically.
Connect through stacking opening between the member device during IRF piles up.Every member device can be provided with two stacking opening, is called stacking opening 1 and stacking opening 2 respectively, must be that the stacking opening 1 of first member device and the stacking opening 2 of second member device link to each other between adjacent two member devices.The stacking opening of member device was formed by the physical port configuration during IRF piled up, and this physical port can be called member port.The corresponding member port of stacking opening possibility also possibly be made up of to reach the effect of link backup/load sharing a plurality of member ports.When connecting through stacking opening between the member device, be actually between the member port of stacking opening and connect through piling up line.Piling up line can be industrial siding, and also can be optical fiber: industrial siding has higher reliability and performance; Optical fiber can be used more flexible be connected to become a virtual unit apart from far physical equipment.Wherein, interconnective two member devices are the opposite end member device each other, and the member port that member device is connected with the opposite end member device is the opposite end member port each other.
In the prior art; Adopt following method that the connection state of member port is detected between the member device: when certain member device in the IRF networking and the foundation of opposite end member device pile up be connected after; Can selected a certain member port periodically send to the opposite end member device and pile up agreement (STM) message, and receive the protocol massages that piles up from the master port of opposite end member device through self member port as master port.If in the regular hour threshold value, for example in the 10s, member device does not receive the protocol massages that piles up from the opposite end member device, then link failure occurs between judgement and the opposite end member device, breaks off being connected with piling up of opposite equip., piles up and scatters.
In the prior art; Only send to the opposite end between the member device and pile up protocol massages through master port; When master port place pile up line failure the time, can cause piling up protocol massages and can't successfully send to the opposite end, even the connection state of other member port between the member device is normal; Also can cause piling up scattering, reduce the reliability of IRF pile system.
Summary of the invention
The invention provides method and device that a kind of port status is provided with, improved the reliability of pile system.
The invention provides the method that a kind of port status is provided with, be applied to comprise that in the pile system of at least two member devices, each stacking opening of said member device comprises several member ports, said method comprising the steps of:
First member device sends to second member device from the local member port that is in state of activation successively and piles up protocol massages, and periodically detects request message from the local member port that is in unactivated state to the said second member device transmit port;
Said first member device receives the local member port that situation will be in state of activation according to the message of local member port and switches to unactivated state, and the local member port that perhaps will be in unactivated state switches to state of activation;
Wherein, if said first member device detects request message from the port that the local member port that is in unactivated state receives from said second member device, then detect response message to the said second member device transmit port through this member port.
Wherein, said first member device receives local member port that situation will be in state of activation according to the message of local member port and switches to unactivated state and comprise:
If in the time threshold of setting; Said first member device does not receive the protocol massages that piles up from said second member device from the local member port that is in state of activation, then this local member port that is in state of activation is switched to unactivated state.
Wherein, said first member device receives local member port that situation will be in state of activation according to the message of local member port and switches to unactivated state and comprise:
If said first member device detects request message from the port that the local member port that is in state of activation receives from said second member device, then this local member port that is in state of activation is switched to unactivated state.
Wherein, said port from said second member device detect request message be local member port by said second member device after switching to unactivated state, periodically send to the corresponding local member port of said first member device.
Wherein, said first member device receives local member port that situation will be in unactivated state according to the message of local member port and switches to state of activation and comprise:
If said first member device detects response message from the port that the local member port that is in unactivated state receives from said second member device; The said local member port that is in unactivated state is switched to state of activation, and detect the recovery message to the said second member device transmit port through this member port.
Wherein, The port of said second member device detect response message be the local member port that is in unactivated state by said second member device after the port of receiving said first member device detects request message, send to the corresponding local member port of said first member device.
Wherein, said first member device receives local member port that situation will be in unactivated state according to the message of local member port and switches to state of activation and comprise:
If said first member device detects the recovery message from the port that the local member port that is in unactivated state receives from said second member device, the said local member port that is in unactivated state is switched to state of activation.
Wherein, The port of said second member device detect recover message be the local member port that is in unactivated state by said second member device after the port that the local member port that receives first member device sends detects response message, send to the corresponding local member port of said first member device;
Wherein, If the local member port that is in unactivated state of said second member device receives the port detection response message that the local member port of first member device sends, the local member port that is in unactivated state of then said second member device switches to state of activation.
Wherein, the said protocol massages that piles up is the protocol massages that hop-by-hop transmits, hop-by-hop transmission between the member device of said pile system.
The present invention also provides a kind of stack device, is applied in the pile system as member device, comprises transceiver module and state setting module, wherein,
Said transceiver module is used for sending to the opposite end member device from the local member port that is in state of activation successively piling up protocol massages; And periodically detect request message to opposite end member device transmit port from the local member port that is in unactivated state; Receive message from local member port from the opposite end member device; Wherein, said transceiver module also is used for detecting response message through this member port to opposite end member device transmit port if the port that receives from the opposite end member device from the local member port that is in unactivated state detects request message;
Said state setting module; Be connected with said transceiver module; Be used for receiving the local member port that situation will be in state of activation according to the message of said transceiver module and switch to unactivated state, the local member port that perhaps will be in unactivated state switches to state of activation.
Wherein, if said transceiver module does not receive the protocol massages that piles up from the opposite end member device from the local member port that is in state of activation in the time threshold of setting;
Said state setting module, the local member port that specifically is used for this is in state of activation switches to unactivated state.
Wherein, if said transceiver module detects request message from the port that the local member port that is in state of activation receives from the opposite end member device; Said port from the opposite end member device detect request message be local member port by said opposite end member device after switching to unactivated state, periodically send to the corresponding local member port of this member device;
Said state setting module, the local member port that specifically is used for this is in state of activation switches to unactivated state.
Wherein, if said transceiver module detects response message from the port that the local member port that is in unactivated state receives from the opposite end member device; The port of said opposite end member device detect response message be the local member port that is in unactivated state by said opposite end member device after the port of receiving this member device detects request message, send to the corresponding local member port of this member device;
Said state setting module, the local member port that specifically is used for this is in unactivated state switches to state of activation;
Said transceiver module also is used for detecting the recovery message through this member port to opposite end member device transmit port.
Wherein, if said receiver module detects the recovery message from the port that the local member port that is in unactivated state receives from the opposite end member device; The port of said opposite end member device detect recover message be the local member port that is in unactivated state by said opposite end member device after the port that the local member port that receives this member device sends detects response message, send to the corresponding local member port of this member device; Wherein, If the local member port that is in unactivated state of said opposite end member device receives the port detection response message that the local member port of this member device sends, the local member port that is in unactivated state of then said opposite end member device switches to state of activation;
Said state setting module, the local member port that specifically is used for this is in unactivated state switches to state of activation.
Wherein, it is characterized in that said transceiver module also is used for detecting response message through this member port to opposite end member device transmit port if the port that receives from the opposite end member device from the local member port that is in unactivated state detects request message.
Among the present invention; Member device sends to the opposite end member device from the local member port that is in state of activation successively and piles up protocol massages to carry out the connection state detection; Compare in the prior art and only send the method for piling up protocol massages from master port; So long as not interrupting all member ports and being connected all of opposite equip., just pile up and can not scatter, improved the reliability of pile system.And, through the message reception condition of monitoring each member port the state of member port is set, effective isolation faulty link, further improved the reliability of pile system.
Description of drawings
Fig. 1 is the structural representation of IRF in the prior art;
Fig. 2 is the method flow diagram that port status provided by the invention is provided with;
Fig. 3 is the flow chart of the port status method to set up that provides of the present invention's one application scenarios;
Fig. 4 is the flow chart of the port status method to set up that provides of Another Application scene of the present invention;
Fig. 5 is the structural representation of stack device provided by the invention.
Embodiment
The method that the present invention mainly provides a kind of port status to be provided with; Main thought is: member device sends to the opposite end member device from the local member port that is in state of activation successively and piles up protocol massages to carry out the connection state detection; Compare in the prior art and only send the method for piling up protocol massages from master port; So long as not interrupting all member ports and being connected all of opposite equip., just pile up and can not scatter, improved the reliability of pile system.And, through the message reception condition of monitoring each member port the state of member port is set, effective isolation faulty link, further improved the reliability of pile system.
The present invention proposes the method that a kind of port status is provided with, be applied to comprise that in the pile system of at least one member device, each stacking opening of said member device comprises several member ports, said method is as shown in Figure 2, may further comprise the steps:
Step 201; First member device sends to second member device from the local member port that is in activation (Active) state successively and piles up protocol massages, periodically detects request message from the local member port that is in non-activation (Inactive) state to the second member device transmit port.
Step 202, first member device receives the local member port that situation will be in state of activation according to the message of local member port and switches to unactivated state, and the local member port that perhaps will be in unactivated state switches to state of activation.
The protocol massages that piles up among the present invention is the protocol massages that hop-by-hop transmits, hop-by-hop transmission between the member device of pile system, and have retransmission mechanism.
Concrete, under following two kinds of situation, first member device can switch to unactivated state with the local member port that is in state of activation:
1. if in the time threshold of setting, first member device does not receive the protocol massages that piles up from second member device from the local member port that is in state of activation, then this local member port that is in state of activation is switched to unactivated state.
2. if first member device detects request message from the port that the local member port that is in state of activation receives from second member device, then this local member port that is in state of activation is switched to unactivated state.
Concrete, under following two kinds of situation, first member device can switch to state of activation with the local member port that is in unactivated state:
1. if first member device detects response message from the port that the local member port that is in unactivated state receives from second member device; The local member port that will be in unactivated state switches to state of activation, and detects the recovery message through this member port to the second member device transmit port.
2. if first member device detects the recovery message from the port that the local member port that is in unactivated state receives from second member device, the local member port that will be in unactivated state switches to state of activation.
In addition, if first member device detects request message from the port that the local member port that is in unactivated state receives from second member device, then need detect response message to the said second member device transmit port through this member port.
Below in conjunction with a concrete application scenarios the present invention is introduced., should use in the scene for the IRF system is an example with the stack equipment, A equipment and B equipment is the opposite end member device each other, comprises 3 member ports on the stacking opening 1 of A equipment, is respectively a, b and c, comprises 3 member ports on the stacking opening 2 of B equipment, is respectively d, e and f.The member port a of A equipment is connected through piling up line with the member port d of B equipment, and the member port b of A equipment is connected through piling up line with the member port e of B equipment, and the member port c of A equipment is connected through piling up line with the member port f of B equipment.Under the initial condition, member port a and d, b and e; The connection state of c and f is all normal, and member port a, b and the c of A equipment are in state of activation, and member port d, e and the f of B equipment also are in state of activation; At a time, member port b breaks down to the one way link of e, and member port e is normal to the one way link of b; As shown in Figure 3, the method for port status setting provided by the invention may further comprise the steps:
Step 300, member port a and d, b and e, the connection state of c and f is all normal, and member port a, b and the c of A equipment are in state of activation, and member port d, e and the f of B equipment also are in state of activation.
Step 301, A equipment are successively through member port a, and b and c send to B equipment and pile up protocol massages, and B equipment is successively through member port d, and e and f send to A equipment and pile up protocol massages.
Step 302, A equipment and B equipment are counted the protocol massages that piles up that member port receives respectively, and are provided with according to the state of counting situation to member port.A equipment is respectively to from member port a; The protocol massages that piles up that b and c receive is counted, and according to the counting situation to member port a, the state of b and c is provided with; B equipment is respectively to from member port d; The protocol massages that piles up that e and f receive is counted, and according to the counting situation to member port d, the state of e and f is provided with.
Concrete; A equipment need preestablish a time threshold; If in this time threshold scope; Receive to such an extent that pile up the not growth of protocol massages number from certain member port, then explanation connects the link occurs fault of this member port and opposite equip. member port, and A equipment needs this member port is switched to unactivated state from state of activation.
Should use in the scene; At a time; Member port b breaks down to the one way link of e, and then A equipment increases from the protocol massages number average that piles up that member port a and c receive in the time threshold of setting, and piles up the protocol massages number less than growth from what member port b received; Then A equipment need switch to unactivated state by state of activation with the state of member port b, and stops to pile up protocol massages and business datum by member port b to the transmission of B equipment.
Should use in the scene, B equipment is all normal to the one way link of A equipment, and then in the time threshold of setting, B equipment is from member port d, and the protocol massages number average that piles up that e and f receive increases, member port d, and the state of e and f is state of activation.
Step 303, A equipment detects request message from the local member port that is in unactivated state to B equipment transmit port.
Should use in the scene, the state of A equipment member port b switches to unactivated state by state of activation, and then A equipment need detect request message to the transmit port of B equipment periodic property from member port b.
The state that step 304, B equipment will receive the member port of port detection request message switches to unactivated state from state of activation, and detects request message from this member port to the transmit port of A equipment periodic property.And B equipment receives that whenever the port of an A equipment detects request message, just detects response message to port of A device replied immediately.
Should use in the scene; B equipment can detect request message from the port that member port e receives from A equipment; Then B equipment need switch to unactivated state from state of activation with the state of member port e, and detects request message from member port e to the transmit port of A equipment periodic property, and; B equipment whenever receives that through member port e a port detects request message, just sends a port from member port e to A equipment immediately and detects response message.
After above-mentioned steps is finished; If member port e can't recover normal to the one way link of member port b always; Then A equipment can detect request message through member port b to B equipment transmit port always; B equipment can detect request message through member port e to A equipment transmit port always, and receives that whenever a port detects request message and just detects response message from member port e to port of A equipment transmission immediately.Member port b and member port e can be in unactivated state always.If a certain moment, member port e recovers normal to the one way link of member port b, and the method that then said port status is provided with is further comprising the steps of:
Step 305, A equipment detects response message from the port that the local member port that is in unactivated state receives from B equipment, and this port is switched to state of activation from unactivated state, and detects the recovery message through this port to B equipment transmit port.
Should use in the scene; A equipment can detect response message from the port that member port b receives from B equipment; Afterwards, A equipment can switch to state of activation from unactivated state with the state of member port b, and detects the recovery message through member port b to B equipment transmit port.
Step 306, B equipment detects the recovery message from the port that the local member port that is in unactivated state receives from A equipment, and this port is switched to state of activation from unactivated state.
Should use in the scene, B equipment can detect response message from the port that member port e receives from A equipment, and afterwards, B equipment can switch to state of activation from unactivated state with the state of member port e.
After the member port b of A equipment and the member port e of B equipment switch back state of activation; A equipment and B equipment can add the route between b and e again in forwarding-table item, and pile up protocol massages through the member port that is in state of activation to the other side's transmission according to the order of setting.
Below in conjunction with another concrete application scenarios the present invention is introduced.Should use in the scene, A equipment and B equipment is the opposite end member device each other, comprises 3 member ports on the stacking opening 1 of A equipment, is respectively a, b and c, comprises 3 member ports on the stacking opening 2 of B equipment, is respectively d, e and f.The member port a of A equipment is connected through piling up line with the member port b of B equipment, and the member port b of A equipment is connected through piling up line with the member port e of B equipment, and the member port c of A equipment is connected through piling up line with the member port f of B equipment.Under the initial condition, member port a and d, b and e; The connection state of c and f is all normal, and member port a, b and the c of A equipment are in state of activation, and member port d, e and the f of B equipment also are in state of activation; At a time, the two-way link between member port b and e breaks down, and promptly member's port b breaks down to the one way link of e; Member port e also breaks down to the one way link of b, and is as shown in Figure 4, and the method for port status setting provided by the invention may further comprise the steps:
Step 400, member port a and d, b and e, the connection state of c and f is all normal, and member port a, b and the c of A equipment are in state of activation, and member port d, e and the f of B equipment also are in state of activation.
Step 401, A equipment are successively through member port a, and b and c send to B equipment and pile up protocol massages, and B equipment is successively through member port d, and e and f send to A equipment and pile up protocol massages.
Step 402, A equipment and B equipment are counted the protocol massages that piles up that member port receives respectively, and are provided with according to the state of counting situation to member port.A equipment is respectively to from member port a; The protocol massages that piles up that b and c receive is counted, and according to the counting situation to member port a, the state of b and c is provided with; B equipment is respectively to from member port d; The protocol massages that piles up that e and f receive is counted, and according to the counting situation to member port d, the state of e and f is provided with.
Should use in the scene; At a time; Two-way link between member port b and e breaks down, and A equipment increases from the protocol massages number average that piles up that member port a and c receive in the time threshold of setting, and piles up the protocol massages number less than growth from what member port b received; Then A equipment need switch to unactivated state by state of activation with the state of member port b, and stops to pile up protocol massages and business datum by member port b to the transmission of B equipment.
Accordingly; B equipment piles up a protocol massages number average growth from what member port d and f received in the time threshold of setting; The protocol massages number of piling up that receives from member port e does not increase; Then A equipment need switch to unactivated state by state of activation with the state of member port e, and stops to pile up protocol massages and business datum by member port e to the transmission of A equipment.
Step 403, A equipment detects request message from the local member port that is in unactivated state to B equipment transmit port, and B equipment detects request message from the local member port that is in unactivated state to A equipment transmit port.
Should use in the scene, the state of the member port b of A equipment switches to unactivated state by state of activation, and then A equipment need detect request message to the transmit port of B equipment periodic property from member port b.
Accordingly, the state of the member port e of B equipment switches to unactivated state by state of activation, and then B equipment need detect request message to the transmit port of A equipment periodic property from member port e.
After above-mentioned steps is finished; If the link of member port e and member port b can't recover normal always; Then A equipment can detect request message through member port b to B equipment transmit port always, and B equipment also can detect request message through member port e to A equipment transmit port always.Member port b and member port e can be in unactivated state always.If a certain moment, member port b recovers normal to the one way link of member port e, and the method that then said port status is provided with is further comprising the steps of:
Step 404, B equipment detects response message from the member port that receives port detection request message to A device replied port.
Should use in the scene, B equipment can detect request message from the port that member port e receives from A equipment, and then B equipment need detect response message to A equipment transmit port from member port e.
After above-mentioned steps is finished; If member port e can't recover normal to the one way link of member port b always; Then A equipment can detect request message through member port b to B equipment transmit port always, and B equipment can detect response message through member port e to A equipment transmit port always.Member port b and member port e can be in unactivated state always.If a certain moment, member port e recovers normal to the one way link of member port b, and the method that then said port status is provided with is further comprising the steps of:
Step 405, A equipment detects response message from the port that the local member port that is in unactivated state receives from B equipment, and this port is switched to state of activation from unactivated state, and detects the recovery message through this port to B equipment transmit port.
Should use in the scene; A equipment can detect response message from the port that member port b receives from B equipment; Afterwards, A equipment can switch to state of activation from unactivated state with the state of member port b, and detects the recovery message through member port b to B equipment transmit port.
Step 406, B equipment detects the recovery message from the port that the local member port that is in unactivated state receives from A equipment, and this port is switched to state of activation from unactivated state.
Should use in the scene, B equipment can detect response message from the port that member port e receives from A equipment, and afterwards, B equipment can switch to state of activation from unactivated state with the state of member port e.
After the member port b of A equipment and the member port e of B equipment switch back state of activation; A equipment and B equipment can add the route between b and e again in forwarding-table item, and pile up protocol massages through the member port that is in state of activation to the other side's transmission according to the order of setting.
The invention provides a kind of stack device corresponding, be arranged in pile system as member device with the inventive method, as shown in Figure 5, comprise transceiver module 501 and state setting module 502, wherein,
Transceiver module 501 is used for sending to the opposite end member device from the local member port that is in state of activation successively piling up protocol massages; Periodically detect request message to opposite end member device transmit port from the local member port that is in unactivated state; Receive message from local member port from the opposite end member device;
State setting module 502; Be connected with transceiver module 501; Be used for receiving the local member port that situation will be in state of activation according to the message of transceiver module 501 and switch to unactivated state, the local member port that perhaps will be in unactivated state switches to state of activation.
Wherein, if transceiver module 501 does not receive the protocol massages that piles up from the opposite end member device from the local member port that is in state of activation in the time threshold of setting;
State setting module 502, the local member port that specifically is used for this is in state of activation switches to unactivated state.
Wherein, if transceiver module 501 detects request message from the port that the local member port that is in state of activation receives from the opposite end member device; Then state setting module 502, and the local member port that specifically is used for this is in state of activation switches to unactivated state.Above-mentioned port from the opposite end member device detect request message be local member port by the opposite end member device after switching to unactivated state, periodically send to the corresponding local member port of this member device.
Wherein, if transceiver module 501 detects response message from the port that the local member port that is in unactivated state receives from the opposite end member device; Then state setting module 502, and the local member port that specifically is used for this is in unactivated state switches to state of activation; Transceiver module 501 also is used for detecting the recovery message through this member port to opposite end member device transmit port.The port of above-mentioned opposite end member device detect response message be the local member port that is in unactivated state by the opposite end member device after the port of receiving this member device detects request message, send to the corresponding local member port of this member device;
Wherein, if transceiver module 501 detects the recovery message from the port that the local member port that is in unactivated state receives from the opposite end member device; Then state setting module 502, and the local member port that specifically is used for this is in unactivated state switches to state of activation.The port of above-mentioned opposite end member device detect recover message be the local member port that is in unactivated state by the opposite end member device after the port that the local member port that receives this member device sends detects response message, send to the corresponding local member port of this member device; Wherein, If the local member port that is in unactivated state of opposite end member device receives the port detection response message that the local member port of this member device sends, then the local member port that is in unactivated state of opposite end member device switches to state of activation.
Wherein, transceiver module 501 also is used for detecting response message through this member port to opposite end member device transmit port if the port that receives from the opposite end member device from the local member port that is in unactivated state detects request message.
Among the present invention; Member device sends to the opposite end member device from the local member port that is in state of activation successively and piles up protocol massages to carry out the connection state detection; Compare in the prior art and only send the method for piling up protocol massages from master port; So long as not interrupting all member ports and being connected all of opposite equip., just pile up and can not scatter, improved the reliability of pile system.And, through the message reception condition of monitoring each member port the state of member port is set, effective isolation faulty link, further improved the reliability of pile system.
Through the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode under a lot of situation.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words can be come out with the embodied of software product; This computer software product is stored in the storage medium; Comprise that some instructions are with so that a computer equipment (can be personal computer, server, perhaps network equipment etc.) is carried out method of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the sketch map of a preferred embodiment, module in the accompanying drawing or flow process might not be that embodiment of the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the present invention can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
More than disclosedly be merely several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.

Claims (14)

1. the method that is provided with of a port status is applied to comprise that in the pile system of at least two member devices, each stacking opening of said member device comprises several member ports, it is characterized in that, said method comprising the steps of:
First member device sends to second member device from the local member port that is in state of activation successively and piles up protocol massages, and periodically detects request message from the local member port that is in unactivated state to the said second member device transmit port;
Said first member device receives the local member port that situation will be in state of activation according to the message of local member port and switches to unactivated state, and the local member port that perhaps will be in unactivated state switches to state of activation;
Wherein, if said first member device detects request message from the port that the local member port that is in unactivated state receives from said second member device, then detect response message to the said second member device transmit port through this member port.
2. the method for claim 1 is characterized in that, said first member device receives local member port that situation will be in state of activation according to the message of local member port and switches to unactivated state and comprise:
If in the time threshold of setting; Said first member device does not receive the protocol massages that piles up from said second member device from the local member port that is in state of activation, then this local member port that is in state of activation is switched to unactivated state.
3. the method for claim 1 is characterized in that, said first member device receives local member port that situation will be in state of activation according to the message of local member port and switches to unactivated state and comprise:
If said first member device detects request message from the port that the local member port that is in state of activation receives from said second member device, then this local member port that is in state of activation is switched to unactivated state.
4. method as claimed in claim 3; It is characterized in that; Said port from said second member device detect request message be local member port by said second member device after switching to unactivated state, periodically send to the corresponding local member port of said first member device.
5. the method for claim 1 is characterized in that, said first member device receives local member port that situation will be in unactivated state according to the message of local member port and switches to state of activation and comprise:
If said first member device detects response message from the port that the local member port that is in unactivated state receives from said second member device; The said local member port that is in unactivated state is switched to state of activation, and detect the recovery message to the said second member device transmit port through this member port.
6. method as claimed in claim 5; It is characterized in that; The port of said second member device detect response message be the local member port that is in unactivated state by said second member device after the port of receiving said first member device detects request message, send to the corresponding local member port of said first member device.
7. the method for claim 1 is characterized in that, said first member device receives local member port that situation will be in unactivated state according to the message of local member port and switches to state of activation and comprise:
If said first member device detects the recovery message from the port that the local member port that is in unactivated state receives from said second member device, the said local member port that is in unactivated state is switched to state of activation.
8. method as claimed in claim 7; It is characterized in that; The port of said second member device detect recover message be the local member port that is in unactivated state by said second member device after the port that the local member port that receives first member device sends detects response message, send to the corresponding local member port of said first member device;
Wherein, If the local member port that is in unactivated state of said second member device receives the port detection response message that the local member port of first member device sends, the local member port that is in unactivated state of then said second member device switches to state of activation.
9. like each described method in the claim 1 to 8, it is characterized in that the said protocol massages that piles up is the protocol massages that hop-by-hop transmits, hop-by-hop transmission between the member device of said pile system.
10. a stack device is applied to it is characterized in that in the pile system as member device, comprises transceiver module and state setting module, wherein,
Said transceiver module is used for sending to the opposite end member device from the local member port that is in state of activation successively piling up protocol massages; And periodically detect request message to opposite end member device transmit port from the local member port that is in unactivated state; Receive message from local member port from the opposite end member device; Wherein, said transceiver module also is used for, if the port that receives from the opposite end member device from the local member port that is in unactivated state detects request message, detects response message through this member port to opposite end member device transmit port;
Said state setting module; Be connected with said transceiver module; Be used for receiving the local member port that situation will be in state of activation according to the message of said transceiver module and switch to unactivated state, the local member port that perhaps will be in unactivated state switches to state of activation.
11. device as claimed in claim 10 is characterized in that, if said transceiver module does not receive the protocol massages that piles up from the opposite end member device from the local member port that is in state of activation in the time threshold of setting;
Said state setting module, the local member port that specifically is used for this is in state of activation switches to unactivated state.
12. device as claimed in claim 10 is characterized in that, if said transceiver module detects request message from the port that the local member port that is in state of activation receives from the opposite end member device; Said port from the opposite end member device detect request message be local member port by said opposite end member device after switching to unactivated state, periodically send to the corresponding local member port of this member device;
Said state setting module, the local member port that specifically is used for this is in state of activation switches to unactivated state.
13. device as claimed in claim 10 is characterized in that, if said transceiver module detects response message from the port that the local member port that is in unactivated state receives from the opposite end member device; The port of said opposite end member device detect response message be the local member port that is in unactivated state by said opposite end member device after the port of receiving this member device detects request message, send to the corresponding local member port of this member device;
Said state setting module, the local member port that specifically is used for this is in unactivated state switches to state of activation;
Said transceiver module also is used for detecting the recovery message through this member port to opposite end member device transmit port.
14. device as claimed in claim 10 is characterized in that, if said receiver module detects the recovery message from the port that the local member port that is in unactivated state receives from the opposite end member device; The port of said opposite end member device detect recover message be the local member port that is in unactivated state by said opposite end member device after the port that the local member port that receives this member device sends detects response message, send to the corresponding local member port of this member device; Wherein, If the local member port that is in unactivated state of said opposite end member device receives the port detection response message that the local member port of this member device sends, the local member port that is in unactivated state of then said opposite end member device switches to state of activation;
Said state setting module, the local member port that specifically is used for this is in unactivated state switches to state of activation.
CN2009101522597A 2009-07-08 2009-07-08 Method and device for setting port state Active CN101599906B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101522597A CN101599906B (en) 2009-07-08 2009-07-08 Method and device for setting port state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101522597A CN101599906B (en) 2009-07-08 2009-07-08 Method and device for setting port state

Publications (2)

Publication Number Publication Date
CN101599906A CN101599906A (en) 2009-12-09
CN101599906B true CN101599906B (en) 2012-04-18

Family

ID=41421164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101522597A Active CN101599906B (en) 2009-07-08 2009-07-08 Method and device for setting port state

Country Status (1)

Country Link
CN (1) CN101599906B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102164056B (en) * 2011-03-17 2013-07-24 杭州华三通信技术有限公司 Stacked link aggregation fault detection method and stacked devices
CN102223297A (en) * 2011-06-03 2011-10-19 福建星网锐捷网络有限公司 Method, device and switching equipment for determining member port of virtual switching link (VSL)
CN103973560B (en) * 2013-02-04 2018-01-12 新华三技术有限公司 A kind of method and apparatus that link failure processing is stacked in IRF systems
CN103312429B (en) * 2013-06-08 2015-11-25 杭州华三通信技术有限公司 A kind of method for synchronizing time and device
CN104427012B (en) * 2013-09-04 2018-12-11 新华三技术有限公司 Port negotiation method and apparatus
CN103684857B (en) * 2013-12-02 2017-02-15 杭州华三通信技术有限公司 Method and device for setting working modes of member ports of stacking ports of switchboards

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1447562A (en) * 2002-03-22 2003-10-08 华为技术有限公司 Logic circuit of interface between bases and subordinates of VXI bus registers
CN1728688A (en) * 2004-07-29 2006-02-01 卓联半导体股份有限公司 Remote control of a switching node in a stack of switching nodes
CN1787516A (en) * 2004-12-10 2006-06-14 北京邮电大学 Novel ring network access controlling protocol
EP1727318A1 (en) * 2005-05-27 2006-11-29 Alcatel Facilitating computation of role and state information for multiple spanning tree instances

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1447562A (en) * 2002-03-22 2003-10-08 华为技术有限公司 Logic circuit of interface between bases and subordinates of VXI bus registers
CN1728688A (en) * 2004-07-29 2006-02-01 卓联半导体股份有限公司 Remote control of a switching node in a stack of switching nodes
CN1787516A (en) * 2004-12-10 2006-06-14 北京邮电大学 Novel ring network access controlling protocol
EP1727318A1 (en) * 2005-05-27 2006-11-29 Alcatel Facilitating computation of role and state information for multiple spanning tree instances

Also Published As

Publication number Publication date
CN101599906A (en) 2009-12-09

Similar Documents

Publication Publication Date Title
CN101094157B (en) Method for implementing network interconnection by using link aggregation
CN101599906B (en) Method and device for setting port state
CN102315975B (en) Fault processing method based on intelligent resilient framework (IRF) system and equipment thereof
CN101442484B (en) Method, system and equipment for detecting stacking multi-Active
EP2075974B1 (en) Method and apparatus for aggregating ports
CN102006184B (en) Management method, device and network device of stack link
CN101478435B (en) Topology collecting method for stacking system and dual control board equipment
CN101674208B (en) LACP MAD detection method and device thereof
CN100589408C (en) A communication network connection method and its device
CN102014019B (en) Aggregated link switching method and device
CN101217424B (en) A detecting method and device of aggregated link failures
CN102970157B (en) Link failure processing method, IRF member device and data communication equipment
CN102724030A (en) Stacking system with high reliability
CN103001799A (en) Method and node for achieving redundancy on basis of chain network
CN101753397A (en) System, method and device for rapidly self-healing Ethernet ring
CN104025511A (en) Service protection method, optical line terminal and system in passive optical network
CN106533736A (en) Network device reboot method and apparatus
CN101056254B (en) An expansion method, system and device of network storage device
CN101150458A (en) Method and device for single board detection
CN102891769A (en) Link fault informing method and apparatus
CN102209008A (en) Multi-activation detection method and device used for intelligent elastic framework
CN105915426A (en) Failure recovery method and device of ring network
CN102158383B (en) Data transmission method, device and system for E1 bidirectional ring network
WO2016091094A1 (en) Optical transport network protection switching method and device
CN103220189A (en) Multi-active detection (MAD) backup method and equipment

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
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.

CP03 Change of name, title or address