CN104333613A - NAT (network address translator) connection retention time setting method and device - Google Patents
NAT (network address translator) connection retention time setting method and device Download PDFInfo
- Publication number
- CN104333613A CN104333613A CN201410596750.XA CN201410596750A CN104333613A CN 104333613 A CN104333613 A CN 104333613A CN 201410596750 A CN201410596750 A CN 201410596750A CN 104333613 A CN104333613 A CN 104333613A
- Authority
- CN
- China
- Prior art keywords
- retention time
- packet
- application layer
- layer protocol
- nat 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/25—Mapping addresses of the same type
- H04L61/2503—Translation of Internet protocol [IP] addresses
- H04L61/256—NAT traversal
- H04L61/2575—NAT traversal using address mapping retrieval, e.g. simple traversal of user datagram protocol through session traversal utilities for NAT [STUN]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses an NAT (network address translator) connection retention time setting method and device, and relates to the technical field of communication. The requirements of different businesses for NAT connection time can be met, and the business experience of a user is improved. The NAT connection retention time setting method includes the steps: setting corresponding retention time according to different application layer protocols; setting the corresponding retention time as the retention time of connection according to the application layer protocol of a data packet by an NAT device when the NAT device establishes connection. The method and the device are mainly applied to the connection establishing process of the NAT device.
Description
Technical field
The present invention relates to communication technical field, particularly relate to method to set up and device that a kind of NAT connects the retention time.
Background technology
At present, end is distributed in global ip v4 (Internet Protocol version 4, internet protocol version four) address and IPv4 address, Asia-Pacific, and the whole world is faced with the problem of IPv4 address shortage.In order to alleviate the problem of shortage of ip address, NAT (Network Address Translation can be utilized, network address translation) equipment makes multiple private IP address share a public network IP address, thus realize the function of private network access global network.
NAT is the process of another IP address by the IP address transition in IP data packet head.NAT technology allows the single public ip address of multiple IP nodes sharing, but not distributes independent public ip address for each network equipment.In other words, provide a kind of permission one group of unregistered IP address is used for internal network communication and another group public ip address is used for the standard of outside or common communication.Concrete, when the application in certain client in private network sends access the Internet request, NAT device can receive this access the Internet request, NAT device by the IP address of this client and port mapping to the IP address of public network and port, create the back mapping entry of this application, this back mapping entry is used for the response getting back to private network to redirect to correct node, and then the connection between the application of setting up in the client in private network and public network server.If mapped specific entry is not used in retention time section, then this map entry can be eliminated, and the application namely in client and the connection between public network server are disconnected, and it is aging that this phenomenon becomes NAT.
Current NAT device is that the packet of different transport layer protocol arranges the different retention times respectively, but has the identical retention time due to the packet of same transport layer protocol, makes the business experience of user bad.Such as, if need the map entry of business online for a long time not used by communication in retention time section, this map entry can be eliminated, and the connection namely for the business datum transmitting this business is disconnected, when this service needed and internet communication, again must be connected by NAT device, there will be service disconnection phenomenon, and for short period service, after business rolls off the production line, map entry still exists, and takies the resource in NAT device, can reduce the resource utilization of NAT device.
Summary of the invention
Embodiments of the invention provide a kind of NAT to connect the method to set up of retention time and device, can meet the demand of different business to the connection service time in NAT, improve the business experience of user.
For achieving the above object, embodiments of the invention adopt following technical scheme:
NAT connects the method to set up of retention time, comprising:
According to different application layer protocols, the corresponding retention time is set;
When NAT device connects, the corresponding retention time is set to the retention time of this connection by NAT device according to the application layer protocol of packet.
NAT connects the setting device of retention time, comprising:
Retention time setting unit, for arranging the corresponding retention time according to different application layer protocols;
Connect setting unit, be arranged in NAT device, for when NAT device connects, according to the application layer protocol of packet, is set to the retention time of this connection the corresponding retention time.
The NAT that the embodiment of the present invention provides connects method to set up and the device of retention time, according to different application layer protocols, the corresponding retention time is set, when business is carried out in often kind of application, the time of needs is different, so also different according to the retention time of different application layer protocols setting, when NAT device connects, the corresponding retention time is set to the retention time of this connection by NAT device according to the application layer protocol of packet, thus make often kind to apply be connected with the respective retention time, meet the demand of different application to service time, improve the business experience of user.
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 the method to set up flow chart that in the embodiment of the present invention, a kind of NAT connects the retention time;
Fig. 2 is the method to set up flow chart that in the embodiment of the present invention, another kind of NAT connects the retention time;
Fig. 3 is the structural representation of a kind of packet in the embodiment of the present invention;
Fig. 4 is a kind of structural representation inserting the packet of TLV structure in the embodiment of the present invention;
Fig. 5 is the method to set up flow chart that in the embodiment of the present invention, another kind of NAT connects the retention time;
Fig. 6 is the method to set up flow chart that in the embodiment of the present invention, another kind of NAT connects the retention time;
Fig. 7 is the annexation schematic diagram that the application in the embodiment of the present invention in client is set up by NAT device and public network;
Fig. 8 is the setting device composition schematic diagram that in the embodiment of the present invention, a kind of NAT connects the retention time;
Fig. 9 is a kind of communication system composition schematic diagram in the embodiment of the present 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.
One embodiment of the invention provides the method to set up that a kind of NAT connects the retention time, and as shown in Figure 1, the method comprises:
101, be set according to different application layer protocols the corresponding retention time.
Wherein, different application layer protocols represents the application type of different packets, and the retention time in this step is before connecting, and NAT device is the retention time that the connection of often kind of application is arranged in advance.
102, when NAT device connects, the corresponding retention time is set to the retention time of this connection by NAT device according to the application layer protocol of packet.
Wherein, the connection that NAT device is set up is application in client and the connection between public network service device, NAT device is by the application layer protocol of identification data bag, find retention time corresponding to this application layer protocol in conjunction with above-mentioned steps 101, is set to the retention time of this connection the retention time corresponding for this application layer protocol.
The NAT that the embodiment of the present invention provides connects the method to set up of retention time, according to different application layer protocols, the corresponding retention time is set, when business is carried out in often kind of application, the time of needs is different, so also different according to the retention time of different application layer protocols setting, when NAT device connects, the corresponding retention time is set to the retention time of this connection by NAT device according to the application layer protocol of packet, thus make often kind to apply be connected with the respective retention time, meet the demand of different application to service time, improve the business experience of user.
In a kind of implementation of the present invention, the corresponding retention time is set according to different application layer protocols and comprises: when application layer protocol be NAT device can identify agreement time, NAT device arranges the corresponding retention time according to different application layer protocols;
When NAT device connects, the corresponding retention time is set to the retention time of this connection by NAT device process according to the application layer protocol of packet comprises: when NAT device connects, if NAT device identifies the application layer protocol of packet, is then set to the retention time of this connection the retention time corresponding with this application layer protocol.
In another kind of implementation of the present invention, arrange the corresponding retention time according to different application layer protocols also to comprise: client obtains the application layer protocol of the packet of initiation business, when judge this application layer protocol be NAT device can not identify agreement time, client initiating the retention time that in n packet, insertion is corresponding with the application layer protocol of this packet before business, n be more than or equal to 1 integer.
When NAT device connects, the corresponding retention time is set to the retention time of this connection by NAT device process according to the application layer protocol of packet also comprises: when NAT device connects, if NAT device identifies the retention time of inserting in packet, is then set to the retention time of this connection the retention time of inserting in this packet.
What deserves to be explained is, the retention time corresponding with the application layer protocol of this packet of inserting in first packet of business is initiated in NAT device identification, just can be set for connection the retention time, but owing to there will be the phenomenon of data-bag lost in the process of data packet delivery, so all insert the above-mentioned retention time corresponding with the application layer protocol of this packet in a front n packet, to guarantee that this packet can be passed to NAT device.Wherein, n be greater than 1 integer, but can not arrange excessive, be traditionally arranged to be 3.
Another embodiment of the present invention provides the method to set up that a kind of NAT connects the retention time, and as shown in Figure 2, the method comprises:
201, client obtains the application layer protocol of the packet of initiation business, when judge this application layer protocol be NAT device can not identify agreement time, client is inserted and is expanded indication field after the IP packet header of initiating n packet before business, before application layer protocol packet header.
Wherein, n be more than or equal to 1 integer, be traditionally arranged to be 3, expansion indication field is inserted in front 3 packets, thus avoid causing the packet inserting expansion indication field can not be sent to the problem of NAT device due to data-bag lost, expansion indication field comprises retention time identification marking and the retention time corresponding with the application layer protocol of this packet.Such as, expansion indication field can be TLV structure, the meaning of TLV is exactly Type type, Length length, Value value, in the present embodiment, supposes that Type=20 represents in this packet and inserts the retention time, the connect hours that Value=120 determines application belonging to this packet second is 120 seconds, the length of Length representative data bag.
What deserves to be explained is, the insertion position of expansion indication field can between the IP packet header of packet and transport layer protocol packet header, also can between transport layer protocol packet header and application layer protocol packet header.The structure of packet as shown in Figure 3, insert the packet structure of TLV structure as shown in Figure 4, in Fig. 4 with the transport layer protocol of packet for TCP (Transmission Control Protocol, transmission control protocol) agreement, TLV structure between TCP packet header and application layer protocol packet header for example is described.
202, when NAT device connects, if NAT device identifies the expansion indication field inserted in packet, is then set to the retention time of this connection the retention time in this expansion indication field.
203, the expansion indication field inserted in packet removes by NAT device from packet.
What deserves to be explained is, after the connection of applying belonging to this packet at NAT device sets the retention time, removing the expansion indication field inserted in packet is have an impact to the data of this application to prevent.
Another embodiment of the present invention provides the method to set up that a kind of NAT connects the retention time, and as shown in Figure 5, the method comprises:
301, client obtains the application layer protocol of the packet of initiation business, when judge this application layer protocol be NAT device can not identify agreement time, the retention time that the optional Option field insertion of client in the IP packet header of initiating n packet before business is corresponding with the application layer protocol of this packet.
What deserves to be explained is, optional Opition field is the Optional Field in the IP packet header being arranged in packet, other equipment except NAT device generally do not read this field, or have read this field also not process it, can not have an impact to the data of this application, and insert in optional Option field the structure that the retention time can not change packet.
302, when NAT device connects, if NAT device identifies the retention time of inserting in packet, is then set to the retention time of this connection the retention time of inserting in this packet.
What deserves to be explained is, owing to inserting in optional Option field the structure that the retention time can not change packet, also can not have an impact to the data of application, institute thinks this connection after arranging the retention time without the need to being removed the retention time of insertion in above-mentioned steps 301.
Another embodiment of the present invention provides the method to set up that a kind of NAT specifically connects the retention time, and as shown in Figure 6, the method comprises:
401, NAT device arranges the retention time of acquiescence according to different transport layer protocols.
Wherein, transport layer protocol comprises Transmission Control Protocol and UDP (User Datagram Protocol, User Datagram Protoco (UDP)) agreement etc., NAT device is arrange the unified retention time respectively based on the connection of Transmission Control Protocol or udp protocol, such as, connection based on Transmission Control Protocol is 600 seconds, and the connection based on UDP is 60 seconds.
402, for the application layer protocol that NAT device can identify, NAT device arranges the corresponding retention time according to different application layer protocols.
What deserves to be explained is, for discernible application layer protocol, NAT device arranges the different retention times respectively to the connection based on often kind of application layer protocol, and this retention time arranges the time kept according to each application actual needs in advance.Such as, to based on SMTP (Simple Mail Transfer Protocol, simple message transfer protocol (SMTP)) to arrange the retention time be 86400 seconds (being about 24 hours) for the connection of agreement, the retention time arranged the connection based on HTTP (Hyper Text Transfer Protocol, HTML (Hypertext Markup Language)) agreement is 21600 seconds (6 hours).
403, client obtains the application layer protocol of the packet of initiation business, when judge this application layer protocol be NAT device can not identify agreement time, client is initiating the retention time that in n packet, insertion is corresponding with the application layer protocol of this packet before business.
Wherein, n be greater than 1 integer, inserting the method for retention time can be the method that above-mentioned steps 201 or step 301 describe.
It should be noted that, the mode of mounting software in the client can be passed through, client is made to have application-level protocol identification function, because the software in client can often be upgraded, so the application layer protocol that the application layer protocol type that client can identify can identify than NAT device is many, and client stores the application layer protocol type that NAT device can identify in advance, if the client application layer protocol identified in packet is the agreement that NAT device can identify, then client does not process this packet; If client identifies the application layer protocol type of packet, but this application layer protocol is the agreement that NAT device can not identify, then insert the retention time corresponding with the application layer protocol of this packet in the packet; If client can not identify the application layer protocol type of packet, then this packet is not processed.
What deserves to be explained is, above-mentioned steps 402,403 is belonging to different application, connect the process arranging the retention time in advance, do not limit the execution sequence of step 402 and step 403 in the present embodiment, because executive agent is different, also can perform sequentially so can perform simultaneously, be described with step 403 to perform step 402 simultaneously in Fig. 7.
Below for user initiate business time, the process that the application in client is connected by NAT device and public network.
404, NAT device identifies packet.
Wherein, NAT device carries out identification to packet and comprises: whether insert the retention time in the transport layer protocol type of identification data bag, application layer protocol type and packet.NAT device is once recognize the retention time in packet, then perform following step 405 to 406, and for not inserting the packet of retention time, the transport layer protocol type of the first identification data bag of NAT device, the application layer protocol type of identification data bag again, if identify the application layer protocol type of packet, then perform following step 407 to 408.
405, NAT device identifies the retention time of inserting in packet.
406, the retention time of inserting in this packet is set to the retention time of this connection by NAT device.
Such as, off-gauge application is applied as belonging to this packet, NAT device None-identified goes out the application layer protocol type of its packet, this is applied as short period service, the retention time needed is 120 seconds, it is 120 seconds that client inserts the retention time in advance in front 3 packets of this application, then the retention time connected belonging to this application is set to 120 seconds by NAT device.
What deserves to be explained is, if insert the method for retention time be the IP packet header of client n packet before the business of initiation after, insert before application layer protocol packet header and expand indication field, then for connection set the retention time after also need expansion indication field to remove from packet.
407, NAT device identifies the application layer protocol type of packet.
408, the retention time corresponding with the application layer protocol of this packet is set to the retention time of this connection by NAT device.
Such as, the type that NAT device identifies the application layer protocol of packet is smtp protocol, is then set to 86400 seconds retention times (24 hours) that in above-mentioned steps 402, smtp protocol is corresponding the retention time of this connection.
In addition, if what deserves to be explained is, NAT device identifies the transport layer protocol type of packet, but unidentified go out the application layer protocol type of packet, and from packet, not recognizing the retention time, then the retention time corresponding with the transport layer protocol of this packet is set to the retention time of this connection by NAT device.
Such as, the transport layer protocol that NAT device identifies this packet is UDP, but application layer protocol not identifiable design, and unidentified to the retention time, then retention time of this connection is the default time that arranges according to udp protocol in above-mentioned steps 401 60 seconds.
A kind of annexation that application in client is set up by NAT device and public network as shown in Figure 7, illustrate NAT in above-described embodiment below in conjunction with Fig. 7 and connect the method to set up of retention time, in Fig. 7, client 1 and client 2 all access public network by NAT device, client 1 runs application 1 and application 2 simultaneously, and client 2 runs application 3.Suppose the application that application 1 can not identify for NAT device, namely NAT device can not identify this application initiate business time packet in application layer protocol, but client inserts the retention time in n packet before initiation business, it is 120 seconds with the retention time corresponding to the application layer protocol of this packet; Application 2 for standard application, NAT device can identify this application initiation business time packet in application layer protocol be smtp protocol, NAT device is 846000 seconds (being about 24 hours) according to the retention time that this application layer protocol is arranged; The application that application 3 can not identify for NAT device, namely application layer protocol when NAT device can not identify that business is initiated in this application in a front n packet, the retention time is not inserted in packet yet, but the transport layer protocol that can identify in packet is udp protocol, and NAT device is 60 seconds according to the retention time that udp protocol is arranged.
When user initiates business, NAT device is the retention time that the connection 1 of application 1 correspondence is arranged is 120 seconds retention times of inserting in packet; NAT device is the retention time that the connection 2 of application 2 correspondence is arranged is 846000 seconds retention times (being about 24 hours) that the application layer protocol of packet is corresponding; NAT device is the retention time that the connection 3 of application 3 correspondence is arranged is 60 seconds retention times that the transport layer protocol of packet is corresponding.
NAT provided by the invention connects the method to set up of retention time, for the application layer protocol that NAT device can identify, arranges the corresponding retention time, thus meet the demand of different application to service time according to different application layer protocols; For the application layer protocol that NAT device can not identify, client inserts the retention time corresponding with the application layer protocol of this packet in n packet before the business of initiation, thus make NAT device be that the connection of different application arranges the retention time required separately, and the present invention is with good expansibility, can constantly increase new application identification.Compared with prior art, the present invention is that the connection of different application arranges the different retention times, for the connection of long-term business arranges the longer retention time, improves Consumer's Experience, also accelerate the quick aging of the connection of short period service simultaneously, improve the resource utilization of NAT device.
Another embodiment of the present invention provides a kind of NAT and connects the setting device of retention time, and as shown in Figure 8, this device comprises: retention time setting unit 41 be connected setting unit 42.
Retention time setting unit 41, for arranging the corresponding retention time according to different application layer protocols.
Connect setting unit 42, be arranged in NAT device, for when NAT device connects, according to the application layer protocol of packet, is set to the retention time of this connection the corresponding retention time.
As shown in Figure 9, this application of installation is in a kind of communication system, this communication system comprises NAT device and at least one client, retention time setting unit 41 also comprises: the first retention time being arranged in NAT device arranges subelement 411 and arranges subelement 412 with the second retention time being arranged in client, and the setting device of this NAT retention time also comprises: what be arranged in NAT device removes unit 43.
First retention time arranged subelement 411, for when application layer protocol be NAT device can identify agreement time, according to different application layer protocols, the corresponding retention time is set.
Connect setting unit 42, specifically for when NAT device connects, if NAT device identifies the application layer protocol of packet, then connect the retention time that the retention time corresponding with this application layer protocol is set to this connection by setting unit 42.
Second retention time arranged subelement 412, for obtaining the application layer protocol of the packet of initiation business, when judge this application layer protocol be NAT device can not identify agreement time, initiating the retention time that in n packet, insertion is corresponding with the application layer protocol of this packet before business, n be more than or equal to 1 integer.
Connect setting unit 42, specifically also for when NAT device connects, if NAT device identifies the retention time of inserting in packet, then connect the retention time that the retention time of inserting in this packet is set to this connection by setting unit 42.
Second retention time arranged subelement 412, insert expansion indication field after IP packet header specifically for n packet before the business of initiation, before application layer protocol packet header, expansion indication field comprises retention time identification marking and the retention time corresponding with the application layer protocol of this packet;
Or, the retention time that the optional Option field insertion in the IP packet header of initiating n packet before business is corresponding with the application layer protocol of this packet.
What be arranged in NAT device removes unit 43, if insert expansion indication field after the IP packet header for client n packet before the business of initiation, before application layer protocol packet header, then after the retention time that the retention time of inserting in this packet is set to this connection, the expansion indication field inserted in packet and retention time are removed from packet.
The NAT that the embodiment of the present invention provides connects the setting device of retention time, retention time setting unit arranges the corresponding retention time according to different application layer protocols, when business is carried out in often kind of application, the time of needs is different, so also different according to the retention time of different application layer protocols setting, when connecting in NAT device, connect the corresponding retention time is set to this connection by setting unit retention time according to the application layer protocol of packet, thus make often kind to apply be connected with the respective retention time, meet the demand of different application to service time, improve the business experience of user.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required common hardware by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in the storage medium that can read, as the floppy disk of computer, hard disk or CD etc., comprise some instructions and perform method described in each embodiment of the present invention in order to make a computer equipment (can be personal computer, server, or the network equipment etc.).
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.
Claims (10)
1. network address translation NAT connects the method to set up of retention time, it is characterized in that, comprising:
According to different application layer protocols, the corresponding retention time is set;
When NAT device connects, the corresponding retention time is set to the retention time of this connection by NAT device according to the application layer protocol of packet.
2. NAT according to claim 1 connects the method to set up of retention time, it is characterized in that,
Describedly the corresponding retention time be set according to different application layer protocols comprise:
When application layer protocol be described NAT device can identify agreement time, described NAT device arranges the corresponding retention time according to different application layer protocols;
Described when NAT device connects, the corresponding retention time is set to the retention time of this connection by NAT device process according to the application layer protocol of packet comprises:
When NAT device connects, if NAT device identifies the application layer protocol of packet, is then set to the retention time of this connection the retention time corresponding with this application layer protocol.
3. NAT according to claim 2 connects the method to set up of retention time, it is characterized in that,
Describedly the corresponding retention time be set according to different application layer protocols also comprise:
Client obtains the application layer protocol of the packet of initiation business, when judge this application layer protocol be described NAT device can not identify agreement time, client initiating the retention time that in n packet, insertion is corresponding with the application layer protocol of this packet before business, n be more than or equal to 1 integer;
Described when NAT device connects, the corresponding retention time is set to the retention time of this connection by NAT device process according to the application layer protocol of packet also comprises:
When NAT device connects, if NAT device identifies the retention time of inserting in packet, is then set to the retention time of this connection the retention time of inserting in this packet.
4. NAT according to claim 3 connects the method to set up of retention time, it is characterized in that,
Described client is inserted the retention time process corresponding with the application layer protocol of this packet in n packet and is comprised before initiation business:
Insert expansion indication field after the IP packet header of client n packet before the business of initiation, before application layer protocol packet header, described expansion indication field comprises retention time identification marking and the retention time corresponding with the application layer protocol of this packet;
Or the optional Option field in the IP packet header of client n packet before the business of initiation inserts the retention time corresponding with the application layer protocol of this packet.
5. NAT according to claim 4 connects the method to set up of retention time, it is characterized in that,
If insert expansion indication field after the IP packet header of client n packet before the business of initiation, before application layer protocol packet header, then, after the described retention time that the retention time of inserting in this packet is set to this connection, also comprise:
The expansion indication field inserted in packet removes by NAT device from packet.
6. NAT connects the setting device of retention time, it is characterized in that, comprising:
Retention time setting unit, for arranging the corresponding retention time according to different application layer protocols;
Connect setting unit, be arranged in NAT device, for when NAT device connects, according to the application layer protocol of packet, is set to the retention time of this connection the corresponding retention time.
7. device according to claim 6, is characterized in that,
Described retention time setting unit comprises: the first retention time being arranged in NAT device arranges subelement, for when application layer protocol be described NAT device can identify agreement time, according to different application layer protocols, the corresponding retention time is set;
Described connection setting unit, specifically for when NAT device connects, if NAT device identifies the application layer protocol of packet, then the retention time corresponding with this application layer protocol is set to the retention time of this connection by described connection setting unit.
8. device according to claim 7, is characterized in that,
Described retention time setting unit also comprises: the second retention time being arranged in client arranges subelement, for obtaining the application layer protocol of the packet of initiation business, when judge this application layer protocol be described NAT device can not identify agreement time, initiating the retention time that in n packet, insertion is corresponding with the application layer protocol of this packet before business, n be more than or equal to 1 integer;
Described connection setting unit, specifically also for when NAT device connects, if NAT device identifies the retention time of inserting in packet, then the retention time of inserting in this packet is set to the retention time of this connection by described connection setting unit.
9. device according to claim 8, is characterized in that,
Described second retention time arranges subelement, insert expansion indication field after IP packet header specifically for n packet before the business of initiation, before application layer protocol packet header, described expansion indication field comprises retention time identification marking and the retention time corresponding with the application layer protocol of this packet;
Or, the retention time that the optional Option field insertion in the IP packet header of initiating n packet before business is corresponding with the application layer protocol of this packet.
10. device according to claim 9, is characterized in that, described device also comprises:
What be arranged in NAT device removes unit, if insert expansion indication field after the IP packet header for client n packet before the business of initiation, before application layer protocol packet header, then after the described retention time that the retention time of inserting in this packet is set to this connection, the expansion indication field inserted in packet is removed from packet.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410596750.XA CN104333613B (en) | 2014-10-29 | 2014-10-29 | A kind of method to set up and device of NAT connection retention times |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410596750.XA CN104333613B (en) | 2014-10-29 | 2014-10-29 | A kind of method to set up and device of NAT connection retention times |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104333613A true CN104333613A (en) | 2015-02-04 |
CN104333613B CN104333613B (en) | 2018-03-30 |
Family
ID=52408261
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410596750.XA Active CN104333613B (en) | 2014-10-29 | 2014-10-29 | A kind of method to set up and device of NAT connection retention times |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104333613B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109962988A (en) * | 2017-12-25 | 2019-07-02 | 中国电信股份有限公司 | For configuring the method, system and NAT device of NAT aging duration |
CN110691148A (en) * | 2018-07-05 | 2020-01-14 | 中国移动通信有限公司研究院 | Method, device, equipment and storage medium for determining NAT (network Address translation) aging time |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101631377A (en) * | 2009-07-30 | 2010-01-20 | 中兴通讯股份有限公司 | Terminal sleeping method and terminal |
WO2010072953A1 (en) * | 2008-12-23 | 2010-07-01 | France Telecom | System for conveying an ipv4 data packet |
CN103561130A (en) * | 2013-11-06 | 2014-02-05 | 北京神州绿盟信息安全科技股份有限公司 | Network address translation device and method suitable for multiple application layer protocols |
-
2014
- 2014-10-29 CN CN201410596750.XA patent/CN104333613B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010072953A1 (en) * | 2008-12-23 | 2010-07-01 | France Telecom | System for conveying an ipv4 data packet |
CN101631377A (en) * | 2009-07-30 | 2010-01-20 | 中兴通讯股份有限公司 | Terminal sleeping method and terminal |
CN103561130A (en) * | 2013-11-06 | 2014-02-05 | 北京神州绿盟信息安全科技股份有限公司 | Network address translation device and method suitable for multiple application layer protocols |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109962988A (en) * | 2017-12-25 | 2019-07-02 | 中国电信股份有限公司 | For configuring the method, system and NAT device of NAT aging duration |
CN109962988B (en) * | 2017-12-25 | 2022-01-11 | 中国电信股份有限公司 | Method and system for configuring NAT (network Address translation) aging duration and NAT equipment |
CN110691148A (en) * | 2018-07-05 | 2020-01-14 | 中国移动通信有限公司研究院 | Method, device, equipment and storage medium for determining NAT (network Address translation) aging time |
CN110691148B (en) * | 2018-07-05 | 2022-04-29 | 中国移动通信有限公司研究院 | Method, device, equipment and storage medium for determining NAT (network Address translation) aging time |
Also Published As
Publication number | Publication date |
---|---|
CN104333613B (en) | 2018-03-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3186930B1 (en) | Relay optimization using software defined networking | |
US9338225B2 (en) | Forwarding policies on a virtual service network | |
US7245622B2 (en) | Allowing IPv4 clients to communicate over an IPv6 network when behind a network address translator with reduced server workload | |
US8892768B2 (en) | Load balancing apparatus and load balancing method | |
AU2015267341B2 (en) | Network packet encapsulation and routing | |
US10574570B2 (en) | Communication processing method and apparatus | |
CN102098272B (en) | Protocol identification method, device and system | |
CN1988508A (en) | Separate sheet message transmission method and communication system and tunnel device | |
CA2884683C (en) | Split network address translation | |
US8606937B2 (en) | Information providing method, home gateway, and home network system | |
CN102547553B (en) | Method, system and device for accessing service based on wireless application protocol (WAP) | |
CN115150327A (en) | Interface setting method, device, equipment and medium | |
CN104333613A (en) | NAT (network address translator) connection retention time setting method and device | |
CN104735073A (en) | IPv4-IPv6 transitional protocol dispatching method and device | |
CN111541797A (en) | Eco-based IPV6 implementation method | |
CN103036789A (en) | Message sending method, message sending device and network output equipment | |
CN108737454B (en) | Method and equipment for information synchronization between virtual gateway servers | |
CN105281944A (en) | Method for setting network protocol address and service management system | |
CN104468696A (en) | Method, server and device for performing point-to-point connection | |
CN110636146B (en) | User address allocation method and device | |
US9634987B2 (en) | Obtaining a MAC address from an external source | |
JP2014082624A (en) | Proxy device and relay device | |
WO2015184979A1 (en) | Methods and devices for processing packet, sending information, and receiving information | |
CN108156150A (en) | A kind of data transmission method and device | |
CN113114801B (en) | Method, device and equipment for establishing IPv4-in-IPv6 tunnel |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |