CN104796329B - A kind of link automatic switching method and device - Google Patents

A kind of link automatic switching method and device Download PDF

Info

Publication number
CN104796329B
CN104796329B CN201410019427.6A CN201410019427A CN104796329B CN 104796329 B CN104796329 B CN 104796329B CN 201410019427 A CN201410019427 A CN 201410019427A CN 104796329 B CN104796329 B CN 104796329B
Authority
CN
China
Prior art keywords
port
switching equipment
data frame
equipment
cycle
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
CN201410019427.6A
Other languages
Chinese (zh)
Other versions
CN104796329A (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.)
China Mobile Group Beijing Co Ltd
Original Assignee
China Mobile Group Beijing 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 China Mobile Group Beijing Co Ltd filed Critical China Mobile Group Beijing Co Ltd
Priority to CN201410019427.6A priority Critical patent/CN104796329B/en
Publication of CN104796329A publication Critical patent/CN104796329A/en
Application granted granted Critical
Publication of CN104796329B publication Critical patent/CN104796329B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to communication technical field, more particularly to a kind of link automatic switching method and device, with in the prior art when switching equipment connection transmission equipment port have electric signal but part of links failure when, switching equipment can not detect that active link breaks down, therefore the automatic switchover of link can not be realized, distance transmission system fault time is caused to extend, the problem of stability of a system difference.The present invention does not receive detection data frame using continuous N cycle detection to primary transmission port, it is determined that active link breaks down, and closes active link, enables reserve link work;Avoid switching equipment in the prior art can not automatic identification transmission equipment have electric signal but the abnormal situation of link, shorten the time of distance transmission system failure, improve the reliability of distance transmission system;The state of link is determined by multiple detection cycles simultaneously, reduces and time delay, the probability that erroneous judgement link breaks down occurs because transmission port receives detection data frame.

Description

A kind of link automatic switching method and device
Technical field
The present invention relates to communication technical field, more particularly to a kind of link automatic switching method and device.
Background technology
With mobile subscriber's quantity be continuously increased and the continuous renewal of user's request, the construction scale of communication system are got over Come huger, each component in system can not be placed in the computer room of same physical location.But due to business need, entirely The IP address of system is needed in the same network segment again, therefore generally by long-distance transmission line by strange land equipment access system. During long-distance transmissions, in order to ensure the reliability of Transmission system, generally use " double first line of a couplet " technology, that is, use and set in exchange Standby upper active and standby two netting twines of setting are connected to opposite equip., and switching equipment is claimed by link corresponding to major network line peer end of the connection equipment For active link, switching equipment is connected to link corresponding to opposite equip. by standby netting twine and is referred to as reserve link.When exchange is set When standby corresponding active link breaks down, switch to reserve link and carry out data transmission.
Distance transmission system concrete example is illustrated below, the system includes the first switching equipment, the first data clothes Business device, transmission equipment, the second switching equipment and the second data server;Wherein in the first switching equipment and the second switching equipment Contain two device ports, two transmission ports respectively;Each corresponding transmission port of device port, i.e., in switching equipment Active link correspondingly uses host apparatus port and primary transmission port, and reserve link correspondingly uses stand-by equipment port and standby Transmission port;Device port in switching equipment is used to be connected with data server, and transmission port is used to be connected with transmission equipment. When the first switching equipment is connected with the second switching equipment by active link, the first switching equipment passes through host device interface and the One data server connects;First switching equipment is connected by primary transmission port with transmission equipment, and by the first switching equipment The part active link being connected by primary transmission port with transmission equipment is designated as active link section 1;Second switching equipment passes through Host device interface is connected with the second data server;Second switching equipment is connected by primary transmission port with transmission equipment, and The part active link that second switching equipment is connected by primary transmission port with transmission equipment is designated as active link section 2.
The method that data transmission system is carried out data transmission by active link is as follows:First data server will receive Business data frame is sent to the first switching equipment;First switching equipment receives the first data server by host apparatus port The business data frame of transmission, the business data frame is forwarded to primary transmission port from host apparatus port;First switching equipment Primary transmission port business data frame sent to transmission equipment, transmission equipment by active link section 1 pass through active link Section 2 sends business data frame to the second switching equipment;Second switching equipment receives transmission equipment by primary transmission port The business data frame of transmission, the business data frame is forwarded to host apparatus port from primary transmission port;Second switching equipment The business data frame is sent to the second data server by host apparatus port.During above-mentioned data transfer, when When active link section 1 between one switching equipment and transmission equipment is without occurring abnormal, the first switching equipment is with regard to that can detect the The electric signal of the primary transmission port of one switching equipment;First switching equipment is according to the primary transmission port of the first switching equipment It is no to have electric signal, determine whether active link breaks down, when the first switching equipment detects the electric signal of primary transmission port When, it is determined that active link communication is normal.But when event occurs in the active link section 2 between the second switching equipment and transmission equipment Barrier, or the second switching equipment break down, but the active link section 1 between the first switching equipment and transmission equipment is different without occurring Chang Shi, it is abnormal that the first switching equipment can not know that active link occurs, and still judges that active link is normal, continues through primary chain The transmission equipment of road direction second sends business data frame.Only after the complaint of user is received, operation personnel determines active link Break down, and be manually entered switching command, carry out the switching of main/slave link, the first switching equipment and the second exchange can just set It is standby that regular traffic is recovered by reserve link.
Therefore, in the prior art when the transmission port of switching equipment has electric signal, but part active link failure, or opposite end During switch equipment failure, switching equipment can not detect that active link breaks down, and can not also realize the automatic switchover of link, lead Distance transmission system fault time is caused to extend, the stability of a system is poor.
The content of the invention
The embodiment of the present invention provides a kind of link automatic switching method and device, to solve to work as switching equipment in the prior art Transmission port have electric signal, but part active link failure, or during the switch equipment failure of opposite end, switching equipment can not detect Active link breaks down, and can not also realize the automatic switchover of link, causes distance transmission system fault time to extend, system The problem of stability difference.
The embodiments of the invention provide a kind of link automatic switching method, this method includes:
First switching equipment detects that the primary transmission port continuous N cycle does not receive the inspection of the second switching equipment transmission After surveying data frame, active link failure is determined;Wherein, first switching equipment and the second switching equipment cycle send to other side The detection data frame;
First switching equipment closes the active link, enables reserve link work;
Wherein, M is positive integer;The detection data frame is that first switching equipment and second switching equipment are advance A kind of particular data frame for being different from business data frame of agreement.
The first switching equipment does not receive detection using continuous N cycle detection to primary transmission port in above-described embodiment Data frame, it is determined that active link breaks down, and closes active link, enables reserve link;Avoid and hand in the prior art Exchange device can not automatic identification transmission equipment have the abnormal situation of electric signal but link, shorten distance transmission system failure Time;Detection data frame is not received to primary transmission port by multiple cycle detections simultaneously, just determines that active link occurs When failure, reducing because network is poor, or causing primary transmission port to receive detection data frame situations such as network delay to occur Prolong, the probability that erroneous judgement active link breaks down, improve the reliability of distance transmission system.
Each switching equipment has in the embodiment of the present invention uses equipment with active/standby with transmission port is active/standby correspondingly Port, first switching equipment close the active link, enable reserve link work, specifically include:
The host apparatus port for triggering the first switching equipment stops receiving business data frame, and triggers and close first friendship The host apparatus port of exchange device;
Continuously N number of cycle is not detected by the electric signal of host apparatus port to first switching equipment, and triggering enables described The stand-by equipment port of first switching equipment;
The first switching equipment triggering enables the standby transport port transmission business data frame of first switching equipment, And detection data frame is sent to second switching equipment by the standby transport port cycle;
Wherein, N is positive integer.
By the electric signal of main equipment port in above-described embodiment, the power-on time of stand-by equipment port and primary is determined The shut-in time of transmission port, the automatic switchover of master and stand-by circuits being realized, it is abnormal that the first switching equipment determines that active link occurs, Then switch to link corresponding to the second device port, the second transmission port cycle of switching equipment is to opposite end corresponding to switching equipment Equipment sends detection data frame;Switching equipment is set to realize automatic switchover link, and according to detection data frame after handoff links It is determined that the state of the link after switching, shortens fault time of Transmission system, the stability of system is improved.
Triggering is closed after the host apparatus port of first switching equipment described in the embodiment of the present invention, in addition to:
The first switching equipment triggering host apparatus port was continuously closed after X cycle, the first equipment triggering Open host apparatus port;
The continuous Y cycle detection of first switching equipment triggers described first and handed over to the electric signal of host apparatus port The primary transmission port continuous N cycle of exchange device sends detection data frame to the second switching equipment;
First switching equipment detects that the primary transmission port does not receive the second friendship in the continuous N cycle The host apparatus port of first switching equipment is closed in the detection data frame that exchange device is sent, triggering, and it is primary to return to triggering Device port continuously closes X cycle step;
First switching equipment detects that the primary transmission port receives the second exchange in the continuous N cycle The detection data frame that equipment is sent, it is determined that active link recovers, and triggers the primary transmission port week of first switching equipment Phase sends detection data frame to second switching equipment;
Wherein, X, Y, M are positive integer, and X is not less than N.
In above-described embodiment after host apparatus port shutdown setting duration, the first switching equipment notice host apparatus port is entered Enter detection to wait, upper electricity is carried out once to host apparatus port every setting duration, and handed over to second by primary transmission port Exchange device sends detection data frame, and within the cycle for sending detection data frame, detects whether primary transmission port receives The detection data frame sent to the second switching equipment, if receiving, it is determined that active link recovers normal;Active link recovers just Chang Hou, then host apparatus port is opened, and detection data frame is sent to the second switching equipment by the primary transmission port cycle.Make After active link fault recovery, after reserve link breaks down, active link can be switched at any time.Switching equipment to link The agreement made an appointment dependent on the first switching equipment and the second switching equipment of switching;Primary transmission port turns off or on Independent of the electric signal of intermediate conveyor equipment, make judgement of the switching equipment to Link State more accurate.
This method also includes in the embodiment of the present invention:
When detecting the active link fault recovery, and after the stand-by circuit failure, switch back into the active link Work.
The continuous L cycle detection of first switching equipment does not receive the second switching equipment to standby transport port and sent Detection data frame, determine reserve link failure;
The first switching equipment triggering stand-by equipment port stops receiving business data frame, and triggers closing described first The stand-by equipment port of switching equipment;
The first switching equipment continuous P cycle is not detected by the electric signal of stand-by equipment port, and triggering enables described The host apparatus port of first switching equipment;
The first switching equipment triggering enables the primary transmission port transmission services data frame of first switching equipment, And detection data frame is sent to second switching equipment by the standby transport port cycle;
Wherein, L, P are positive integer.
By the electric signal of stand-by equipment port in above-described embodiment, the power-on time of host apparatus port is determined, is realized The automatic switchover of master and stand-by circuits, it is abnormal that the first switching equipment determines that reserve link occurs, then switches to active link, exchange is set The standby primary transmission port cycle sends detection data frame;Switching equipment is set to realize automatic switchover link, and in handoff links The state of the link after switching is determined according to detection data frame afterwards, the fault time of Transmission system is shortened, improves system Stability.
Triggering is closed after the stand-by equipment port of first switching equipment in the embodiment of the present invention, in addition to:
The first switching equipment triggering stand-by equipment port is continuously closed Z cycle, and the first equipment triggering is opened Stand-by equipment port;
The continuous Q cycle detection of first switching equipment triggers described first and handed over to the electric signal of stand-by equipment port The standby transport port continuous L cycle of exchange device sends detection data frame to the second switching equipment;
First switching equipment detects in the continuous L cycle that standby transport port does not receive the second exchange and set The stand-by equipment port of first switching equipment is closed in the detection data frame that preparation is sent, triggering, and returns to triggering stand-by equipment Z cycle step is continuously closed in port;
First switching equipment detects that the standby transport port receives the second exchange in the continuous L cycle The detection data frame that equipment is sent, it is determined that reserve link recovers, and triggers the standby transport port week of first switching equipment Phase sends detection data frame to second switching equipment;
Wherein, Z, L, Q are positive integer, and Z is not less than P.
In above-described embodiment after stand-by equipment port shutdown setting duration, the first switching equipment notice stand-by equipment port is entered Enter detection to wait, upper electricity is carried out once to stand-by equipment port every setting duration, and handed over to second by standby transport port Exchange device sends detection data frame, and within the cycle for sending detection data frame, detects whether standby transport port receives The detection data frame sent to the second switching equipment, if receiving, it is determined that reserve link recovers normal;Reserve link recovers just Chang Hou, then stand-by equipment port is opened, and detection data frame is sent to the second switching equipment by the standby transport port cycle.Make After reserve link fault recovery, after active link breaks down, reserve link can be switched at any time.Switching equipment to link The agreement made an appointment dependent on the first switching equipment and the second switching equipment of switching;Standby transport port turns off or on Independent of the electric signal of intermediate conveyor equipment, make judgement of the switching equipment to Link State more accurate.
The host apparatus port that the first switching equipment is triggered in the embodiment of the present invention stops after receiving business data frame, touches Before hair enables the standby transport port transmission business data frame of the first switching equipment, in addition to:
First switching equipment detects that primary transmission port receives the business data frame of the second switching equipment side transmission, will Business data frame is forwarded to host apparatus port from primary transmission port, and host apparatus port is transmitted place to business data frame Reason.
In above-described embodiment, after host apparatus port shutdown, when stand-by equipment port does not enable also, is received The business data frame that two switching equipment are sent, then still it is transmitted by host apparatus port;Reduce business data frame Lose, improve the reliability of system.
The embodiments of the invention provide a kind of link automatic switching control equipment, passes through active/standby use applied to two switching equipment The active/standby automatic switchover with link that transmission port is established, the device include:
Detection unit, for detecting that the primary transmission port continuous N cycle of the first switching equipment does not receive second After the detection data frame that switching equipment is sent, active link failure is determined;Wherein, first switching equipment and the second exchange are set The standby cycle sends the detection data frame to other side;M is positive integer;The detection data frame is first switching equipment and institute State a kind of particular data frame for being different from business data frame that the second switching equipment is made an appointment;
Switch unit, for closing the active link, enable reserve link work.
The first switching equipment does not receive detection using continuous N cycle detection to primary transmission port in above-described embodiment Data frame, it is determined that active link breaks down, and closes active link, enables reserve link;Avoid and hand in the prior art Exchange device can not automatic identification transmission equipment have the abnormal situation of electric signal but link, shorten distance transmission system failure Time;Detection data frame is not received to primary transmission port by multiple cycle detections simultaneously, just determines that active link occurs When failure, reducing because network is poor, or causing primary transmission port to receive detection data frame situations such as network delay to occur Prolong, the probability that erroneous judgement active link breaks down, improve the reliability of distance transmission system.
Each switching equipment has in the embodiment of the present invention uses equipment with active/standby with transmission port is active/standby correspondingly Port, the switch unit are specifically used for:
The host apparatus port for triggering the first switching equipment stops receiving business data frame, and triggers and close first friendship The host apparatus port of exchange device;
The detection unit is specifically used for:Continuous N number of cycle is not detected by the host apparatus end of first switching equipment The electric signal of mouth;The switch unit is specifically used for:Triggering enables the stand-by equipment port of first switching equipment;Triggering is opened Open the standby transport port transmission business data frame of first switching equipment, and by the standby transport port cycle to described Two switching equipment send detection data frame;
Wherein, N is positive integer.
By the electric signal of main equipment port in above-described embodiment, the power-on time of stand-by equipment port and primary is determined The shut-in time of transmission port, the automatic switchover of master and stand-by circuits being realized, it is abnormal that the first switching equipment determines that active link occurs, Then switch to link corresponding to the second device port, the second transmission port cycle of switching equipment is to opposite end corresponding to switching equipment Equipment sends detection data frame;Switching equipment is set to realize automatic switchover link, and according to detection data frame after handoff links It is determined that the state of the link after switching, shortens fault time of Transmission system, the stability of system is improved.
Switch unit is additionally operable to described in the embodiment of the present invention:
Triggering host apparatus port was continuously closed after X cycle, and host apparatus port is opened in triggering;
The detection unit is additionally operable to, the electric signal of continuous Y cycle detection to host apparatus port, triggering described first The primary transmission port continuous N cycle of switching equipment sends detection data frame to the second switching equipment;
The detection unit is additionally operable to, and detects that the primary transmission port does not receive in the continuous N cycle The detection data frame that two switching equipment are sent;The switch unit is additionally operable to, and the primary of first switching equipment is closed in triggering Device port;
The detection unit is additionally operable to, and detects that the primary transmission port receives second in the continuous N cycle The detection data frame that switching equipment is sent, it is determined that active link recovers;Trigger the primary transmission end of first switching equipment The mouth cycle sends detection data frame to second switching equipment;
Wherein, X, Y, M are positive integer, and X is not less than N.
In above-described embodiment after host apparatus port shutdown setting duration, the first switching equipment notice host apparatus port is entered Enter detection to wait, upper electricity is carried out once to host apparatus port every setting duration, and handed over to second by primary transmission port Exchange device sends detection data frame, and within the cycle for sending detection data frame, detects whether primary transmission port receives The detection data frame sent to the second switching equipment, if receiving, it is determined that active link recovers normal;Active link recovers just Chang Hou, then host apparatus port is opened, and detection data frame is sent to the second switching equipment by the primary transmission port cycle.Make After active link fault recovery, after reserve link breaks down, active link can be switched at any time.Switching equipment to link The agreement made an appointment dependent on the first switching equipment and the second switching equipment of switching;Primary transmission port turns off or on Independent of the electric signal of intermediate conveyor equipment, make judgement of the switching equipment to Link State more accurate.
Detection unit is specifically used for described in the embodiment of the present invention:
Continuous L cycle detection does not receive the detection data frame of the second switching equipment transmission to standby transport port, really Determine reserve link failure;
The switch unit is specifically used for, and triggering stand-by equipment port stops receiving business data frame, and triggers and close institute State the stand-by equipment port of the first switching equipment;
The detection unit is specifically used for, and the continuous P cycle is not detected by the electric signal of stand-by equipment port;The switching Unit is specifically used for, and triggering enables the host apparatus port of first switching equipment;Triggering enables first switching equipment Primary transmission port transmission services data frame, and notify detection unit by the standby transport port cycle to described second exchange Equipment sends detection data frame;
Wherein, L, P are positive integer.
By the electric signal of stand-by equipment port in above-described embodiment, the power-on time of host apparatus port is determined, is realized The automatic switchover of master and stand-by circuits, it is abnormal that the first switching equipment determines that reserve link occurs, then switches to active link, exchange is set The standby primary transmission port cycle sends detection data frame;Switching equipment is set to realize automatic switchover link, and in handoff links The state of the link after switching is determined according to detection data frame afterwards, the fault time of Transmission system is shortened, improves system Stability.
Switch unit is additionally operable to described in the embodiment of the present invention:
Triggering stand-by equipment port is continuously closed Z cycle, and stand-by equipment port is opened in triggering;
The detection unit is additionally operable to continuous Q cycle detection to the electric signal of stand-by equipment port, triggering described first The standby transport port continuous L cycle of switching equipment sends detection data frame to the second switching equipment;
The detection unit is specifically used for, and detects that standby transport port does not receive second in the continuous L cycle The detection data frame that switching equipment is sent;The switch unit is used for, and the stand-by equipment of first switching equipment is closed in triggering Port;
The detection unit is specifically used for, and detects in the continuous L cycle that the standby transport port receives the The detection data frame that two switching equipment are sent, it is determined that reserve link recovers, and triggers the standby transport of first switching equipment The port cycle sends detection data frame to second switching equipment;
Wherein, Z, L, Q are positive integer, and Z is not less than P.
In above-described embodiment after stand-by equipment port shutdown setting duration, the first switching equipment notice stand-by equipment port is entered Enter detection to wait, upper electricity is carried out once to stand-by equipment port every setting duration, and handed over to second by standby transport port Exchange device sends detection data frame, and within the cycle for sending detection data frame, detects whether standby transport port receives The detection data frame sent to the second switching equipment, if receiving, it is determined that reserve link recovers normal;Reserve link recovers just Chang Hou, then stand-by equipment port is opened, and detection data frame is sent to the second switching equipment by the standby transport port cycle.Make After reserve link fault recovery, after active link breaks down, reserve link can be switched at any time.Switching equipment to link The agreement made an appointment dependent on the first switching equipment and the second switching equipment of switching;Standby transport port turns off or on Independent of the electric signal of intermediate conveyor equipment, make judgement of the switching equipment to Link State more accurate.
Switch unit is additionally operable to described in the embodiment of the present invention:
The host apparatus port for triggering the first switching equipment stops after receiving business data frame, and triggering enables the first exchange Before the standby transport port transmission business data frame of equipment, detect that the primary transmission port of the first switching equipment receives The business data frame that two switching equipment sides are sent, host apparatus port is forwarded to by business data frame from primary transmission port, main Processing is transmitted to business data frame with device port.
In above-described embodiment, after host apparatus port shutdown, when stand-by equipment port does not enable also, is received The business data frame that two switching equipment are sent, then still it is transmitted by host apparatus port;Reduce business data frame Lose, improve the reliability of system.
The embodiment of the present invention detects that the primary transmission port continuous N cycle does not receive second using the first switching equipment After the detection data frame that switching equipment is sent, active link failure is determined;First switching equipment closes active link, enables standby Antenna efficiency;First switching equipment does not receive detection data frame using continuous N cycle detection to primary transmission port, then really Determine active link failure, and close active link, enable reserve link;Avoiding switching equipment in the prior art can not be certainly Dynamic identification transmission equipment has the situation of electric signal but link exception, shortens the time of distance transmission system failure;Lead to simultaneously Cross multiple cycle detections and do not receive detection data frame to primary transmission port, just determine that active link breaks down, reduce Cause primary transmission port to receive detection data frame because network is poor, or situations such as network delay and time delay occur, erroneous judgement is primary The probability that link breaks down, improve the reliability of distance transmission system.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet of link automatic switching method in the embodiment of the present invention;
Fig. 2 is a kind of schematic flow sheet of the specific method that link automatically switches in the embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the method that another link automatically switches in the embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of link automatic switching control equipment in the embodiment of the present invention.
Embodiment
The embodiments of the invention provide a kind of link automatic switching method and device, the first switching equipment exchanges according to second The detection data frame that equipment periodic is sent, determines whether active link breaks down, determines that active link breaks down and switch to Reserve link;Avoid and determine the current work of link by the electric signal of transmission equipment, improve judgement link working state Accuracy, realize the automatic switchover of link, shorten the time of distance transmission system failure, improve long-distance transmissions The reliability of system.
The present invention is further described with reference to Figure of description.
As shown in figure 1, for a kind of link automatic switching method in the embodiment of the present invention, pass through applied to two switching equipment The active/standby active/standby automatic switchover with link established with transmission port, this method include:
Step 101:First switching equipment detects that the primary transmission port continuous N cycle does not receive the second switching equipment After the detection data frame of transmission, active link failure is determined;Wherein, the first switching equipment and the second switching equipment cycle are to other side Send the detection data frame;
Step 102:First switching equipment closes active link, enables reserve link work;
Wherein, M is positive integer;It is that the first switching equipment is different from what the second switching equipment was made an appointment to detect data frame A kind of particular data frame of business data frame.
In step 101, the first switching equipment detects that the primary transmission port continuous N cycle does not receive the second exchange and set The detection data frame that preparation is sent, is specifically included:First switching equipment detects the detection data frame that primary transmission port receives, when the One switching equipment detects that primary transmission port is not received by detection data frame in a cycle, then waits shape into logic State, after the first switching equipment enters logic wait state, -1 cycle detection of continuous N does not receive inspection to primary transmission port Survey data frame, it is determined that active link breaks down, and wherein M is positive integer.Such as preset the first switching equipment continuous 5 week Phase detects that primary transmission port does not receive detection data frame, it is determined that active link breaks down;First switching equipment is examined Measure primary transmission port in current period and do not receive detection data frame, then into logic wait state, the first switching equipment Into after logic wait state, continuous 4 cycle detections do not receive detection data frame to primary transmission port, it is determined that primary Link breaks down.
First switching equipment does not receive detection data frame using continuous N cycle detection to primary transmission port, then really Link corresponding to fixed primary transmission port breaks down, and avoiding switching equipment in the prior art can not automatic identification transmission equipment There is the situation of electric signal but link exception, shorten the time of distance transmission system failure, improve distance transmission system Reliability;Detection data frame is not received to primary transmission port by multiple cycle detections simultaneously, just determines active link Break down, reduce because network is poor, or cause primary transmission port to receive detection data frame situations such as network delay and go out Prolong now, judge the probability that link corresponding to primary transmission port breaks down by accident.
Each switching equipment has uses device port with active/standby with transmission port is active/standby correspondingly.
In step 102, the first switching equipment closes active link, enables reserve link work, specifically includes:First exchanges Equipment determines that active link breaks down, and host apparatus port corresponding to primary transmission port is closed in triggering, while first exchanges Equipment carries out upper electric treatment to stand-by equipment port.After host apparatus port is closed in the triggering of first switching equipment, host apparatus end Mouth no longer exports electric signal, and the first switching equipment does not detect the electric signal of host apparatus port in continuous N number of cycle, then touched Hair opens the stand-by equipment port of the first switching equipment;First switching equipment triggering simultaneously enables the standby biography of the first switching equipment Defeated port transmission business data frame, and detection data frame is sent to the second switching equipment by the standby transport port cycle;Wherein, N is positive integer.
The triggering of wherein the first switching equipment is closed after the host apparatus port of the first switching equipment, in addition to:First hands over Exchange device triggering host apparatus port was continuously closed after X cycle, and host apparatus port is opened in the triggering of the first equipment;First hands over To the electric signal of host apparatus port, the primary transmission port for triggering the first switching equipment connects the continuous Y cycle detection of exchange device Continue M cycle to the second switching equipment transmission detection data frame;First switching equipment detects primary transmission in the continuous N cycle Port does not receive the detection data frame of the second switching equipment transmission, and the host apparatus port of the first switching equipment is closed in triggering, And return to triggering host apparatus port and continuously close X cycle step;First switching equipment detects primary in the continuous N cycle Transmission port receives the detection data frame of the second switching equipment transmission, it is determined that active link recovers, and triggering first is exchanged and set The standby primary transmission port cycle sends detection data frame to the second switching equipment;Wherein, X, Y, M are positive integer, and X is not small In N.
As detected in the first switching equipment continuous 5 cycles, primary transmission port does not receive the transmission of the second switching equipment Detection data frame, it is determined that host apparatus port is closed in active link failure, triggering;First switching equipment is in a cycle The electric signal of host apparatus port is not detected by, the triggering of the first switching equipment enables stand-by equipment port;First switching equipment connects The equipment connect detects that host apparatus port does not have electric signal, then sends business data frame to first by stand-by equipment port Business data frame is forwarded to standby transport port from stand-by equipment port, passes through standby biography by switching equipment, the first switching equipment Defeated port sends business data frame to the second switching equipment;First switching equipment continuous two cycles are not detected by primary transmission Host apparatus port is opened in the electric signal of port, triggering, and the first switching equipment detects the electric signal of host apparatus port, then touched Sent out for first primary transmission port continuous 5 cycles to the second switching equipment transmission detection data frame, if within this 5 cycles, it is main Do not receive the detection data frame of the second switching equipment transmission with transmission port, then return to the host apparatus port continuously company of closing The step of cycle;If within this 5 cycles, primary transmission port receives the detection data frame of the second switching equipment transmission, then Determine that active link recovers normal, trigger the primary transmission port cycle to the second equipment transmission detection data frame;In order to standby When link breaks down, active link is switched back into.
It is preferred that this method also includes:When detecting active link fault recovery, and after stand-by circuit failure, switch back into The active link work.
The continuous L cycle detection of first switching equipment does not receive the inspection of the second switching equipment transmission to standby transport port Data frame is surveyed, determines reserve link failure;First switching equipment triggering stand-by equipment port stops receiving business data frame, and touches Hair closes the stand-by equipment port of the first switching equipment;First switching equipment continuous P cycle was not detected by stand-by equipment port Electric signal, triggering enables the host apparatus port of the first switching equipment;The triggering of first switching equipment enables the first switching equipment Primary transmission port transmission services data frame, and by the standby transport port cycle to the second switching equipment send detection data Frame;Wherein, L, P are positive integer.
Wherein triggering is closed after the stand-by equipment port of the first switching equipment, in addition to:The triggering of first switching equipment is standby Continuously closed with device port Z cycle, stand-by equipment port is opened in the triggering of the first equipment;First switching equipment continuous Q week Phase detects the electric signal of stand-by equipment port, triggers standby transport port continuous L cycle of the first switching equipment to second Switching equipment sends detection data frame;First switching equipment detects that standby transport port does not receive in the continuous L cycle The stand-by equipment port of the first switching equipment is closed in the detection data frame that two switching equipment are sent, triggering, and it is standby to return to triggering Device port continuously closes Z cycle step;First switching equipment detects that standby transport port receives in the continuous L cycle The detection data frame that second switching equipment is sent, it is determined that reserve link recovers, and triggers the standby transport end of the first switching equipment The mouth cycle sends detection data frame to the second switching equipment;Wherein, Z, L, Q are positive integer, and Z is not less than P.
As detected in the first switching equipment continuous 5 cycles, standby transport port does not receive the transmission of the second switching equipment Detection data frame, determine reserve link failure;First switching equipment triggering stand-by equipment port stops receiving business data frame, And trigger the stand-by equipment port for closing the first switching equipment;First switching equipment is not detected by stand-by equipment in a cycle The electric signal of port, the triggering of the first switching equipment enable host apparatus port;The equipment of first switching equipment connection detects standby There is no electric signal with device port, then business data frame is sent to the first switching equipment, first by host apparatus port and handed over Business data frame is forwarded to primary transmission port by exchange device from host apparatus port, by primary transmission port by business datum Frame is sent to the second switching equipment;First switching equipment continuous two cycles are not detected by the electric signal of standby transport port, touch Hair opens stand-by equipment port, and the first switching equipment detects the electric signal of stand-by equipment port, then triggers the first standby transport Port continuous 5 cycles send detection data frame to the second switching equipment, if within this 5 cycles, standby transport port does not connect The detection data frame of the second switching equipment transmission is received, then returns to the step of two cycles are continuously closed in stand-by equipment port;If Standby transport port receives the detection data frame of the second switching equipment transmission within this 5 cycles, it is determined that reserve link is extensive Multiple normal, the triggering standby transport port cycle sends detection data frame to the second equipment;When being broken down in order to active link, Switch back into reserve link.
In the embodiment of the present invention, when sending business data frame by active link, and when reserve link does not break down, Standby link sends detection data frame by the standby transport port cycle to the second switching equipment, to determine that reserve link is current not Break down;When sending business data frame by reserve link, and when active link does not break down, primary link passes through master Detection data frame is sent to the second switching equipment with the transmission port cycle, to determine that active link does not break down currently;So as to In when a link in the first switching equipment breaks down, can not have faulty link using another.
It is preferred that the equipment of the first switching equipment connection detects that host apparatus port does not have electric signal, then it is automatically stopped Business data frame is sent to host apparatus port, business data frame is sent to the first switching equipment by stand-by equipment port.
First switching equipment receives the business data frame of the second switching equipment transmission by primary transmission port, will receive Business data frame send to host apparatus port, the first switching equipment by host apparatus port by business data frame send to The equipment of first switching equipment connection.First switching equipment detects that host apparatus port receives the industry that the equipment of connection is sent It is engaged in data frame, the business data frame is sent to primary transmission port, the first switching equipment is by primary transmission port by the industry Business data frame is sent to the second switching equipment.
First switching equipment triggering host apparatus port stops after receiving business data frame, and triggering enables the first exchange and set Before standby standby transport port transmission business data frame, in addition to:First switching equipment detects that primary transmission port receives The business data frame sent to the second switching equipment side, host apparatus end is forwarded to by business data frame from primary transmission port Mouthful, host apparatus port is transmitted processing to business data frame.
It is preferred that according to IEEE802.3 agreements in the embodiment of the present invention, in the processing by physical layer and logic link layer Afterwards, the upper-layer protocol specified in type section will be delivered to comprising data in a data frame.Although in Ethernet protocol Do not make polishing regulation clearly, but the length minimum of data frame should be not less than 46 bytes in ethernet frame, to protect Demonstrate,prove the byte of data frame length maximum 1518 of 802.3 agreements, the byte of minimum value 64.
To reduce transfer amount, the detection data frame length in the embodiment of the present invention is arranged to 46 bytes, plus testing number According to the lead code of frame, the fields such as symbol, type, check code are defined, just reach the byte of minimum length 64 of ethernet data frame.This The detection data frame of 46 bytes in invention can use following form:" 1111000011110000 ... " or “0xF0F0F0F0F0F0F0F0F0…”.The detection data frame illustrated in above-described embodiment is that relatively there is one kind in the embodiment of the present invention Detection data frame form, the detection data frame of extended formatting is equally applicable to the present invention.
As shown in Fig. 2 for the specific method that a kind of link automatically switches in the embodiment of the present invention, this method includes:
Step 201:The primary transmission port cycle of first switching equipment receives the testing number of the second switching equipment transmission According to frame;
Step 202:First switching equipment detects that the second exchange that primary transmission port does not receive in current period is set The detection data frame that preparation is sent;
Step 203:First switching equipment judges whether primary transmission port connects in continuous 4 cycles after current period The detection data frame of the second transmission equipment transmission is received, if receiving, return to step 201, otherwise performs step 204;
Step 204:Host apparatus port is closed in the triggering of first switching equipment, while triggering enables the standby of the first switching equipment Use device port;
Step 205:First switching equipment is not detected by the electric signal of host apparatus port in current period, then triggering is closed Close primary transmission port;
Step 206:Continuous two cycle detections of first switching equipment trigger first and handed over to the electric signal of stand-by equipment port Exchange device passes through standby transport port transmission business data frame;
Step 207:First switching equipment triggers the standby transport port cycle to the second switching equipment transmission detection data frame; And terminate this flow.
Step 205 and step 206 are not strictly sequential in above-described embodiment, can first carry out step 205, then perform step Rapid 206, can also step 205 and step 206 perform simultaneously.The Cycle Length illustrated in the present embodiment is in the embodiment of the present invention A kind of preferable Cycle Length, other Cycle Lengths are also applied for the embodiment of the present invention.
As shown in figure 3, include for a kind of detection method of link failure recovery, this method in the embodiment of the present invention:
Step 301:First switching equipment detects that primary transmission port does not receive the second exchange and set in continuous 5 cycles Host apparatus port is closed in the detection data frame that preparation is sent, triggering;
Step 302:First switching equipment detects the signal of host apparatus port shutdown in continuous two cycles, triggering is opened Open host apparatus port;
Step 303:First switching equipment detects the signal of host apparatus port open in current period, triggers primary Transmission port continuous 5 cycles send detection data frame;
Step 304:Whether the first switching equipment detects receives in 5 cycles of primary transmission port transmission detection data frame The detection data frame sent to the second switching equipment, if not receiving, return to step 301, otherwise perform step 305;
Step 305:First switching equipment determines that active link recovers normal, and by the primary transmission port cycle to second Switching equipment sends detection data frame, and terminates this flow.
Fig. 2 in the embodiment of the present invention, the embodiment shown in Fig. 3 are the process that active link switches to reserve link, this In invention reserve link switch to active link process it is similar therewith, will not be repeated here;The cycle set in another embodiment It is that preferably Cycle Length, other Cycle Lengths for meeting inventive concept are also applied for the present invention in the embodiment of the present invention, This will not enumerate.
Based on same inventive concept, a kind of link automatic switching control equipment is additionally provided in the embodiment of the present invention, due to the dress It is similar to a kind of link automatic switching method of the embodiment of the present invention to put the principle solved the problems, such as, therefore the implementation of the device can be joined The implementation of square method, repeat part and repeat no more.
As shown in figure 4, for a kind of link automatic switching control equipment in the embodiment of the present invention, pass through applied to two switching equipment The active/standby active/standby automatic switchover with link established with transmission port, the device include detection unit 401, switch unit 402:
Detection unit 401, the primary transmission port continuous N cycle for detecting the first switching equipment do not receive After the detection data frame that two switching equipment are sent, active link failure is determined;Wherein, the first switching equipment and the second switching equipment Cycle sends detection data frame to other side;M is positive integer;It is that the first switching equipment and the second switching equipment are advance to detect data frame A kind of particular data frame for being different from business data frame of agreement;
Switch unit 402, for closing active link, enable reserve link work.
Detection unit 401 is specifically used for, the detection data frame of the primary transmission port reception of the first switching equipment of detection, when Detect that the primary transmission port of the first switching equipment is not received by detection data frame in a cycle, then into logic etc. State is treated, into after logic wait state, -1 cycle detection of continuous N does not receive detection data frame to primary transmission port, Then determine that active link breaks down, wherein M is positive integer.Continuous 5 cycle detections are such as preset to the first switching equipment Primary transmission port do not receive detection data frame, it is determined that active link breaks down;Detect first in current period The primary transmission port of switching equipment does not receive detection data frame, then into logic wait state, into logic wait state Afterwards, continuous 4 cycle detections do not receive detection data frame to primary transmission port, it is determined that active link breaks down.
Detection data frame is not received using the primary transmission port of continuous N cycle detection to the first switching equipment, then Determine corresponding to primary transmission port that link breaks down, avoid in the prior art switching equipment can not automatic identification transmission set The situation of electric signal but link exception is had, the time of distance transmission system failure is shortened, improves long-distance transmissions system The reliability of system;Detection data frame is not received to primary transmission port by multiple cycle detections simultaneously, just determines primary chain Road is broken down, and is reduced because network is poor, or causes primary transmission port to receive detection data frame situations such as network delay There is time delay, judge the probability that link corresponding to primary transmission port breaks down by accident.
Each switching equipment has uses device port with active/standby with transmission port is active/standby correspondingly.
Switch unit 402 is specifically used for:Determine that the active link of the first switching equipment breaks down, primary biography is closed in triggering Host apparatus port corresponding to defeated port, while upper electric treatment is carried out to the stand-by equipment port of the first switching equipment.Triggering is closed After closing the host apparatus port of the first switching equipment, host apparatus port no longer exports electric signal, is not examined in continuous N number of cycle The electric signal of the host apparatus port of the first switching equipment is measured, then the stand-by equipment port of the first switching equipment is opened in triggering; First switching equipment triggering simultaneously enables the standby transport port transmission business data frame of the first switching equipment, and passes through standby biography The defeated port cycle sends detection data frame to the second switching equipment;Wherein, N is positive integer.
Switch unit 402 is additionally operable to, and triggering host apparatus port was continuously closed after X cycle, and primary set is opened in triggering Standby port;The continuous Y cycle detection of detection unit 401 to host apparatus port electric signal, trigger the first switching equipment master With the transmission port continuous N cycle detection data frame is sent to the second switching equipment;Detection unit 401 detects continuous N week Primary transmission port does not receive the detection data frame of the second switching equipment transmission in phase, and the triggering of switch unit 402 closes first The host apparatus port of switching equipment, and return to triggering host apparatus port and continuously close X cycle step;Detection unit 401 Detect that primary transmission port receives the detection data frame that the second switching equipment is sent in the continuous N cycle, it is determined that primary Link-recovery, the primary transmission port cycle for triggering the first switching equipment send detection data frame to the second switching equipment;Wherein, X, Y, M are positive integer, and X is not less than N.
Sent as detected that primary transmission port does not receive the second switching equipment in 401 continuous 5 cycles of detection unit Detection data frame, it is determined that host apparatus port is closed in active link failure, the triggering of switch unit 402;Detection unit 401 exists The electric signal of host apparatus port is not detected by a cycle, the triggering of switch unit 402 enables stand-by equipment port;First hands over The equipment of exchange device connection detects that host apparatus port does not have electric signal, then sends out business data frame by stand-by equipment port The first switching equipment is delivered to, business data frame is forwarded to standby transport port by the first switching equipment from stand-by equipment port, is led to Standby transport port is crossed to send business data frame to the second switching equipment.401 continuous two cycles of detection unit are not detected by Host apparatus port is opened in the electric signal of primary transmission port, the triggering of switch unit 402;Detection unit 401 detects primary set The electric signal of standby port, then triggered for first primary transmission port continuous 5 cycles and detect data frame to the transmission of the second switching equipment, If within this 5 cycles, detection unit 401 detects the detection data that primary transmission port does not receive the transmission of the second switching equipment Frame, then return host apparatus port continuously company of closing individual cycle the step of;If within this 5 cycles, the detection master of detection unit 401 The detection data frame of the second switching equipment transmission is received with transmission port, it is determined that active link recovers normal, and triggering is primary The transmission port cycle sends detection data frame to the second equipment;When being broken down in order to reserve link, active link is switched back into.
It is preferred that switch unit 402 is additionally operable to:Active link fault recovery is detected, and after stand-by circuit failure, switching Return the active link work.
Detection unit 401, continuous L cycle detection to standby transport port do not receive the inspection of the second switching equipment transmission Data frame is surveyed, determines reserve link failure;Switch unit 402, which triggers stand-by equipment port, to be stopped receiving business data frame, and is touched Hair closes the stand-by equipment port of the first switching equipment;The continuous P cycle of detection unit 401 is not detected by stand-by equipment port Electric signal, switch unit 402 trigger the host apparatus port for enabling the first switching equipment;Triggering enables the master of the first switching equipment With transmission port transmission services data frame, and by the standby transport port cycle detection data frame is sent to the second switching equipment; Wherein, L, P are positive integer.
Wherein switch unit 402 is additionally operable to:Triggering stand-by equipment port is continuously closed Z cycle, and standby set is opened in triggering Standby port;The continuous Q cycle detection of detection unit 401 triggers the standby of the first switching equipment to the electric signal of stand-by equipment port With the transmission port continuous L cycle detection data frame is sent to the second switching equipment;Detection unit 401 detects continuous L week Standby transport port does not receive the detection data frame of the second switching equipment transmission in phase, and the triggering of switch unit 402 closes first The stand-by equipment port of switching equipment, and return to triggering stand-by equipment port and continuously close Z cycle;Detection unit 401 detects The detection data frame of the second switching equipment transmission is received to standby transport port in the continuous L cycle, it is determined that reserve link Recover, the standby transport port cycle for triggering the first switching equipment sends detection data frame to the second switching equipment;Wherein, Z, L, Q is positive integer, and Z is not less than P.
Sent as detected that standby transport port does not receive the second switching equipment in 401 continuous 5 cycles of detection unit Detection data frame, determine reserve link failure;Switch unit 402, which triggers stand-by equipment port, to be stopped receiving business data frame, And trigger the stand-by equipment port for closing the first switching equipment;Detection unit 401 is not detected by stand-by equipment in a cycle The electric signal of port, the triggering of switch unit 402 enable host apparatus port;The equipment of first switching equipment connection detects standby Device port does not have electric signal, then business data frame is sent to the first switching equipment, first by host apparatus port and exchanged Business data frame is forwarded to primary transmission port by equipment from host apparatus port, by primary transmission port by business data frame Send to the second switching equipment;401 continuous two cycles of detection unit are not detected by the electric signal of standby transport port, and switching is single Stand-by equipment port is opened in the triggering of member 402, and detection unit 401 detects the electric signal of stand-by equipment port, then it is standby to trigger first Detection data frame is sent to the second switching equipment with transmission port continuous 5 cycles, if within this 5 cycles, detection unit 401 Detection standby transport port does not receive the detection data frame of the second switching equipment transmission, then returns to stand-by equipment port and continuously close Close two cycles;If within this 5 cycles, detection unit 401 detects standby transport port and receives the transmission of the second switching equipment Detection data frame, it is determined that reserve link recovers normal, and the triggering standby transport port cycle sends testing number to the second equipment According to frame;When being broken down in order to active link, reserve link is switched back into.
In the embodiment of the present invention, when sending business data frame by active link, and when reserve link does not break down, Standby link sends detection data frame by the standby transport port cycle to the second switching equipment, to determine that reserve link is current not Break down;When sending business data frame by reserve link, and when active link does not break down, primary link passes through master Detection data frame is sent to the second switching equipment with the transmission port cycle, to determine that active link does not break down currently;So as to In when a link in the first switching equipment breaks down, can not have faulty link using another.
It is preferred that the equipment of the first switching equipment connection detects that host apparatus port does not have electric signal, then it is automatically stopped Business data frame is sent to host apparatus port, business data frame is sent to the first switching equipment by stand-by equipment port.
First switching equipment receives the business data frame of the second switching equipment transmission by primary transmission port, will receive Business data frame send to host apparatus port, the first switching equipment by host apparatus port by business data frame send to The equipment of first switching equipment connection.First switching equipment detects that host apparatus port receives the industry that the equipment of connection is sent It is engaged in data frame, the business data frame is sent to primary transmission port, the first switching equipment is by primary transmission port by the industry Business data frame is sent to the second switching equipment.
Switch unit is additionally operable to:Trigger host apparatus port to stop after receiving business data frame, triggering enables the first friendship Before the standby transport port transmission business data frame of exchange device, detect that primary transmission port receives the second switching equipment side The business data frame of transmission, business data frame is forwarded to host apparatus port from primary transmission port, passes through host apparatus end Mouth is transmitted processing to business data frame.
It is preferred that according to IEEE802.3 agreements in the embodiment of the present invention, in the processing by physical layer and logic link layer Afterwards, the upper-layer protocol specified in type section will be delivered to comprising data in a data frame.Although in Ethernet protocol Do not make polishing regulation clearly, but the length minimum of data frame should be not less than 46 bytes in ethernet frame, to protect Demonstrate,prove the byte of data frame length maximum 1518 of 802.3 agreements, the byte of minimum value 64.
To reduce transfer amount, the detection data frame length in the embodiment of the present invention is arranged to 46 bytes, plus testing number According to the lead code of frame, the fields such as symbol, type, check code are defined, just reach the byte of minimum length 64 of ethernet data frame.This The detection data frame of 46 bytes in invention can use following form:" 1111000011110000 ... " or “0xF0F0F0F0F0F0F0F0F0…”.The detection data frame illustrated in above-described embodiment is that relatively there is one kind in the embodiment of the present invention Detection data frame form, the detection data frame of extended formatting is equally applicable to the present invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (10)

1. a kind of link automatic switching method, pass through the active/standby active/standby use established with transmission port applied to two switching equipment The automatic switchover of link, it is characterised in that this method includes:
First switching equipment detects that the primary transmission port continuous N cycle does not receive the testing number of the second switching equipment transmission After frame, active link failure is determined;Wherein, described in first switching equipment and the second switching equipment cycle sent to other side Detect data frame;
First switching equipment closes the active link, enables reserve link work;
Wherein, M is positive integer;The detection data frame is that first switching equipment is made an appointment with second switching equipment A kind of particular data frame for being different from business data frame;
Wherein, each switching equipment have with it is active/standby with transmission port it is one-to-one it is active/standby use device port, described first Switching equipment closes the active link, enables reserve link work, specifically includes:
The host apparatus port for triggering the first switching equipment stops receiving business data frame, and triggers closing first exchange and set Standby host apparatus port;
Continuously N number of cycle is not detected by the electric signal of host apparatus port to first switching equipment, and triggering enables described first The stand-by equipment port of switching equipment;
The first switching equipment triggering enables the standby transport port transmission business data frame of first switching equipment, and leads to The standby transport port cycle is spent to second switching equipment transmission detection data frame;
Wherein, N is positive integer;
The triggering is closed after the host apparatus port of first switching equipment, in addition to:
The first switching equipment triggering host apparatus port was continuously closed after X cycle, the first switching equipment triggering Open host apparatus port;
To the electric signal of host apparatus port, triggering described first, which exchanges, to be set for the continuous Y cycle detection of first switching equipment The standby primary transmission port continuous N cycle sends detection data frame to the second switching equipment;
First switching equipment detects in the continuous N cycle that the primary transmission port does not receive the second exchange and set The host apparatus port of first switching equipment is closed in the detection data frame that preparation is sent, triggering, and returns to triggering host apparatus X cycle step is continuously closed in port;
First switching equipment detects that the primary transmission port receives the second switching equipment in the continuous N cycle The detection data frame of transmission, it is determined that active link recovers, trigger primary transmission port cycle of first switching equipment to Second switching equipment sends detection data frame;
Wherein, X, Y, M are positive integer, and X is not less than N.
2. the method as described in claim 1, it is characterised in that this method also includes:
When detecting the active link fault recovery, and after the stand-by circuit failure, the active link work is switched back into.
3. method as claimed in claim 2, it is characterised in that specifically include:
The continuous L cycle detection of first switching equipment does not receive the inspection of the second switching equipment transmission to standby transport port Data frame is surveyed, determines reserve link failure;
The first switching equipment triggering stand-by equipment port stops receiving business data frame, and triggers and close first exchange The stand-by equipment port of equipment;
The first switching equipment continuous P cycle is not detected by the electric signal of stand-by equipment port, and triggering enables described first The host apparatus port of switching equipment;
The first switching equipment triggering enables the primary transmission port transmission services data frame of first switching equipment, and leads to The standby transport port cycle is spent to second switching equipment transmission detection data frame;
Wherein, L, P are positive integer.
4. method as claimed in claim 3, it is characterised in that the stand-by equipment of first switching equipment is closed in the triggering After port, in addition to:
The first switching equipment triggering stand-by equipment port is continuously closed Z cycle, and the first switching equipment triggering is opened Stand-by equipment port;
To the electric signal of stand-by equipment port, triggering described first, which exchanges, to be set for the continuous Q cycle detection of first switching equipment The standby standby transport port continuous L cycle sends detection data frame to the second switching equipment;
First switching equipment detects that standby transport port does not receive the second switching equipment hair in the continuous L cycle The stand-by equipment port of first switching equipment is closed in the detection data frame sent, triggering, and returns to triggering stand-by equipment port Continuously close Z cycle step;
First switching equipment detects that the standby transport port receives the second switching equipment in the continuous L cycle The detection data frame of transmission, it is determined that reserve link recovers, trigger standby transport port cycle of first switching equipment to Second switching equipment sends detection data frame;
Wherein, Z, L, Q are positive integer, and Z is not less than P.
5. the method as described in Claims 1 to 4 is any, it is characterised in that the host apparatus port of the first switching equipment of triggering Stop after receiving business data frame, before triggering enables the standby transport port transmission business data frame of the first switching equipment, Also include:
First switching equipment detects that primary transmission port receives the business data frame of the second switching equipment side transmission, by business Data frame is forwarded to host apparatus port from primary transmission port, and host apparatus port is transmitted processing to business data frame.
6. a kind of link automatic switching control equipment, pass through the active/standby active/standby use established with transmission port applied to two switching equipment The automatic switchover of link, it is characterised in that the device includes:
Detection unit, for detecting that the primary transmission port continuous N cycle of the first switching equipment does not receive the second exchange After the detection data frame that equipment is sent, active link failure is determined;Wherein, the first switching equipment and the second switching equipment week Phase sends the detection data frame to other side;M is positive integer;The detection data frame is first switching equipment and described the What two switching equipment were made an appointment is different from a kind of particular data frame of business data frame;
Switch unit, for closing the active link, enable reserve link work;
Wherein, each switching equipment has uses device port, the switching with active/standby with transmission port is active/standby correspondingly Unit is specifically used for:
The host apparatus port for triggering the first switching equipment stops receiving business data frame, and triggers closing first exchange and set Standby host apparatus port;
The detection unit is specifically used for:Continuous N number of cycle is not detected by the host apparatus port of first switching equipment Electric signal;The switch unit is specifically used for:Triggering enables the stand-by equipment port of first switching equipment;Institute is opened in triggering The standby transport port transmission business data frame of the first switching equipment is stated, and detection trigger unit passes through the standby transport port cycle Detection data frame is sent to second switching equipment;
Wherein, N is positive integer;
The switch unit is additionally operable to:
Triggering host apparatus port was continuously closed after X cycle, and host apparatus port is opened in triggering;
The detection unit is additionally operable to, the electric signal of continuous Y cycle detection to host apparatus port, and triggering described first exchanges The primary transmission port continuous N cycle of equipment sends detection data frame to the second switching equipment;
The detection unit is additionally operable to, and detects that the primary transmission port does not receive the second friendship in the continuous N cycle The detection data frame that exchange device is sent;The switch unit is additionally operable to, and the host apparatus of first switching equipment is closed in triggering Port;
The detection unit is additionally operable to, and detects that the primary transmission port receives the second exchange in the continuous N cycle The detection data frame that equipment is sent, it is determined that active link recovers;Trigger the primary transmission port week of first switching equipment Phase sends detection data frame to second switching equipment;
Wherein, X, Y, M are positive integer, and X is not less than N.
7. device as claimed in claim 6, it is characterised in that the switch unit is additionally operable to:
The active link fault recovery, and the stand-by circuit failure are detected, switches back into the active link work.
8. device as claimed in claim 7, it is characterised in that the detection unit is specifically used for:
Continuous L cycle detection does not receive the detection data frame of the second switching equipment transmission to standby transport port, it is determined that standby Use link failure;
The switch unit is specifically used for, and triggering stand-by equipment port stops receiving business data frame, and triggers and close described the The stand-by equipment port of one switching equipment;
The detection unit is specifically used for, and the continuous P cycle is not detected by the electric signal of stand-by equipment port;The switch unit It is specifically used for, triggering enables the host apparatus port of first switching equipment;Triggering enables the master of first switching equipment With transmission port transmission services data frame, and notify detection unit by the standby transport port cycle to second switching equipment Send detection data frame;
Wherein, L, P are positive integer.
9. device as claimed in claim 8, it is characterised in that the switch unit is additionally operable to:
Triggering stand-by equipment port is continuously closed Z cycle, and stand-by equipment port is opened in triggering;
The detection unit is additionally operable to continuous Q cycle detection and exchanged to the electric signal of stand-by equipment port, triggering described first The standby transport port continuous L cycle of equipment sends detection data frame to the second switching equipment;
The detection unit is specifically used for, and detects that standby transport port does not receive the second exchange in the continuous L cycle The detection data frame that equipment is sent;The switch unit is used for, and the stand-by equipment port of first switching equipment is closed in triggering;
The detection unit is specifically used for, and detects that the standby transport port receives the second friendship in the continuous L cycle The detection data frame that exchange device is sent, it is determined that reserve link recovers, and triggers the standby transport port of first switching equipment Cycle sends detection data frame to second switching equipment;
Wherein, Z, L, Q are positive integer, and Z is not less than P.
10. the device as described in claim 6~9 is any, it is characterised in that the switch unit is additionally operable to:
The host apparatus port for triggering the first switching equipment stops after receiving business data frame, and triggering enables the first switching equipment Standby transport port transmission business data frame before, detect that the primary transmission port of the first switching equipment receives the second friendship The business data frame that exchange device side is sent, host apparatus port is forwarded to by business data frame from primary transmission port, primary to set Standby port is transmitted processing to business data frame.
CN201410019427.6A 2014-01-16 2014-01-16 A kind of link automatic switching method and device Active CN104796329B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410019427.6A CN104796329B (en) 2014-01-16 2014-01-16 A kind of link automatic switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410019427.6A CN104796329B (en) 2014-01-16 2014-01-16 A kind of link automatic switching method and device

Publications (2)

Publication Number Publication Date
CN104796329A CN104796329A (en) 2015-07-22
CN104796329B true CN104796329B (en) 2017-11-28

Family

ID=53560853

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410019427.6A Active CN104796329B (en) 2014-01-16 2014-01-16 A kind of link automatic switching method and device

Country Status (1)

Country Link
CN (1) CN104796329B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107872822A (en) * 2016-09-23 2018-04-03 大唐移动通信设备有限公司 The bearing method and bogey of a kind of business

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105099825B (en) * 2015-08-17 2018-10-02 北京神州绿盟信息安全科技股份有限公司 A kind of safeguard method and device of external Bypass
CN106656311A (en) * 2016-12-15 2017-05-10 国网山东省电力公司长岛县供电公司 Data link backup apparatus and method
CN110267285B (en) * 2019-06-28 2021-02-09 京信通信系统(中国)有限公司 Main/standby link switching method and device and digital switch
CN110545566B (en) * 2019-09-11 2021-04-27 腾讯科技(深圳)有限公司 Link switching method, device, equipment and storage medium
CN110768848B (en) * 2019-10-31 2022-07-01 杭州迪普科技股份有限公司 Method and device for switching main server and standby server
CN110943998B (en) * 2019-12-04 2022-02-01 腾讯科技(深圳)有限公司 Signal transmission method, device, equipment and medium
CN113395726B (en) * 2021-06-21 2023-02-17 迈普通信技术股份有限公司 Backup link detection method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1984039A (en) * 2006-04-23 2007-06-20 华为技术有限公司 Fast re-routing method for shared multi-port transmitting link
CN101026798A (en) * 2007-03-12 2007-08-29 华为技术有限公司 Iub interface business transmission method and device based on IP transmission
CN101170459A (en) * 2007-11-28 2008-04-30 中兴通讯股份有限公司 Failure detection and link recovery method based on bidirectional forward link
CN101212408A (en) * 2006-12-29 2008-07-02 中兴通讯股份有限公司 Load-sharing switching system and port-level protective switching method
CN102664702A (en) * 2012-04-05 2012-09-12 烽火通信科技股份有限公司 Protection mode of cross disc of M to N

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9077561B2 (en) * 2012-03-27 2015-07-07 Juniper Networks, Inc. OAM label switched path for fast reroute of protected label switched paths

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1984039A (en) * 2006-04-23 2007-06-20 华为技术有限公司 Fast re-routing method for shared multi-port transmitting link
CN101212408A (en) * 2006-12-29 2008-07-02 中兴通讯股份有限公司 Load-sharing switching system and port-level protective switching method
CN101026798A (en) * 2007-03-12 2007-08-29 华为技术有限公司 Iub interface business transmission method and device based on IP transmission
CN101170459A (en) * 2007-11-28 2008-04-30 中兴通讯股份有限公司 Failure detection and link recovery method based on bidirectional forward link
CN102664702A (en) * 2012-04-05 2012-09-12 烽火通信科技股份有限公司 Protection mode of cross disc of M to N

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107872822A (en) * 2016-09-23 2018-04-03 大唐移动通信设备有限公司 The bearing method and bogey of a kind of business
CN107872822B (en) * 2016-09-23 2020-05-26 大唐移动通信设备有限公司 Service bearing method and device

Also Published As

Publication number Publication date
CN104796329A (en) 2015-07-22

Similar Documents

Publication Publication Date Title
CN104796329B (en) A kind of link automatic switching method and device
CN103780407B (en) gateway dynamic switching method and device in distributed elastic network interconnection (DRNI)
CN105205021B (en) Disconnect the method and apparatus linked between PCIe device and main frame
CN103312411B (en) Optical fiber link fault detection method and device
CN103957155B (en) Message transmitting method, device and interconnecting interface
CN101094121B (en) Method, system and device for detecting Ethernet links among not direct connected devices
CN104243239B (en) The condition detection method and device of controller in a kind of SDN clusters
CN101753284A (en) 10/100M Ethernet double interface switching method based upon carrier detect and device thereof
CN105429814A (en) Method and device for BFD protection by utilizing multiple board cards
CN106533736A (en) Network device reboot method and apparatus
CN101335657A (en) Communication device, communication method, communication interface, and program product
CN105227456B (en) A kind of aggregated link failures restore the method and device of transmission
CN104317679B (en) A kind of SCADA system is based on the communication fault-tolerance method of thread redundancy
CN106789387A (en) A kind of chain circuit detecting method and device for SDN
CN101163059B (en) Network node detection method and apparatus
CN106093683A (en) Heater broken wire detection system and wire break detection method
CN103220201B (en) A kind of method and device of detection and protection of ring network faults
CN102710483A (en) RS485 (Recommended Standard 485) intelligent loop
CN101217405B (en) SGSN backup method and communication system, communication device
CN104202193B (en) The method of distributed protection link failure detection
CN105187274A (en) Method for judging port state and selecting good port communication
CN103684719B (en) Network dual-redundancy hot swap method independent of platforms
CN102355367B (en) A kind of distributed LACP user equipments deadlock prevention technique and device
CN106850264B (en) A kind of network equipment
CN102149116B (en) Backup method and device for coordinator of wireless private area network

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
GR01 Patent grant
GR01 Patent grant