CN102957607A - Method, related device and system for switching over links - Google Patents

Method, related device and system for switching over links Download PDF

Info

Publication number
CN102957607A
CN102957607A CN2012104383102A CN201210438310A CN102957607A CN 102957607 A CN102957607 A CN 102957607A CN 2012104383102 A CN2012104383102 A CN 2012104383102A CN 201210438310 A CN201210438310 A CN 201210438310A CN 102957607 A CN102957607 A CN 102957607A
Authority
CN
China
Prior art keywords
ethernet port
side ethernet
equipment
safe
device shifter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012104383102A
Other languages
Chinese (zh)
Other versions
CN102957607B (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.)
Nantong yunshangxiang home textile e-commerce Co., Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210438310.2A priority Critical patent/CN102957607B/en
Publication of CN102957607A publication Critical patent/CN102957607A/en
Application granted granted Critical
Publication of CN102957607B publication Critical patent/CN102957607B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses a method and a related device for switching over links. The method comprises the following steps that bypass equipment receives a link switchover command sent by safe forthright equipment; the safe forthright equipment responds to the link switchover command, routes business dataflow input from a first-side Ethernet port to the bypass equipment; and the business dataflow is output from a second-side Ethernet port after being processed by the bypass equipment, wherein the bypass equipment and the safe forthright equipment share the first-side Ethernet port and the second-side Ethernet port.

Description

A kind of link switch-over method and relevant apparatus, system
Technical field
The present invention relates to Internet technical field, be specifically related to a kind of link switch-over method and relevant apparatus, system.
Background technology
In the Internet, in order effectively to eliminate the potential safety hazards such as virus, wooden horse, spam, assault, usually at network link deploy UTM (Unified Threat Management, UTM), IPS (Intrusion Protection System, IPS), Distributed Denial of Service attack (Distributed Denial of Service, DDOS) or deep message detect safe forthright equipment such as (Deep Packet Inspection, DPI).The safety services such as these safe forthright deployed with devices can detect network traffics on network link, analyze, filtration are processed, thereby it is reliable to guarantee network security.Yet the deployment of these safe forthright equipment also can be introduced new malfunctioning node to the Internet, when these safe forthright equipment break down or during powered-off fault, can cause network link to interrupt, thereby cause serious consequence.Can well solve the network reliability problem that safe forthright equipment itself is introduced and introduce bypass (BYPASS) equipment.
Wherein, BYPASS equipment can have normal operating conditions and these two kinds of operating states of bypass protection state.In normal operation, BYPASS equipment can be sent into service traffics (comprising the uplink and downlink flow) safe forthright device processes and output by diverter switch; When safe forthright equipment breaks down or during powered-off fault, BYPASS equipment switches to the bypass protection state by diverter switch, this moment, service traffics were no longer sent into safe forthright device processes, but by BYPASS device processes and output.In actual applications, BYPASS equipment need to detect the heartbeat that safe forthright equipment periodic initiatively sends usually, and detects and adopt pure relay mode handoff links when heartbeat is lost, thereby BYPASS equipment is processed and output service traffics.
Find in the practice, safe forthright equipment periodic initiatively sends central processing unit (the Central Processing Unit that the heartbeat meeting aggravates safe forthright equipment, CPU) load, and BYPASS equipment adopts pure relay mode to realize that link switching also can cause the again negotiation of upstream and downstream port, thereby so that the link switching overlong time may cause client's loss of vital data.
Summary of the invention
The embodiment of the invention provides a kind of link switch-over method and relevant apparatus, is used for realizing that link switches fast.
Embodiment of the invention first aspect provides a kind of link switch-over method, comprising:
Bypass equipment receives the link switching order that safe forthright equipment sends;
Described bypass equipment responds described link switching order, will route to from the business data flow of the first side ethernet port input to export from the second side ethernet port after described bypass equipment is processed; Wherein, described bypass equipment and described safe forthright equipment share described the first side ethernet port and the second side ethernet port.
In the possible implementation of the first of embodiment of the invention first aspect, the link switching order that described bypass equipment receives safe forthright equipment transmission comprises:
Bypass equipment receives the link switching order that safe forthright equipment sends by management channels.
In conjunction with embodiment of the invention first aspect, or the possible implementation of the first of embodiment of the invention first aspect, in the possible implementation of the second of embodiment of the invention first aspect, described method also comprises:
Described bypass equipment sends heartbeat message to described safe forthright equipment, and detect and whether in Preset Time, receive the heartbeat message that described safe forthright equipment returns, if not, then will route to from the business data flow of the first side ethernet port input and export from the second side ethernet port after described bypass equipment is processed.
In conjunction with the possible implementation of the second of embodiment of the invention first aspect, in the third possible implementation of embodiment of the invention first aspect, described the first side ethernet port and the second side ethernet port are configured to respectively main frame MASTER pattern and slave SLAVE pattern, and described method also comprises:
Trigger described the first side ethernet port during described bypass equipment power down and the second side ethernet port physics is direct-connected, so that export from described the second side ethernet port from the business data flow of described the first side ethernet port input.
Embodiment of the invention second aspect provides a kind of bypass equipment, comprises logic switching device shifter, the first side ethernet port and the second side ethernet port;
Described logic switching device shifter, be used for receiving the link switching order that safe forthright equipment sends, and respond described link switching order, will route to from the business data flow of described the first side ethernet port input described logic switching device shifter and process rear from described the second side ethernet port output; Wherein, described logic switching device shifter and described safe forthright equipment share described the first side ethernet port and described the second side ethernet port.
In the possible implementation of the first of second of the embodiment of the invention, the concrete mode that described logic switching device shifter receives the link switching order of safe forthright equipment transmission is:
Described logic switching device shifter is used for receiving the link switching order that safe forthright equipment sends by management channels.
In conjunction with embodiment of the invention second aspect, or the possible implementation of the first of embodiment of the invention second aspect, in the possible implementation of the second of embodiment of the invention second aspect, described bypass equipment also comprises the logic heartbeat detection device that links with described logic switching device shifter, be used for sending heartbeat message to described safe forthright equipment, and detect and whether in Preset Time, receive the heartbeat message that described safe forthright equipment returns, if not, then trigger described logic switching device shifter and will route to described logic switching device shifter from the business data flow of described the first side ethernet port input and process after from described the second side ethernet port output;
Described logic switching device shifter also is used for after will routing to described logic switching device shifter from the business data flow of described the first side ethernet port input under the triggering of described logic heartbeat detection device and processing from described the second side ethernet port output.
In conjunction with the possible implementation of the second of embodiment of the invention second aspect, in the third possible implementation of embodiment of the invention second aspect, described the first side ethernet port and the second side ethernet port are configured to respectively main frame MASTER pattern and slave SLAVE pattern, described bypass equipment also comprises physical switch, be used for when described bypass equipment power down, triggering described the first side ethernet port and the second side ethernet port physics is direct-connected, so that export from described the second side ethernet port from the business data flow of described the first side ethernet port input.
The embodiment of the invention third aspect provides a kind of link switching system, comprises bypass equipment and safe forthright equipment, and wherein, described bypass equipment comprises logic switching device shifter, the first side ethernet port and the second side ethernet port; Described logic switching device shifter and described safe forthright equipment share described the first side ethernet port and described the second side ethernet port;
Described logic switching device shifter, be used for receiving the link switching order that described safe forthright equipment sends, and respond described link switching order, will route to from the business data flow of described the first side ethernet port input described logic switching device shifter and process rear from described the second side ethernet port output.
In the possible implementation of the first of the 3rd of the embodiment of the invention, the concrete mode that described logic switching device shifter receives the link switching order of safe forthright equipment transmission is:
Described logic switching device shifter is used for receiving the link switching order that safe forthright equipment sends by management channels.
In conjunction with the embodiment of the invention third aspect, or the possible implementation of the first of the embodiment of the invention third aspect, in the possible implementation of the second of the embodiment of the invention third aspect, described bypass equipment also comprises the logic heartbeat detection device that links with described logic switching device shifter, be used for sending heartbeat message to described safe forthright equipment, and detect and whether in Preset Time, receive the heartbeat message that described safe forthright equipment returns, if not, then trigger described logic switching device shifter and will route to described logic switching device shifter from the business data flow of described the first side ethernet port input and process after from described the second side ethernet port output;
Described logic switching device shifter also is used for after will routing to described logic switching device shifter from the business data flow of described the first side ethernet port input under the triggering of described logic heartbeat detection device and processing from described the second side ethernet port output.
In conjunction with the possible implementation of the second of the embodiment of the invention third aspect, in the third possible implementation of the embodiment of the invention third aspect, described the first side ethernet port and the second side ethernet port are configured to respectively main frame MASTER pattern and slave SLAVE pattern, described bypass equipment also comprises physical switch, be used for when described bypass equipment power down, triggering described the first side ethernet port and the second side ethernet port physics is direct-connected, so that export from described the second side ethernet port from the business data flow of described the first side ethernet port input.
In the embodiment of the invention, bypass equipment is after the link switching order that receives safe forthright equipment transmission, can respond this link switching order, to route to from the business data flow of the first side ethernet port input and export from the second side ethernet port after bypass equipment is processed, because bypass equipment and safe forthright equipment share the first side ethernet port and the second side ethernet port, so that bypass equipment need not to carry out the again negotiation of upstream and downstream port again when link switching, thereby can realize that link switches fast, avoid the link switching overlong time and client's loss of vital data of causing.
In the embodiment of the invention, bypass equipment can also send heartbeat message to safe forthright equipment, and when in Preset Time, not receiving the heartbeat message that safe forthright equipment returns, will route to from the business data flow of the first side ethernet port input and export from the second side ethernet port after bypass equipment is processed.The embodiment of the invention can be saved safe forthright equipment periodic and initiatively send heartbeat, thereby can effectively reduce the cpu load of safe forthright equipment.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the invention, the below will do to introduce simply to the accompanying drawing of required use among the embodiment, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the flow chart of a kind of link switch-over method of providing of the embodiment of the invention;
Fig. 2 is the structure chart of a kind of bypass equipment of providing of the embodiment of the invention;
Fig. 3 is the structure chart of the another kind of bypass equipment that provides of the embodiment of the invention;
Fig. 4 is the flow chart of a kind of link switching system of providing of the embodiment of the invention;
Fig. 5 is the structure chart of the another kind of link switching system that provides of the embodiment of the invention;
Fig. 6 is the structure chart of another link switching system of providing of the embodiment of the invention;
Fig. 7 is the structure chart of another link switching system of providing of the embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The embodiment of the invention provides a kind of link switch-over method and relevant apparatus, system, the method, device and system need not to carry out the again negotiation of upstream and downstream port when link switching, can realize that link switches fast, client's loss of vital data of avoiding the link switching overlong time and causing, initiatively send heartbeat but also can save safe forthright equipment periodic, effectively reduce the cpu load of safe forthright equipment.Below be elaborated respectively.
See also Fig. 1, Fig. 1 is the flow chart of a kind of link switch-over method of providing of the embodiment of the invention.As shown in Figure 1, this link switch-over method can may further comprise the steps.
101, bypass equipment receives the link switching order that safe forthright equipment sends.
Among the embodiment, bypass equipment can be by management channels and safe forthright linking of devices, and correspondingly, bypass equipment can receive the link switching order that safe forthright equipment sends by management channels.
In the embodiment of the invention, safe forthright equipment initiatively sends the link switching order to bypass equipment by management channels, can realize the link switching of initiatively being initiated by safe forthright equipment.
In the embodiment of the invention, safe forthright equipment comprises the safe forthright equipment such as UTM, the DDOS of potential safety hazards such as can eliminating virus, wooden horse, spam, assault and DPI, and the embodiment of the invention is not done concrete restriction.Among the embodiment, bypass equipment also can be and the equipment of safe forthright equipment same type that the embodiment of the invention is not construed as limiting.
102, bypass equipment responds this link switching order, will route to from the business data flow of the first side ethernet port input to export from the second side ethernet port after bypass equipment is processed; Wherein, bypass equipment and safe forthright equipment share the first side ethernet port and the second side ethernet port.
In the embodiment of the invention, bypass equipment can carry out the processing identical with safe forthright equipment to the business data flow that flows into, such as service traffics being detected, analyze and the safety service such as filtration being processed.
Among the embodiment, the described link switch-over method of Fig. 1 is further comprising the steps of:
Bypass equipment sends heartbeat message to safe forthright equipment, and detect and whether in Preset Time, receive the heartbeat message that safe forthright equipment returns, if not, then will route to from the business data flow of the first side ethernet port input and export from the second side ethernet port after described bypass equipment is processed.
Because the interface bandwidth of present safe forthright equipment is all very high, so even bypass equipment sends a heartbeat message to safe forthright equipment every 1ms, for the CPU of safe forthright equipment, also can not bring very large load.Under passive link switching scene, the precision that bypass equipment carries out link switching has just reached Millisecond like this, if necessary, can also be with precision setting higher.
Among the embodiment, the first side ethernet port and the second side ethernet port can be configured to respectively main frame (MASTER) pattern and slave (SLAVE) pattern in the described link switch-over method of Fig. 1, correspondingly, the described link switch-over method of Fig. 1 is further comprising the steps of:
Trigger the first side ethernet port during the bypass equipment power down and the second side ethernet port physics is direct-connected, so that export from the second side ethernet port from the business data flow of the first side ethernet port input.
In the described link switch-over method of Fig. 1, bypass equipment is after the link switching order that receives safe forthright equipment transmission, can respond this link switching order, to route to from the business data flow of the first side ethernet port input and export from the second side ethernet port after bypass equipment is processed, because bypass equipment and safe forthright equipment share the first side ethernet port and the second side ethernet port, so that bypass equipment need not to carry out the again negotiation of upstream and downstream port again when link switching, thereby can realize that link switches fast, avoid the link switching overlong time and client's loss of vital data of causing.
In the described link switch-over method of Fig. 1, bypass equipment can also send heartbeat message to safe forthright equipment, and when in Preset Time, not receiving the heartbeat message that safe forthright equipment returns, will route to from the business data flow of the first side ethernet port input and export from the second side ethernet port after bypass equipment is processed.The embodiment of the invention can be saved safe forthright equipment periodic and initiatively send heartbeat, thereby can effectively reduce the cpu load of safe forthright equipment.
See also Fig. 2, Fig. 2 is the structure chart of a kind of bypass equipment of providing of the embodiment of the invention.As shown in Figure 2, this bypass equipment can comprise:
Logic switching device shifter 1, the first side ethernet port A and the second side ethernet port B;
Wherein, logic switching device shifter 1, be used for receiving the link switching order that safe forthright equipment sends, and respond this link switching order, will route to from the business data flow of the first side ethernet port input and export from the second side ethernet port after logic switching device shifter 1 is processed; Wherein, logic switching device shifter 1 and safe forthright equipment share the first side ethernet port A and the second side ethernet port B.
In the embodiment of the invention, the concrete mode that logic switching device shifter 1 receives the link switching order of safe forthright equipment transmission is:
Logic switching device shifter 1 is used for receiving the link switching order that safe forthright equipment sends by management channels.
See also Fig. 3, Fig. 3 is the structure chart of the another kind of bypass equipment that provides of the embodiment of the invention.Wherein, bypass equipment shown in Figure 3 is to be optimized by bypass equipment shown in Figure 2 to obtain.As shown in Figure 3, this bypass equipment can also comprise:
The logic heartbeat detection device 2 that links with logic switching device shifter 1, be used for sending heartbeat message to safe forthright equipment, and detect and whether in Preset Time, receive the heartbeat message that safe forthright equipment returns, if not, then triggering logic switching device shifter 1 will route to from the business data flow of the first side ethernet port A input and export from the second side ethernet port B after logic switching device shifter 1 is processed;
Correspondingly, logic switching device shifter 1 also is used for exporting from the second side ethernet port B after will routing to logic switching device shifter 1 from the business data flow of the first side ethernet port A input under the triggering of logic heartbeat detection device 2 and processing.
Among the embodiment, the first side ethernet port A and the second side ethernet port B of Fig. 2 or bypass equipment shown in Figure 3 can be configured to respectively MASTER pattern and SLAVE pattern, correspondingly, bypass equipment also comprises physical switch, be used for when institute's bypass equipment power down, triggering the first side ethernet port A and the second side ethernet port B physics is direct-connected, so that export from the second side ethernet port B from the business data flow of the first side ethernet port A input.
The bypass equipment that the embodiment of the invention provides is after the link switching order that receives safe forthright equipment transmission, can respond this link switching order, to route to from the business data flow of the first side ethernet port input and export from the second side ethernet port after bypass equipment is processed, because bypass equipment and safe forthright equipment share the first side ethernet port and the second side ethernet port, so that bypass equipment need not to carry out the again negotiation of upstream and downstream port again when link switching, thereby can realize that link switches fast, avoid the link switching overlong time and client's loss of vital data of causing.
The bypass equipment that the embodiment of the invention provides can also send heartbeat message to safe forthright equipment, and when in Preset Time, not receiving the heartbeat message that safe forthright equipment returns, will route to from the business data flow of the first side ethernet port input and export from the second side ethernet port after bypass equipment is processed.The embodiment of the invention can be saved safe forthright equipment periodic and initiatively send heartbeat, thereby can effectively reduce the cpu load of safe forthright equipment.
See also Fig. 4, Fig. 4 is the structure chart of a kind of link switching system of providing of the embodiment of the invention.As shown in Figure 4, this link switching system can comprise bypass equipment 41 and safe forthright equipment 42, and wherein, bypass equipment 41 comprises logic switching device shifter 1, the first side ethernet port A and the second side ethernet port B; Logic switching device shifter 1 and safe forthright equipment 42 share the first side ethernet port A and the second side ethernet port B, wherein:
Logic switching device shifter 1, be used for receiving the link switching order that safe forthright equipment 42 sends, and respond this link switching order, will route to from the business data flow of the first side ethernet port A input and export from the second side ethernet port B after logic switching device shifter 1 is processed.
That is, logic switching device shifter 1 is used for and will inputs the business datum stream (Fig. 4 solid line) of safe forthright equipment 42 by exporting (dotted line sign Fig. 4) from the second side ethernet port B after processing to logic switching device shifter 1 from the first side ethernet port A.
Among the embodiment, logic switching device shifter 1 can link by management channels and safe forthright equipment 42, and correspondingly, the concrete mode that logic switching device shifter 1 receives the link switching order of safe forthright equipment 42 transmissions is:
Logic switching device shifter 1 is used for receiving the link switching order that safe forthright equipment 42 sends by management channels.
In link switching system shown in Figure 4, initiatively trigger logic switching device shifter 1 by safe forthright equipment 42 and carry out link switching.When safe forthright equipment 42 needs to trigger the logic switching device shifter and carries out link switching under certain scene, safe forthright equipment 42 can issue the link switching order to the logic switching device shifter 1 of bypass equipment 41 by management channels, after logic switching device shifter 1 is received this link switching order, the business data flow (solid line Fig. 4) of originally inputting safe forthright equipment 42 from the first side ethernet port A is routed to dotted line sign among logic switching device shifter 1(Fig. 4) export from the second side ethernet port B after processing, namely the business data flow between the first side ethernet port A and the second side ethernet port B is directly processed in logic device 1 inside, send safe forthright equipment 42 on no longer.This link switching process is only adjusted the trend of business data flow, do not relate to the first side ethernet port A and the second side ethernet port B, do not need to carry out the heavily negotiation of upstream and downstream port, therefore can realize that link switches fast, client's loss of vital data of having avoided the link switching overlong time and having caused is accomplished zero packet loss.
See also Fig. 5, Fig. 5 is the structure chart of the another kind of link switching system that provides of the embodiment of the invention.Wherein, link switching system shown in Figure 5 is to be optimized by link switching system shown in Figure 4 to obtain.Compare with link switching system shown in Figure 4, link switching system shown in Figure 5 also comprises:
The logic heartbeat detection device 2 that links with logic switching device shifter 1, be used for sending heartbeat message to safe forthright equipment 42, and detect and whether in Preset Time, receive the heartbeat message that safe forthright equipment 42 returns, if not, then triggering logic switching device shifter 1 will route to from the business data flow of the first side ethernet port A input and export from the second side ethernet port B after logic switching device shifter 1 is processed;
Correspondingly, logic switching device shifter 1 also is used for exporting from the second side ethernet port B after will routing to logic switching device shifter 1 from the business data flow of the first side ethernet port A input under the triggering of logic heartbeat detection device 2 and processing.
In the embodiment of the invention, when safe forthright equipment 42 breaks down (non-power-failure), can't the scene of normal process business data flow under, just need bypass equipment initiatively to carry out link switching.As shown in Figure 5, logic heartbeat detection device 2 can regularly send heartbeat message (transmission frequency can arrange) by interface C to safe forthright equipment 42, after safe forthright equipment 42 is received this type of heartbeat message, this type of heartbeat message is returned to logic heartbeat detection device 2 by interface D.If logic heartbeat detection device 2 can be received heartbeat message in Preset Time, think that then safe forthright equipment is working properly, otherwise think that then heartbeat loses.When heartbeat was lost, logic heartbeat detection device 2 can trigger logic switching device shifter 1 and carry out link switching.
Because the interface bandwidth of safe forthright equipment 42 is all very high, so even logic heartbeat detection device 2 sends a heartbeat message every 1ms, also can not bring very large pressure for the CPU of safe forthright equipment 42.Under passive handoff scenario, the precision that logic switching device shifter 1 carries out link switching has just reached Millisecond like this, if necessary, can be with precision setting higher.
In the embodiment of the invention, the design of the heartbeat message type of logic heartbeat detection device 2 can be more flexible, logic heartbeat detection device 2 can send specific ethernet type heartbeat message, and is such as the type field of Ethernet message can being defined as privately owned sign, as shown in table 1 below:
Table 1
DMAC SMAC TYPE(0x5a5a)
Wherein, safe forthright equipment 42 can directly be done special processing with heartbeat message after receiving this type of heartbeat message, more safe and reliable like this.
See also Fig. 6, Fig. 6 is the structure chart of another link switching system of providing of the embodiment of the invention.Wherein, link switching system shown in Figure 6 is to be optimized and to be obtained by Fig. 5, link switching system shown in Figure 4.Compare with Fig. 5, link switching system shown in Figure 4, in link switching system shown in Figure 6, the first side ethernet port A and the second side ethernet port B can be configured to respectively MASTER pattern and SLAVE pattern, logic switching device shifter 1 also is used for triggering the first side ethernet port A when the bypass equipment power down and the second side ethernet port B physics is direct-connected like this, so that export from the second side ethernet port B from the business data flow of the first side ethernet port A input.
As shown in Figure 6, at first software is configured to the MASTER pattern with the first side ethernet port A of bypass equipment interface centering in starting configuration, the second side ethernet port B is configured to the SLAVE pattern, the network port C that docks with the first side ethernet port A like this will consult the pattern into SLAVE, and the network port D that docks with the second side ethernet port B will consult the pattern into MASTER; When powered-off fault appears in bypass equipment, physical switch can trigger action, the AB ports physical is direct-connected, be equivalent to network port CD docking, because the CD port had originally consulted to be MASTER and SLAVE, the CD network-side port need not again to consult again behind the analog switch action link switching like this, and link will continue to keep the UP state, thereby realizes the quick link switching function.Wherein, triggering the simulation switch motion can be realized by logic switching device shifter 1.
See also Fig. 7, Fig. 7 is the structure chart of another link switching system of providing of the embodiment of the invention.In link switched system shown in Figure 7, comprise by 2 physical interface GE0, GE1(can adjust interface type and quantity), relay simulation switching device shifter, (quantity and interface are corresponding for 2 ethernet PHY chips, being configured to PHY0 by software is MASTER, and PHY1 is SLAVE in addition), bypass equipment and safe forthright equipment that fpga chip (being used for realizing the function of logic switching device shifter and logic heartbeat detection device) consists of.In normal operation, business data flow enters bypass equipment by the GE0/GE1 mouth and delivers to safe forthright equipment again and process and then send from the GE1/GE0 port; Under safe forthright equipment fault (non-power-failure) state, business data flow is processed by the logic switching device shifter of fpga chip inside, no longer delivers to safe forthright device processes; And when the bypass equipment power down, the GE0/GE1 interface realizes that by relay physics is direct-connected.
In link switching system shown in Figure 7, PHY0 and GE0 have consisted of the first side ethernet port A, and PHY1 and GE1 have consisted of the second side ethernet port B.
The link switching system that the embodiment of the invention provides is after the link switching order that receives safe forthright equipment transmission, can respond this link switching order, to route to from the business data flow of the first side ethernet port input and export from the second side ethernet port after bypass equipment is processed, because bypass equipment and safe forthright equipment share the first side ethernet port and the second side ethernet port, so that bypass equipment need not to carry out the again negotiation of upstream and downstream port again when link switching, thereby can realize that link switches fast, avoid the link switching overlong time and client's loss of vital data of causing.
The link switching system that the embodiment of the invention provides can also send heartbeat message to safe forthright equipment, and when in Preset Time, not receiving the heartbeat message that safe forthright equipment returns, will route to from the business data flow of the first side ethernet port input and export from the second side ethernet port after bypass equipment is processed.The embodiment of the invention can be saved safe forthright equipment periodic and initiatively send heartbeat, thereby can effectively reduce the cpu load of safe forthright equipment.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of above-described embodiment is to come the relevant hardware of instruction finish by program, this program can be stored in the computer-readable recording medium, storage medium can comprise: flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc.
Above link switch-over method, system and the equipment that the embodiment of the invention is provided is described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (12)

1. a link switch-over method is characterized in that, comprising:
Bypass equipment receives the link switching order that safe forthright equipment sends;
Described bypass equipment responds described link switching order, will route to from the business data flow of the first side ethernet port input to export from the second side ethernet port after described bypass equipment is processed; Wherein, described bypass equipment and described safe forthright equipment share described the first side ethernet port and the second side ethernet port.
2. link switch-over method according to claim 1 is characterized in that, the link switching order that described bypass equipment receives safe forthright equipment transmission comprises:
Bypass equipment receives the link switching order that safe forthright equipment sends by management channels.
3. link switch-over method according to claim 1 and 2 is characterized in that, described method also comprises:
Described bypass equipment sends heartbeat message to described safe forthright equipment, and detect and whether in Preset Time, receive the heartbeat message that described safe forthright equipment returns, if not, then will route to from the business data flow of the first side ethernet port input and export from the second side ethernet port after described bypass equipment is processed.
4. link switch-over method according to claim 3 is characterized in that, described the first side ethernet port and the second side ethernet port are configured to respectively main frame MASTER pattern and slave SLAVE pattern, and described method also comprises:
Trigger described the first side ethernet port during described bypass equipment power down and the second side ethernet port physics is direct-connected, so that export from described the second side ethernet port from the business data flow of described the first side ethernet port input.
5. a bypass equipment is characterized in that, comprises logic switching device shifter, the first side ethernet port and the second side ethernet port;
Described logic switching device shifter, be used for receiving the link switching order that safe forthright equipment sends, and respond described link switching order, will route to from the business data flow of described the first side ethernet port input described logic switching device shifter and process rear from described the second side ethernet port output; Wherein, described logic switching device shifter and described safe forthright equipment share described the first side ethernet port and described the second side ethernet port.
6. bypass equipment according to claim 5 is characterized in that, the concrete mode that described logic switching device shifter receives the link switching order of safe forthright equipment transmission is:
Described logic switching device shifter is used for receiving the link switching order that safe forthright equipment sends by management channels.
7. according to claim 5 or 6 described bypass equipments, it is characterized in that, also comprise the logic heartbeat detection device that links with described logic switching device shifter, be used for sending heartbeat message to described safe forthright equipment, and detect and whether in Preset Time, receive the heartbeat message that described safe forthright equipment returns, if not, then trigger described logic switching device shifter and will route to described logic switching device shifter from the business data flow of described the first side ethernet port input and process after from described the second side ethernet port output;
Described logic switching device shifter also is used for after will routing to described logic switching device shifter from the business data flow of described the first side ethernet port input under the triggering of described logic heartbeat detection device and processing from described the second side ethernet port output.
8. bypass equipment according to claim 3, it is characterized in that, described the first side ethernet port and the second side ethernet port are configured to respectively main frame MASTER pattern and slave SLAVE pattern, described bypass equipment also comprises physical switch, be used for when described bypass equipment power down, triggering described the first side ethernet port and the second side ethernet port physics is direct-connected, so that export from described the second side ethernet port from the business data flow of described the first side ethernet port input.
9. a link switching system is characterized in that, comprises bypass equipment and safe forthright equipment, and wherein, described bypass equipment comprises logic switching device shifter, the first side ethernet port and the second side ethernet port; Described logic switching device shifter and described safe forthright equipment share described the first side ethernet port and described the second side ethernet port;
Described logic switching device shifter, be used for receiving the link switching order that described safe forthright equipment sends, and respond described link switching order, will route to from the business data flow of described the first side ethernet port input described logic switching device shifter and process rear from described the second side ethernet port output.
10. link switching system according to claim 9 is characterized in that, the concrete mode that described logic switching device shifter receives the link switching order of safe forthright equipment transmission is:
Described logic switching device shifter is used for receiving the link switching order that safe forthright equipment sends by management channels.
11. according to claim 9 or 10 described link switching systems, it is characterized in that, described bypass equipment also comprises the logic heartbeat detection device that links with described logic switching device shifter, be used for sending heartbeat message to described safe forthright equipment, and detect and whether in Preset Time, receive the heartbeat message that described safe forthright equipment returns, if not, then trigger described logic switching device shifter and will route to described logic switching device shifter from the business data flow of described the first side ethernet port input and process after from described the second side ethernet port output;
Described logic switching device shifter also is used for after will routing to described logic switching device shifter from the business data flow of described the first side ethernet port input under the triggering of described logic heartbeat detection device and processing from described the second side ethernet port output.
12. link switching system according to claim 11, it is characterized in that, described the first side ethernet port and the second side ethernet port are configured to respectively main frame MASTER pattern and slave SLAVE pattern, described bypass equipment also comprises physical switch, be used for when described bypass equipment power down, triggering described the first side ethernet port and the second side ethernet port physics is direct-connected, so that export from described the second side ethernet port from the business data flow of described the first side ethernet port input.
CN201210438310.2A 2012-11-06 2012-11-06 A kind of link switch-over method and relevant apparatus, system Active CN102957607B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210438310.2A CN102957607B (en) 2012-11-06 2012-11-06 A kind of link switch-over method and relevant apparatus, system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210438310.2A CN102957607B (en) 2012-11-06 2012-11-06 A kind of link switch-over method and relevant apparatus, system

Publications (2)

Publication Number Publication Date
CN102957607A true CN102957607A (en) 2013-03-06
CN102957607B CN102957607B (en) 2015-09-09

Family

ID=47765860

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210438310.2A Active CN102957607B (en) 2012-11-06 2012-11-06 A kind of link switch-over method and relevant apparatus, system

Country Status (1)

Country Link
CN (1) CN102957607B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220040A (en) * 2013-03-26 2013-07-24 汉柏科技有限公司 Method and system for switching state of embedded optical port BYPASS
CN104243203A (en) * 2014-08-28 2014-12-24 深圳市深信服电子科技有限公司 Virtual machine transmission interface status switching method and system
CN104394349A (en) * 2014-12-01 2015-03-04 大连科迪视频技术有限公司 Warm backup multi-format switching system and method for video conference
CN104734904A (en) * 2013-12-23 2015-06-24 研祥智能科技股份有限公司 Automatic detection method and system of by-pass equipment
CN107453956A (en) * 2017-09-15 2017-12-08 北京百卓网络技术有限公司 The method of communications network system, diverter device and its fast access into network
CN109714294A (en) * 2017-10-25 2019-05-03 华为技术有限公司 Physical chip, Network Security Device and data forwarding method
CN112187498A (en) * 2019-07-03 2021-01-05 中国电信股份有限公司 Bypass protection method, device and system thereof and Deep Packet Inspection (DPI) system
CN112543125A (en) * 2020-12-22 2021-03-23 宁波均联智行科技股份有限公司 Serial communication system and link switching method applied to same

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020089531A1 (en) * 1997-12-05 2002-07-11 Masahide Hirasawa Data communications apparatus and method, and computer readable storage medium storing programs
CN1929408A (en) * 2006-10-18 2007-03-14 杭州华为三康技术有限公司 By-pass combination system and business processing method based on said system
EP2271027A2 (en) * 2008-04-22 2011-01-05 Electronics and Telecommunications Research Institute Force protection switching method in ethernet ring network
CN102104397A (en) * 2009-12-22 2011-06-22 华为技术有限公司 Link protection method and device
CN102281178A (en) * 2011-08-01 2011-12-14 上海海得控制系统股份有限公司 Ring network link redundancy control system and control method thereof
CN102420767A (en) * 2011-12-15 2012-04-18 北京星网锐捷网络技术有限公司 Method and device for switching forwarding paths, and network equipment
CN102571457A (en) * 2012-02-28 2012-07-11 成都市华为赛门铁克科技有限公司 Method for triggering switching of bypass equipment, and method and device for switching bypass equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020089531A1 (en) * 1997-12-05 2002-07-11 Masahide Hirasawa Data communications apparatus and method, and computer readable storage medium storing programs
CN1929408A (en) * 2006-10-18 2007-03-14 杭州华为三康技术有限公司 By-pass combination system and business processing method based on said system
EP2271027A2 (en) * 2008-04-22 2011-01-05 Electronics and Telecommunications Research Institute Force protection switching method in ethernet ring network
CN102104397A (en) * 2009-12-22 2011-06-22 华为技术有限公司 Link protection method and device
CN102281178A (en) * 2011-08-01 2011-12-14 上海海得控制系统股份有限公司 Ring network link redundancy control system and control method thereof
CN102420767A (en) * 2011-12-15 2012-04-18 北京星网锐捷网络技术有限公司 Method and device for switching forwarding paths, and network equipment
CN102571457A (en) * 2012-02-28 2012-07-11 成都市华为赛门铁克科技有限公司 Method for triggering switching of bypass equipment, and method and device for switching bypass equipment

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220040A (en) * 2013-03-26 2013-07-24 汉柏科技有限公司 Method and system for switching state of embedded optical port BYPASS
CN104734904A (en) * 2013-12-23 2015-06-24 研祥智能科技股份有限公司 Automatic detection method and system of by-pass equipment
CN104734904B (en) * 2013-12-23 2019-04-12 研祥智能科技股份有限公司 The automatic test approach and system of bypass equipment
CN104243203A (en) * 2014-08-28 2014-12-24 深圳市深信服电子科技有限公司 Virtual machine transmission interface status switching method and system
CN104394349A (en) * 2014-12-01 2015-03-04 大连科迪视频技术有限公司 Warm backup multi-format switching system and method for video conference
CN107453956A (en) * 2017-09-15 2017-12-08 北京百卓网络技术有限公司 The method of communications network system, diverter device and its fast access into network
CN107453956B (en) * 2017-09-15 2020-04-28 北京百卓网络技术有限公司 Communication network system, shunt device and method for quickly accessing network
CN109714294A (en) * 2017-10-25 2019-05-03 华为技术有限公司 Physical chip, Network Security Device and data forwarding method
CN112187498A (en) * 2019-07-03 2021-01-05 中国电信股份有限公司 Bypass protection method, device and system thereof and Deep Packet Inspection (DPI) system
CN112187498B (en) * 2019-07-03 2022-09-06 中国电信股份有限公司 Bypass protection method, device and system thereof and Deep Packet Inspection (DPI) system
CN112543125A (en) * 2020-12-22 2021-03-23 宁波均联智行科技股份有限公司 Serial communication system and link switching method applied to same

Also Published As

Publication number Publication date
CN102957607B (en) 2015-09-09

Similar Documents

Publication Publication Date Title
CN102957607A (en) Method, related device and system for switching over links
EP2352253B1 (en) Method and apparatus for protecting link aggregation group of ethernet ring
EP2082508B1 (en) Monitoring link aggregation links
JP6379213B2 (en) Link switching method, apparatus and system
EP2627039B1 (en) Method and device for switching aggregation links
US20140071810A1 (en) Communication system and processing method therefor
CN105915400A (en) Data stream switching method and system
CN103368712A (en) Switchover method and device for main equipment and standby equipment
CN101800774A (en) Environmental-friendly accessing method and environmental-friendly accessing network
CN103188712A (en) Distributed base station redundancy overlay network system and wireless signal processing method
CN103607293A (en) Flow protection method and equipment thereof
CN101159504B (en) Synchronous digital hierarchy based ethernet protecting method
US11245615B2 (en) Method for determining link state, and device
US20140219080A1 (en) Method and apparatus for interworking protection switching
CN102255757A (en) Link switching method and device
CN101222402B (en) Ethernet ring protection method, system and device
CN104639437A (en) Forwarding method and apparatus of broadcast messages in stack system
CN113141268A (en) Method and device for realizing redundancy backup of link aggregation group of manual aggregation
CN102611602B (en) Looped network system and method for networking looped networks
CN105207871B (en) Double-cut ring network protection method and device
CN103036756A (en) Hybrid looped network protection method and system based on sharing channel
CN106330699B (en) Multicast link switching method and device and routing equipment
CN101771705A (en) Processing method based on RRPP and device
CN102378230B (en) Railway application base station system and networking method thereof
CN105490955B (en) A kind of method and apparatus of flow switching

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

Effective date of registration: 20191213

Address after: No.1, floor 3, No.319, zhanggongshan Road, Yuhui District, Bengbu City, Anhui Province

Patentee after: Bengbu guijiu Intellectual Property Service Co., Ltd

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: Huawei Technologies Co., Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201020

Address after: C020, 3rd floor, e-commerce Industrial Park, Nantong home textile city, Jinchuan Avenue, Chuanjiang Town, Tongzhou District, Nantong City, Jiangsu Province 226300

Patentee after: Nantong yunshangxiang home textile e-commerce Co., Ltd

Address before: No.1, floor 3, No.319, zhanggongshan Road, Yuhui District, Bengbu City, Anhui Province

Patentee before: Bengbu guijiu Intellectual Property Service Co.,Ltd.

TR01 Transfer of patent right