CN1691615A - Method for detecting operating state of default gateway and apparatus therefor - Google Patents

Method for detecting operating state of default gateway and apparatus therefor Download PDF

Info

Publication number
CN1691615A
CN1691615A CNA2004100373554A CN200410037355A CN1691615A CN 1691615 A CN1691615 A CN 1691615A CN A2004100373554 A CNA2004100373554 A CN A2004100373554A CN 200410037355 A CN200410037355 A CN 200410037355A CN 1691615 A CN1691615 A CN 1691615A
Authority
CN
China
Prior art keywords
default gateway
operating state
physical port
network equipment
result
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
CNA2004100373554A
Other languages
Chinese (zh)
Other versions
CN100484044C (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.)
Liu Na
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 CNB2004100373554A priority Critical patent/CN100484044C/en
Publication of CN1691615A publication Critical patent/CN1691615A/en
Application granted granted Critical
Publication of CN100484044C publication Critical patent/CN100484044C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a method for detecting the status of the default gateway and corresponding device which can be used in the network system with default gateway. The said default gateway is directly connected to the physical ports of the devices in the network, and these devices have loop checks on the physical ports with default gateway connected directly. If the physical ports is under the status of UP, the working status of the default gateway connected directly with the physical ports is Normal; if the detected status is DOWN, then get the Abnormal result of the status of the default gateway.

Description

Detect the method and the device thereof of default gateway operating state
Technical field
The present invention relates to the detection technique of LA Management Room operating state, relate in particular to a kind of method and device thereof that detects the gateway operating state.
Background technology
The Internet network generally is divided into several IP subnets, switch then is the network equipment that is connected a plurality of IP subnets with router, router can carry out " address translation " and routing with the packet between the different IP subnets, again packet is exchanged by switch then, carry out the compatibility transmission so that can " read " to understand the other side's packet information between a plurality of IP subnets mutually, thereby realize the packet in the whole network system is carried out without hindrance transmission.
Switch in the network system and router are when transmitting packet; the capital uses routing table to carry out routing; and in order to reduce to store the shared memory headroom of routing table; in switch and router, usually default route can be set, specify a default gateway to carry out the forwarding of packet by default route again.
Simultaneously, for the default gateway that prevents to be provided with when breaking down, router can also in time be transmitted packet, just need carry out redundant configuration to default gateway, promptly specify the different gateway of another one priority as the backup default gateway, in order to when default gateway breaks down, can in time switch to the forwarding that the backup default gateway is proceeded packet.
For switch and router, if default gateway place network may will cause default gateway unavailable because a variety of causes causes it to be shut down or other fault occurs; In this case, if switch and router can't in time be learnt the situation that default gateway breaks down, just can not in time switch to the backup default gateway, but continue to send packet, will cause losing of packet like this to the default gateway that breaks down.
For switch in the network system or router, different physical ports may be responsible for transmitting the packet in the different virtual LAN (VLAN, Virtual Local Area Network) on its equipment; If default gateway and backup default gateway belong to same VLAN, on switch or router, will take physical port more than one, be that default gateway is connected with a physical port of switch or router, the backup default gateway then is connected with the another one physical port of same switch or router, if the default gateway that is connected with switch or router is shut down or other faults occur, when causing this default gateway unavailable, switch or router will possibly can't in time be known the situation that default gateway breaks down, also, cause data-bag lost continuing to send packet to default gateway.
One is exemplified below:
If an Ethernet switch A in the network system has 24 physical ports, first physical port and second physical port are responsible for transmitting the packet in the virtual LAN VLAN 10, and the 3rd physical port to the 24 physical ports are responsible for transmitting the packet in the virtual LAN VLAN 20; All physical ports of wherein be responsible for transmitting packets in the VLAN 20 are used for connecting main frame (i.e. the 3rd physical port to the 24 physical ports be used for respectively connecting main frame) respectively; First physical port is used for connecting default gateway 10.1.1.1 (default gateway is the network equipment with routing function, and the IP address of this network equipment is exactly 10.1.1.1); Second physical port is used for connecting another Ethernet switch B (10.1.1.3), and then this Ethernet switch B just is the equal of the backup default gateway of above-mentioned default gateway 10.1.1.1.
Like this, just need on Ethernet switch A, carry out following configuration:
Ip route 0.0.0.0 0.0.0.0 10.1.1.1---the specify default gateway is 10.1.1.1
Vlan 10---create virtual LAN VLAN 10
Port e0/1 e0/2---assigned vlan 10 comprises first physical port and second physical port
Vlan 20---create virtual LAN VLAN 20
Port e0/3 to e0/24---assigned vlan 20 comprises the 3rd physical port to the 24 things
The reason port
Interface vlan 10---for VLAN 10 creates the network layer routing interface
Ip address 10.1.1.2 255.255.255.0---be the routing interface assigned ip of VLAN 10
Address 10.1.1.2 and subnet mask 255.255.255.0
Interface vlan 20---for VLAN 20 creates the network layer routing interface
Ip address 20.1.1.1 255.255.255.0---be the routing interface assigned ip of VLAN 20
Address 20.1.1.1 and subnet mask 255.255.255.0
Ethernet switch A is carrying out under the above-mentioned configuring condition, if the state that crashes has appearred in default gateway 10.1.1.1, Ethernet switch A but and do not know situation about crashing, just know at address resolution protocol (ARP, Address Resolution Protocol) list item at this default gateway in has not had that (wherein the ARP of dynamic learning can delete automatically along with the Down of physical port e0/1, wherein the Down state of physical port is meant that physical port breaks down), broken hair ARP message is not given all physical ports in the VLAN 10, remove to inquire about the Media Access Control address (MAC of default gateway, Media AccessControl), because also having 1 physical port e0/2 in the VLAN 10 is up state (wherein the Up state of physical port is meant that physical port is working properly), Ethernet switch A thinks and can arrive default gateway 10.1.1.1 by this physical port, but default gateway crashes, and e0/1 has been the down state, Ethernet switch A can not get replying certainly, so all packets that need issue default gateway 10.1.1.1 will be dropped at Ethernet switch A place, therefore may will cause the interruption of the network operation.After can only waiting until that the network management personnel searches and find the fault of default gateway appearance, in time repair the fault of default gateway, network recovery is normally moved, this time period may be a few minutes, also may be several hours break period, specifically will see the timely discovery degree of network management personnel fault.
To sum up, as can be seen, in the prior art based on the mode of the detection default gateway operating state of " physical port+VLAN sign+ARP " mode after default gateway breaks down, router or switch can not in time be found the fault that default gateway occurs, can not in time switch to the backup default gateway, thereby may cause at this section and fail in time to find that default gateway breaks down and switches in the time of backup default gateway, lose the packet that some need be transmitted, so that reduce the transmission performance of network system.
Summary of the invention
The objective of the invention is to propose a kind of method and device thereof of the operating state of fast detecting default gateway in time,, avoid losing of packet so that when default gateway breaks down, can in time repair or switch to the backup default gateway.
For achieving the above object, the present invention proposes a kind of method that detects the default gateway operating state, be applied to comprise the network system of default gateway, described default gateway directly is connected on the physical port of the network equipment in the network system, the network equipment carries out cycle detection to the physical port that directly is connected with default gateway, if when detecting this physical port and being in normal operating conditions Up, then draw and the normal result of the direct-connected default gateway operating state of this physical port; If when detecting this physical port and being in malfunction Down, then draw and the unusual result of the direct-connected default gateway operating state of this physical port.
The wherein said network equipment carries out cycle detection with periodic law to described physical port.
If the above-mentioned network equipment detects described physical port when changing to normal operating conditions Up by malfunction Down, then draw with the direct-connected default gateway operating state of this physical port and recover normal result.
Other physical ports of the wherein said network equipment also are connected with the backup default gateway; And the network equipment draw the default gateway operating state unusual as a result the time, the packet of issuing default gateway is transmitted to the backup default gateway processes.
If the above-mentioned network equipment detects described physical port when changing to normal operating conditions Up by malfunction Down, then draw with the direct-connected default gateway operating state of this physical port and recover normal result; And the network equipment will be issued the packet of backup default gateway and then be transmitted to the default gateway processing again.
If the above-mentioned network equipment draw the default gateway operating state unusual as a result the time, generate one the notice message send to network management workstation, comprise the information that default gateway breaks down in the described notice message;
After network management workstation receives this notice message, default gateway is carried out fault inquiry and fault restoration processing.
Wherein said notice message is trap message Trap, debugging message Debug or daily record of work message Syslog.
Accordingly, the invention allows for a kind of device that detects the default gateway operating state, be applied to comprise the network system of default gateway, described default gateway directly is connected on the physical port of the network equipment in the network system, comprising:
The port status detecting unit is used to make the network equipment that the physical port that self directly is connected with default gateway is carried out state-detection; With
Generation unit is connected with described port status detecting unit as a result, is used for according to the testing result of port status detecting unit to the physical port operating state, when physical port is in normal operating conditions Up, generates the normal result of default gateway operating state; When physical port is in malfunction Down, generate the unusual result of default gateway operating state.
Wherein said device also comprises the forwarding switch unit that is connected with generation unit as a result, be used for when the default gateway operating state is unusual, the packet of issuing default gateway is transmitted to the backup default gateway processes, and in the recovery of default gateway operating state just often, will issue the packet of backup default gateway again and then be transmitted to default gateway and handle.
The wherein said notice message generation unit that is connected with generation unit as a result that also comprises; be used for occurring unusually or just often detecting the default gateway operating state, generate and comprise notification of information message that default gateway breaks down or generation and comprise the default gateway operating state and recover normal notification of information message and send to network management workstation by the abnormal work recovering state.
The present invention detects the method for default gateway operating state and installs by making the network equipment carry out state-detection to the physical port that self directly is connected with default gateway, further learns the operating state of the default gateway that is connected with its physical port.Like this, can fast detecting to the operating state of default gateway, and when default gateway breaks down, in time sending the notice message handles to carry out fault restoration or in time packet to be sent to the backup default gateway to network management workstation, thereby avoided in the transmission of data packets, because do not have in time to find that default gateway breaks down and the data-bag lost that causes, improved the transmission performance of network system.
Description of drawings
Fig. 1 detects in the method and device thereof of default gateway operating state the simple structure block diagram that equipment room connects in the present invention;
Fig. 2 is the concrete process flowchart of the present invention's method of detecting the default gateway operating state;
Fig. 3 is the simple structure composition frame chart of the present invention's device of detecting the default gateway operating state.
Embodiment
Method and system thereof that the present invention detects the default gateway operating state adopt in the network equipment physical port that directly is connected with default gateway to be carried out state-detection; If when detecting physical port and being in normal operating conditions (being masked as Up during the physical port operate as normal), then think with the direct-connected default gateway operating state of this physical port be normal; And if when detecting physical port and being in malfunction (being masked as when physical port is in malfunction Down), then think with the direct-connected default gateway operating state of this physical port be unusual.
As shown in Figure 1, this figure detects in the method and device thereof of default gateway operating state the simple structure block diagram that equipment room connects in the present invention.The hypothesis network equipment is an Ethernet switch 1 among the figure, certainly the network equipment can also be other equipment such as router, (default gateway is the network equipment with routing function to suppose physical port port1 on the Ethernet switch 1 directly to connect a default gateway 2, this network equipment has an IP), and the physical port port2 on this Ethernet switch 1 directly connects the another one default gateway, with as backup default gateway 3, Ethernet switch 1 just can be by detecting the operating state of self physical port port1 like this, judges the operating state situation with the direct-connected default gateway 2 of port1.And when port1 was in the Up state, promptly operating state just often then can be reached a conclusion: the operating state of default gateway 2 is normal, and at this moment Ethernet switch 1 packet that needs to mail to other subnets at first sends to default gateway 2; And when port1 is in the Down state, when being malfunction, then can reach a conclusion: the operating state of default gateway 2 is unusual, at this moment Ethernet switch 1 just can not at first send to default gateway 2 with the packet that needs mail to other subnets, because it breaks down, but the packet that those will be mail to other subnets sends to the backup default gateway 3 that plays redundant effect that does not break down.
With reference to Fig. 2, this figure is the concrete process flowchart of the present invention's method of detecting the default gateway operating state; Concrete processing procedure by network equipment detection default gateway operating state among the figure is as follows:
Step S10, by the network equipment physical port that self directly is connected with default gateway being carried out recurrent state detects, here for to make the probability of data-bag lost drop to minimum, preferably adopt with periodic law and detect the direct-connected physical port that default gateway is arranged, can in time find the direct-connected malfunction that the physical port of default gateway is arranged like this, handle so that in time take measures to carry out fault restoration and packet is transmitted to the backup default gateway.
Step S20, the network equipment judge that the operating state of detected physical port still is malfunction Down for normal operating conditions Up; If be normal operating conditions Up then execution in step S40; Otherwise execution in step S30.
Step S30 when the network equipment finds that the direct-connected physical port that default gateway arranged is the Down state, thinks that then the operating state of default gateway is unusual, goes to execution in step S50.
Step S40 when the network equipment finds that the direct-connected physical port that default gateway arranged is the Up state, thinks that then the operating state of default gateway is normal, goes to execution in step S90.
Step S50, generate a notice message by the network equipment and issue network management workstation, include the information that default gateway breaks down in this notice message, go wrong with webmaster personnel default gateway by this notice message notifying network management workstation, need in time repair, thus the reaction time of realizing accelerating network failure; The webmaster personnel in time carry out trouble shoot to the default gateway that breaks down and handle and corresponding repair process after receiving this notice message;
The wherein above-mentioned notice message that is generated by the network equipment can be trap (Trap) message, also can be debugging (Debug) message, also can be daily record of work message (Syslog) message, here with the network equipment when default gateway breaks down, generating trap (Trap) message is that example is elaborated.When the network equipment detects default gateway and fault occurred, generate a trap (Trap) message to network management workstation (NMS by network equipment generation or by the Agent that acts on behalf of that is provided with in the network equipment, NetworkManagement Station), wherein include the information that default gateway breaks down in this trap message, go wrong with webmaster personnel default gateway, need in time repair by this trap message notice network management workstation; The webmaster personnel in time carry out trouble shoot to the default gateway that breaks down and handle and corresponding repair process when receiving this Trap message;
Meanwhile, the network equipment is when default gateway breaks down, for mailing to the default gateway that breaks down, the packet that prevents to mail to other subnets can cause losing of packet, but packet is transmitted to the backup default gateway, with the packet route and be transmitted to the purpose subnet, at this moment the network equipment will carry out default gateway to the packet of backup default gateway and transmits handover operation by the backup default gateway.
Step S60, after the network equipment found that the default gateway operating state is unusual, this network equipment also will continue the physical port that directly is connected with default gateway is detected; Recover normal with the operating state that can in time find default gateway.
Step S70, the network equipment judge that once more the operating state of detected physical port still is malfunction Down for normal operating conditions Up; If detect with the direct-connected physical port of default gateway and revert to normal operating conditions Up, then go to execution in step S80 by malfunction Down; If the physical port direct-connected with default gateway still is in malfunction Down, then transfers back to step S60 and continue have the physical port of default gateway to detect direct-connected.
When step S80, the network equipment detect and revert to normal operating conditions Up with the direct-connected physical port of default gateway by malfunction Down, just think that default gateway has been a normal operating conditions by the abnormal work recovering state;
The packet hairnet default gateway that step S90, the network equipment directly will mail to other subnets is transmitted processing, and then goes to step S10, and continuing has the physical port of default gateway to detect to direct-connected.
By above-mentioned flow processing, just can make the network equipment can in time find the situation that default gateway breaks down, taking packet that disaster recovery measure timely maybe will mail to default gateway to be transmitted to other backup default gateways handles, and after the default gateway operating state is recovered normal operation again, packet being sent to default gateway handles again, thereby realized timely detection to the default gateway operating state, reduce the packet loss of packet in transmitting processing procedure, improved the transmission performance of network system.
One illustrates as follows:
If an Ethernet switch A in the network system has 24 physical ports, wherein first physical port and second physical port are responsible for transmitting the packet in the virtual LAN VLAN 10; First physical port is used for connecting default gateway 10.1.1.1 (default gateway is the network equipment with routing function, and the IP address of this network equipment is exactly 10.1.1.1); Second physical port is used for connecting another Ethernet switch B (10.1.1.3), and then this Ethernet switch B just is the equal of the backup default gateway of above-mentioned default gateway 10.1.1.1.
Like this, detect the method for default gateway operating state based on the present invention, just need (Ethernet switch A be exactly one of above-mentioned described network equipment at Ethernet switch A, wherein the network equipment can also comprise other equipment such as router) on carry out the configuration of track e0/1 action, just can lost data packets, concrete configuration is as follows:
ip?route?0.0.0.0?0.0.0.0?10.1.1.1?preference?15?track?e0/1
---specify a default gateway 10.1.1.1, its priority is 15, and (if the state of physical port e0/1 is up, this instructs allocation activation specify to detect the up/down state of physical port e0/1; If the state of physical port e0/1 is Down, then this instruction loss of configuration)
ip?route?0.0.0.0?0.0.0.0?10.1.1.3?preference?30?track?e0/2
---specify a backup default gateway 10.1.1.3, its priority is 30, and (if the state of physical port e0/2 is up, this instructs allocation activation specify to detect the up/down state of physical port e0/2; If the state of physical port e0/2 is Down, this instructs loss of configuration)
After configuration is finished like this, the priority that connects default gateway 10.1.1.1 in Ethernet switch A is 15, be higher than the priority 30 that connects Ethernet switch B (being the backup default gateway), if two instruction is in state of activation simultaneously, article one, works, Ethernet switch A will think that default gateway 10.1.1.1 can use, and constantly sends packet to default gateway 10.1.1.1.
If but physical port e0/1 is when normal operating conditions Up becomes malfunction Down, parametric t rack will work, the state of activation of article one instruction will be cancelled automatically, at this moment second instruction beginning is worked automatically, and (routing table oneself has a cover to transmit handover mechanism, its management of switching repeating process comes to this), backup default gateway 10.1.1.3 (Ethernet switch B) becomes new default gateway, Ethernet switch A will think that backup default gateway 10.1.1.3 can use, constantly send packet to backup default gateway 10.1.1.3, the packet in the network system just can not lost like this.
If Ethernet switch A detects the physical port e0/1 of self when reverting to normal operating conditions up again by malfunction Down, parametric t rack will work again, restart this priority and be 15 instruction route, Ethernet switch A just sends packet to default gateway 10.1.1.1 again like this.
By above-mentioned illustration, as seen the setting of instructing by priority, after can be implemented in the direct-connected physical port that default gateway arranged and breaking down, automatically switch to the backup default gateway and carry out packet forwarding processing, and the operating state of the direct-connected physical port that default gateway arranged recover normal after, can also automatically switch to the forwarding that default gateway carries out packet from the backup default gateway and handle.
Prove through experimental result repeatedly, add parametric t rack in above-mentioned routing statement after, the failure detection time of default gateway can be controlled in 1 second, if default gateway breaks down, (1 second) just can switch to the backup default gateway at once, has improved the reliability of Network Transmission greatly.If in network system, do not have under the situation of configuration backup default gateway, the network equipment also can be based on Simple Network Management Protocol (SNMP, Simple Network Management Protocol) use is acted on behalf of an Agent generation trap (trap) message and is issued network management workstation NMS, to remind the webmaster personnel that default gateway breaks down, require to carry out immediately trouble shoot and repair operation, thus the fault reaction time of accelerating network.
Accordingly, the invention allows for a kind of device that detects the default gateway operating state, this device can be placed on network device internal, also can place separately, come the physical port that directly is connected with default gateway on the network equipment is carried out the detection of operating state, thereby realize the operating state with the direct-connected default gateway of this physical port is detected.
With reference to Fig. 3, this figure is the simple structure composition frame chart of the present invention's device of detecting the default gateway operating state; The concrete component units of device that detects the default gateway operating state among the figure mainly comprises port status detecting unit 10 and generation unit 20 as a result, and the relation and the function of these two unit are specific as follows;
Port status detecting unit 10, be mainly used in and make the network equipment carry out state-detection to the physical port that self directly is connected with default gateway, port status detecting unit 10 mainly is to detect that direct-connected the work at present state of the physical port of default gateway is arranged still is " Down " for " Up ";
Generation unit 20 as a result, carrying out logic with port status detecting unit 10 is connected, be mainly used in the testing result that detects according to the direct-connected operating state that the physical port of default gateway arranged of 10 pairs of port status detecting units, generate the object information of default gateway work at present state; Be defined as when physical port is in normal operating conditions Up, generate the normal result of default gateway operating state; When physical port is in malfunction Down, generate the unusual result of default gateway operating state.
Certainly, for the information that the acquiescence webmaster can be broken down is notified to network management workstation more timely, the device that the present invention detects the default gateway operating state is in the above on the basis of two component units, can also and then comprise that is transmitted a switch unit 30, specifically with reference to Fig. 3, this forwarding switch unit 30 carries out logic with generation unit 20 as a result and is connected, and its function is specific as follows:
Transmit switch unit 30, it is unusual as a result the time being mainly used in obtaining default gateway operating state that generation unit as a result 20 generates, the packet of issuing default gateway is transmitted to the backup default gateway processes, and in the recovery of default gateway operating state just often, will issue the packet of backup default gateway again and then be transmitted to default gateway and handle; This forwarding switch unit 30 mainly can be implemented between the work state of activation of default gateway and backup default gateway and switch, default gateway and backup default gateway one of them when activating, communicate with it, break down and work as the default gateway work that communicates with, and but another one backup default gateway time spent and another one backup default gateway communicate.
Accordingly, for when default gateway breaks down, the information that can break down default gateway in time in time feeds back to network management workstation, so that the webmaster personnel can carry out trouble shoot timely and repair process, reduce the reaction time of network failure, the device that the present invention detects the default gateway operating state is port status detecting unit 10 and as a result on the composition basis of generation unit 20 in the above, can also and then comprise a notice message generation unit 40, specifically with reference to Fig. 3, this notice message generation unit 40 carries out logic with generation unit 20 as a result and is connected, and its function is specific as follows:
Notice message generation unit 40; it is unusual as a result the time being mainly used in generated the default gateway operating states by generation unit as a result 20; or detect the default gateway operating state by abnormal restoring for just often; generation comprises the notification of information message that default gateway breaks down; or generate that to comprise default gateway be that abnormal restoring is that normal notification of information message sends to network management workstation by operating state; so that the webmaster personnel in time carry out trouble shoot and repair process, and in time learn the operating state recovery situation of default gateway.
Wherein adopting Simple Network Management Protocol SNMP to carry out in the network system of network management work, notice message generation unit 40 can be a trap (Trap) message generation unit, this trap (Trap) message generation unit just can be arranged on the Agent that acts on behalf of in each network equipment, when finding that equipment of itself breaks down, this is acted on behalf of Agent and will in time generate trap (Trap) message and send to network management workstation NMS, the failure message that takes place is announced webmaster personnel, so that the webmaster personnel in time carry out trouble shoot and repair process to the NMS side.
In addition; notice message generation unit 40 can also be debugging (Debug) message generation unit; it is unusual as a result the time being used for generated the default gateway operating states by generation unit as a result 20; or detect the default gateway operating state by abnormal restoring for just often; generation comprises the Debug message of the information that default gateway breaks down, or generates that to comprise default gateway be that abnormal restoring is that the Debug message of normal information sends to network management workstation by operating state.
Notice message generation unit 40 can also be daily record of work message (Syslog) generation unit, and its principle and effect thereof are with above-mentioned Trap message and Debug message, and just the message format difference is no longer too much given unnecessary details here.
By foregoing description as seen, the device that detects the default gateway operating state can realize in time detecting the function of default gateway operating state, and can be when default gateway breaks down, situation about breaking down in time is notified to the webmaster personnel in time to repair, the packet that mails to default gateway can also be transmitted to simultaneously the backup default webmaster and handle, to prevent packet losing in repeating process.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the technology of the present invention principle; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (10)

1, a kind of method that detects the default gateway operating state, be applied to comprise the network system of default gateway, described default gateway directly is connected on the physical port of the network equipment in the network system, it is characterized in that, the network equipment carries out cycle detection to the physical port that directly is connected with default gateway, if when detecting this physical port and being in normal operating conditions Up, then draw and the normal result of the direct-connected default gateway operating state of this physical port; If when detecting this physical port and being in malfunction Down, then draw and the unusual result of the direct-connected default gateway operating state of this physical port.
2, the method for detection default gateway operating state according to claim 1 is characterized in that, the described network equipment carries out cycle detection with periodic law to described physical port.
3, the method for detection default gateway operating state according to claim 1, it is characterized in that, if the network equipment detects described physical port when changing to normal operating conditions Up by malfunction Down, then draw with the direct-connected default gateway operating state of this physical port and recover normal result.
4, the method for detection default gateway operating state according to claim 1 is characterized in that,
Other physical ports of the described network equipment also are connected with the backup default gateway; And
The network equipment draw the default gateway operating state unusual as a result the time, the packet of issuing default gateway is transmitted to the backup default gateway processes.
5, the method for detection default gateway operating state according to claim 4 is characterized in that,
If the network equipment detects described physical port when changing to normal operating conditions Up by malfunction Down, then draw with the direct-connected default gateway operating state of this physical port and recover normal result; And
The network equipment will be issued the packet of backup default gateway and then be transmitted to default gateway again and handle.
6, the method for detection default gateway operating state according to claim 1 is characterized in that,
If the network equipment draw the default gateway operating state unusual as a result the time, generate one the notice message send to network management workstation, comprise the information that default gateway breaks down in the described notice message;
After network management workstation receives this notice message, default gateway is carried out fault inquiry and fault restoration processing.
7, the method for detection default gateway operating state according to claim 6 is characterized in that, described notice message is trap message Trap, debugging message Debug or daily record of work message Syslog.
8, a kind of device that detects the default gateway operating state is applied to comprise the network system of default gateway, and described default gateway directly is connected on the physical port of the network equipment in the network system, it is characterized in that, comprising:
The port status detecting unit is used to make the network equipment that the physical port that self directly is connected with default gateway is carried out state-detection; With
Generation unit is connected with described port status detecting unit as a result, is used for according to the testing result of port status detecting unit to the physical port operating state, when physical port is in normal operating conditions Up, generates the normal result of default gateway operating state; When physical port is in malfunction Down, generate the unusual result of default gateway operating state.
9, the device of detection default gateway operating state according to claim 8, it is characterized in that, also comprise the forwarding switch unit that is connected with generation unit as a result, be used for when the default gateway operating state is unusual, the packet of issuing default gateway is transmitted to the backup default gateway processes, and in the recovery of default gateway operating state just often, will issue the packet of backup default gateway again and then be transmitted to default gateway and handle.
10, the device of detection default gateway operating state according to claim 8; it is characterized in that; also comprise the notice message generation unit that is connected with generation unit as a result; be used for occurring unusually or just often detecting the default gateway operating state, generate and comprise notification of information message that default gateway breaks down or generation and comprise the default gateway operating state and recover normal notification of information message and send to network management workstation by the abnormal work recovering state.
CNB2004100373554A 2004-04-27 2004-04-27 Method for detecting operating state of default gateway and apparatus thereof Expired - Fee Related CN100484044C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100373554A CN100484044C (en) 2004-04-27 2004-04-27 Method for detecting operating state of default gateway and apparatus thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100373554A CN100484044C (en) 2004-04-27 2004-04-27 Method for detecting operating state of default gateway and apparatus thereof

Publications (2)

Publication Number Publication Date
CN1691615A true CN1691615A (en) 2005-11-02
CN100484044C CN100484044C (en) 2009-04-29

Family

ID=35346760

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100373554A Expired - Fee Related CN100484044C (en) 2004-04-27 2004-04-27 Method for detecting operating state of default gateway and apparatus thereof

Country Status (1)

Country Link
CN (1) CN100484044C (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100386997C (en) * 2005-12-30 2008-05-07 华为技术有限公司 Data transmission system and method between telecommunication equipments based on point-to-point connection
CN101217420B (en) * 2007-12-27 2011-04-20 华为技术有限公司 A linkage processing method and device
CN102292938A (en) * 2009-08-13 2011-12-21 三星Sds株式会社 Electronic patch apparatus, network system, and operating method in a network system
CN102595353A (en) * 2011-01-18 2012-07-18 中兴通讯股份有限公司 Information process method in gateway failure, system and gateways
CN103001802A (en) * 2012-12-07 2013-03-27 迈普通信技术股份有限公司 Method and system for automatically correcting faults of Ethernet ports
CN103748843A (en) * 2011-08-23 2014-04-23 瑞典爱立信有限公司 Methods and apparatus for avoiding inter-chassis redundancy switchover to non-functional standby nodes
CN104135433A (en) * 2008-12-05 2014-11-05 思科技术公司 Failover and failback of communication between a router and a network switch
CN103139034B (en) * 2009-06-12 2016-08-03 三菱电机株式会社 Communications Management Units and data communications method
CN109067620A (en) * 2018-09-27 2018-12-21 深圳壹账通智能科技有限公司 The monitoring method and device of gateway
CN109831383A (en) * 2017-11-23 2019-05-31 哈曼国际工业有限公司 The internet accessible detecting and internet high availability of multi-host network device
CN110235411A (en) * 2017-04-20 2019-09-13 惠普发展公司,有限责任合伙企业 It is couple to the gateway of connection point device
CN111162962A (en) * 2019-12-06 2020-05-15 中盈优创资讯科技有限公司 Method and system for detecting tunnel state of ring network channel type service
CN111865688A (en) * 2020-07-20 2020-10-30 北京百度网讯科技有限公司 Gateway monitoring method and device, electronic equipment and storage medium
CN113300927A (en) * 2015-08-31 2021-08-24 松下电器(美国)知识产权公司 Gateway device, in-vehicle network system, and transfer method

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100386997C (en) * 2005-12-30 2008-05-07 华为技术有限公司 Data transmission system and method between telecommunication equipments based on point-to-point connection
CN101217420B (en) * 2007-12-27 2011-04-20 华为技术有限公司 A linkage processing method and device
CN104135433B (en) * 2008-12-05 2018-09-21 思科技术公司 The failure of communication between router and the network switch shifts and fault recovery
CN104135433A (en) * 2008-12-05 2014-11-05 思科技术公司 Failover and failback of communication between a router and a network switch
CN103139034B (en) * 2009-06-12 2016-08-03 三菱电机株式会社 Communications Management Units and data communications method
CN102292938A (en) * 2009-08-13 2011-12-21 三星Sds株式会社 Electronic patch apparatus, network system, and operating method in a network system
CN102595353A (en) * 2011-01-18 2012-07-18 中兴通讯股份有限公司 Information process method in gateway failure, system and gateways
WO2012097604A1 (en) * 2011-01-18 2012-07-26 中兴通讯股份有限公司 Method, system and gateway for processing messages when gateway has failed
CN103748843A (en) * 2011-08-23 2014-04-23 瑞典爱立信有限公司 Methods and apparatus for avoiding inter-chassis redundancy switchover to non-functional standby nodes
CN103001802B (en) * 2012-12-07 2016-02-17 迈普通信技术股份有限公司 Ether port failure self-repairing method and system
CN103001802A (en) * 2012-12-07 2013-03-27 迈普通信技术股份有限公司 Method and system for automatically correcting faults of Ethernet ports
CN113300927A (en) * 2015-08-31 2021-08-24 松下电器(美国)知识产权公司 Gateway device, in-vehicle network system, and transfer method
CN113300927B (en) * 2015-08-31 2024-03-22 松下电器(美国)知识产权公司 Gateway device, in-vehicle network system, and transfer method
CN110235411A (en) * 2017-04-20 2019-09-13 惠普发展公司,有限责任合伙企业 It is couple to the gateway of connection point device
CN109831383A (en) * 2017-11-23 2019-05-31 哈曼国际工业有限公司 The internet accessible detecting and internet high availability of multi-host network device
CN109067620A (en) * 2018-09-27 2018-12-21 深圳壹账通智能科技有限公司 The monitoring method and device of gateway
CN111162962A (en) * 2019-12-06 2020-05-15 中盈优创资讯科技有限公司 Method and system for detecting tunnel state of ring network channel type service
CN111865688A (en) * 2020-07-20 2020-10-30 北京百度网讯科技有限公司 Gateway monitoring method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN100484044C (en) 2009-04-29

Similar Documents

Publication Publication Date Title
CN101051951A (en) Method and device for securing server connection reliability
CN1691615A (en) Method for detecting operating state of default gateway and apparatus therefor
CN102904818B (en) A kind of ARP information entry updating method and device
CN101951345B (en) Message transmitting method and equipment
CN1863198A (en) Apparatus and method of real-time recovering service
CN100344132C (en) Method for assuring automatic protecting system regular service of Ethernet
CN1701569A (en) Ip redundancy with improved failover notification
CN1893338A (en) Communication path redundancy protection systems and methods
CN1747439A (en) Fault treating method for phase switching loop of automatic protection system of Ethernet
JP2004032758A (en) Router interface backup execution method by vrrp (virtual router redundancy protocol)
CN1805400A (en) Notification of failures in a trunk network
CN1848841A (en) Route equipment backup method
CN1905490A (en) Method and apparatus for preventing loop when RRPP and partial STP network damage recovery
CN1992707A (en) Fast restoration method of multicast service and network apparatus
CN101060485A (en) Topology changed messages processing method and processing device
CN101035053A (en) Processing method for node link switching of the distributed system and its device
CN1909494A (en) Method and system for realizing dual attachment or multiple attachment of user network boundary device
CN1492623A (en) Method for realizing link state feed-through in network
CN1980155A (en) Method for recovering sponsor media accessing control address and operation businesss edge apparatus
CN101030912A (en) Fast ring network method against attack based on RRPP, apparatus and system
CN1905482A (en) Method and apparatus for communicating network trouble dtecting result
CN1741480A (en) Method and equipment for detecting signalling or media path fault in next generation method
CN105939254A (en) Method and device for switching state of VRRP (Virtual Router Redundancy Protocol) backup set
JP2006229958A (en) Device for changing ip data based on atm equipped with high availability for communication network into ip data based on ethernet (r)
JP2010141845A (en) Communication apparatus including multiple servers and communication method

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: 20170920

Address after: 075000 No. 1, No. 2, building 26, 301 Han Qiao street, Qiaodong District, Hebei, Zhangjiakou

Patentee after: Liu Na

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

Patentee before: Huawei Technologies Co., Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090429

Termination date: 20180427

CF01 Termination of patent right due to non-payment of annual fee