CN102957607B - A kind of link switch-over method and relevant apparatus, system - Google Patents

A kind of link switch-over method and relevant apparatus, system Download PDF

Info

Publication number
CN102957607B
CN102957607B CN201210438310.2A CN201210438310A CN102957607B CN 102957607 B CN102957607 B CN 102957607B CN 201210438310 A CN201210438310 A CN 201210438310A CN 102957607 B CN102957607 B CN 102957607B
Authority
CN
China
Prior art keywords
ethernet port
side ethernet
equipment
safe
forthright
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
CN201210438310.2A
Other languages
Chinese (zh)
Other versions
CN102957607A (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

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The embodiment of the invention discloses a kind of link switch-over method and relevant apparatus, the method comprises: bypass equipment receives the link switching order that safe forthright equipment sends; Described bypass equipment responds described link switching order, is routed to after described bypass equipment processes by the business data flow from the first side ethernet port input and exports from the second side ethernet port; Wherein, described bypass equipment and described safe forthright equipment share described 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 to effectively eliminate the potential safety hazards such as virus, wooden horse, spam, assault, usually UTM (Unified Threat Management is disposed on the network link, UTM), IPS (Intrusion Protection System, IPS), Distributed Denial of Service attack (Distributed Denial of Service, DDOS) or deep message detect the safe forthright equipment such as (Deep Packet Inspection, DPI).The safety service process such as these safe forthright deployed with devices can detect network traffics on the network link, analyze, filtration, thus it is reliable to guarantee network security.But the deployment of these safe forthright equipment also can introduce new malfunctioning node to the Internet, when these safe forthright equipment break down or powered-off fault time, can network link interruption be caused, thus cause serious consequence.And introduce the network reliability problem that bypass (BYPASS) equipment can well solve safe forthright equipment introducing itself.
Wherein, BYPASS equipment can have normal operating conditions and these two kinds of operating states of bypass protection state.In normal operation, service traffics (comprising uplink and downlink flow) can be sent into safe forthright device processes and export by diverter switch by BYPASS equipment; When safe forthright equipment break down or powered-off fault time, BYPASS equipment is switched to bypass protection state by diverter switch, now service traffics no longer send into safe forthright device processes, but is exported by BYPASS device processes.In actual applications, BYPASS equipment needs to detect the heartbeat that safe forthright device periodically initiatively sends usually, and adopts pure relay mode handoff links when detecting that heartbeat is lost, thus BYPASS equipment exports service traffics process.
Find in practice, safe forthright device periodically initiatively sends central processing unit (the Central Processing Unit that heartbeat can aggravate safe forthright equipment, CPU) load, and adopt pure relay mode the to realize negotiation again that link switching also can cause upstream and downstream port of BYPASS equipment, thus make link switching overlong time may cause client's loss of vital data.
Summary of the invention
The embodiment of the present invention provides a kind of link switch-over method and relevant apparatus, switches fast for realizing link.
Embodiment of the present 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, is routed to after described bypass equipment processes by the business data flow from the first side ethernet port input and exports from the second side ethernet port; Wherein, described bypass equipment and described safe forthright equipment share described first side ethernet port and the second side ethernet port.
In the first possible implementation of embodiment of the present invention first aspect, the link switching order that described bypass equipment receives the transmission of safe forthright equipment comprises:
Bypass equipment receives the link switching order that safe forthright equipment is sent by management channels.
In conjunction with embodiment of the present invention first aspect, or the first possible implementation of embodiment of the present invention first aspect, in the implementation that the second of embodiment of the present invention first aspect is possible, described method also comprises:
Described bypass equipment sends heartbeat message to described safe forthright equipment, and detect the heartbeat message whether receiving described safe forthright equipment and return in Preset Time, if not, then the business data flow from the first side ethernet port input is routed to after described bypass equipment processes and export from the second side ethernet port.
In conjunction with the implementation that the second of embodiment of the present invention first aspect is possible, in the third possible implementation of embodiment of the present invention first aspect, described first side ethernet port and the second side ethernet port are individually configured into main frame MASTER pattern with from machine SLAVE pattern, and described method also comprises:
Described first side ethernet port is triggered and the second side ethernet port physics is direct-connected, to make to export from the business data flow of described first side ethernet port input from described second side ethernet port during described bypass equipment power down.
Embodiment of the present invention second aspect provides a kind of bypass equipment, comprises logic switch device, the first side ethernet port and the second side ethernet port;
Described logic switch device, for receiving the link switching order that safe forthright equipment sends, and respond described link switching order, the business data flow from described first side ethernet port input is routed to after described logic switch device processes and exports from described second side ethernet port; Wherein, described logic switch device and described safe forthright equipment share described first side ethernet port and described second side ethernet port.
In the first possible implementation of the embodiment of the present invention second, the concrete mode that described logic switch device receives the link switching order that safe forthright equipment sends is:
The link switching order that described logic switch device is sent by management channels for receiving safe forthright equipment.
In conjunction with embodiment of the present invention second aspect, or the first possible implementation of embodiment of the present invention second aspect, in the implementation that the second of embodiment of the present invention second aspect is possible, described bypass equipment also comprises the logic heartbeat detection device linked with described logic switch device, for sending heartbeat message to described safe forthright equipment, and detect the heartbeat message whether receiving described safe forthright equipment and return in Preset Time, if not, then trigger described logic switch device the business data flow from described first side ethernet port input is routed to after described logic switch device processes to export from described second side ethernet port,
Described logic switch device, also exports from described second side ethernet port for being routed to after described logic switch device processes by the business data flow from described first side ethernet port input under the triggering of described logic heartbeat detection device.
In conjunction with the implementation that the second of embodiment of the present invention second aspect is possible, in the third possible implementation of embodiment of the present invention second aspect, described first side ethernet port and the second side ethernet port are individually configured into main frame MASTER pattern with from machine SLAVE pattern, described bypass equipment also comprises physical switch, for triggering described first side ethernet port when described bypass equipment power down and the second side ethernet port physics is direct-connected, to make to export from the business data flow of described first side ethernet port input from described second side ethernet port.
The embodiment of the present invention third aspect provides a kind of link switching system, comprises bypass equipment and safe forthright equipment, and wherein, described bypass equipment comprises logic switch device, the first side ethernet port and the second side ethernet port; Described logic switch device and described safe forthright equipment share described first side ethernet port and described second side ethernet port;
Described logic switch device, for receiving the link switching order that described safe forthright equipment sends, and respond described link switching order, the business data flow from described first side ethernet port input is routed to after described logic switch device processes and exports from described second side ethernet port.
In the first possible implementation of the embodiment of the present invention the 3rd, the concrete mode that described logic switch device receives the link switching order that safe forthright equipment sends is:
The link switching order that described logic switch device is sent by management channels for receiving safe forthright equipment.
In conjunction with the embodiment of the present invention third aspect, or the first possible implementation of the embodiment of the present invention third aspect, in the implementation that the second of the embodiment of the present invention third aspect is possible, described bypass equipment also comprises the logic heartbeat detection device linked with described logic switch device, for sending heartbeat message to described safe forthright equipment, and detect the heartbeat message whether receiving described safe forthright equipment and return in Preset Time, if not, then trigger described logic switch device the business data flow from described first side ethernet port input is routed to after described logic switch device processes to export from described second side ethernet port,
Described logic switch device, also exports from described second side ethernet port for being routed to after described logic switch device processes by the business data flow from described first side ethernet port input under the triggering of described logic heartbeat detection device.
In conjunction with the implementation that the second of the embodiment of the present invention third aspect is possible, in the third possible implementation of the embodiment of the present invention third aspect, described first side ethernet port and the second side ethernet port are individually configured into main frame MASTER pattern with from machine SLAVE pattern, described bypass equipment also comprises physical switch, for triggering described first side ethernet port when described bypass equipment power down and the second side ethernet port physics is direct-connected, to make to export from the business data flow of described first side ethernet port input from described second side ethernet port.
In the embodiment of the present invention, bypass equipment is after the link switching order receiving the transmission of safe forthright equipment, this link switching order can be responded, business data flow from the first side ethernet port input is routed to after bypass equipment processes and exports from the second side ethernet port, because bypass equipment and safe forthright equipment share the first side ethernet port and the second side ethernet port, make bypass equipment when link switching without the need to carrying out the negotiation again of upstream and downstream port again, thus link can be realized switch fast, avoid link switching overlong time and the client's loss of vital data caused.
In the embodiment of the present invention, bypass equipment can also send heartbeat message to safe forthright equipment, and when not receiving the heartbeat message that safe forthright equipment returns in Preset Time, the business data flow from the first side ethernet port input is routed to after bypass equipment processes and exports from the second side ethernet port.The embodiment of the present invention can be saved safe forthright device periodically and initiatively send heartbeat, thus effectively can reduce the cpu load of safe forthright equipment.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of a kind of link switch-over method that the embodiment of the present invention provides;
Fig. 2 is the structure chart of a kind of bypass equipment that the embodiment of the present invention provides;
Fig. 3 is the structure chart of the another kind of bypass equipment that the embodiment of the present invention provides;
Fig. 4 is the flow chart of a kind of link switching system that the embodiment of the present invention provides;
Fig. 5 is the structure chart of the another kind of link switching system that the embodiment of the present invention provides;
Fig. 6 is the structure chart of another link switching system that the embodiment of the present invention provides;
Fig. 7 is the structure chart of another link switching system that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of link switch-over method and relevant apparatus, system, the method, device and system when link switching without the need to carrying out the negotiation again of upstream and downstream port, link can be realized switch fast, avoid link switching overlong time and the client's loss of vital data caused, but also safe forthright device periodically can be saved initiatively send heartbeat, effectively reduce the cpu load of safe forthright equipment.Below be described in detail respectively.
Refer to Fig. 1, Fig. 1 is the flow chart of a kind of link switch-over method that the embodiment of the present invention provides.As shown in Figure 1, this link switch-over method can comprise the following steps.
101, bypass equipment receives the link switching order that safe forthright equipment sends.
In an embodiment, bypass equipment can by management channels and safe forthright linking of devices, and correspondingly, bypass equipment can receive the link switching order that safe forthright equipment is sent by management channels.
In the embodiment of the present invention, safe forthright equipment initiatively sends 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 present invention, safe forthright equipment comprises the safe forthright equipment such as UTM, DDOS and DPI can eliminating the potential safety hazards such as virus, wooden horse, spam, assault, and the embodiment of the present invention does not do concrete restriction.In an embodiment, bypass equipment also can be the equipment with the identical type of safe forthright equipment, and the embodiment of the present invention is not construed as limiting.
102, bypass equipment responds this link switching order, is routed to after bypass equipment processes by the business data flow from the first side ethernet port input and exports from the second side ethernet port; Wherein, bypass equipment and safe forthright equipment share the first side ethernet port and the second side ethernet port.
In the embodiment of the present invention, bypass equipment can carry out the process identical with safe forthright equipment to the business data flow flowed into, such as, detect service traffics, analyze and the safety service process such as filtration.
In an embodiment, the link switch-over method described by Fig. 1 is further comprising the steps of:
Bypass equipment sends heartbeat message to safe forthright equipment, and detect the heartbeat message whether receiving safe forthright equipment and return in Preset Time, if not, then the business data flow from the first side ethernet port input is routed to after described bypass equipment processes and export from the second side ethernet port.
Because the interface bandwidth of current safe forthright equipment is all very high, even if so bypass equipment sends a heartbeat message to safe forthright equipment every 1ms, for safe forthright equipment CPU also can not bring very large load.Like this under passive link switching scene, the precision that bypass equipment carries out link switching just reaches Millisecond, if necessary, and can also higher by precision setting.
In an embodiment, in link switch-over method described by Fig. 1, the first side ethernet port and the second side ethernet port can be individually configured into main frame (MASTER) pattern with from machine (SLAVE) pattern, correspondingly, the link switch-over method described by Fig. 1 is further comprising the steps of:
The first side ethernet port is triggered and the second side ethernet port physics is direct-connected, to make to export from the business data flow of the first side ethernet port input from the second side ethernet port during bypass equipment power down.
In the link switch-over method described by Fig. 1, bypass equipment is after the link switching order receiving the transmission of safe forthright equipment, this link switching order can be responded, business data flow from the first side ethernet port input is routed to after bypass equipment processes and exports from the second side ethernet port, because bypass equipment and safe forthright equipment share the first side ethernet port and the second side ethernet port, make bypass equipment when link switching without the need to carrying out the negotiation again of upstream and downstream port again, thus link can be realized switch fast, avoid link switching overlong time and the client's loss of vital data caused.
In the link switch-over method described by Fig. 1, bypass equipment can also send heartbeat message to safe forthright equipment, and when not receiving the heartbeat message that safe forthright equipment returns in Preset Time, the business data flow from the first side ethernet port input is routed to after bypass equipment processes and exports from the second side ethernet port.The embodiment of the present invention can be saved safe forthright device periodically and initiatively send heartbeat, thus effectively can reduce the cpu load of safe forthright equipment.
Refer to Fig. 2, Fig. 2 is the structure chart of a kind of bypass equipment that the embodiment of the present invention provides.As shown in Figure 2, this bypass equipment can comprise:
Logic switch device 1, first side ethernet port A and the second side ethernet port B;
Wherein, logic switch device 1, for receiving the link switching order that safe forthright equipment sends, and responding this link switching order, the business data flow from the first side ethernet port input being routed to after logic switch device 1 processes and exports from the second side ethernet port; Wherein, logic switch device 1 and safe forthright equipment share the first side ethernet port A and the second side ethernet port B.
In the embodiment of the present invention, the concrete mode that logic switch device 1 receives the link switching order that safe forthright equipment sends is:
The link switching order that logic switch device 1 is sent by management channels for receiving safe forthright equipment.
See also Fig. 3, Fig. 3 is the structure chart of the another kind of bypass equipment that the embodiment of the present invention provides.Wherein, the bypass equipment shown in Fig. 3 is that bypass equipment is as shown in Figure 2 optimized and obtains.As shown in Figure 3, this bypass equipment can also comprise:
The logic heartbeat detection device 2 linked with logic switch device 1, for sending heartbeat message to safe forthright equipment, and detect the heartbeat message whether receiving safe forthright equipment and return in Preset Time, if not, then the business data flow inputted from the first side ethernet port A routes to after logic switch device 1 processes and exports from the second side ethernet port B by Trigger Logic switching device shifter 1;
Correspondingly, logic switch device 1 also exports from the second side ethernet port B for being routed to after logic switch device 1 processes by the business data flow inputted from the first side ethernet port A under the triggering of logic heartbeat detection device 2.
In an embodiment, first side ethernet port A of the bypass equipment shown in Fig. 2 or Fig. 3 and the second side ethernet port B can be individually configured as MASTER pattern and SLAVE pattern, correspondingly, bypass equipment also comprises physical switch, for triggering the first side ethernet port A when institute's bypass equipment power down and the second side ethernet port B physics is direct-connected, export from the second side ethernet port B to make the business data flow inputted from the first side ethernet port A.
The bypass equipment that the embodiment of the present invention provides is after the link switching order receiving the transmission of safe forthright equipment, this link switching order can be responded, business data flow from the first side ethernet port input is routed to after bypass equipment processes and exports from the second side ethernet port, because bypass equipment and safe forthright equipment share the first side ethernet port and the second side ethernet port, make bypass equipment when link switching without the need to carrying out the negotiation again of upstream and downstream port again, thus link can be realized switch fast, avoid link switching overlong time and the client's loss of vital data caused.
The bypass equipment that the embodiment of the present invention provides can also send heartbeat message to safe forthright equipment, and when not receiving the heartbeat message that safe forthright equipment returns in Preset Time, the business data flow from the first side ethernet port input is routed to after bypass equipment processes and exports from the second side ethernet port.The embodiment of the present invention can be saved safe forthright device periodically and initiatively send heartbeat, thus effectively can reduce the cpu load of safe forthright equipment.
Refer to Fig. 4, Fig. 4 is the structure chart of a kind of link switching system that the embodiment of the present invention provides.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 switch device 1, first side ethernet port A and the second side ethernet port B; Logic switch device 1 and safe forthright equipment 42 share the first side ethernet port A and the second side ethernet port B, wherein:
Logic switch device 1, for receiving the link switching order that safe forthright equipment 42 sends, and respond this link switching order, the business data flow inputted from the first side ethernet port A is routed to after logic switch device 1 processes and exports from the second side ethernet port B.
That is, logic switch device 1 for exporting (Fig. 4 broken line representation) from the second side ethernet port B by the business datum stream (in Fig. 4 solid line) inputting safe forthright equipment 42 from the first side ethernet port A after processing to logic switch device 1.
In an embodiment, logic switch device 1 can be linked by management channels and safe forthright equipment 42, and correspondingly, the concrete mode that logic switch device 1 receives the link switching order that safe forthright equipment 42 sends is:
The link switching order that logic switch device 1 is sent by management channels for receiving safe forthright equipment 42.
In the link switching system shown in Fig. 4, carry out link switching by safe forthright equipment 42 active Trigger Logic switching device shifter 1.When safe forthright equipment 42 needs Trigger Logic switching device shifter to carry out link switching under certain scene, safe forthright equipment 42 can by the logic switch device 1 downlink switching command of management channels to bypass equipment 41, after logic switch device 1 receives this link switching order, original business data flow (Fig. 4 solid line) inputting safe forthright equipment 42 from the first side ethernet port A is routed to broken line representation in logic switch device 1(Fig. 4) process after export from the second side ethernet port B, namely the business data flow between the first side ethernet port A and the second side ethernet port B directly processes in logic device 1 inside, safe forthright equipment 42 is sent no longer.This link switching process only adjusts 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 the heavily negotiation carrying out upstream and downstream port, therefore can realize link to switch fast, avoid link switching overlong time and the client's loss of vital data caused, accomplish zero packet loss.
See also Fig. 5, Fig. 5 is the structure chart of the another kind of link switching system that the embodiment of the present invention provides.Wherein, the link switching system shown in Fig. 5 is that link switching system is as shown in Figure 4 optimized and obtains.Compared with the link switching system shown in Fig. 4, the link switching system shown in Fig. 5 also comprises:
The logic heartbeat detection device 2 linked with logic switch device 1, for sending heartbeat message to safe forthright equipment 42, and detect the heartbeat message whether receiving safe forthright equipment 42 and return in Preset Time, if not, then the business data flow inputted from the first side ethernet port A routes to after logic switch device 1 processes and exports from the second side ethernet port B by Trigger Logic switching device shifter 1;
Correspondingly, logic switch device 1 also exports from the second side ethernet port B for being routed to after logic switch device 1 processes by the business data flow inputted from the first side ethernet port A under the triggering of logic heartbeat detection device 2.
In the embodiment of the present invention, when safe forthright equipment 42 breaks down (non-power-failure), cannot under the scene of normal process business data flow, bypass equipment be just needed initiatively to carry out link switching.As shown in Figure 5, logic heartbeat detection device 2 regularly can send heartbeat message (transmission frequency can be arranged) by interface C to safe forthright equipment 42, after safe forthright equipment 42 receives 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 receive heartbeat message in Preset Time, then think that safe forthright equipment is working properly, otherwise then think that heartbeat is lost.When heartbeat is lost, logic heartbeat detection device 2 can carry out link switching by Trigger Logic switching device shifter 1.
Because the interface bandwidth of safe forthright equipment 42 is all very high, even if so logic heartbeat detection device 2 sends a heartbeat message every 1ms, the CPU for safe forthright equipment 42 also can not bring very large pressure.Like this under passive handoff scenario, the precision that logic switch device 1 carries out link switching just reaches Millisecond, if necessary, and can higher by precision setting.
In the embodiment of the present 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, such as the type field of Ethernet message can be defined as privately owned mark, as shown in table 1 below:
Table 1
DMAC SMAC TYPE(0x5a5a)
Wherein, heartbeat message, after receiving this type of heartbeat message, directly can be done special processing by safe forthright equipment 42, more safe and reliable like this.
See also Fig. 6, Fig. 6 is the structure chart of another link switching system that the embodiment of the present invention provides.Wherein, the link switching system shown in Fig. 6 is optimized by the link switching system shown in Fig. 5, Fig. 4 to obtain.Compared with the link switching system shown in Fig. 5, Fig. 4, in the link switching system shown in Fig. 6, first side ethernet port A and the second side ethernet port B can be individually configured as MASTER pattern and SLAVE pattern, such logic switch device 1 also for triggering the first side ethernet port A when bypass equipment power down and the second side ethernet port B physics is direct-connected, exports from the second side ethernet port B to make the business data flow inputted from the first side ethernet port A.
As shown in Figure 6, first the first side ethernet port A of bypass equipment interface centering is configured to MASTER pattern by software in startup configuration, second side ethernet port B is configured to SLAVE pattern, negotiation is SLAVE pattern by the network port C docked with the first side ethernet port A like this, and negotiation is MASTER pattern by the network port D docked with the second side ethernet port B; When there is powered-off fault in bypass equipment, physical switch can trigger action, by direct-connected for AB ports physical, be equivalent to network port CD dock, because CD port had originally been consulted as MASTER and SLAVE, after such analog switch action link switching, CD network-side port is without the need to again consulting again, and continuation is kept UP state by link, thus realizes quick link switching function.Wherein, trigger simulation switch motion can be realized by logic switch device 1.
See also Fig. 7, Fig. 7 is the structure chart of another link switching system that the embodiment of the present invention provides.In the link switched system shown in Fig. 7, comprise by 2 physical interface GE0, GE1(can adjust interface type and quantity), relay simulation switching device shifter, 2 ethernet PHY chips (quantity and interface correspondences, be PHY0 by software merit rating be MASTER, another PHY1 is SLAVE), the bypass equipment that fpga chip (for realizing the function of logic switch device and logic heartbeat detection device) is formed and safe forthright equipment.In normal operation, business datum flows through GE0/GE1 mouth and enters bypass equipment and deliver to safe forthright equipment again and carry out processing and then sending from GE1/GE0 port; Under safe forthright equipment fault (non-power-failure) state, the logic switch device that business datum flows through fpga chip inside processes, and no longer delivers to safe forthright device processes; And when bypass equipment power down, it is direct-connected that GE0/GE1 interface realizes physics by relay.
In the link switching system shown in Fig. 7, PHY0 and GE0 constitutes the first side ethernet port A, and PHY1 and GE1 constitutes the second side ethernet port B.
The link switching system that the embodiment of the present invention provides is after the link switching order receiving the transmission of safe forthright equipment, this link switching order can be responded, business data flow from the first side ethernet port input is routed to after bypass equipment processes and exports from the second side ethernet port, because bypass equipment and safe forthright equipment share the first side ethernet port and the second side ethernet port, make bypass equipment when link switching without the need to carrying out the negotiation again of upstream and downstream port again, thus link can be realized switch fast, avoid link switching overlong time and the client's loss of vital data caused.
The link switching system that the embodiment of the present invention provides can also send heartbeat message to safe forthright equipment, and when not receiving the heartbeat message that safe forthright equipment returns in Preset Time, the business data flow from the first side ethernet port input is routed to after bypass equipment processes and exports from the second side ethernet port.The embodiment of the present invention can be saved safe forthright device periodically and initiatively send heartbeat, thus effectively can 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 various methods of above-described embodiment is that the hardware that can carry out instruction relevant by program has come, this program can be stored in a 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 equipment that the embodiment of the present invention provides are described in detail, apply specific case herein to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, 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 (6)

1. a link switch-over method, is characterized in that, comprising:
Bypass equipment receives the link switching order that safe forthright equipment is sent by management channels;
Described bypass equipment responds described link switching order, is routed to after described bypass equipment processes by the business data flow from the first side ethernet port input and exports from the second side ethernet port; Wherein, described bypass equipment and described safe forthright equipment share described first side ethernet port and the second side ethernet port;
Wherein, described first side ethernet port is configured to main frame MASTER pattern, described second side ethernet port is configured to from machine SLAVE pattern, and the network port C docked with described first side ethernet port consults as described SLAVE pattern, and the network port D docked with described second side ethernet port consults as described MASTER pattern; When described bypass equipment power down, trigger described first side ethernet port and described second side ethernet port physics is direct-connected, to make to export from the business data flow of described first side ethernet port input from described second side ethernet port.
2. link switch-over method according to claim 1, is characterized in that, described method also comprises:
Described bypass equipment sends heartbeat message to described safe forthright equipment, and detect the heartbeat message whether receiving described safe forthright equipment and return in Preset Time, if not, then the business data flow from the first side ethernet port input is routed to after described bypass equipment processes and export from the second side ethernet port.
3. a bypass equipment, is characterized in that, comprises logic switch device, the first side ethernet port and the second side ethernet port;
Described logic switch device, for receiving the link switching order that safe forthright equipment is sent by management channels, and respond described link switching order, the business data flow from described first side ethernet port input is routed to after described logic switch device processes and exports from described second side ethernet port; Wherein, described logic switch device and described safe forthright equipment share described first side ethernet port and described second side ethernet port;
Wherein, described first side ethernet port is configured to main frame MASTER pattern, described second side ethernet port is configured to from machine SLAVE pattern, and the network port C docked with described first side ethernet port consults as described SLAVE pattern, and the network port D docked with described second side ethernet port consults as described MASTER pattern; Described bypass equipment also comprises physical switch, for triggering described first side ethernet port when described bypass equipment power down and described second side ethernet port physics is direct-connected, to make to export from the business data flow of described first side ethernet port input from described second side ethernet port.
4. bypass equipment according to claim 3, it is characterized in that, also comprise the logic heartbeat detection device linked with described logic switch device, for sending heartbeat message to described safe forthright equipment, and detect the heartbeat message whether receiving described safe forthright equipment and return in Preset Time, if not, then trigger described logic switch device the business data flow from described first side ethernet port input is routed to after described logic switch device processes to export from described second side ethernet port;
Described logic switch device, also exports from described second side ethernet port for being routed to after described logic switch device processes by the business data flow from described first side ethernet port input under the triggering of described logic heartbeat detection device.
5. a link switching system, is characterized in that, comprises bypass equipment and safe forthright equipment, and wherein, described bypass equipment comprises logic switch device, the first side ethernet port and the second side ethernet port; Described logic switch device and described safe forthright equipment share described first side ethernet port and described second side ethernet port;
Described logic switch device, for receiving the link switching order that described safe forthright equipment is sent by management channels, and respond described link switching order, the business data flow from described first side ethernet port input is routed to after described logic switch device processes and exports from described second side ethernet port;
Wherein, described first side ethernet port is configured to main frame MASTER pattern, described second side ethernet port is configured to from machine SLAVE pattern, and the network port C docked with described first side ethernet port consults as described SLAVE pattern, and the network port D docked with described second side ethernet port consults as described MASTER pattern; Described bypass equipment also comprises physical switch, for triggering described first side ethernet port when described bypass equipment power down and described second side ethernet port physics is direct-connected, to make to export from the business data flow of described first side ethernet port input from described second side ethernet port.
6. link switching system according to claim 5, it is characterized in that, described bypass equipment also comprises the logic heartbeat detection device linked with described logic switch device, for sending heartbeat message to described safe forthright equipment, and detect the heartbeat message whether receiving described safe forthright equipment and return in Preset Time, if not, then trigger described logic switch device the business data flow from described first side ethernet port input is routed to after described logic switch device processes to export from described second side ethernet port;
Described logic switch device, also exports from described second side ethernet port for being routed to after described logic switch device processes by the business data flow from described first side ethernet port input under the triggering of described logic heartbeat detection device.
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 CN102957607A (en) 2013-03-06
CN102957607B true 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)

Families Citing this family (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
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
CN107453956B (en) * 2017-09-15 2020-04-28 北京百卓网络技术有限公司 Communication network system, shunt device and method for quickly accessing network
CN109714294B (en) * 2017-10-25 2020-07-14 华为技术有限公司 Physical layer chip, network security device and data forwarding method
CN112187498B (en) * 2019-07-03 2022-09-06 中国电信股份有限公司 Bypass protection method, device and system thereof and Deep Packet Inspection (DPI) system
CN112543125B (en) * 2020-12-22 2022-08-09 宁波均联智行科技股份有限公司 Serial communication system and link switching method applied to same

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4011701B2 (en) * 1997-12-05 2007-11-21 キヤノン株式会社 Search apparatus and control method
CN100428697C (en) * 2006-10-18 2008-10-22 杭州华三通信技术有限公司 By-pass combination system and business processing method based on said system
KR101223716B1 (en) * 2008-04-22 2013-01-18 한국전자통신연구원 Force protection switching method in Ethernet ring network
CN102104397B (en) * 2009-12-22 2013-09-11 华为技术有限公司 Link protection method and device
CN102281178A (en) * 2011-08-01 2011-12-14 上海海得控制系统股份有限公司 Ring network link redundancy control system and control method thereof
CN102420767B (en) * 2011-12-15 2014-07-02 北京星网锐捷网络技术有限公司 Method and device for switching forwarding paths, and network equipment
CN102571457B (en) * 2012-02-28 2015-09-30 华为数字技术(成都)有限公司 A kind of method, bypass equipment changing method and device triggering bypass equipment and switch

Also Published As

Publication number Publication date
CN102957607A (en) 2013-03-06

Similar Documents

Publication Publication Date Title
CN102957607B (en) A kind of link switch-over method and relevant apparatus, system
JP6379213B2 (en) Link switching method, apparatus and system
JP2023171514A (en) Optical communication system and optical communication method
CN104753828A (en) SDN controller, data central system and route connection method
CN101800774A (en) Environmental-friendly accessing method and environmental-friendly accessing network
EP3029883B1 (en) Network protection method and apparatus, next-ring node, and system
WO2012058895A1 (en) Method and device for switching aggregation links
CN101159504B (en) Synchronous digital hierarchy based ethernet protecting method
CN105281931A (en) Error code detection method, device and system of POTN
US20200099609A1 (en) Method for determining link state, and device
CN103607293A (en) Flow protection method and equipment thereof
CN102571612A (en) Virtual router redundancy protocol (VRRP) state switching method and three-layer exchange equipment
CN113141268A (en) Method and device for realizing redundancy backup of link aggregation group of manual aggregation
CN102265556B (en) Conversion method between an main communicational equipment and a spare communicational equipment, the communicational equipments and a service request equipment
CN105207871B (en) Double-cut ring network protection method and device
CN102932183B (en) Double-up link failure processing method and device
Chan et al. Fast failure recovery for in-band controlled multi-controller OpenFlow networks
US20160127035A1 (en) Optical network system
CN103825819A (en) Methods and devices for sending and receiving messages
CN103220189A (en) Multi-active detection (MAD) backup method and equipment
CN106330699B (en) Multicast link switching method and device and routing equipment
CN102378230B (en) Railway application base station system and networking method thereof
CN105049238A (en) Redundancy backup method and equipment for LTE (Long Term Evolution) gateway equipment exchange subsystem
CN106169982B (en) Method, device and system for processing expansion port
CN105490955A (en) Flow switching method and flow switching equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
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