CN101064667A - Method for monitoring and adjusting universal routing package tunnel state - Google Patents

Method for monitoring and adjusting universal routing package tunnel state Download PDF

Info

Publication number
CN101064667A
CN101064667A CNA2006100262724A CN200610026272A CN101064667A CN 101064667 A CN101064667 A CN 101064667A CN A2006100262724 A CNA2006100262724 A CN A2006100262724A CN 200610026272 A CN200610026272 A CN 200610026272A CN 101064667 A CN101064667 A CN 101064667A
Authority
CN
China
Prior art keywords
gre
keepalive
message
tunnel
sends
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.)
Pending
Application number
CNA2006100262724A
Other languages
Chinese (zh)
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.)
SHANGHAI BAUD DATA COMMUNICATION CO Ltd
Original Assignee
SHANGHAI BAUD DATA COMMUNICATION 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 SHANGHAI BAUD DATA COMMUNICATION CO Ltd filed Critical SHANGHAI BAUD DATA COMMUNICATION CO Ltd
Priority to CNA2006100262724A priority Critical patent/CN101064667A/en
Publication of CN101064667A publication Critical patent/CN101064667A/en
Pending legal-status Critical Current

Links

Images

Abstract

A method of monitoring and adjusting general route encapsulation tunnel state is a GRE keepalive mechanism, the mechanism is accomplished as(RFC 1701), (RFC 1702), and (RFC 2784), and applied in d ata transmission tunnel which adopts GRE protocol. The main content is that it uses data communication equipment which supports GRE function to send keepalive report to realize the monitoring of communication state of receiving end and change the state of tunnel port of sending end GRE terminal dynamically. The purpose of the invention is to increase the efficiency of data transmission and decrease the waste of network resource during the course of two ends of communication which adopts GRE protocol sends data by GRE tunnel.

Description

A kind of monitoring and the method for adjusting universal routing package tunnel state
Technical field:
The present invention relates to a kind of communications field, particularly relate to a kind of based on monitoring under the GRE agreement and the method for adjusting universal routing package tunnel state.
Background technology:
Main GRE (the Generic Router Encapsulation) technology that adopts of existing internet data transmission, it is a kind of for satisfying the tunnel encapsulation agreement that transfer of data is set up.Be mainly used between two end points of network service and set up a gre tunneling.By reaching the purpose of setting up communication tunnel mutually, and realize the transfer of data of this point-to-point transmission by this tunnel in the tunnel of each end mouth configuring GRE agreement.Because this technology has characteristic simply cheaply in its practice, so, having become in the network data communication agreement, IPV4 is to a solution of IPV6 transition.Yet, the GRE tunnel (gre tunneling) that between network endpoint, is set up described in the GRE agreement, itself is from agreement a kind of unsure state of saying so.That is to say that the local GRE end points end points of agreement (adopt GRE) do not preserve any information about opposite end GRE end points.Therefore, this local endpoint does not just know whether the opposite end end points survives.And know in the data communication of reality whether the opposite end survives local endpoint is very useful.No longer survive if know the GRE opposite end, the tunnel mouth that we can this locality is set to the down state.If have a kind of method can realize monitoring to the existing state of opposite end GRE end points in data transmission procedure, and according to the situation of monitoring the tunnel mouth state of this locality is dynamically adjusted, this will bring very big benefit to data communication.For example, when this tunnel mouth was as outer outbound port in the routing table, we can delete this relevant route table items, perhaps even can select the optional route table items of another one to replace the list item of deleting.In addition, no longer survive, can stop to send message, reduce the burden of network service if know the opposite end.
Summary of the invention:
For solving the problems of the technologies described above, the invention provides a kind of monitoring and the method for adjusting universal routing package tunnel state, it is a kind of GRE keepalive mechanism, this mechanism is finished according to " RFC 1701 ", " RFC 1702 " and " RFC 2784 ", is applied to adopt in the data transmission tunnel of GRE agreement.
To be data communications equipment that utilize to support the GRE protocol function send end points by local GRE to content of the present invention sends the keepalive message receiving end communications status that achieves a butt joint and monitor and dynamically change the state of the tunnel mouth of transmitting terminal GRE end points.The effect of this method is to make to adopt the communication two ends of GRE agreement utilizing gre tunneling to carry out in the process of transfer of data, improves the validity of network data transmission and is reduced to the waste of network resources that takies of guaranteeing that transfer of data causes by mechanism of the present invention.
In order to realize above-described inventive method, the concrete steps of this method are:
The timer of a keepalive at first is set at local GRE end points, and every certain hour just sends a keepalive message.Secondly, after a such keepalive message is received in the opposite end, can not handle especially it, only can carry out common GRE decapsulation to it, give upper-layer protocol then and handle (ICMP), ICMP will give an ICMP response message after handling and finishing smoothly, and the icmp packet of this response will form a keepalive response message through the encapsulation process of GRE equally.Certainly, the opposite end does not need necessarily to support keepalive mechanism on mechanism method, treats the keepalive message that the other side sends over like that because it can be handled as the GRE protocol method.If then do not cause not receiving response message behind the local keepalive message that sends because the opposite end does not exist, local GRE end points can be by the timer setting of this locality, every regular hour just sends same keepalive message, but do not receive that before timer expired the keepalive response message that the opposite end sends over will increase an error logging, when surpassing maximum errors number, just indicate that the opposite end gre tunneling no longer exists.At this moment, it is the down state that local GRE end points is provided with the tunnel mouth, is in order dynamically to find the port that may survive again in the opposite end, rebulid to be used for the gre tunneling of transfer of data but also need timed sending keepalive message, the purpose of doing like this.Certainly for this locality is set the time that sends the keepalive message, can does dynamically change according to the network condition of reality.
In addition, the present invention also has following technical characterictic:
1] related communication message is to utilize existing GRE interface of BDCOM and Tunnel interface among the present invention, and code=0, the icmp packet of type=8 type is packaged into the keepalive message format of a GRE message as us with GRE, as shown in Figure 1.
2] the present invention does not make tangible change to network design.If in data transmission procedure, the communication two ends have one or both ends to think configuring GRE keepalive mechanism method simultaneously, as long as these two ends all support the GRE agreement just passable.For both sides, do not need to do any change.It is very little that it uses cost.
3] if GRE keepalive mechanism method is all adopted at the two ends of GRE traffic, then these two ends do not need to carry out synchronously with the timer of the other side's keepalive.That is to say that both sides' keepalive timer can be separate, two ends can be provided with different parameter value.Reduced the complexity of communicating pair on negotiations process and management coupling like this, be easy to use.
Beneficial effect of the present invention is: the method for the invention is not introduced new message kind on the type of keepalive message, reduced the complexity of this mechanism method in concrete enforcement, and made full use of the existing systems function, realized obtaining extra function with design flexible.This method can dynamically be found the state information of GRE opposite end by utilizing transmission and the response to above-mentioned message, with the state information of this corresponding change Tunnel mouth.Simultaneously, this method does not significantly consume as the performance of a kind of mechanism to transfer of data.Its efficient succinct characteristics provide a kind of new more perfect system solution for disposing uniting of IPV6 and IPV4 under the situation that does not increase the existing system complexity.
Description of drawings:
Fig. 1 is the keepalive message format in GRE keepalive mechanism
Fig. 2 is the local keepalive message that sends under the GRE agreement
The response message that the keepalive message that Fig. 3 sends this locality for opposite end under the GRE agreement is sent
Fig. 4 is the data flowchart of the local keepalive of transmission
Fig. 5 is the local deal with data flow process of receiving a keepalive message
Embodiment:
For implementation step of the present invention better is described, specify the workflow of GRE keepalive mechanism method below with reference to accompanying drawing:
As shown in Figure 4, for utilizing the function of GRE keepalive mechanism method, local side sends the keepalive message.In this process, at the beginning according to the keepalive configuration of this locality, start the timer of keepalive itself, retransmitting number of times initialization number is 0.When the timer of keepalive is 0, mean the response message of during this period of time not receiving keepalive, then retransmit number of times and add one.If do not reach maximum number of retransmissions, then construct a keepalive message, need to call GRE in the construction process and encapsulate, and send this keepalive message by the IP layer.If this repeating transmission number of times has surpassed maximum number of retransmissions, then to put local tunnel mouth be the down state to local side, this means that this opposite end no longer survives, and then construct a keepalive message and send, and its process is handled the same.
As shown in Figure 5, for utilizing the function of GRE keepalive mechanism method, local side receives the keepalive message.To be the IP module give the GRE module keepalive message of receiving to its process carries out decapsulation and handle, and message is just delivered to the relevant treatment that the Tunnel module is carried out keepalive then, and resetting timer and putting number of retransmissions is 0.The timerl that waits for keepalive then arrives and sends the keepalive message again, and processing procedure is got back to the processing procedure of top transmission keepalive message.
According to the described inventive method of above execution mode, but concrete configuration is in supporting IPV6 and IPV4 dual-stack router.Under the GRE agreement is supported, if this locality has disposed the keepalive function, then do not need the IPV4/IPV6 router of requirement opposite end necessarily to possess and can realize the keepalive function, do not need time and this locality of keepalive of opposite end configuration consistent yet.Whether dual-stack router that so just can the dynamic monitoring opposite end survives, thereby improves the communication efficiency of IPV6 and IPV4 interconnection.
Above-described only is most preferred embodiment of the present invention, in order to limit all any modifications done within the spirit and principles in the present invention of the present invention, to be equal to replacement and improvement etc., all should not be included within protection scope of the present invention.

Claims (6)

1, a kind of monitoring and the method for adjusting universal routing package tunnel state, this method utilization supports the data communications equipment of GRE protocol function to send end points by local GRE and sends the state that the keepalive message realizes the opposite end communications status is monitored and dynamically changed the tunnel mouth of transmitting terminal GRE end points that the step of this method comprises:
1] timer of a keepalive is set at local GRE end points;
2] the every certain hour of local GRE end points just sends a keepalive message;
3] behind the keepalive message that the receiving terminal of opposite end receives, it is carried out common GRE decapsulation, give upper-layer protocol then and handle (ICMP), ICMP will give an ICMP response message after handling and finishing smoothly, the icmp packet of this response equally will be through the encapsulation process of GRE, form a keepalive response message, the concurrent transmitting terminal of returning.
2, method according to claim 1, it is characterized in that related keepalive message utilizes existing GRE interface of BDCOM and Tunnel interface, code=0, the icmp packet of type=8 type is packaged into the keepalive message format of a GRE message as us with GRE.
3, method according to claim 1, it is characterized in that the timer setting that the GRE end points of transmitting terminal can be pressed transmitting terminal in implementation process of this method, every regular hour just sends same keepalive message, but do not receive that before timer expired the keepalive response message that receiving terminal sends over will increase an error logging, when surpassing maximum errors number, just indicate that the opposite end gre tunneling no longer exists, at this moment, it is the down state that transmitting terminal is provided with the tunnel mouth, but also need timed sending keepalive message, so that in order dynamically to find the port that receiving terminal may be survived again, rebulid to be used for the gre tunneling of transfer of data.
4, method according to claim 1 is characterized in that transmitting terminal related in this method is provided with the time that sends the keepalive message, can do dynamically change according to the network condition of reality.
5, inventive method according to claim 1 is characterized in that this method can be disposed at the one or both ends of communication in actual applications simultaneously.
6, method according to claim 1, it is characterized in that if this mechanism method is disposed at the two ends of communication simultaneously in actual applications, then these two ends do not need to carry out synchronously with the timer of the other side's keepalive, both sides' keepalive timer can be separate, and two ends can be provided with different parameter value.
CNA2006100262724A 2006-04-29 2006-04-29 Method for monitoring and adjusting universal routing package tunnel state Pending CN101064667A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2006100262724A CN101064667A (en) 2006-04-29 2006-04-29 Method for monitoring and adjusting universal routing package tunnel state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2006100262724A CN101064667A (en) 2006-04-29 2006-04-29 Method for monitoring and adjusting universal routing package tunnel state

Publications (1)

Publication Number Publication Date
CN101064667A true CN101064667A (en) 2007-10-31

Family

ID=38965392

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2006100262724A Pending CN101064667A (en) 2006-04-29 2006-04-29 Method for monitoring and adjusting universal routing package tunnel state

Country Status (1)

Country Link
CN (1) CN101064667A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841475A (en) * 2010-04-21 2010-09-22 北京星网锐捷网络技术有限公司 System for testing performance of GRE (Ground Radar Equipment) router and method thereof
CN101888338A (en) * 2010-07-01 2010-11-17 中兴通讯股份有限公司 Information forwarding method and gateway
CN103441916A (en) * 2013-07-22 2013-12-11 汉柏科技有限公司 Method for reducing shake of GRE tunnel
CN103905268A (en) * 2012-12-28 2014-07-02 华为技术有限公司 GRE link detection method and device, main control board and communication protection system
CN105703997A (en) * 2014-11-28 2016-06-22 杭州迪普科技有限公司 Tunnel control method and apparatus
CN107040599A (en) * 2017-04-20 2017-08-11 新华三技术有限公司 Bgp neighbor disconnecting method and device
CN107332733A (en) * 2017-06-30 2017-11-07 联想(北京)有限公司 The state monitoring method and device of a kind of network port
CN111988309A (en) * 2020-08-18 2020-11-24 深圳市联软科技股份有限公司 ICMP hidden tunnel detection method and system

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841475B (en) * 2010-04-21 2011-12-28 北京星网锐捷网络技术有限公司 System for testing performance of GRE (Ground Radar Equipment) router and method thereof
CN101841475A (en) * 2010-04-21 2010-09-22 北京星网锐捷网络技术有限公司 System for testing performance of GRE (Ground Radar Equipment) router and method thereof
CN101888338A (en) * 2010-07-01 2010-11-17 中兴通讯股份有限公司 Information forwarding method and gateway
CN103905268B (en) * 2012-12-28 2017-08-29 华为技术有限公司 GRE chain circuit detecting methods, master control borad, device and communication guard system
CN103905268A (en) * 2012-12-28 2014-07-02 华为技术有限公司 GRE link detection method and device, main control board and communication protection system
CN103441916B (en) * 2013-07-22 2017-11-14 汉柏科技有限公司 A kind of method for reducing shake of GRE tunnel
CN103441916A (en) * 2013-07-22 2013-12-11 汉柏科技有限公司 Method for reducing shake of GRE tunnel
CN105703997A (en) * 2014-11-28 2016-06-22 杭州迪普科技有限公司 Tunnel control method and apparatus
CN105703997B (en) * 2014-11-28 2019-11-12 杭州迪普科技股份有限公司 A kind of tunnel control method and device
CN107040599A (en) * 2017-04-20 2017-08-11 新华三技术有限公司 Bgp neighbor disconnecting method and device
CN107332733A (en) * 2017-06-30 2017-11-07 联想(北京)有限公司 The state monitoring method and device of a kind of network port
CN107332733B (en) * 2017-06-30 2021-03-19 联想(北京)有限公司 Method and device for monitoring state of network port
CN111988309A (en) * 2020-08-18 2020-11-24 深圳市联软科技股份有限公司 ICMP hidden tunnel detection method and system
CN111988309B (en) * 2020-08-18 2022-07-05 深圳市联软科技股份有限公司 ICMP hidden tunnel detection method and system

Similar Documents

Publication Publication Date Title
CN101064667A (en) Method for monitoring and adjusting universal routing package tunnel state
CN103548307B (en) The method and system of data is transmitted by computer network
CN103490972B (en) Multilink tunnel message transmission method and system
CN1423869A (en) Link Layer acknowledgement and retransmission for cellular telecommunications
CN104767666A (en) Virtual extensible local area network tunnel terminal tunnel building method and equipment
CN101222443B (en) Method and network appliance for processing packet
CN109120540B (en) Method for transmitting message, proxy server and computer readable storage medium
CN102291305B (en) Method and device for implementing 6 to 4 relay routing, and message forwarding method
CN103973414B (en) A kind of data transmission method and device
CN102315918B (en) Method and device for intercommunicating TCP (Transmission Control Protocol) connection with SCTP (Stream Control Transmission Protocol) connection
CN100417156C (en) A method and system for implementing data transmission in flow control transmission protocol
CN1309201C (en) Method and system for controlling application of subscriber terminal for network transmission loss tolerance
JP4229807B2 (en) Data transfer method, TCP proxy device, and network system using the same
Berry et al. PPP over Ethernet (PPPoE) extensions for credit flow and link metrics
CN104471538A (en) Data stream processing method, device and system
JP4506430B2 (en) Application monitor device
CN102420745A (en) 3G (the third Generation) communication method and system
CN102238164A (en) Internet protocol (IP) telecommunication network-oriented multi-protocol message adaptation method
CN1697445A (en) Implementation method for transferring data in virtual private network
CN101547146A (en) Method and network equipment for determining length value of maximum message segment
CN1633096A (en) A method of short message value-added service access
CN102377829B (en) Based on the communication means of HIP, system and equipment
CN1293726C (en) Method for implementing quick transmission of bridge data on network link
CN101248618A (en) Flow control transport protocol output stream queue management and data transmission processing method
US11588925B2 (en) Method for transferring large amounts of data through a telematic network in an efficient and reliable manner at a high-speed

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication