CN101800683B - The method and apparatus of probing survival time of address translation entries on NAT equipment - Google Patents

The method and apparatus of probing survival time of address translation entries on NAT equipment Download PDF

Info

Publication number
CN101800683B
CN101800683B CN201010155216.7A CN201010155216A CN101800683B CN 101800683 B CN101800683 B CN 101800683B CN 201010155216 A CN201010155216 A CN 201010155216A CN 101800683 B CN101800683 B CN 101800683B
Authority
CN
China
Prior art keywords
message
client
data
cycle 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.)
Expired - Fee Related
Application number
CN201010155216.7A
Other languages
Chinese (zh)
Other versions
CN101800683A (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

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of method and apparatus of probing survival time of address translation entries on NAT equipment, comprising: 1, access device sends the cycle information preset to client, makes client send probe message according to cycle information to access device; 2, access device receive and detect client send data-message whether identical with the IP tunnel of the adjacent data message received, if so, perform 3, otherwise, execution 4; 3, record the data-message of client transmission received and the time interval of previous interactive data message, and when the data message type received is probe message, heightens cycle information, judge whether this periodic quantity reaches maximum, if so, perform 4; Otherwise, return 1; 4, access device with the maximum at adjacent twice data-message time of reception interval of record for the address translation entry time-to-live on NAT device.The IP tunnel time-to-live on NAT device has effectively been detected by the method for the invention.

Description

The method and apparatus of probing survival time of address translation entries on NAT equipment
Technical field
The present invention relates to communication technical field, particularly relate 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 fusion that is fixing and mobile communications network, for fixing and mobile subscriber provide abundant data and multimedia service.
IMS adopts SIP (Session Initiation Protocol) agreement as its Multimedia session control protocol, to carry out the conversation control functions such as the foundation of many matchmakers session in IMS network, amendment and termination.
IMS using IP network as bearer network, in an ip network, due to various reason, increasingly exhausted as: IPV4 number of addresses, network security etc., NAT device is currently deployed heavily in an ip network, is used for carrying out the conversion of public and private net address; In the ims environment, IMS client often needs to be linked into IMS core net by NAT device.
Under normal circumstances, NAT device has one-way, as shown in Figure 1, IP packet from NAT device side (being set as A side) first gets through an IP tunnel on NAT device, NAT can according to information such as the address of packet, ports, create an IP address translation entry, the packet of such opposite side (being set as B side) just can pass through.Wherein, the IP tunnel of foundation has an overtime out-of-service time, if do not have packet to pass through at the appointed time, passage will be deleted, and network will disconnect, and the packet from NAT device B side will be dropped.
In the environment that there is NAT device, in order to ensure the normal two-way intercommunication of the IP tunnel between IMS client and core net, regularly packet must be sent between IMS client and core net, refresh the IP tunnel on NAT device, generally by core net access device (P-CSCF (Proxy Call Session ControlFunction, proxy-call session control function entity) or SBC (Session Border Controller, Session Border Controll)) the OPTIONS request message of Session Initiation Protocol is regularly sent to client.Its basic functional principle is briefly introduced below in conjunction with Fig. 2:
Step S201, client send login request message to NAT.
Step S202, NAT are this client distributing IP passage entry.
Step S203, NAT send client registers request message to P-CSCF (SBC).
Step S204, P-CSCF (SBC) send client registers 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 original IP tunnel 1 created, and return 200OK to client.
Step S208, client registers success after, in order to ensure that the IP tunnel of client on NAT device did not lose efficacy because of time-out, core net access device (P-CSCF or SBC), according to the time interval of configuration, regularly refreshes the IP tunnel on NAT to client transmission OPTIONS request message.
Step S209, P-CSCF (SBC) send OPTIONS request message to NAT.
Step S210, NAT refresh IP tunnel and forward OPTIONS to be asked to client.
Step S211, client return 200OK and respond to NAT.
Step S212, NAT return 200OK to P-CSCF (SBC).
This completes the refreshing of a NAT IP tunnel.Send OPTIONS request message termly by this, just can keep the two-way interoperability that corresponding IP connects.
The operation principle of above-mentioned conventional method to a certain degree operated within range, but can have larger defect:
Many NAT device are had in access IP network, different NAT device, the time-out time of its address translation entry is different, what have is larger, what have is less, this parameter is by the general more difficult acquisition of manual type, and the NAT IP tunnel refresh time therefore IMS core net access device configured generally all estimates, and can only meet part NAT device.
Flush mechanism is single, owing to dynamic instrumentation cannot go out the IP tunnel time-out time of each NAT device, therefore can only configure very little time and regularly refreshes all NAT device, for different NAT, can not adopt different refresh times.
Must be less than minimum NAT device IP tunnel time-out time final setup time, when customer volume is larger, refresh message process seriously can consume the CPU process of core net access device, causes equipment performance to decline.
In a word, more stiff dumb to the flush mechanism of the IP tunnel on NAT device in current IMS environment, its root is the IP tunnel time-out time still not having a kind of method of maturation to carry out dynamic instrumentation NAT device.
Summary of the invention
The invention provides a kind of method and apparatus of probing survival time of address translation entries on NAT equipment, in order to solve in prior art the jejune problem of IP tunnel time-out time method detecting NAT device.
The invention provides a kind of method of probing survival time of address translation entries on NAT equipment, comprising:
Step 1, access device send the cycle information preset 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 of described client transmission, identical with the IP tunnel of the adjacent data message received, and if so, perform step 3, otherwise, perform step 4;
The time of the data-message that step 3, described access device send according to the described client received, with the time of previous interactive data message, writing time 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 so, performs step 4; Otherwise, using the cycle information after described heightening as the cycle information preset, return step 1;
Step 4, described access device with the maximum in the described time interval for the address translation entry time-to-live on NAT device.
In the method for the invention, access device sends mode from the cycle information preset to client comprises:
Described access device by described default cycle information is added to registration refresh message expires message header in send to described client; Or,
Described access device sends to described client by being added in the message header of response message by described default cycle information; Or,
Described access device sends to described client in advance with the private message of described client negotiate by being added to by described default cycle information.
In the method for the invention, the mode heightening described cycle information comprises: heighten described cycle information by default step increments; Described preset maximum value is the registration refresh cycle value that core net is specified.
In the method for the invention, access device detects the data-message mode whether identical with the IP tunnel of the adjacent data message received that described client sends and 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 received; Described IP tunnel items for information comprises: IP address and port numbers.
In the method for the invention, the time interval described in described access device record, and also comprise 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 fed back by described core network server sends 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 unit, for sending the cycle information preset to client, makes client send probe message according to described cycle information to described access device;
Data-message detecting unit, for receive and detect described client send data-message, whether identical with the IP tunnel of the adjacent data message received, if so, trigger data message processing unit; Otherwise, trigger detection result acquiring unit;
Data-message processing unit, for the time of the data-message according to the described client transmission received, with the time of previous interactive data message, writing time 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 so, trigger detection result acquiring unit; Otherwise, using the cycle information after described heightening as the cycle information preset, trigger described cycle information and issue unit;
Result of detection acquiring unit, for the maximum in the described time interval of described data-message processing unit record for the address translation entry time-to-live on NAT device.
Device provided by the present invention has following characteristics further:
The mode that described cycle information issues the cycle information that unit is preset to client transmission comprises:
Send to described client by the expires message header that described default cycle information added to registration message; Or,
Send to described client by described default cycle information is added in the message header of response message; Or,
Send to described client in advance with the private message of described client negotiate by described default cycle information is added to.
The mode heightening described cycle information in described data-message processing unit comprises: heighten described cycle information by default step increments; Described preset maximum value is the registration refresh cycle value that core net is specified.
The mode whether data-message that described data-message detecting unit detection client sends is identical with the IP tunnel of the adjacent data message received comprises:
Whether the IP tunnel items for information detecting the data-message that described client sends is identical with the IP tunnel items for information of the adjacent data message received; Described IP tunnel items for information comprises: IP address and port numbers.
The time interval described in described data-message processing unit record, 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 fed back by described core network server sends to described client by NAT device.
Compared with prior art, beneficial effect of the present invention is as follows:
In method provided by the invention, core net access device press certain frequency and is sent probe message by controlling client, records neighboring message interaction time interval, when IP tunnel lost efficacy, just can go out IP tunnel time-to-live on NAT device by automatic detection; For different NAT device, send probe message with different frequencies, when number of users is more, can greatly reduce the consumption of CPU and taking bandwidth.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is IMS system group network structural representation in prior art;
Fig. 2 is the method flow diagram of IP tunnel on keep-alive NAT device in IMS environment in prior art;
Fig. 3 is the flow chart of probing survival time of address translation entries on NAT equipment method provided by the invention;
The flow chart of the probing survival time of address translation entries on NAT equipment method that Fig. 4 provides for the concrete example of the present invention;
Fig. 5 is the structural representation of probing survival time of address translation entries on NAT equipment device provided by the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
IP tunnel time-to-live method based on dynamic instrumentation NAT device in prior art is immature, accurately can not obtain the problem of IP tunnel time-to-live on each NAT device, the invention provides a kind of method and apparatus of probing survival time of address translation entries on NAT equipment, described method is the system edges access device setting IP tunnel time-to-live provide Data support.Wherein, in IMS or Soft core net, edge access equipment generally refers to P-CSCF or SBC.
In order to clearly state implementation procedure of the present invention, below in conjunction with the correlation theory of prior art, the principle of the method for the invention is set forth:
SIP client first after core net successful registration, must could use SIP business; After succeeding in registration, the registration refresh cycle that client also will be specified according to core net, regularly send registration refresh message to core net and refresh the log-on data of preserving in core net.
The client registers term of validity time of core net setting, namely core net registration refresh cycle (being generally more than 1800s) of specifying generally all is far longer than IP tunnel time-to-live on NAT device (this time-to-live be generally tens to hundreds of second not etc.), when client sends registration refresh message according to the refresh cycle that core net sets, if there is no other message within this refresh cycle, the IP tunnel that then NAT device creates probably expire for a long time, in paralysis period, request from core net just cannot arrive client, and then causes call loss.
After IP tunnel lost efficacy, if when client sends new information again, NAT generally can distribute a new IP tunnel items for information, the port numbers+IP address after this passage items for information correspondent transform, and port numbers+IP address when this items for information and client registers is different.The present invention, just based on the change of this items for information, as the basis for estimation that IP tunnel lost efficacy, elaborates specific implementation principle below:
Method provided by the present invention is in order to quick detection go out IP tunnel time-to-live on NAT device, its core concept is, access device must be able to control client message transmission (control client message send reason be prevent from not sending message in client a period of time, IP tunnel is caused to lose efficacy), this control mode can, by sending self-defining cycle information to client, make client send probe message according to cycle information predetermined time interval.By sets itself cycle information, force client initiatively to send probe message, effectively prevent in client a period of time the problem not having service message to cause IP tunnel to lose efficacy.Wherein, the self-defined cycle information that access device sends can set (such as voluntarily flexibly according to actual conditions, be set as between 30s to 300s), from smaller value, and when receiving the unaltered probe message of IP address+port numbers, by the cycle information of the current setting of step increments preset, wherein, the step value increased progressively can sets itself, but should be able to comparatively rapid convergence.It should be noted that, there is a maximum in the periodic quantity of above-mentioned setting, and this maximum is preferably the registration refresh cycle that core net is specified.
After the dependency rule of setting cycle information, access device detects IP address and the port numbers of the data-message (comprising probe message and non-probe message) that client sends, and record client twice data-message interaction time interval adjacent with access device, when (showing that the IP tunnel on NAT device lost efficacy) when detecting that IP tunnel items for information changes, with the address translation entry time-to-live (that is: IP tunnel time-to-live) that the maximum in the time interval of record is correspondence, detection terminates.
It should be noted that; detect IP tunnel in the method for the invention whether to lose efficacy and be not limited to judge whether IP tunnel items for information changes this kind of mode; after IP tunnel change; the change of other identification informations caused; can as detection reference, also all within protection scope of the present invention.
State based on above-mentioned principle, provide the specific implementation process of probing survival time of address translation entries on NAT equipment method provided by the invention below, as shown in Figure 3, comprise the following steps:
Step S301, access device send the cycle information preset 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 of described client transmission, identical with the IP tunnel of the adjacent data message received, and if so, perform step S303, otherwise, perform step S305.
Wherein, the data-message that the adjacent data message received and access device are currently received is from same client.
And in this method, data-message is divided into probe message and non-probe message two kinds of data types.
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, writing time, interval, and when the data message type that client sends is probe message, heightened described cycle information.
Wherein, described interaction data message refers to: access device is before the data-message receiving the current transmission of client, and access device receives the data-message of described client, or 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 so, performs step S305; Otherwise, using the cycle information after heightening as the cycle information preset, return step S301.
Step S305, access device with record the time interval in maximum for the address translation entry time-to-live on NAT device.
In the method for the invention, access device sends cycle information to client, controls client and at least comprises following three kinds by the control mode of certain frequency transmission probe message:
Access device by default cycle information is added to registration refresh message expires message header in send to client; Or,
Access device sends to client by the message header that default cycle information added to response message; Or,
Access device sends to client in advance with the private message of client negotiate by being added to by default cycle information.
Just set forth by the implementation procedure of several specific embodiment to different control modes below:
Embodiment one
The present embodiment is the cycle information being sent setting by registration refresh message, and realize core net sends message frequency control to client, concrete, the method flow that the present embodiment provides comprises the following steps:
S11, access device receives the login request message from client.
S12, access device sends this login request message to core network server, and receive from the 200OK of core network server succeed in registration message time, according to the value of the cycle information amendment registration refresh cycle expires message header preset, be transmitted to client.
Certainly, the cycle information of setting is generally the minimum value of IP tunnel time-to-live, such as, 25 ~ 30s, but, if also short than current setting of IP tunnel time-to-live, then after current IP channel lost efficacy, the cycle information that adjustment is preset, continues to adopt this method to detect.
S13, access device inspection is from the IP address of the data-message of this client and port numbers, and whether the IP address contrasting the adjacent data message received is consistent with port numbers, if unanimously, execution step S15; Otherwise, perform step S14.
S14, access device with the maximum at adjacent twice data-message interaction time interval of record for the address translation entry time-to-live on NAT device.
S15, the interaction time interval of the data-message that record client sends and mutual adjacent data message, and when described data-message is the registration refresh message of the registration refresh cycle transmission that client sets according to access device, the cycle information of the current setting of adjustment increased progressively by the step value preset.
S16, access device judge whether the cycle information after heightening has been more than or equal to the registration refresh cycle that core net specifies, if so, performs step S14; Otherwise, perform step S17.
S17, the access device amendment value of register refresh cycle expires message header as the periodic quantity after heightening, to client feedback, makes client send according to current period information and registers refresh message.
Above-mentioned client is the probe message of principal portion statement according to the registration refresh message that cycle information sends.
Embodiment two
The present embodiment is that the private message consulted in advance with current existing response message or access device and client sends cycle information, realize core net sends message frequency control to client, concrete, the method flow that the present embodiment provides comprises the following steps:
S21, access device sends by the message format of agreement the cycle information preset to registered client.
Certainly, the cycle information preset is generally the minimum value of IP tunnel time-to-live, such as, 25 ~ 30s, but, if also short than current setting of IP tunnel time-to-live, then after current IP channel lost efficacy, the cycle information that adjustment is preset, continues to adopt this method to detect.
S22, access device inspection is from the IP address of the data-message of described client and port numbers, and whether the IP address contrasting the adjacent data message received is consistent with port numbers, if unanimously, execution step S24; Otherwise, perform step S23.
S23, access device with the maximum at adjacent twice data-message interaction time interval of record for the address translation entry time-to-live on NAT device.
S24, record the data-message of current reception and the interaction time interval of mutual adjacent data message, and when described data-message is the probe message of the cycle information transmission that client sets according to access device, the cycle information of the current setting of adjustment increased progressively by the step value preset.
S25, access device judge whether the cycle information after heightening has been more than or equal to the registration refresh cycle that core net specifies, if so, performs step S23; Otherwise, perform step S26.
Cycle information after heightening is sent to client by the message format of agreement by S26, access device, 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 combine the description to embodiment, provide ins and outs of the present invention further, the specific implementation process of the method for the invention can be described better.This example is described to register refresh message, specifically comprises the following 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 forward the login request message of IMS client to P-CSCF (SBC).
Step S404, P-CSCF (SBC) record IP address and the port numbers of registration packet.
Login request message is transmitted to S-CSCF server by step S405, P-CSCF (SBC).
Step S406, user registration success, S-CSCF returns 200OK response to P-CSCF (SBC).
Step S407, P-CSCF (SBC) the Expires value revised in 200OK message is the registration refresh cycle of presetting.
Step S408, P-CSCF (SBC) forward above-mentioned 200OK response message to NAT device.
Step S409, NAT device forward 200OK response to client.
Step S410, client send registration refresh message according to the registration refresh cycle in Expires in response message.
Step S411, NAT forward registration refresh message.
Step S412, P-CSCF (SBC) check IP address and the port numbers of registration refresh message, the IP address of the registration message of the original record of contrast and port numbers, do not change if find, record the time interval of twice interacting message adjacent with client, and by registering the value of refresh cycle in default step increments Expires.
Step S413, P-CSCF (SBC) automatically return 200OK to client and to succeed in registration message, carry the registration refresh cycle information after adjustment in this message.
Step S414, NAT forward 200OK response.
Step S415, client send Invite (or other non-registered refresh message) request message.
Step S416, NAT forward Invite (or other non-registered refresh message) request message.
Step S417, P-CSCF (SBC) check IP address and the port numbers of request message, the IP address of contrast login request message and port numbers, if not change, record the time interval of adjacent twice interacting message.
Step S418, P-CSCF (SBC) forward Invite (or other is non-registered) request message to S-CSCF.
Step S419, ask successfully, S-CSCF returns 200OK response.
Step S420, P-CSCF (SBC) forward 200OK response.
Step S421, NAT forward 200OK response.
If the IP tunnel time-out on NAT device fails, then have:
Step S422, client send registration refresh requests message.
Step S423, NAT device are that this client distributes a new IP tunnel 2.
Step S424, NAT forward the registration refresh requests message of IMS client.
Step S425, P-CSCF (SBC) check packet IP address and the port numbers of registration refresh message, the IP address of the registration message of the original record of contrast and port numbers, find that there is difference, before then not changed in the IP address of registration message and port numbers, the maximum time interval of adjacent twice interacting message of record is as the IP tunnel time-out time on NAT, detects and terminates.
Registration refreshing please be transmitted to S-CSCF by step S426, P-CSCF (SBC).
Step S427, S-CSCF return 200OK response.
Step S428, P-CSCF (SBC) no longer revise the value of the Expires in 200OK response, are transmitted to NAT device.
200OK response is transmitted to client from IP tunnel 2 by step S429, NAT.
After the IP tunnel time-out time on above-mentioned NAT is detected; P-CSCF (SBC) just can according to this time-out time; regular transmission OPTIONS request message or allow client by corresponding temporal frequency to send registration refresh message, the IP tunnel keep-alive carried out on NAT refreshes.
In sum, in the method for the invention, core net access device press certain frequency and is sent probe message by controlling client, records neighboring message interaction time interval, when IP tunnel lost efficacy, just can go out IP tunnel time-to-live on NAT device by automatic detection; For different NAT device; refresh message is sent with different frequencies; when number of users is more; greatly can reduce the consumption of refresh message to CPU; and reduce refresh message number; reduce taking bandwidth, optimize the treatment mechanism of the IP tunnel on NAT device being carried out to keep-alive refreshing at present under IMS (or soft switch) environment significantly.
The present invention also provides a kind of probing survival time of address translation entries on NAT equipment device, as shown in Figure 5, comprising:
Cycle information issues unit 510, for sending the cycle information preset to client, makes client send probe message according to described cycle information to described access device;
Data-message detecting unit 520, for receive and detect described client send data-message, whether identical with the IP tunnel of the adjacent data message received, if so, trigger data message processing unit 530; Otherwise, trigger detection result acquiring unit 540;
Data-message processing unit 530, for the time of the data-message according to the described client transmission received, with the time of previous interactive data message, writing time 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 so, trigger detection result acquiring unit 540; Otherwise, using the cycle information after described heightening as the cycle information preset, trigger described cycle information and issue unit 510;
Result of detection acquiring unit 540, the maximum in the described time interval of recording with described data-message processing unit 530 is for the address translation entry time-to-live on NAT device.
Device of the present invention has following characteristics further:
The mode that cycle information issues the cycle information that unit 510 is preset to client transmission comprises:
Send to described client by the expires message header that default cycle information added to registration message; Or,
Send to described client by the message header that default cycle information added to response message; Or,
Send to described client in advance with the private message of described client negotiate by default cycle information is added to.
The mode heightening cycle information in data-message processing unit 530 comprises: heighten described cycle information by default step increments; Described preset maximum value is the registration refresh cycle value that core net is specified.
Data-message detecting unit 520 detects the data-message mode whether identical with the IP tunnel of the adjacent data message received that client sends and comprises:
Whether the IP tunnel items for information detecting the data-message that described client sends is identical with the IP tunnel items for information of the adjacent data message received; Described IP tunnel items for information comprises: IP address and port numbers.
Data-message processing unit 530 records 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 fed back by described core network server sends to described client by NAT device.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. the method for address translation entry time-to-live on detection network address transition NAT device, is characterized in that, comprising:
Step 1, access device send the cycle information preset 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 of described client transmission, identical with the IP tunnel of the adjacent data message received, and if so, perform step 3, otherwise, perform step 4;
The time of the data-message that step 3, described access device send according to the described client received, with the time of previous interactive data message, writing time 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 so, performs step 4; Otherwise, using the cycle information after described heightening as the cycle information preset, return step 1; Wherein, described interaction data message is data-message mutual between described access device and described client;
Step 4, described access device with the maximum in the described time interval for the address translation entry time-to-live on NAT device.
2. the method for claim 1, is characterized in that, described access device sends mode from the cycle information preset to client comprises:
Described access device by described default cycle information is added to registration refresh message expires message header in send to described client; Or,
Described access device sends to described client by being added in the message header of response message by described default cycle information; Or,
Described access device sends to described client in advance with the private message of described client negotiate by being added to by described default cycle information.
3. the method for claim 1, is characterized in that, the mode heightening described cycle information comprises: what increase progressively by default step value heightens described cycle information;
Described preset maximum value is the registration refresh cycle value that core net is specified.
4. the method as described in claim 1 or 2 or 3, is characterized in that, described access device detects the data-message mode whether identical with the IP tunnel of the adjacent data message received that described client sends and 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 received; Described IP tunnel items for information comprises: IP address and port numbers.
5. the method as described in claim 1 or 2 or 3, is characterized in that, the time interval described in described access device record, 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 fed back by described core network server sends to described client by NAT device.
6. the device of address translation entry time-to-live on detection network address transition NAT device, is characterized in that, comprising:
Cycle information issues unit, for sending the cycle information preset to client, makes client send probe message according to described cycle information to described device;
Data-message detecting unit, for receive and detect described client send data-message, whether identical with the IP tunnel of the adjacent data message received, if so, trigger data message processing unit; Otherwise, trigger detection result acquiring unit;
Data-message processing unit, for the time of the data-message according to the described client transmission received, with the time of previous interactive data message, writing time 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 so, trigger detection result acquiring unit; Otherwise, using the cycle information after described heightening as the cycle information preset, trigger described cycle information and issue unit; Wherein, described interaction data message is data-message mutual between described device and described client;
Result of detection acquiring unit, for the maximum in the described time interval of described data-message processing unit record for the address translation entry time-to-live on NAT device.
7. device as claimed in claim 6, is characterized in that, the mode that described cycle information issues the cycle information that unit is preset to client transmission comprises:
Send to described client by the expires message header that described default cycle information added to registration message; Or,
Send to described client by described default cycle information is added in the message header of response message; Or,
Send to described client in advance with the private message of described client negotiate by described default cycle information is added to.
8. device as claimed in claim 6, it is characterized in that, the mode heightening described cycle information in described data-message processing unit comprises: what increase progressively by default step value heightens described cycle information;
Described preset maximum value is the registration refresh cycle value that core net is specified.
9. the device as described in claim 6 or 7 or 8, is characterized in that, described data-message detecting unit detects the data-message mode whether identical with the IP tunnel of the adjacent data message received that described client sends and comprises:
Whether the IP tunnel items for information detecting the data-message that described client sends is identical with the IP tunnel items for information of the adjacent data message received; Described IP tunnel items for information comprises: IP address and port numbers.
10. the device as described in claim 6 or 7 or 8, it is characterized in that, the time interval described in described data-message processing unit record, 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 fed back by described core network server sends 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 CN101800683A (en) 2010-08-11
CN101800683B true 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)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102476515B (en) * 2010-11-25 2014-04-23 软控股份有限公司 Method for conversing and controlling print data protocol
CN104320498B (en) * 2014-07-04 2018-02-13 物联智慧科技(深圳)有限公司 Effectively keep NAT channel service methods
TWI555357B (en) 2014-07-04 2016-10-21 Throughtek Technology Shenzhen Co Ltd Effectively maintain the NAT channel service method
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

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3548157B2 (en) * 2001-12-26 2004-07-28 アライドテレシス株式会社 Relay device, address conversion control method, and program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN101800683A (en) 2010-08-11

Similar Documents

Publication Publication Date Title
CN101800683B (en) The method and apparatus of probing survival time of address translation entries on NAT equipment
US8090845B2 (en) Apparatus and method for firewall traversal
JP5537349B2 (en) Method and system for changing SIP server while terminal connection is continued
CN109151807B (en) Method and system for binding main card and auxiliary card of dual-card dual-standby mobile terminal
US8572255B2 (en) System and method for reestablishing, with a client device, a signaling session associated with a call in progress
US20140334618A1 (en) Call processing method and control apparatus, automatic call distribution apparatus, and agent terminal
CN101563949A (en) Management of seamless handover between different communication systems in an IP dual-mode terminal
CN101667936A (en) Method, device and system for fault treatment of access session control server
CN105813228B (en) Communication means and relevant apparatus based on SIP over TCP/TLS
US9021300B2 (en) Method of changing over from a primary HSS to a backup HSS in an IP network
CN103685163A (en) Disaster-tolerant method, system and device in IMS network
CN104185220A (en) IMS (IP Multimedia Subsystem) core network equipment failure switching method and border access controller
CN102487546A (en) Registration method of session initiation protocol (SIP) terminal and system thereof
US10841344B1 (en) Methods, systems and apparatus for efficient handling of registrations of end devices
NO339641B1 (en) Method of maintaining connection in telecommunication systems and telecommunications systems
US20230379857A1 (en) Network registration method and apparatus, and user equipment
US20210194936A1 (en) Technique for acquiring and correlating session-related information from an internet protocol multimedia subsystem
WO2023030384A1 (en) Ims network registration method and apparatus, and electronic device
CN102082766B (en) User equipment (UE) access method and device in IP (internet protocol) multimedia subsystem (IMS)
CN101325564B (en) Method, apparatus and system for selecting virtual medium gateway
CN103795878B (en) A kind of guard method of Voice over IP business, equipment and system
JP5477090B2 (en) Terminal state control apparatus, terminal state control program, terminal state control method, and terminal state control system
CA2772924C (en) Apparatus, and associated method, by which to select packet communication service provider at electronic device
KR101270241B1 (en) Method for call setup based on fmc communication and call connection infra
KR100809398B1 (en) Method and system for transmitting SMS for VoIP service supproting Multi-protocol

Legal Events

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

Granted publication date: 20151021

Termination date: 20190426

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