CN101800683A - Method and device for probing survival time of address translation entries on NAT equipment - Google Patents

Method and device for probing survival time of address translation entries on NAT equipment Download PDF

Info

Publication number
CN101800683A
CN101800683A CN201010155216A CN201010155216A CN101800683A CN 101800683 A CN101800683 A CN 101800683A CN 201010155216 A CN201010155216 A CN 201010155216A CN 201010155216 A CN201010155216 A CN 201010155216A CN 101800683 A CN101800683 A CN 101800683A
Authority
CN
China
Prior art keywords
client
message
data message
period information
information
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
CN201010155216A
Other languages
Chinese (zh)
Other versions
CN101800683B (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 CN201010155216.7A priority Critical patent/CN101800683B/en
Publication of CN101800683A publication Critical patent/CN101800683A/en
Application granted granted Critical
Publication of CN101800683B publication Critical patent/CN101800683B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and a device for probing survival time of address translation entries on NAT equipment. The method comprises the following steps: 1, sending preset periodic information to a client by access equipment so that the client sends probe message to the access equipment according to the periodic information; 2, receiving and detecting whether the IP channels of the data message sent by the client and the received adjacent data message are the same by the access equipment, if so, executing 3, otherwise, executing 4; 3, recording a time interval between the received data message sent by the client and the previous interactive data message, heightening the periodic information when the type of the received data message is the probe message, judging whether the periodic value reaches the maximum value, if so, executing 4, otherwise, returning to 1; and 4, taking the maximum value of the recorded adjacent two-time data message receiving time interval as the survival time of the address translation entries on the NAT equipment. The method effectively probes the survival time of the IP channels on the NAT equipment.

Description

Method and device for detecting survival time of address translation entries on NAT (network Address translation) equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for detecting the time to live of an address translation entry on a Network Address Translation (NAT) device.
Background
An IP Multimedia Subsystem (IMS) is a development direction of next-generation communication networks, and aims to implement convergence of fixed and mobile communication networks and provide rich data and Multimedia services for fixed and mobile users.
The IMS uses an sip (session Initiation protocol) protocol as its multimedia session control protocol to complete session control functions such as establishment, modification, and termination of a multimedia session in the IMS network.
IMS uses an IP network as a bearer network, where for various reasons, such as: the number of IPV4 addresses is becoming exhausted, the network is safe, and NAT equipment is deployed in IP network in large quantity to convert public and private network addresses; in an IMS environment, IMS clients often need to access the IMS core network through NAT devices.
Usually, NAT devices have unidirectional property, as shown in fig. 1, an IP packet from one side (set as side a) of the NAT device first makes an IP tunnel on the NAT device, and the NAT creates an IP address translation entry according to information such as an address and a port of the packet, so that a packet on the other side (set as side B) can pass through the entry. The established IP channel has a timeout failure time, if no data packet passes through the established IP channel within a specified time, the channel is deleted, the network is disconnected, and the data packet from the side B of the NAT device is discarded.
In an environment where a NAT device exists, in order to ensure normal bidirectional interworking of an IP channel between an IMS client and a core network, a data packet must be periodically sent between the IMS client and the core network to refresh the IP channel on the NAT device, and an OPTIONS request message of an SIP protocol is periodically sent to the client by a core network access device (P-CSCF (Proxy Call Session control function) or SBC (Session Border Controller)). The basic operation of which is briefly described below with reference to fig. 2:
step S201, the client sends a registration request message to the NAT.
Step S202, the NAT allocates an IP channel entry for the client.
Step S203, NAT sends the request message of client register to P-CSCF (SBC).
Step S204, the P-CSCF (sbc) sends a client registration request message to the S-CSCF (serving Call Session Control Function).
Step S205, the S-CSCF returns 200OK to the P-CSCF (SBC).
Step S206, P-CSCF (SBC) returns 200OK to NAT.
Step S207, after receiving the 200OK message, NAT refreshes the originally created IP channel 1 and returns 200OK to the client.
And step S208, after the client successfully registers, in order to ensure that the IP channel of the client on the NAT device is not invalid due to overtime, the core network access device (P-CSCF or SBC) periodically sends an OPTIONS request message to the client to refresh the IP channel on the NAT device according to the configured time interval.
Step S209, P-CSCF (SBC) sends OPTIONS request message to NAT.
Step S210, the NAT refreshes the IP channel and forwards the OPTIONS request to the client.
And step S211, the client returns a 200OK response to the NAT.
Step S212, NAT returns 200OK to P-CSCF (SBC).
Thus, the refreshing of the NAT IP channel is completed. By such a regular sending of OPTIONS request messages, the bi-directional interoperability of the respective IP connection can be maintained.
The working principle of the conventional method can work within a certain range, but has the following major defects:
the access IP network has a plurality of NAT devices, different NAT devices have different timeout times of address translation entries, some are larger, some are smaller, and the parameter is generally difficult to obtain through a manual mode, so that the NAT IP channel refreshing time configured on the IMS core network access device is generally estimated and can only meet partial NAT devices.
The refreshing mechanism is single, and the IP channel overtime time of each NAT device cannot be dynamically detected, so that only a small time can be configured to regularly refresh all the NAT devices, and different refreshing times cannot be adopted for different NAT devices.
The final configuration time must be less than the minimum NAT device IP channel timeout time, and when the number of users is large, the processing of the refresh message will seriously consume the CPU processing of the core network access device, resulting in the performance degradation of the device.
In summary, the current refreshing mechanism for the IP channel on the NAT device in the IMS environment is inflexible, and the root is that there is no mature method for dynamically detecting the timeout time of the IP channel of the NAT device.
Disclosure of Invention
The invention provides a method and a device for detecting the survival time of an address translation entry on NAT equipment, which are used for solving the problem that the method for detecting the timeout time of an IP channel of the NAT equipment in the prior art is immature.
The invention provides a method for detecting the survival time of address translation entries on NAT equipment, which comprises the following steps:
step 1, an access device sends preset period information to a client, so that the client sends a detection message to the access device according to the period information;
step 2, the access device receives and detects whether the data message sent by the client is the same as the IP channel of the received adjacent data message or not, if so, step 3 is executed, otherwise, step 4 is executed;
step 3, the access device records a time interval according to the received time of the data message sent by the client and the time of the previous interactive data message, increases the period information when the type of the data message sent by the client is a detection message, judges whether the increased period information reaches a preset maximum value, and if so, executes step 4; otherwise, taking the increased period information as preset period information, and returning to the step 1;
and 4, the access equipment takes the maximum value in the time interval as the survival time of the address translation entries on the NAT equipment.
In the method of the present invention, the method for the access device to send the preset period information to the client includes:
the access equipment sends the preset period information to an expires message header of a registration refresh message; or,
the access equipment adds the preset periodic information into a message header of a response message and sends the response message to the client; or,
and the access equipment adds the preset period information into a private message negotiated with the client in advance and sends the private message to the client.
In the method of the present invention, the method of increasing the period information includes: increasing the period information in a preset step-by-step increasing manner; the preset maximum value is a registration refresh period value appointed by a core network.
In the method of the present invention, the method for the access device to detect whether the IP channels of the data message sent by the client and the received adjacent data message are the same includes:
the access equipment detects whether the IP channel entry information of the data message sent by the client is the same as the IP channel entry information of the received adjacent data message; the IP tunnel entry information includes: IP address and port number.
In the method of the present invention, the access device records the time interval, and further includes, when the type of the data message sent by the client is a non-probe message:
and the access equipment sends the current non-detection message to a core network server and sends a processing result fed back by the core network server to the client through the NAT equipment.
The invention also provides a device for detecting the survival time of the address translation entries on the NAT equipment, which comprises the following steps:
the system comprises a period information issuing unit, a period information sending unit and a detection unit, wherein the period information issuing unit is used for sending preset period information to a client so that the client sends a detection message to the access equipment according to the period information;
the data message detection unit is used for receiving and detecting whether the data message sent by the client is the same as the IP channel of the received adjacent data message or not, and if so, the data message processing unit is triggered; otherwise, triggering a detection result acquisition unit;
the data message processing unit is used for recording a time interval according to the received time of the data message sent by the client and the time of the previous interactive data message, increasing the period information when the type of the data message sent by the client is a detection message, judging whether the increased period information reaches a preset maximum value or not, and if so, triggering the detection result acquisition unit; otherwise, taking the increased cycle information as preset cycle information, and triggering the cycle information issuing unit;
and the detection result acquisition unit is used for taking the maximum value in the time intervals recorded by the data message processing unit as the survival time of the address translation entries on the NAT equipment.
The device provided by the invention further has the following characteristics:
the mode of sending the preset period information to the client by the period information issuing unit comprises the following steps:
sending the preset period information to the client by adding the preset period information to an expires message header of a registration message; or,
sending the preset periodic information to the client by adding the preset periodic information into a message header of a response message; or,
and adding the preset period information into a private message which is negotiated with the client in advance, and sending the private message to the client.
The manner of increasing the period information in the data message processing unit includes: increasing the period information in a preset step-by-step increasing manner; the preset maximum value is a registration refresh period value appointed by a core network.
The method for detecting whether the IP channels of the data message sent by the client and the received adjacent data message are the same by the data message detection unit comprises the following steps:
detecting whether the IP channel entry information of the data message sent by the client is the same as the IP channel entry information of the received adjacent data message; the IP tunnel entry information includes: IP address and port number.
And the data message processing unit records the time interval, sends a current non-detection message to a core network server when the type of the data message sent by the client is a non-registration refreshing message, and sends a processing result fed back by the core network server to the client through NAT equipment.
Compared with the prior art, the invention has the following beneficial effects:
in the method provided by the invention, the core network access equipment sends the detection message according to a certain frequency by controlling the client side and records the interaction time interval of adjacent messages, and when the IP channel fails, the survival time of the IP channel on the NAT equipment can be automatically detected; for different NAT devices, the detection messages are sent at different frequencies, and under the condition that the number of users is large, the consumption of a CPU (central processing unit) and the occupation of bandwidth can be greatly reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a networking structure of an IMS system in the prior art;
FIG. 2 is a flow chart of a method for keeping alive an IP tunnel on a NAT device in an IMS environment in the prior art;
FIG. 3 is a flowchart of a method for detecting the time to live for an address translation entry on a NAT device according to the present invention;
fig. 4 is a flowchart of a method for detecting the survival time of address translation entries on a NAT device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of the apparatus for detecting address translation entry time-to-live on NAT device according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Based on the problem that the method for dynamically detecting the survival time of the IP channel of the NAT equipment in the prior art is immature and the survival time of the IP channel on each NAT equipment cannot be accurately obtained, the invention provides the method and the device for detecting the survival time of the address translation entry on the NAT equipment. In an IMS or a soft switch core network, the edge access device generally refers to a P-CSCF or an SBC.
For the sake of clarity of the implementation of the present invention, the following description is made with reference to the related theories of the prior art to explain the principles of the method of the present invention:
the SIP client must first register successfully in the core network before using the SIP service; after the registration is successful, the client also sends a registration refreshing message to the core network periodically according to a registration refreshing period specified by the core network to refresh the registration data stored in the core network.
The registration validity time of the client set by the core network, that is, the registration refresh period (generally 1800s or more) specified by the core network, is generally much longer than the survival time of the IP channel on the NAT device (the survival time is generally several tens to several hundreds of seconds, etc.), when the client sends a registration refresh message according to the refresh period set by the core network, if there is no other message in the refresh period, the IP channel created on the NAT device is likely to expire soon, and during the expiration period, the request from the core network cannot reach the client, thereby causing call loss.
When the IP tunnel is invalid, if the client sends a new message again, the NAT generally allocates a new IP tunnel entry message, where the tunnel entry message corresponds to the converted port number + IP address, and the entry message is different from the port number + IP address when the client registers. The invention is based on the change of the item information as the judgment basis of the IP channel failure, and the specific implementation principle is explained in detail as follows:
the core idea of the method provided by the invention is that the access device must be able to control the sending of the client message (the reason for controlling the sending of the client message is to prevent the client from not sending the message within a period of time, which results in the failure of the IP channel), so that the client can send the detection message according to the time interval specified by the period information by sending the self-defined period information to the client. By setting the period information by self, the client is forced to send the detection message actively, thereby effectively preventing the problem that the IP channel fails because no service message exists in the client within a period of time. The self-defined period information sent by the access device may be flexibly set according to an actual situation (for example, set to be between 30s and 300 s), starting from a smaller value, and when receiving a probe message that the IP address + the port number are not changed, incrementing the currently set period information by preset steps, where the incremented step value may be set by itself, but it should be able to converge quickly. It should be noted that the set period value has a maximum value, and the maximum value is preferably a registration refresh period specified by the core network.
After setting the relevant rules of the period information, the access device detects the IP address and the port number of the data message (including the detection message and the non-detection message) sent by the client, records the time interval of two adjacent data message interactions between the client and the access device, and when detecting that the entry information of the IP channel changes (indicating that the IP channel on the NAT device is invalid), the maximum value of the recorded time interval is taken as the survival time of the corresponding address translation entry (namely, the survival time of the IP channel), and the detection is finished.
It should be noted that the method for detecting whether the IP tunnel is failed in the present invention is not limited to the manner of determining whether the entry information of the IP tunnel is changed, and changes of other identification information caused by the change of the IP tunnel can be used as a detection reference and are also within the protection scope of the present invention.
Based on the foregoing principle expression, the following provides a specific implementation process of the method for detecting the survival time of the address translation entry on the NAT device, as shown in fig. 3, including the following steps:
step S301, the access device sends preset period information to the client, so that the client sends a detection message to the access device according to the period information.
Step S302, the access device receives and detects whether the data message sent by the client is the same as the IP channel of the received adjacent data message, if so, step S303 is executed, otherwise, step S305 is executed.
Wherein the received adjacent data message and the data message currently received by the access device are from the same client.
In the method, the data message is divided into two data types of a detection message and a non-detection message.
Step S303, the access device records the time interval according to the received time of the data message sent by the client and the time of the previous interactive data message, and increases the period information when the type of the data message sent by the client is the detection message.
Wherein the interactive data message is: before receiving a data message currently sent by a client, an access device receives the data message of the client or the data message sent to the client by the access device;
step S304, the access device judges whether the increased period value reaches a preset maximum value, if so, the step S305 is executed; otherwise, the increased period information is used as the preset period information, and the step S301 is returned to.
Step S305, the access device uses the maximum value in the recorded time interval as the survival time of the address translation entry on the NAT device.
In the method of the invention, the access device sends periodic information to the client, and the control mode of controlling the client to send the detection message according to a certain frequency at least comprises the following three modes:
the access equipment adds preset periodic information into an expires message header of the registration refresh message and sends the message to the client; or,
the access equipment sends the preset periodic information to the client by adding the preset periodic information to a message header of the response message; or,
the access device sends the preset period information to the client by adding the preset period information to a private message negotiated with the client in advance.
The following describes the implementation of different control modes by using several embodiments:
example one
In this embodiment, the control of the core network on the frequency of sending the message by the client is realized by registering and refreshing the periodic information set by message sending, and specifically, the method provided in this embodiment includes the following steps:
s11, the access device receives a registration request message from the client.
S12, the access device sends the registration request message to the core network server, and when receiving the 200OK registration success message from the core network server, modifies the value of the registration refresh period expires message header according to the preset period information, and forwards the message to the client.
Certainly, the set period information is usually the minimum value of the survival time of the IP channel, for example, 25 to 30s, however, if the survival time of the IP channel is shorter than the currently set one, after the current IP channel fails, the preset period information is adjusted, and the method continues to be used for detection.
S13, the access device checks the IP address and port number of the data message from the client, compares whether the IP address and port number of the received adjacent data message are consistent, if so, executes step S15; otherwise, step S14 is executed.
And S14, the access device takes the maximum value of the recorded interaction time interval of the two adjacent data messages as the survival time of the address translation entries on the NAT device.
And S15, recording the interaction time interval between the data message sent by the client and the interacted adjacent data message, and adjusting the currently set period information in an incremental manner according to a preset step value when the data message is the registration refreshing message sent by the client according to the registration refreshing period set by the access device.
S16, the access device judges whether the period information after being increased is larger than or equal to the registration refresh period appointed by the core network, if so, the step S14 is executed; otherwise, step S17 is executed.
And S17, the access device modifies the value of the registration refresh period expires message header to the increased period value, and feeds back the value to the client, so that the client sends the registration refresh message according to the current period information.
The registration refreshing message sent by the client according to the period information is a detection message expressed by the principle part.
Example two
In this embodiment, the control of the core network on the frequency of sending the message by the client is implemented by using the existing response message or the private message sending cycle information negotiated in advance between the access device and the client, and specifically, the method provided by this embodiment includes the following steps:
and S21, the access device sends preset period information to the registered client according to the agreed message format.
Certainly, the preset period information is usually the minimum value of the survival time of the IP channel, for example, 25 to 30s, however, if the survival time of the IP channel is shorter than the currently set survival time, after the current IP channel fails, the preset period information is adjusted, and the method continues to be used for detection.
S22, the access device checks the IP address and port number of the data message from the client, compares whether the IP address and port number of the received adjacent data message are consistent, if so, executes step S24; otherwise, step S23 is executed.
And S23, the access device takes the maximum value of the recorded interaction time interval of the two adjacent data messages as the survival time of the address translation entries on the NAT device.
And S24, recording the interaction time interval between the currently received data message and the interacted adjacent data message, and adjusting the currently set period information in an incremental manner according to a preset step value when the data message is a detection message sent by the client according to the period information set by the access device.
S25, the access device judges whether the period information after being increased is larger than or equal to the registration refresh period appointed by the core network, if so, the step S23 is executed; otherwise, step S26 is executed.
And S26, the access equipment sends the increased period information to the client according to the appointed message format, so that the client sends the detection message according to the current period information.
A specific example of the method of the present invention is given below with reference to fig. 4, and further details of the technique of the present invention are given in conjunction with the description of the embodiment, so that it can better explain the specific implementation process of the method of the present invention. The present example is described by taking a registration refresh message as an example, and specifically includes the following steps:
step S401, the IMS client sends an initial registration request message (Register message).
Step S402, the NAT device allocates an IP channel 1 to the client.
Step S403, NAT forwards the registration request message of IMS client to P-CSCF (SBC).
Step S404, the P-cscf (sbc) records the IP address and port number of the registration packet.
Step S405, P-CSCF (SBC) forwards the register request message to S-CSCF server.
Step S406, the S-CSCF returns a 200OK response to the P-CSCF (sbc) after the user registration is successful.
Step S407, the P-cscf (sbc) modifies the Expires value in the 200OK message to a preset registration refresh period.
Step S408, P-CSCF (SBC) forwards the 200OK response message to NAT equipment.
And step S409, forwarding the 200OK response to the client by the NAT equipment.
Step S410, the client sends a registration refreshing message according to the registration refreshing period in Expires in the response message.
And step S411, the NAT forwards the registration refreshing message.
Step S412, the P-cscf (sbc) checks the IP address and port number of the registration refresh message, compares the IP address and port number of the registration message recorded originally, records the time interval between two adjacent message interactions with the client if no change is found, and increments the value of the registration refresh period in the Expires message header by preset steps.
Step S413, the P-cscf (sbc) automatically returns a 200OK registration success message to the client, where the message carries the adjusted registration refresh period information.
And step S414, the NAT transmits the 200OK response.
In step S415, the client sends an Invite (or other non-registration refresh message) request message.
Step S416, the NAT forwards the Invite (or other unregistered refresh message) request message.
Step S417, the P-cscf (sbc) checks the IP address and port number of the request message, compares the IP address and port number of the registration request message, and records the time interval between two adjacent message interactions if there is no change.
Step S418, P-CSCF (SBC) forwards the Invite (or other non-register) request message to the S-CSCF.
Step S419, the request is successful, and the S-CSCF returns a 200OK response.
Step S420, P-cscf (sbc) forwards the 200OK response.
Step S421, the NAT forwards the 200OK response.
If the IP channel on the NAT equipment is out of order due to timeout, the following steps are carried out:
step S422, the client sends a registration refresh request message.
Step S423, the NAT device allocates a new IP channel 2 to the client.
Step S424, the NAT forwards the registration refresh request message of the IMS client.
Step S425, P-CSCF (SBC) checks the IP address and port number of the data packet of the registration refreshing message, compares the IP address and port number of the originally recorded registration message, if the difference is found, takes the maximum time interval of the interaction of the two adjacent messages recorded before the IP address and port number of the registration message are not changed as the timeout time of the IP channel on the NAT, and the detection is finished.
Step S426, the P-CSCF (sbc) forwards the registration refresh request to the S-CSCF.
Step S427, the S-CSCF returns a 200OK response.
Step S428, the P-cscf (sbc) does not modify the value of the Expires header in the 200OK response any more, and forwards the modified value to the NAT device.
Step S429, the NAT forwards the 200OK response from the IP channel 2 to the client.
When the timeout time of the IP channel on the NAT is detected, the P-cscf (sbc) can periodically send an OPTIONS request message or let the client send a registration refresh message according to the timeout time, and perform keep-alive refresh of the IP channel on the NAT.
In summary, in the method of the present invention, the core network access device sends the detection message by controlling the client according to a certain frequency, records the interaction time interval of the adjacent messages, and when the IP channel fails, the survival time of the IP channel on the NAT device can be automatically detected; for different NAT devices, the refreshing message is sent at different frequencies, so that under the condition of a large number of users, the consumption of the refreshing message on a CPU (central processing unit) can be greatly reduced, the number of the refreshing message is reduced, the occupation of bandwidth is reduced, and the keep-alive refreshing processing mechanism for the IP channel on the NAT device under the IMS (or soft switch) environment is greatly optimized.
The present invention also provides a device for detecting the survival time of address translation entries on a NAT device, as shown in fig. 5, including:
a period information issuing unit 510, configured to send preset period information to a client, so that the client sends a probe message to the access device according to the period information;
a data message detection unit 520, configured to receive and detect a data message sent by the client, where the data message is the same as an IP channel of a received adjacent data message, and if so, trigger a data message processing unit 530; otherwise, the detection result obtaining unit 540 is triggered;
a data message processing unit 530, configured to record a time interval according to the received time of the data message sent by the client, the time of the previous interactive data message, and if the type of the data message sent by the client is a detection message, increase the period information, determine whether the increased period information reaches a preset maximum value, and if so, trigger a detection result obtaining unit 540; otherwise, the increased period information is used as preset period information to trigger the period information issuing unit 510;
a detection result obtaining unit 540, configured to use a maximum value in the time intervals recorded by the data message processing unit 530 as an address translation entry survival time on the NAT device.
The device of the invention further has the following characteristics:
the manner of sending the preset period information to the client by the period information sending unit 510 includes:
sending the preset periodic information to the client by adding the preset periodic information to an expires message header of a registration message; or,
sending the preset periodic information to the client by adding the preset periodic information into a message header of a response message; or,
and adding preset period information into a private message negotiated with the client in advance, and sending the private message to the client.
The way of adjusting the period information up in the data message processing unit 530 includes: increasing the period information in a preset step-by-step increasing manner; the preset maximum value is a registration refresh period value appointed by a core network.
The way for the data message detection unit 520 to detect whether the IP channels of the data message sent by the client and the received adjacent data message are the same includes:
detecting whether the IP channel entry information of the data message sent by the client is the same as the IP channel entry information of the received adjacent data message; the IP tunnel entry information includes: IP address and port number.
The data message processing unit 530 records the time interval, and when the type of the data message sent by the client is the unregistered refresh message, sends a current non-probe message to the core network server, and sends a processing result fed back by the core network server to the client through the NAT device.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A method for detecting the time-to-live of an address translation entry on a network address translation NAT device, comprising:
step 1, an access device sends preset period information to a client, so that the client sends a detection message to the access device according to the period information;
step 2, the access device receives and detects whether the data message sent by the client is the same as the IP channel of the received adjacent data message or not, if so, step 3 is executed, otherwise, step 4 is executed;
step 3, the access device records a time interval according to the received time of the data message sent by the client and the time of the previous interactive data message, increases the period information when the type of the data message sent by the client is a detection message, judges whether the increased period information reaches a preset maximum value, and if so, executes step 4; otherwise, taking the increased period information as preset period information, and returning to the step 1;
and 4, the access equipment takes the maximum value in the time interval as the survival time of the address translation entries on the NAT equipment.
2. The method of claim 1, wherein the manner in which the access device sends the preset period information to the client comprises:
the access equipment sends the preset period information to an expires message header of a registration refresh message; or,
the access equipment adds the preset periodic information into a message header of a response message and sends the response message to the client; or,
and the access equipment adds the preset period information into a private message negotiated with the client in advance and sends the private message to the client.
3. The method of claim 1, wherein adjusting the periodicity information up comprises: increasing the period information in a preset step-by-step increasing manner;
the preset maximum value is a registration refresh period value appointed by a core network.
4. The method of claim 1, 2 or 3, wherein the access device detecting whether the IP channels of the data message sent by the client and the received adjacent data message are the same comprises:
the access equipment detects whether the IP channel entry information of the data message sent by the client is the same as the IP channel entry information of the received adjacent data message; the IP tunnel entry information includes: IP address and port number.
5. The method of claim 1, 2 or 3, wherein the access device records the time interval, and further comprises, when the type of the data message sent by the client is a non-probe message:
and the access equipment sends the current non-detection message to a core network server and sends a processing result fed back by the core network server to the client through the NAT equipment.
6. An apparatus for detecting the time to live of an address translation entry on a Network Address Translation (NAT) device, comprising:
the system comprises a period information issuing unit, a period information sending unit and a detection unit, wherein the period information issuing unit is used for sending preset period information to a client so that the client sends a detection message to the access equipment according to the period information;
the data message detection unit is used for receiving and detecting whether the data message sent by the client is the same as the IP channel of the received adjacent data message or not, and if so, the data message processing unit is triggered; otherwise, triggering a detection result acquisition unit;
the data message processing unit is used for recording a time interval according to the received time of the data message sent by the client and the time of the previous interactive data message, increasing the period information when the type of the data message sent by the client is a detection message, judging whether the increased period information reaches a preset maximum value or not, and if so, triggering the detection result acquisition unit; otherwise, taking the increased cycle information as preset cycle information, and triggering the cycle information issuing unit;
and the detection result acquisition unit is used for taking the maximum value in the time intervals recorded by the data message processing unit as the survival time of the address translation entries on the NAT equipment.
7. The apparatus of claim 6, wherein the manner of sending the preset period information to the client by the period information issuing unit comprises:
sending the preset period information to the client by adding the preset period information to an expires message header of a registration message; or,
sending the preset periodic information to the client by adding the preset periodic information into a message header of a response message; or,
and adding the preset period information into a private message which is negotiated with the client in advance, and sending the private message to the client.
8. The apparatus of claim 6, wherein the means for turning the periodicity information high in the data message processing unit comprises: increasing the period information in a preset step-by-step increasing manner;
the preset maximum value is a registration refresh period value appointed by a core network.
9. The apparatus according to claim 6 or 7 or 8, wherein the manner of the data message detection unit detecting whether the IP channels of the data message sent by the client and the received adjacent data message are the same comprises:
detecting whether the IP channel entry information of the data message sent by the client is the same as the IP channel entry information of the received adjacent data message; the IP tunnel entry information includes: IP address and port number.
10. The apparatus according to claim 6, 7 or 8, wherein the data message processing unit records the time interval, and when the type of the data message sent by the client is an unregistered refresh message, sends a current non-probe message to a core network server, and sends a processing result fed back by the core network server to the client through a NAT device.
CN201010155216.7A 2010-04-26 2010-04-26 The method and apparatus of probing survival time of address translation entries on NAT equipment Expired - Fee Related CN101800683B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010155216.7A CN101800683B (en) 2010-04-26 2010-04-26 The method and apparatus of probing survival time of address translation entries on NAT equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010155216.7A CN101800683B (en) 2010-04-26 2010-04-26 The method and apparatus of probing survival time of address translation entries on NAT equipment

Publications (2)

Publication Number Publication Date
CN101800683A true CN101800683A (en) 2010-08-11
CN101800683B CN101800683B (en) 2015-10-21

Family

ID=42596187

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010155216.7A Expired - Fee Related CN101800683B (en) 2010-04-26 2010-04-26 The method and apparatus of probing survival time of address translation entries on NAT equipment

Country Status (1)

Country Link
CN (1) CN101800683B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102476515A (en) * 2010-11-25 2012-05-30 软控股份有限公司 Method for conversing and controlling print data protocol
CN104320498A (en) * 2014-07-04 2015-01-28 物联智慧科技(深圳)有限公司 Method for effectively keeping NAT (Network Address Translation) channel service
CN104468278A (en) * 2014-12-18 2015-03-25 上海斐讯数据通信技术有限公司 UDP ageing time detecting system and method based on STUN protocol
CN104579827A (en) * 2014-12-24 2015-04-29 北京华胜天成科技股份有限公司 IP (Internet protocol) address conflict detecting method and device
US10044590B2 (en) 2014-07-04 2018-08-07 Throughtek Technology (Shenzhen) Co., Ltd. Method of effective retaining of NAT channel service
CN109361561A (en) * 2018-08-23 2019-02-19 中国联合网络通信集团有限公司 Heartbeat mechanism keeping method, device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030120810A1 (en) * 2001-12-26 2003-06-26 Takayuki Ohta Interconnecting device, address conversion controlling method and computer program thereof
WO2007069046A1 (en) * 2005-12-15 2007-06-21 Nokia Corporation Power-efficient address mapping scheme
CN101411162A (en) * 2006-03-30 2009-04-15 阿尔卡特朗讯公司 Learning address binding expiry time in an address translation device for a SIP signalling server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030120810A1 (en) * 2001-12-26 2003-06-26 Takayuki Ohta Interconnecting device, address conversion controlling method and computer program thereof
WO2007069046A1 (en) * 2005-12-15 2007-06-21 Nokia Corporation Power-efficient address mapping scheme
CN101411162A (en) * 2006-03-30 2009-04-15 阿尔卡特朗讯公司 Learning address binding expiry time in an address translation device for a SIP signalling server

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102476515A (en) * 2010-11-25 2012-05-30 软控股份有限公司 Method for conversing and controlling print data protocol
CN102476515B (en) * 2010-11-25 2014-04-23 软控股份有限公司 Method for conversing and controlling print data protocol
CN104320498A (en) * 2014-07-04 2015-01-28 物联智慧科技(深圳)有限公司 Method for effectively keeping NAT (Network Address Translation) channel service
CN104320498B (en) * 2014-07-04 2018-02-13 物联智慧科技(深圳)有限公司 Effectively keep NAT channel service methods
US10044590B2 (en) 2014-07-04 2018-08-07 Throughtek Technology (Shenzhen) Co., Ltd. Method of effective retaining of NAT channel service
CN104468278A (en) * 2014-12-18 2015-03-25 上海斐讯数据通信技术有限公司 UDP ageing time detecting system and method based on STUN protocol
CN104468278B (en) * 2014-12-18 2018-05-18 上海斐讯数据通信技术有限公司 UDP aging time detection system and methods based on Simple Traversal of UDP Through Network Address Translators
CN104579827A (en) * 2014-12-24 2015-04-29 北京华胜天成科技股份有限公司 IP (Internet protocol) address conflict detecting method and device
CN109361561A (en) * 2018-08-23 2019-02-19 中国联合网络通信集团有限公司 Heartbeat mechanism keeping method, device and storage medium

Also Published As

Publication number Publication date
CN101800683B (en) 2015-10-21

Similar Documents

Publication Publication Date Title
CN101800683B (en) The method and apparatus of probing survival time of address translation entries on NAT equipment
US8572255B2 (en) System and method for reestablishing, with a client device, a signaling session associated with a call in progress
CN103825868B (en) A kind of method, local gateway and the system of local voice escape
KR101266692B1 (en) SYSTEM AND METHOD FOR CONTROLLING VoIP SERVICE
WO2011137792A1 (en) Method and apparatus for cooperation between push devices
JP2010098713A (en) Wireless communication system, access point, controller, network management device, and method of setting network identifier of access point
CN104219705A (en) VoLTE terminal re-registering method and device
CN103685163A (en) Disaster-tolerant method, system and device in IMS network
KR101620809B1 (en) A method for sip proxy failover
US10841344B1 (en) Methods, systems and apparatus for efficient handling of registrations of end devices
KR20150041952A (en) IP based sleep mode control method using synchonization information
Forte et al. Improving layer 3 handoff delay in IEEE 802.11 wireless networks
WO2007069046A1 (en) Power-efficient address mapping scheme
CN101888319A (en) Method and device for acquiring network access information of terminal equipment
WO2017028773A1 (en) Method and device for establishing self-configuring network by ims terminal
US10044590B2 (en) Method of effective retaining of NAT channel service
WO2008049346A1 (en) Method, system and device for registering device
WO2016161636A1 (en) Data packet processing method and relevant device
WO2013023469A1 (en) Access management method, device and system
CN102255980B (en) Method and apparatus for managing calling information of session initiation protocol
US10739406B2 (en) Correlation charging method, charging apparatus, and system
CN103795878B (en) A kind of guard method of Voice over IP business, equipment and system
CN109561458B (en) AC backup method and device
KR101270241B1 (en) Method for call setup based on fmc communication and call connection infra
Yen et al. Experimental study of mismatching ESS-subnet handoffs on IP over IEEE 802.11 WLANs

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20151021

Termination date: 20190426