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
message
client
data
information
access device
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

Survey the method and apparatus of address translation entry time-to-live on the NAT device
Technical field
The present invention relates to communication technical field, relate in particular to the method and apparatus of address translation entry time-to-live on a kind of detection NAT (Network AddressTranslation, network address translation) equipment.
Background technology
IP Multimedia System (IMS, IP Multimedia Subsystem) is the developing direction of next-generation communication network, is intended to realize the fusion of fixing and mobile communications network, for fixing and mobile subscriber provide rich data and multimedia service.
IMS adopts SIP (Session Initiation Protocol) agreement to finish the conversation control functions such as foundation, modification and termination of many matchmakers session in the IMS network as its Multimedia session control protocol.
IMS with IP network as bearer network, in IP network, owing to various reasons, exhausted day by day as: IPV4 number of addresses, network security etc., NAT device is deployed in the IP network in large quantities, is used for carrying out the conversion of public and private net address; In the IMS environment, the IMS client often need be linked into the IMS core net by NAT device.
Generally, NAT device has one-way, as shown in Figure 1, IP packet from NAT device one side (being set at the A side) is got through earlier an IP tunnel on NAT device, NAT can be according to information such as the address of packet, ports, create an IP address translation entry, the packet of opposite side (being set at the B side) just can pass through like this.Wherein, the IP tunnel of foundation has an overtime out-of-service time, if there is not packet to pass through at the appointed time, passage will be deleted, and network will disconnect, and will be dropped from the packet of NAT device B side.
In having the environment of NAT device, in order to guarantee the normal two-way intercommunication of the IP tunnel between IMS client and the core net, must regularly send packet between IMS client and the core net, refresh the IP tunnel on the NAT device, generally be by core net access device (P-CSCF (Proxy Call Session ControlFunction, the proxy-call session control function entity) or SBC (Session Border Controller, session margin control)) regularly send the OPTIONS request message of Session Initiation Protocol to client.Briefly introduce its basic functional principle below in conjunction with Fig. 2:
Step S201, client send login request message to NAT.
Step S202, NAT are these client distributing IP passage clauses and subclauses.
Step S203, NAT send the client login request message to P-CSCF (SBC).
Step S204, P-CSCF (SBC) send the client login request message to S-CSCF (Service Call Session Control Function, service call control function entity).
Step S205, S-CSCF return 200OK to P-CSCF (SBC).
Step S206, P-CSCF (SBC) return 200OK to NAT.
After step S207, NAT receive 200OK message, refresh the IP tunnel 1 of original establishment, and return 200OK to client.
Step S208, after client succeeds in registration, in order to guarantee that the IP tunnel of client on NAT device do not lose efficacy because of overtime, core net access device (P-CSCF or SBC) is according to the time interval of configuration, regularly sends the OPTIONS request message to client and refreshes IP tunnel on the NAT.
Step S209, P-CSCF (SBC) send the OPTIONS request message to NAT.
Step S210, NAT refresh IP tunnel and transmit OPTIONS and ask to client.
Step S211, client are returned 200OK and are responded to NAT.
Step S212, NAT return 200OK to P-CSCF (SBC).
So just finished refreshing of a NAT IP tunnel.By this OPTIONS request message that sends termly, the two-way interoperability that just can keep corresponding IP to connect.
The operation principle of above-mentioned conventional method can to a certain degree worked in the scope, but bigger defective is arranged:
Insert in the IP network many NAT device are arranged, different NAT device, the time-out time of its address translation entry has nothing in common with each other, what have is bigger, what have is less, this parameter by manual type generally difficulty obtain, so the NAT IP tunnel refresh time that disposes on the IMS core net access device generally all estimates, and can only satisfy the part NAT device.
Flush mechanism is single, owing to can't dynamic instrumentation go out the IP tunnel time-out time of each NAT device, so can only dispose a very little all NAT device of time periodic refresh, can not adopt different refresh times at different NAT.
Final setup time must be less than the NAT device IP tunnel time-out time of minimum, and when customer volume was big, refresh message was handled the CPU that can seriously consume the core net access device and handled, and causes equipment performance to descend.
In a word, at present more stiff dumb to the flush mechanism of the IP tunnel on the NAT device in the IMS environment, its root is still not have a kind of method of maturation to come the IP tunnel time-out time of dynamic instrumentation NAT device.
Summary of the invention
The invention provides a kind of method and apparatus of surveying the address translation entry time-to-live on the NAT device, in order to solve the jejune problem of IP tunnel time-out time method of surveying NAT device in the prior art.
The invention provides a kind of method of surveying the address translation entry time-to-live on the NAT device, comprising:
Step 1, access device send preset period information to client, make client send probe message according to described cycle information to described access device;
Whether step 2, described access device receive and detect the data-message that described client sends, identical with the IP tunnel of the adjacent data message that has received, if, execution in step 3, otherwise, execution in step 4;
The time of the data-message that the described client that step 3, described access device basis receive sends, with the time of previous interactive data message, writing time at interval, and when the data message type that described client sends is probe message, heighten described cycle information, judge whether the cycle information after heightening reaches preset maximum value, if, execution in step 4; Otherwise, the cycle information after described the heightening as preset period information, is returned step 1;
Step 4, described access device are the address translation entry time-to-live on the NAT device with the maximum in the described time interval.
In the method for the invention, access device comprises to the mode that client sends preset period information:
Described access device is by sending to described client in the expires message header that described preset period information is added to the registration refresh message; Perhaps,
Described access device is by sending to described client in the message header that described preset period information is added to response message; Perhaps,
Described access device sends to described client by described preset period information being added in advance in the private message of consulting with described client.
In the method for the invention, the mode of heightening described cycle information comprises: by the described cycle information of heightening of default step increments; Described preset maximum value is the registration refresh cycle value of core net appointment.
In the method for the invention, access device detects the IP tunnel of data-message that described client sends and the adjacent data message that has received, and whether identical mode comprises:
Whether the IP tunnel items for information that described access device detects the data-message that described client sends is identical with the IP tunnel items for information of the adjacent data message that has received; Described IP tunnel items for information comprises: IP address and port numbers.
In the method for the invention, described access device writes down the described time interval, and also comprises when the data message type that described client sends is non-probe message:
Described access device sends current non-probe message to core network server, and the result of described core network server feedback is sent to described client by NAT device.
The present invention also provides the device of address translation entry time-to-live on a kind of detection network address transition NAT device, comprising:
Cycle information issues the unit, is used for sending preset period information to client, makes client send probe message according to described cycle information to described access device;
Whether the data-message detecting unit is used to receive and detect the data-message that described client sends, identical with the IP tunnel of the adjacent data message that has received, if, the trigger data message processing unit; Otherwise, trigger the result of detection acquiring unit;
The data-message processing unit, be used for time according to the data-message of the described client transmission that receives, with the time of previous interactive data message, writing time at interval, and when the data message type that described client sends is probe message, heighten described cycle information, judge whether the cycle information after heightening reaches preset maximum value, if trigger the result of detection acquiring unit; Otherwise, the cycle information after described the heightening as preset period information, is triggered described cycle information and issues the unit;
The result of detection acquiring unit, the maximum that is used for described time interval of described data-message processing unit record is the address translation entry time-to-live on the NAT device.
Device provided by the present invention further has following characteristics:
Described cycle information issues the unit and comprises to the mode that client sends preset period information:
By sending to described client in the expires message header that described preset period information is added to registration message; Perhaps,
By sending to described client in the message header that described preset period information is added to response message; Perhaps,
Send to described client by described preset period information being added in advance in the private message of consulting with described client.
The mode of heightening described cycle information in the described data-message processing unit comprises: by the described cycle information of heightening of default step increments; Described preset maximum value is the registration refresh cycle value of core net appointment.
Whether identical mode comprises for the data-message that described data-message detecting unit detection client sends and the IP tunnel of the adjacent data message that has received:
Whether the IP tunnel items for information that detects the data-message that described client sends is identical with the IP tunnel items for information of the adjacent data message that has received; Described IP tunnel items for information comprises: IP address and port numbers.
Described data-message processing unit writes down the described time interval, and when the data message type that described client sends is non-registered refresh message, send current non-probe message to core network server, and the result of described core network server feedback is sent to described client by NAT device.
Compared with prior art, beneficial effect of the present invention is as follows:
In the method provided by the invention, the core net access device is pressed certain frequency by the control client and is sent probe message, the adjacent interacting message time interval of record, when IP tunnel lost efficacy, just can detect the IP tunnel time-to-live on the NAT device automatically; For different NAT device, send probe message with different frequencies, under the more situation of number of users, can reduce the consumption of CPU and taking greatly to bandwidth.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do one to the accompanying drawing of required use in embodiment or the description of the Prior Art below introduces simply, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is an IMS system group network structural representation in the prior art;
Fig. 2 is the method flow diagram of IP tunnel on the keep-alive NAT device in the IMS environment in the prior art;
Fig. 3 is the flow chart of address translation entry time-to-live method on the detection NAT device provided by the invention;
The flow chart of address translation entry time-to-live method on the detection NAT device that Fig. 4 provides for the concrete example of the present invention;
Fig. 5 is the structural representation of address translation entry time-to-live device on the detection NAT device provided by the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
IP tunnel time-to-live method based on dynamic instrumentation NAT device in the prior art is immature, can not accurately obtain the problem of IP tunnel time-to-live on each NAT device, the invention provides a kind of method and apparatus of surveying the address translation entry time-to-live on the NAT device, described method is set the IP tunnel time-to-live for the system edges access device data support is provided.Wherein, in IMS or Soft core net, the edge access device generally is meant P-CSCF or SBC.
In order clearly to explain implementation procedure of the present invention,, the principle of the method for the invention is set forth below in conjunction with the correlation theory of prior art:
The SIP client must could be used the SIP business earlier after core net is successfully registered; After succeeding in registration, client also will regularly send the registration refresh message to core net and refresh the log-on data of preserving in core net according to the registration refresh cycle of core net appointment.
The client term of validity time that core net is set, be generally all to be far longer than registration refresh cycle (being generally more than the 1800s) of core net appointment IP tunnel time-to-live on the NAT device (this time-to-live be generally tens do not wait second to hundreds of), the refresh cycle that client is set according to core net is when sending the registration refresh message, if in this refresh cycle, there is not other message, the IP tunnel created on NAT device expire for a long time probably then, in paralysis period, request from core net just can't arrive client, and then causes call loss.
After IP tunnel lost efficacy, when if client sends new information once more, NAT generally can distribute a new IP tunnel items for information, the port numbers+IP address behind this passage items for information correspondent transform, and the port numbers+IP address the during registration of this items for information and client is different.Just based on the variation of this items for information, the basis for estimation as IP tunnel lost efficacy elaborates the specific implementation principle below in the present invention:
Method provided by the present invention is in order quick detection to go out the IP tunnel time-to-live on the NAT device, its core concept is, access device must be able to be controlled the transmission of client message, and (reason that the control client message sends is to prevent that client from not sending message in a period of time, cause IP tunnel to lose efficacy), this control mode can make client send probe message at interval according to the cycle information official hour by send self-defining cycle information to client.By setting up cycle information on their own, force client initiatively to send probe message, effectively prevented client does not have service message to cause IP tunnel to lose efficacy in a period of time problem.Wherein, the self-defined cycle information that access device sends can (for example be set voluntarily flexibly according to actual conditions, be set at 30s between the 300s), from smaller value, and when receiving the unaltered probe message of IP address+port numbers, by the cycle information of the default current setting of step increments, wherein, the step value that increases progressively can set up on their own, but should be able to be than rapid convergence.Need to prove that there is a maximum in the periodic quantity of above-mentioned setting, this maximum is preferably the registration refresh cycle of core net appointment.
Behind the dependency rule of setting cycle information, access device detects the IP address and the port numbers of the data-message (comprising probe message and non-probe message) of client transmission, and record adjacent twice mutual time interval of data-message of client with access device, (show that the IP tunnel on the NAT device lost efficacy) when detecting the IP tunnel items for information when changing, the maximum in the time interval with record is the corresponding address conversion clauses and subclauses time-to-live (that is: IP tunnel time-to-live), surveys and finishes.
It should be noted that; whether detect IP tunnel in the method for the invention lost efficacy and was not limited to judge IP tunnel items for information this a kind of mode that whether changes; after the IP tunnel variation; the change of other identification informations that cause; can be as detection reference, also all within protection scope of the present invention.
Based on above-mentioned principle statement, provide the specific implementation process of address translation entry time-to-live method on the detection NAT device provided by the invention below, as shown in Figure 3, may further comprise the steps:
Step S301, access device send preset period information to client, make client send probe message according to described cycle information to described access device.
Whether step S302, access device receive and detect the data-message that described client sends, identical with the IP tunnel of the adjacent data message that has received, if, execution in step S303, otherwise, execution in step S305.
Wherein, the current data-message that receives of adjacent data message that has received and access device is from same client.
And in this method, data-message is divided into probe message and two kinds of data types of non-probe message.
The time of the data-message that step S303, access device send according to the client that receives, with the time of previous interactive data message, and when the data message type that client sends is probe message, heighten described cycle information writing time at interval.
Wherein, described interaction data message is meant: access device is before the data-message that receives the current transmission of client, and access device receives the data-message of described client, and perhaps described access device sends to the data-message of described client;
Step S304, access device judge whether the periodic quantity after heightening reaches preset maximum value, if, execution in step S305; Otherwise, the cycle information after heightening as preset period information, is returned step S301.
Step S305, access device are the address translation entry time-to-live on the NAT device with the maximum in the time interval of record.
In the method for the invention, access device sends cycle information to client, and the control client comprises following three kinds at least by the control mode that certain frequency sends probe message:
Access device is by sending to client in the expires message header that preset period information is added to the registration refresh message; Perhaps,
Access device is by sending to client in the message header that preset period information is added to response message; Perhaps,
Access device sends to client by preset period information being added in advance in the private message of consulting with client.
Below just the implementation procedure of different control modes is set forth by several specific embodiments:
Embodiment one
Present embodiment is to send the cycle information of setting by the registration refresh message, realizes the control of core net to client transmission message frequency, and concrete, the method flow that present embodiment provides may further comprise the steps:
S11, access device receive the login request message from client.
S12, access device sends this login request message to core network server, and is receiving 200OK from core network server when succeeding in registration message, revises the value of registration refresh cycle expires message header according to preset period information, is transmitted to client.
Certainly, the cycle information of setting is generally the minimum value of IP tunnel time-to-live, for example, 25~30s, yet, if IP tunnel time-to-live also lacking than current setting, then after current IP channel lost efficacy, adjust preset period information, continue to adopt this method to survey.
S13, the access device inspection is from the IP address and the port numbers of the data-message of this client, and whether the IP address of the adjacent data message that contrast has received is consistent with port numbers, if consistent, execution in step S15; Otherwise, execution in step S14.
S14, access device are the address translation entry time-to-live on the NAT device with the maximum in adjacent twice mutual time interval of data-message of record.
S15, the mutual time interval of data-message that the record client sends and mutual adjacent data message, and during the registration refresh message that sends in the described data-message registration refresh cycle that to be client set according to access device, the cycle information of the current setting of adjustment that increases progressively by default step value.
S16, access device judge cycle information after heightening whether more than or equal to registration refresh cycle of core net appointment, if, execution in step S14; Otherwise, execution in step S17.
The value of S17, access device modification registration refresh cycle expires message header is the periodic quantity after heightening, and to client feedback, makes client send the registration refresh message according to current period information.
Above-mentioned client is the probe message that principle is partly explained according to the registration refresh message that cycle information sends.
Embodiment two
Present embodiment is to send cycle information with the private message that present existing response message or access device and client consult in advance, realize that core net sends the control of message frequency to client, concrete, the method flow that present embodiment provides may further comprise the steps:
S21, access device sends preset period information by the message format of agreement to registered client.
Certainly, preset period information is generally the minimum value of IP tunnel time-to-live, for example, 25~30s, yet, if IP tunnel time-to-live also lacking than current setting, then after current IP channel lost efficacy, adjust preset period information, continue to adopt this method to survey.
S22, the access device inspection is from the IP address and the port numbers of the data-message of described client, and whether the IP address of the adjacent data message that contrast has received is consistent with port numbers, if consistent, execution in step S24; Otherwise, execution in step S23.
S23, access device are the address translation entry time-to-live on the NAT device with the maximum in adjacent twice mutual time interval of data-message of record.
S24, write down the mutual time interval of the data-message of current reception and mutual adjacent data message, and when the probe message that the described data-message cycle information that to be client set according to access device sends, the cycle information of the current setting of adjustment that increases progressively by default step value.
S25, access device judge cycle information after heightening whether more than or equal to registration refresh cycle of core net appointment, if, execution in step S23; Otherwise, execution in step S26.
Cycle information after S26, access device will be heightened by the message format of agreement sends to client, makes client send probe message according to current period information.
Provide a concrete example of the method for the invention below in conjunction with Fig. 4, and, further provide ins and outs of the present invention, make it that specific implementation process of the method for the invention can be described better in conjunction with description to embodiment.This example is that example describes with the registration refresh message, specifically may further comprise the steps:
Step S401, IMS client send initial registration request message (Register message).
Step S402, NAT device distribute an IP tunnel 1 for this client.
Step S403, NAT transmit the login request message of IMS client to P-CSCF (SBC).
Step S404, P-CSCF (SBC) note the IP address and the port numbers of registration packet.
Step S405, P-CSCF (SBC) are transmitted to the S-CSCF server with login request message.
Step S406, user registration success, S-CSCF returns the 200OK response to P-CSCF (SBC).
The Expires value that step S407, P-CSCF (SBC) revise in the 200OK message is the default registration refresh cycle.
Step S408, P-CSCF (SBC) transmit above-mentioned 200OK response message to NAT device.
Step S409, NAT device are transmitted the 200OK response to client.
Step S410, client send the registration refresh message according to the registration refresh cycle among the Expires in the response message.
Step S411, NAT transmit the registration refresh message.
Step S412, P-CSCF (SBC) check the IP address and the port numbers of registration refresh message, the IP address and the port numbers of the registration message of the original record of contrast, do not change if find, the time interval of record and adjacent twice interacting message of client, and by the value of registering the refresh cycle in the default step increments Expires.
Step S413, P-CSCF (SBC) return the 200OK message that succeeds in registration to client automatically, carry adjusted registration refresh cycle information in this message.
Step S414, NAT transmit the 200OK response.
Step S415, client send Invite (or other non-registered refresh message) request message.
Step S416, NAT transmit Invite (or other non-registered refresh message) request message.
Step S417, P-CSCF (SBC) check the IP address and the port numbers of request message, and the IP address and the port numbers of contrast login request message be not if change the time interval of writing down adjacent twice interacting message.
Step S418, P-CSCF (SBC) transmit Invite (or other is non-registered) request message and give S-CSCF.
Step S419, ask successfully, S-CSCF returns the 200OK response.
Step S420, P-CSCF (SBC) transmit the 200OK response.
Step S421, NAT transmit the 200OK response.
If overtime inefficacy of IP tunnel on the NAT device then has:
Step S422, client send registration refresh requests message.
Step S423, NAT device distribute a new IP tunnel 2 for this client.
Step S424, NAT transmit the registration refresh requests message of IMS client.
Step S425, P-CSCF (SBC) check the packet IP address and the port numbers of registration refresh message, the IP address and the port numbers of the registration message of the original record of contrast, discovery has difference, the maximum time of adjacent twice interacting message of record is not detected and finishes at interval as the IP tunnel time-out time on the NAT before then the IP address of registration message and port numbers being changed.
Step S426, P-CSCF (SBC) refresh registration please be transmitted to S-CSCF.
Step S427, S-CSCF return the 200OK response.
Step S428, P-CSCF (SBC) no longer revise the value of the Expires in the 200OK response, are transmitted to NAT device.
Step S429, NAT are transmitted to client from IP tunnel 2 with the 200OK response.
After the IP tunnel time-out time on the above-mentioned NAT is detected out; P-CSCF (SBC) just can be according to this time-out time; regularly send the OPTIONS request message or allow client send the registration refresh message by corresponding temporal frequency, the IP tunnel keep-alive of carrying out on the NAT refreshes.
In sum, in the method for the invention, the core net access device is pressed certain frequency by the control client and is sent probe message, the adjacent interacting message time interval of record, when IP tunnel lost efficacy, just can detect the IP tunnel time-to-live on the NAT device automatically; For different NAT device; send refresh message with different frequencies; under the more situation of number of users; can reduce the consumption of refresh message greatly to CPU; and minimizing refresh message number; reduction takies bandwidth, has optimized significantly at present and under IMS (or soft switch) environment the IP tunnel on the NAT device has been carried out the treatment mechanism that keep-alive refreshes.
The present invention also provides address translation entry time-to-live device on a kind of detection NAT device, as shown in Figure 5, comprising:
Cycle information issues unit 510, is used for sending preset period information to client, makes client send probe message according to described cycle information to described access device;
Whether data-message detecting unit 520 is used to receive and detect the data-message that described client sends, identical with the IP tunnel of the adjacent data message that has received, if, trigger data message processing unit 530; Otherwise, trigger result of detection acquiring unit 540;
Data-message processing unit 530, be used for time according to the data-message of the described client transmission that receives, with the time of previous interactive data message, writing time at interval, and when the data message type that described client sends is probe message, heighten described cycle information, judge whether the cycle information after heightening reaches preset maximum value, if trigger result of detection acquiring unit 540; Otherwise, the cycle information after described the heightening as preset period information, is triggered described cycle information and issues unit 510;
Result of detection acquiring unit 540, the maximum that is used for described time interval of described data-message processing unit 530 records is the address translation entry time-to-live on the NAT device.
Device of the present invention further has following characteristics:
Cycle information issues unit 510 and comprises to the mode that client sends preset period information:
By sending to described client in the expires message header that preset period information is added to registration message; Perhaps,
By sending to described client in the message header that preset period information is added to response message; Perhaps,
Send to described client by preset period information being added in advance in the private message of consulting with described client.
The mode of heightening cycle information in the data-message processing unit 530 comprises: by the described cycle information of heightening of default step increments; Described preset maximum value is the registration refresh cycle value of core net appointment.
Whether identical mode comprises for the data-message that data-message detecting unit 520 detection clients send and the IP tunnel of the adjacent data message that has received:
Whether the IP tunnel items for information that detects the data-message that described client sends is identical with the IP tunnel items for information of the adjacent data message that has received; Described IP tunnel items for information comprises: IP address and port numbers.
The 530 described time intervals of record of data-message processing unit, and when the data message type that described client sends is non-registered refresh message, send current non-probe message to core network server, and the result of described core network server feedback is sent to described client by NAT device.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (10)

1. the method for address translation entry time-to-live on the detection network address transition NAT device is characterized in that, comprising:
Step 1, access device send preset period information to client, make client send probe message according to described cycle information to described access device;
Whether step 2, described access device receive and detect the data-message that described client sends, identical with the IP tunnel of the adjacent data message that has received, if, execution in step 3, otherwise, execution in step 4;
The time of the data-message that the described client that step 3, described access device basis receive sends, with the time of previous interactive data message, writing time at interval, and when the data message type that described client sends is probe message, heighten described cycle information, judge whether the cycle information after heightening reaches preset maximum value, if, execution in step 4; Otherwise, the cycle information after described the heightening as preset period information, is returned step 1;
Step 4, described access device are the address translation entry time-to-live on the NAT device with the maximum in the described time interval.
2. the method for claim 1 is characterized in that, described access device comprises to the mode that client sends preset period information:
Described access device is by sending to described client in the expires message header that described preset period information is added to the registration refresh message; Perhaps,
Described access device is by sending to described client in the message header that described preset period information is added to response message; Perhaps,
Described access device sends to described client by described preset period information being added in advance in the private message of consulting with described client.
3. the method for claim 1 is characterized in that, the mode of heightening described cycle information comprises: by the described cycle information of heightening of default step increments;
Described preset maximum value is the registration refresh cycle value of core net appointment.
4. as claim 1 or 2 or 3 described methods, it is characterized in that described access device detects the IP tunnel of data-message that described client sends and the adjacent data message that has received, and whether identical mode comprises:
Whether the IP tunnel items for information that described access device detects the data-message that described client sends is identical with the IP tunnel items for information of the adjacent data message that has received; Described IP tunnel items for information comprises: IP address and port numbers.
5. as claim 1 or 2 or 3 described methods, it is characterized in that described access device writes down the described time interval, and when the data message type that described client sends is non-probe message, also comprise:
Described access device sends current non-probe message to core network server, and the result of described core network server feedback is sent to described client by NAT device.
6. the device of address translation entry time-to-live on the detection network address transition NAT device is characterized in that, comprising:
Cycle information issues the unit, is used for sending preset period information to client, makes client send probe message according to described cycle information to described access device;
Whether the data-message detecting unit is used to receive and detect the data-message that described client sends, identical with the IP tunnel of the adjacent data message that has received, if, the trigger data message processing unit; Otherwise, trigger the result of detection acquiring unit;
The data-message processing unit, be used for time according to the data-message of the described client transmission that receives, with the time of previous interactive data message, writing time at interval, and when the data message type that described client sends is probe message, heighten described cycle information, judge whether the cycle information after heightening reaches preset maximum value, if trigger the result of detection acquiring unit; Otherwise, the cycle information after described the heightening as preset period information, is triggered described cycle information and issues the unit;
The result of detection acquiring unit, the maximum that is used for described time interval of described data-message processing unit record is the address translation entry time-to-live on the NAT device.
7. device as claimed in claim 6 is characterized in that, described cycle information issues the unit and comprises to the mode that client sends preset period information:
By sending to described client in the expires message header that described preset period information is added to registration message; Perhaps,
By sending to described client in the message header that described preset period information is added to response message; Perhaps,
Send to described client by described preset period information being added in advance in the private message of consulting with described client.
8. device as claimed in claim 6 is characterized in that, the mode of heightening described cycle information in the described data-message processing unit comprises: by the described cycle information of heightening of default step increments;
Described preset maximum value is the registration refresh cycle value of core net appointment.
9. as claim 6 or 7 or 8 described devices, it is characterized in that described data-message detecting unit detects the IP tunnel of data-message that described client sends and the adjacent data message that has received, and whether identical mode comprises:
Whether the IP tunnel items for information that detects the data-message that described client sends is identical with the IP tunnel items for information of the adjacent data message that has received; Described IP tunnel items for information comprises: IP address and port numbers.
10. as claim 6 or 7 or 8 described devices, it is characterized in that, described data-message processing unit writes down the described time interval, and when the data message type that described client sends is non-registered refresh message, send current non-probe message to core network server, and the result of described core network server feedback is sent to described client by 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
CN101800683A (en) Method and device for probing survival time of address translation entries on NAT equipment
US8090845B2 (en) Apparatus and method for firewall traversal
US20070043876A1 (en) Stimulation traffic for binding refreshment
US20110149750A1 (en) Subscriber fallback/migration mechanisms in ims geographic redundant networks
CN101667936A (en) Method, device and system for fault treatment of access session control server
CN105592486A (en) Disaster tolerance method, network element and server
CN103685163A (en) Disaster-tolerant method, system and device in IMS network
CN102487546A (en) Registration method of session initiation protocol (SIP) terminal and system thereof
CN105813228A (en) Communication method and related device based on SIP over TCP/TLS
CN104125221A (en) IMS (IP (Internet Protocol) multimedia subsystem) terminal equipment multiple soft-terminal resource sharing and application collaborative device and method
CN101702712B (en) Detection technology and voice call backup linkage method and device thereof
US20110289223A1 (en) Method of distinguishing a plurality of ues sharing one puid and a device thereof
US20230379857A1 (en) Network registration method and apparatus, and user equipment
CN103906225A (en) IMS terminal registration storm processing method and edge access control device
KR101467392B1 (en) Method and System for Charging for Telephone Call Using both Circuit Switching and Packet Switching
US9801151B2 (en) Server apparatus and communication control method
JP2010171635A (en) Position registration method and system for connecting sip client-compatible device to ip subsystem network
CN101102307A (en) Public user identifier registration or cancellation method and device for IMS network
CN1972227A (en) Universal registration method and system
CN102739672A (en) Realization method and device of terminal mobile service in IP (Internet Protocol) multimedia subsystem architecture
CA2772924C (en) Apparatus, and associated method, by which to select packet communication service provider at electronic device
JP5477090B2 (en) Terminal state control apparatus, terminal state control program, terminal state control method, and terminal state control system
CN101212712A (en) Customer premise equipment, service call control function entity, and customer premise equipment registration method
CN102868986A (en) Number association implementation method and system
WO2012171290A1 (en) Transfer inquiry method, application server, service terminal, and system

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