CN100518142C - Method for preventing network interruption caused by address aging and time inconformity - Google Patents

Method for preventing network interruption caused by address aging and time inconformity Download PDF

Info

Publication number
CN100518142C
CN100518142C CNB2005101213720A CN200510121372A CN100518142C CN 100518142 C CN100518142 C CN 100518142C CN B2005101213720 A CNB2005101213720 A CN B2005101213720A CN 200510121372 A CN200510121372 A CN 200510121372A CN 100518142 C CN100518142 C CN 100518142C
Authority
CN
China
Prior art keywords
address
network
network equipment
gateway
request packet
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.)
Expired - Fee Related
Application number
CNB2005101213720A
Other languages
Chinese (zh)
Other versions
CN1992672A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNB2005101213720A priority Critical patent/CN100518142C/en
Publication of CN1992672A publication Critical patent/CN1992672A/en
Application granted granted Critical
Publication of CN100518142C publication Critical patent/CN100518142C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses a method to prevent the network disconnection by address aging time inconsistency, including steps: adding a functional module in the network equipment, to cyclical access to all next hop gateway information in the routing table of the network equipment, and actively sending the ARP request packet to these next hop gateway, and in these packets, carrying the MAC address of the network equipment; the said ARP request packet is sent to other network equipments connected with the network equipment, so that other network equipments learn the MAC address of the network equipment, and the time interval of the said ARP request packet is shorter to the aging time of the network equipment port MAC address. By selecting a suitable time interval, the method in the invention has almost no impact on the network performance, function, and so on, and it makes more flexible in the actual networking application of the network equipment, and reduces the complexity of network management and troubleshooting.

Description

A kind of preventing because the inconsistent method that causes network to interrupt of address aging time
Technical field
The present invention relates to a kind ofly prevent that because the inconsistent method that causes network management to be interrupted of port mac (media interviews layer address) address and ARP ageing time, the network switching equipment solves because the inconsistent method that causes the network interruption of port mac address and ARP ageing time in particular a kind of communication field when cascade network.
Background technology
Below describe about background context knowledge of the prior art:
One, arp cache table and ARP ageing time: the ARP agreement is the abbreviation of " Address ResolutionProtocol " (address resolution protocol), and so-called " address resolution " is exactly main frame converts target ip address to destination-mac address before transmit frame process.The basic function of ARP agreement is exactly the IP address by target device, and the MAC Address of query aim equipment is to guarantee carrying out smoothly of communication.
In every computer that ICP/IP protocol is installed an arp cache table is arranged all, IP address and MAC Address in the table are one to one.
The arp cache table has adopted aging mechanism, if a certain in the table do not use in a period of time, will be deleted, and can significantly reduce the length of arp cache table like this, and accelerate inquiry velocity.If there is not aging mechanism, then the list item in the arp cache table can get more and more, and the capacity of arp cache table is limited.If there is the item that much has not been in state of activation like this, the item that can cause acquiring afterwards can't be kept in this table, influences the normal operation of system.In addition, useless also can influence search efficiency too much in the arp cache table, so general A RP ageing time is 20 minutes.
Two, the study of port mac address and ageing time: each port has the function of automatic study MAC Address in the network equipment, and the source address of the frame that sends and receive by port comprises and source MAC, network equipment port number stores in the mac address table into.
Ageing time is a parameter that influences network equipment study course, adding address table from an address record picks up counting later on, if each port does not receive that source address is the frame of this MAC Address in ageing time, so, these addresses will be deleted from dynamic address forwarding table (port numbers that promptly comprises source MAC, target MAC (Media Access Control) address and their corresponding network equipments).The formation of this aging mechanism is identical with the reason of arp cache table aging mechanism, all is for system is got a promotion on function and performance.
Three, " forwarding of unknown unicast bag " function of two layers of exchange: receive a packet when the network equipment from certain port, it reads the target MAC (Media Access Control) address in the packet header, and searches corresponding ports in mac address table; If have and this target MAC (Media Access Control) address corresponding port in the table, packet directly copied on this port; If can not find corresponding ports in the table, then packet is broadcast on all of the port, when the purpose machine was responded source machine, it is corresponding with which port that the network equipment can be learnt a target MAC (Media Access Control) address again, and with regard to no longer needing all of the port has been broadcasted when transmitting data next time.Function that Here it is " the unknown unicast bag is transmitted (forward unknow) ".
This function has improved the ability that the network equipment is transmitted packet, forwarding packet that can be as much as possible.But this function has also been brought a problem, if loop occurs in the residing network of the network equipment, then can cause packet " inundation ", can cause the obstruction of network and the network equipment is impacted.Therefore in a lot of network equipments, this function is pent.
Four, when port mac address and ARP ageing time not simultaneously, will have following problem:
In a local area network (LAN), may there be the networking situation of a plurality of network equipment cascades in the typical networking topology, as shown in Figure 1.And in the network equipment, ARP ageing time and port mac address aging time are also inequality, and the ARP ageing time can be greater than the ageing time of port mac address usually.The ARP ageing time also is longer than the network equipment port MAC address aging time on the PC.
Because the ARP ageing time is greater than the port mac address aging time, a problem has so just appearred: when PC will be when the network equipment 2 sends a unicast packet, what target MAC (Media Access Control) address was filled in the unicast packet is the MAC Address of the network equipment 2, when this unicast packet sends to the network equipment 1, if the MAC address aging of the network equipment 2 of the network equipment 1 study, and the network equipment 1 is not opened " transmitting the unknown unicast bag " function again, then this unicast packet can be abandoned, thereby this unicast packet just can not arrive the network equipment 2.
The practical application of this situation be network management personnel the communication traffic supplier when the network equipment is managed, at pc machine operation webmastering software, this moment, the network equipment 2 was the network equipments that need management.If above-mentioned reason, directly embodying is exactly the interruption that is connected of the webmastering software and the network equipment, can't manage this network equipment.
Because the ARP ageing time is longer than the ageing time of port mac address, therefore can cause above-mentioned problem.
Present solution is: is identical value with the ARP ageing time of the various device in the network with port mac address aging time modification.But this solution has following shortcoming:
If it is identical with the ARP ageing time to prolong the ageing time of port MAC Address, then can cause the reduction of network equipment switching performance; And if the ARP ageing time is reduced to identical, then can cause in the network arp request bag ARP Req broadcast packet too many with the port mac address aging time, can influence the performance of whole network.A lot of network equipments do not allow a port mac address aging time that the long time is set; The a lot of network equipments or the network equipment are not supported the modify feature of ARP ageing time; Even or support to revise the ARP ageing time, when the network equipment and number of computers are too many in network, and a lot of computer is to belong to the computer that the client uses, and can not guarantee that all network equipments and computer can both make amendment, and guarantees consistent.
Just, therefore need to consider to take a kind of method of easier realization to solve this problem because there is existing shortcoming in this method.
Summary of the invention
The objective of the invention is in order to solve in the present networking because ARP address aging time and port address ageing time when inconsistent, cause webmaster to connect the problem of interrupting, and a kind of the solution because the inconsistent method that causes network to interrupt of address aging time that proposes.
Technical scheme of the present invention is as follows:
A kind of method that causes network to interrupt owing to the address aging time is inconsistent that solves, it comprises step:
A, in the network equipment, increase a functional module, periodically obtain the information of next jumping gateway of all in the routing table in this network equipment, and initiatively next jumps gateway transmission arp request packet voice, the MAC Address of carrying present networks equipment in these messages to these;
B, described arp request packet voice send to other network equipments that link to each other with this network equipment, so that other network equipments are learnt the MAC Address of present networks equipment, the time interval of described transmission arp request packet voice is shorter than the ageing time of this network equipment port MAC Address.
Described method wherein, also specifically comprises step
A1, obtain in the present networks equipment routing table address list that next jumps gateway;
B1, judge whether to get access to next and jump gateway address, if do not get access to, then wait for a scheduled time after repeating step A1;
If C1 gets access to next and jumps gateway address, then in order following processing is carried out in each address.
Described method, wherein, described step C1 also comprises:
C11, next is jumped the IP address of gateway, create the arp request packet voice, purpose IP inserts the address this, and next jumps the IP address of gateway; Source IP address and source MAC are inserted the IP address and the MAC Address of native system; Target MAC (Media Access Control) address is inserted the broadcasting MAC Address;
C12, this arp request packet voice is sent on the network at the physical port of present networks equipment.
Described method, wherein, the selection strategy of described one scheduled time of wait is: maximum next that can hold in the scheduled time * native system jumped gateway number<MAC address aging time.
A kind of solution provided by the present invention because the inconsistent method that causes network to interrupt of address aging time, because adopting to make the network equipment avoid being connected with the webmaster computer scheme of outage, and do not revise the ARP ageing time, do not revise the port mac address aging time yet, only regularly send ARP Req (arp request) packet, by selecting the suitable time interval, performance to network, functions etc. are not influence almost, and make the network equipment more flexible in the networking of reality is used, increase the adaptability and the flexibility of the network equipment, reduced the complexity of network management and troubleshooting.
Description of drawings
Fig. 1 is the network organizing topology schematic diagram of prior art;
Fig. 2 is the process chart of the inventive method.
Embodiment
Below in conjunction with accompanying drawing, will carry out comparatively detailed explanation to each preferred embodiment of the present invention.
In the methods of the invention, use be that next that comprise in the network equipment routing table jumped gateway information, with when solving ARP ageing time and the asynchronism(-nization) of port mac address aging, the webmaster that causes connects the problem of interruption.
The inventive method must increase a functional module in the network equipment, can periodically obtain the information of next jumping gateway of all in the routing table in the network equipment, and initiatively next jumps gateway transmission ARP Req message to these, can carry the MAC Address of present networks equipment in these messages, send to other network equipments that link to each other with the network equipment, thus can be so that other network equipments be learnt the MAC Address of present networks equipment.Be shorter than the port mac address aging time if send the time interval of ARP Req, then can guarantee can the not wear out MAC Address of present networks equipment of other network equipments, so just can guarantee that other the network equipment can be the correct present networks equipment that is transmitted to of the packet that should send to present networks equipment.
The handling process of the inventive method specifically describes as followsly as shown in Figure 2:
At first, obtain the address list of next jumping gateway in the present networks equipment routing table.Regularly obtain is in order to guarantee after the network equipment has upgraded routing table information, can to adopt new information.Regularly obtain also in order to prevent from frequently to obtain next hop information and cause influence systematic function.
Secondly, judge whether to get access to next and jump gateway address:, then illustrate and do not dispose next hop information in the native system as yet if do not get access to, know that dynamic routing protocol does not get access to dynamic routing iinformation as yet, wait for a period of time, for example 5 seconds, repeat previous step once more.The purpose that waits for a period of time is, when preventing do not have routing iinformation in system, do not stop to carry out previous step, causes taking the problem of too many system resource.
Once more, jump gateway address, then in order following processing is carried out in each address if get access to next.
Next is jumped the IP address of gateway, create ARP Req packet, purpose IP inserts the address next IP address of jumping gateway; Source IP address and source MAC are inserted the IP address and the MAC Address of native system; Target MAC (Media Access Control) address is inserted the broadcasting MAC Address.
ARP Req is sent on the network at the suitable physical port of present networks equipment, select suitable physical port be the network equipment intrinsic function, also be the basic function of the network equipment, this has been that prior art is known not at the row of this method description.Also all have ready-made function to call and create ARP Req packet in all support the system of ICP/IP protocol stacks, implementation method is not also at the row of the description of this method.
Wait for a period of time: the purpose that waits for a period of time is in order to make other task of system handles between the each ARP of transmission Req message.Prevent that also a large amount of ARPReq of transmission of short time message from impacting to network.The selection strategy of this time is: maximum next that can hold in time (t) * native system jumped gateway number<MAC address aging time.The ageing time of General System is about 120 seconds.Therefore, if next jumping gateway number of the maximum of holding in the system is 20, then the t of Tui Jianing is 5 seconds.Such time, next jumps the ARP Req message that gateway can both receive in the longest 100 second time that native system sends can to guarantee each, thereby upgrades the Mac address table of these equipment.
Though foregoing description the specific embodiment of the inventive method; yet person of skill in the art will appreciate that; under the prerequisite that does not depart from aim of the present invention and scope, can carry out the modification and the improvement of various forms and details, and all such modifications and improvement all should belong to scope of patent protection of the present invention.

Claims (4)

1, a kind of solution owing to ARP address aging time and the inconsistent method that causes network to interrupt of port mac address aging time, it comprises step:
A, in the network equipment, increase a functional module, periodically obtain the information of next jumping gateway of all in the routing table in this network equipment, and initiatively next jumps gateway transmission arp request packet voice to these, carries the media interviews layer address of present networks equipment in these messages;
B, described arp request packet voice send to other network equipments that link to each other with this network equipment, so that other network equipments are learnt the media interviews layer address of present networks equipment, the time interval of described transmission arp request packet voice is shorter than the ageing time of this network equipment port media interviews layer address.
2, method according to claim 1, it is characterized in that, " periodically obtain the information of next jumping gateway of all in the routing table in this network equipment, and initiatively next jumping gateway transmission arp request packet voice to these " in the described steps A specifically comprises step:
A1, obtain in the present networks equipment routing table address list that next jumps gateway;
B1, judge whether to get access to next and jump gateway address, if do not get access to, then wait for a scheduled time after repeating step A1;
If C1 gets access to next and jumps gateway address, then in order each address is sent the arp request packet voice.
3, method according to claim 2 is characterized in that, " sending the arp request packet voice " among the described step C1 comprising:
C11, next is jumped the IP address of gateway, create the arp request packet voice, purpose IP inserts the address this, and next jumps the IP address of gateway; Source IP address and source media interviews layer address are inserted the IP address and the media interviews layer address of system; Purpose media interviews layer address is inserted broadcast medium access layer address;
C12, this arp request packet voice is sent on the network at the physical port of present networks equipment.
4, method according to claim 3 is characterized in that, the selection strategy of described one scheduled time of wait is: maximum next that can hold in the scheduled time * native system jumped gateway number<media access layer address aging time.
CNB2005101213720A 2005-12-27 2005-12-27 Method for preventing network interruption caused by address aging and time inconformity Expired - Fee Related CN100518142C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101213720A CN100518142C (en) 2005-12-27 2005-12-27 Method for preventing network interruption caused by address aging and time inconformity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101213720A CN100518142C (en) 2005-12-27 2005-12-27 Method for preventing network interruption caused by address aging and time inconformity

Publications (2)

Publication Number Publication Date
CN1992672A CN1992672A (en) 2007-07-04
CN100518142C true CN100518142C (en) 2009-07-22

Family

ID=38214628

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101213720A Expired - Fee Related CN100518142C (en) 2005-12-27 2005-12-27 Method for preventing network interruption caused by address aging and time inconformity

Country Status (1)

Country Link
CN (1) CN100518142C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102064956A (en) * 2010-09-30 2011-05-18 中兴通讯股份有限公司 Method for regulating aging time, system and modulator-demodulator

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102594943B (en) * 2012-03-19 2014-10-22 杭州华三通信技术有限公司 Method and device for realizing address resolution protocol (ARP) interception
CN102857427A (en) * 2012-08-27 2013-01-02 上海斐讯数据通信技术有限公司 Method for detecting next hop MAC (Media Access Control) address and route device thereof
CN107171883B (en) * 2016-03-08 2020-04-28 华为技术有限公司 Method, device and equipment for detecting forwarding table
CN107528929B (en) * 2016-06-21 2021-05-14 中兴通讯股份有限公司 ARP (Address resolution protocol) entry processing method and device
CN108243262B (en) * 2016-12-26 2020-04-21 大唐移动通信设备有限公司 ARP table learning method and device and network three-layer equipment
CN109995883B (en) * 2017-12-29 2023-06-30 资易国际股份有限公司 Automatic repairing method for network equipment real and virtual address corresponding failure
CN112929193B (en) * 2019-12-06 2023-02-03 华为技术有限公司 Method and apparatus for configuring aging time of medium access control address
CN113676436B (en) * 2020-05-14 2022-12-20 北京广利核系统工程有限公司 Method and network equipment for realizing hot switching of industrial control protocol analysis rules
CN112637373B (en) * 2020-11-17 2022-05-27 新华三技术有限公司合肥分公司 Method and equipment for keeping dumb terminal online

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102064956A (en) * 2010-09-30 2011-05-18 中兴通讯股份有限公司 Method for regulating aging time, system and modulator-demodulator
CN102064956B (en) * 2010-09-30 2015-05-13 中兴通讯股份有限公司 Method for regulating aging time, system and modulator-demodulator

Also Published As

Publication number Publication date
CN1992672A (en) 2007-07-04

Similar Documents

Publication Publication Date Title
CN100518142C (en) Method for preventing network interruption caused by address aging and time inconformity
US7724649B2 (en) Method and device for making uplink standby
CN100579034C (en) Method for reporting equipment information, system and device for obtaining equipment information
CN101820435B (en) Synchronization method and device for MAC (Media Access Control) address table information of distributed network processing system
KR100656488B1 (en) Routing system and method for managing forward information in thereof
CN102035676A (en) ARP (Address Resolution Protocol) interaction based method and equipment for detecting and recovering link fault
KR102025680B1 (en) SDN based ARP implementation method and device
CN102694664B (en) Multicast method and multicast equipment
US9954723B2 (en) Packet switch modules for computer networks with efficient management of databases used in forwarding of network traffic
CN101252503B (en) Method and apparatus for switching traffic of looped network
CN107465622B (en) Method for realizing network topology discovery by utilizing LLDP
CN101635731A (en) Method and equipment for defending MAC address deception attack
WO2003084129A1 (en) A network topology information collecting method
CN108989200A (en) data packet forwarding method, device and system
CN103560962A (en) Method for automatically updating host routing table entries of Ethernet switch and switch
CN101909006B (en) BFD (Bidirectional Forwarding Detection) message sending and receiving methods as well as device and communication system thereof
US20070097917A1 (en) Method for rapidly lnking mobile node and access point in wireless local area network
CN100488201C (en) Link backup method based on route
CN100499549C (en) Apparatus and base station equipment for transmitting IP message in WiMAX network
CN101582857B (en) Data upper ring forwarding method based on elastic grouping ring and device
CN101102231B (en) An automatic discovery method and device of PPP link routing device
CN101997724A (en) Method and device for updating multicast forwarding entries
CN1787475A (en) Access network system and method of moving internal network relay devices
CN102057633A (en) Method and apparatus for handling a switch using a preferred destination list
CN102938737A (en) Layer-2 ring network proxy method and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090722

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