CN103297461B - NAT session keepalive duration method to set up and client and server - Google Patents

NAT session keepalive duration method to set up and client and server Download PDF

Info

Publication number
CN103297461B
CN103297461B CN201210048864.1A CN201210048864A CN103297461B CN 103297461 B CN103297461 B CN 103297461B CN 201210048864 A CN201210048864 A CN 201210048864A CN 103297461 B CN103297461 B CN 103297461B
Authority
CN
China
Prior art keywords
duration
qos grade
keep
client
server
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.)
Active
Application number
CN201210048864.1A
Other languages
Chinese (zh)
Other versions
CN103297461A (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.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201210048864.1A priority Critical patent/CN103297461B/en
Publication of CN103297461A publication Critical patent/CN103297461A/en
Application granted granted Critical
Publication of CN103297461B publication Critical patent/CN103297461B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a kind of NAT session keepalive duration method to set up and has realized the client and server of the method. Can comprise according to the NAT session keepalive duration method to set up of the application's embodiment: client is obtained QoS grade according to user and/or business information; User end to server sends described QoS grade; Server receives described request message, according to described QoS classification keep-alive duration; And server sends described keep-alive duration to client. According to the application's method and apparatus, can NAT session keepalive duration be set according to user and business, make NAT resource be able to reasonable distribution and release, thereby improve resource utilization.

Description

NAT session keepalive duration method to set up and client and server
Technical field
The visitor that the application relates to NAT session keepalive duration method to set up and realizes the methodFamily end and server.
Background technology
NetworkAddressTranslation (network address translation) is called for short NAT, isAn ietf standard, can be mapped to another IP address field by an IP address field, fromAnd for end host provides transparent route, to solve the in short supply and network of current public network IP addressSafety problem. But user's public network IP address and the private network of record keep-alive in NAT deviceThe map information of IP address has certain time to live, when in time to live without new pleaseWhile asking message, NAT session will be released, and the message of server active push is by nothing afterwardsMethod is delivered to client, affects user and experiences.
In order to address the above problem, a kind of mode is the continual transmission heartbeat of clientMessage, carrys out keep-alive user's NAT session information, has made to use the privately owned of NAT deviceBetween main frame in TCP/IP network and server, keep long connection, with ensure client andThe smooth and easy of network security between server and data passes through. But, heartbeat message continueConstantly send, seriously consumed radio channel resource, reduced wireless resource utility efficiency.
A kind of mode of avoiding constantly sending heartbeat message is to carry out NAT based on PCPThe scheme of session keepalive. PCP (PortControlProtocol) is the use of ietf definitionBetween PCP client and PCP server (as NAT), carry out the agreement of session keepalive.Its core is that PCP client will need IP address, port and the keepalive period etc. of keep-aliveInformation is sent to PCP server, and server is by the public network IP address, port and the association that distributeThe information such as the keepalive period after business are back to client, and client sends keep-alive message afterwardsCarry out session keepalive. According to this mode, although avoided constant transmission heartbeat to disappearBreath, but, because PCP server generally arranges keep-alive week according to the demand of clientPhase, easily cause the waste of IP address resource.
Summary of the invention
The wasting of resources arranging in order to solve the existing NAT session keepalive duration based on PCPProblem, the application has proposed a kind of NAT session keepalive duration method to set up and realization shouldThe client and server of method.
According to the application aspect, the setting of a kind of NAT session keepalive duration is proposedMethod, can comprise: client is obtained QoS grade according to user and/or business information; VisitorFamily end sends described QoS grade to server; Server receives described request message, rootAccording to described QoS classification NAT session keepalive duration; And server is sent out to clientSend described NAT session keepalive duration.
According to another aspect of the application, a kind of client has been proposed, can comprise: QoSGrade acquisition module, obtains QoS grade according to user and/or business information; Send mouldPiece, sends described QoS grade; And receiver module, receive keep-alive duration information.
According to another aspect of the application, a kind of server has been proposed, can comprise: connectReceive module, receive the message that comprises QoS grade; Keep-alive duration determination module, according to instituteState QoS grade, determine NAT session keepalive duration; And sending module, described in transmissionNAT session keepalive duration.
By the application's method and apparatus, can be according to different user and/or business concreteCharacteristic arranges NAT session keepalive duration, thereby makes NAT resource be able to rationally divideJoin and release, improve resource utilization.
Brief description of the drawings
Fig. 1 is the NAT session keepalive duration setting party according to an embodiment of the applicationThe flow chart of method;
Fig. 2 is according to the block diagram of the client device of an embodiment of the application; And
Fig. 3 is according to the block diagram of the server apparatus of an embodiment of the application.
Detailed description of the invention
With reference to the accompanying drawings, the application's embodiment is elaborated.
Fig. 1 is the NAT session keepalive duration setting party according to an embodiment of the applicationThe flow chart of method. As shown in Figure 1, at step S1002, client can be according to user or industryThe combination of business information or user and business information, obtains QoS grade. Then in stepRapid S1004, client can send the QoS grade of obtaining to server. In stepS1006, server receives the request message that client sends, and comes really according to QoS gradeDetermine keep-alive duration. Afterwards, at step S1008, server long hair during by determined keep-aliveGive client.
By the method, can arrange according to the concrete property of different user and/or businessNAT session keepalive duration, thus make NAT resource be able to reasonable distribution and release, carryHigh resource utilization.
According to the application's specific embodiments, for user, business etc. for differentThe keepalive period that information distribution is different can configure QoS grade question blank in client,Thereby it is right to search according to the combination of user, business information or user and business informationThe QoS grade of answering. This QoS grade question blank can be configured by operator, and can carry out spiritLive and revise.
Be appreciated that and both can consider two factors of user and business simultaneously, also can examine separatelyConsider one of them factor of user and business, after will be elaborated.
Be appreciated that client can obtain business information by various existing modes, for example,Carry out business detection by DPI, or increase other network element (for example, PCRF) and carry outBusiness information reports.
According to a specific embodiments, when client has been obtained after QoS grade, can be byThe QoS grade mark position increasing in the request message that its insertion will send to server,Send QoS grade by request message to server.
According to a specific embodiments, in server, may be configured with keep-alive duration question blank,Can, according to QoS grade, determine keep-alive duration by inquiry keep-alive duration question blank. WithQoS grade question blank is similar, and keep-alive duration question blank can be configured by operator, and can enterRow is amendment flexibly. As a specific embodiment, can be the setting of higher QoS grade higherKeep-alive duration, like this, the in the situation that of resource anxiety, can be preferably high QoS gradeUser or business service is provided.
Describe how according to user and business information, keep-alive duration to be set in detail below.
In a specific embodiment, in client, configure QoS grade question blank and can beOnly carry out corresponding QoS grade according to business. For example, for close friend's always online class application,Originally need to grow online due to the application of always online class, and can be it and keep long and connect,And reduce the heartbeat message transmission frequency of such application, reduce its taking Radio Resource.Therefore, can higher corresponding QoS grade be set for this class application, thereby configuration is longerKeep-alive duration. Again for example, for application such as uncooperative application or viruses, can arrangeLower QoS grade, server can be refused such application application.
In another specific embodiment, in client, configure QoS grade question blank passableOnly to carry out corresponding QoS grade according to user. For example, can provide higher for VIP userPriority, the QoS grade of differentiation is provided according to user gradation. Tight in resourceZhang Shi, for the user of high QoS grade provides service, and refuses low QoS class userPCP request.
Determined after keep-alive duration when server, send it to client, client canAccording to the keep-alive duration receiving, send NAT session keepalive message.
Be appreciated that NAT session keepalive message can with before send comprise QoS pleaseAsk message identical. Server meeting maintenance customer session mapping relations, within a certain period of time (Time-out time) do not have data to send, can delete this mapping table, therefore user just cannotAccess service (as access internet), keepalive period is the overtime of these mapping relationsTime, therefore, as long as receive message in this time-out time, this session will retain again.
Next with reference to Fig. 2, describe according to the client device of the application's embodiment.
As shown in Figure 2, client device 20 can comprise QoS grade acquisition module 202 HesSending module 204. QoS grade acquisition module 202 can be according to user and/or business informationObtain QoS grade, and sending module 204 can send obtained QoS grade.
According to an embodiment, QoS grade acquisition module may be configured with QoS grade and looks intoAsk table, QoS grade acquisition module is according to user and/or business information, described in inquiring aboutQoS grade question blank obtains QoS grade.
According to an embodiment, in the request message of client, can increase QoS etc.Level flag bit, sending module sends the request message that has comprised QoS grade.
According to an embodiment, client can further comprise receiver module (not shown),Receive keep-alive duration information. Sending module can, according to received keep-alive duration information, be sent outSend NAT session keepalive message.
Next with reference to Fig. 3, describe according to the server apparatus of the application's embodiment.
As shown in the figure, server 30 can comprise that receiver module 302, keep-alive duration determine mouldPiece 304 and sending module 306. Receiver module 302 can receive and comprise QoS gradeMessage. Keep-alive duration determination module 304 can, according to QoS grade, be determined keep-alive duration,And sending module 306 can send described keep-alive duration.
According to an embodiment, keep-alive duration determination module may be configured with keep-alive duration and looks intoAsk table, keep-alive duration determination module can be according to QoS grade, when inquiring about described keep-aliveLong question blank is determined keep-alive duration.
With reference to accompanying drawing, the application's exemplary embodiment is described above. ThisThose skilled in the art should be appreciated that, above-mentioned embodiment be only used to explanation object andThe example of lifting, instead of be used for limiting. All instructions in the application and right are wantedAsk any amendment of doing under protection domain, be equal to replacement etc., all should be included in the applicationIn claimed scope.

Claims (11)

1.NAT session keepalive duration method to set up, comprising:
Client is obtained QoS grade according to user and/or business information;
User end to server sends described QoS grade;
Server receives described request message, protects according to described QoS classification NAT sessionDuration alive; And
Server sends described NAT session keepalive duration to client.
2. the method for claim 1, wherein client configuration has the inquiry of QoS gradeTable, client is according to user and/or business information, by inquiring about described QoS grade question blankObtain QoS grade.
3. what the method for claim 1, wherein send at user end to server pleaseAsk in message and increase QoS grade mark position, described in sending to server by described request messageQoS grade.
4. the method for claim 1, wherein server disposes the inquiry of keep-alive durationTable, server, according to described QoS grade, is determined by inquiring about described keep-alive duration question blankKeep-alive duration.
5. the method for claim 1, further comprises: client basis receivesDescribed keep-alive duration, sends NAT session keepalive message.
6. client device, comprising:
QoS grade acquisition module, obtains QoS grade according to user and/or business information;
Sending module, sends the request message that comprises described QoS grade; And
Receiver module, long letter while receiving according to the NAT session keepalive of described QoS classificationBreath.
7. client device as claimed in claim 6, wherein, described QoS grade is obtained mouldPiece comprises QoS grade question blank, and described QoS grade acquisition module is according to user and/or businessInformation, obtains QoS grade by inquiring about described QoS grade question blank.
8. client device as claimed in claim 6, wherein, described sending module is according to instituteState keep-alive duration information, send NAT session keepalive message.
9. server apparatus, comprising:
Receiver module, receives the message that comprises QoS grade;
Keep-alive duration determination module, according to described QoS grade, while determining NAT session keepaliveLong; And
Sending module, sends described NAT session keepalive duration.
10. server apparatus as claimed in claim 9, wherein, described keep-alive duration is determinedModule comprises keep-alive duration question blank, and described keep-alive duration determination module is according to described QoS grade,Determine keep-alive duration by inquiring about described keep-alive duration question blank.
11.NAT session keepalive duration method to set up, comprising:
Client is obtained QoS grade according to user and/or business information;
User end to server sends a request message, and wherein, the QoS grade of obtaining is included inIn the QoS grade mark position of described request message;
Server receives described request message, according to described QoS classification keep-alive duration;
Server sends described keep-alive duration to client; And
Client, according to the described keep-alive duration receiving, sends NAT session keepalive message.
CN201210048864.1A 2012-02-28 2012-02-28 NAT session keepalive duration method to set up and client and server Active CN103297461B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210048864.1A CN103297461B (en) 2012-02-28 2012-02-28 NAT session keepalive duration method to set up and client and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210048864.1A CN103297461B (en) 2012-02-28 2012-02-28 NAT session keepalive duration method to set up and client and server

Publications (2)

Publication Number Publication Date
CN103297461A CN103297461A (en) 2013-09-11
CN103297461B true CN103297461B (en) 2016-05-25

Family

ID=49097777

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210048864.1A Active CN103297461B (en) 2012-02-28 2012-02-28 NAT session keepalive duration method to set up and client and server

Country Status (1)

Country Link
CN (1) CN103297461B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10374936B2 (en) * 2015-12-30 2019-08-06 Juniper Networks, Inc. Reducing false alarms when using network keep-alive messages
CN107528931B (en) * 2016-06-22 2021-06-18 中兴通讯股份有限公司 IP address self-adaptive keeping method, device and system based on user behavior
US10397085B1 (en) 2016-06-30 2019-08-27 Juniper Networks, Inc. Offloading heartbeat responses message processing to a kernel of a network device
CN107995235A (en) * 2016-10-26 2018-05-04 中国移动通信有限公司研究院 The method and terminal that a kind of keep-alive time determines
CN106789394A (en) * 2016-11-18 2017-05-31 上海斐讯数据通信技术有限公司 A kind of connection server keep Alive Packet control method long and system
CN109962988B (en) * 2017-12-25 2022-01-11 中国电信股份有限公司 Method and system for configuring NAT (network Address translation) aging duration and NAT equipment
CN110691148B (en) * 2018-07-05 2022-04-29 中国移动通信有限公司研究院 Method, device, equipment and storage medium for determining NAT (network Address translation) aging time
CN110381130B (en) * 2019-07-12 2020-05-29 湖南新云网科技有限公司 Keep-alive long connection method, device, communication terminal and storage medium
CN111866107B (en) * 2020-07-10 2023-01-03 杭州叙简科技股份有限公司 Mobile law enforcement instrument keep-alive method according to balance
CN115209478B (en) * 2022-09-16 2022-11-25 南京博鼎资讯科技有限公司 Data processing method for long-term alive-keeping of new-generation mobile communication based on artificial intelligence

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001003400A2 (en) * 1999-07-02 2001-01-11 Nokia Internet Communications Inc. Real-time traffic shaper with garanteed bandwidth for best-effort traffic
CN1581791A (en) * 2003-08-01 2005-02-16 华为技术有限公司 Method for providing reliable transmission service quality in communication network
CN101252457A (en) * 2003-08-01 2008-08-27 华为技术有限公司 Method for providing reliable transmission service quality in communication network
CN101345641A (en) * 2008-08-21 2009-01-14 中兴通讯股份有限公司 Multicast access equipment and method
CN101501663A (en) * 2005-04-22 2009-08-05 思科技术公司 Approach for securely deploying network devices

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001003400A2 (en) * 1999-07-02 2001-01-11 Nokia Internet Communications Inc. Real-time traffic shaper with garanteed bandwidth for best-effort traffic
CN1581791A (en) * 2003-08-01 2005-02-16 华为技术有限公司 Method for providing reliable transmission service quality in communication network
CN101252457A (en) * 2003-08-01 2008-08-27 华为技术有限公司 Method for providing reliable transmission service quality in communication network
CN101501663A (en) * 2005-04-22 2009-08-05 思科技术公司 Approach for securely deploying network devices
CN101345641A (en) * 2008-08-21 2009-01-14 中兴通讯股份有限公司 Multicast access equipment and method

Also Published As

Publication number Publication date
CN103297461A (en) 2013-09-11

Similar Documents

Publication Publication Date Title
CN103297461B (en) NAT session keepalive duration method to set up and client and server
CN103096435B (en) Connect keeping method, device and mobile terminal
CN102238226B (en) Conversation shift on the network centered by content
CN102148878B (en) IP (internet protocol) address allocation method, system and device
CN102845123B (en) Virtual private cloud connection method and tunnel proxy server
CN113206753B (en) Information configuration method and management unit
KR101589239B1 (en) Method and apparatus for packet call setup
RU2010152823A (en) WAYS OF CONTROL OF COMMUNICATION BETWEEN RELAY SERVERS
CN105306612A (en) Method for acquiring identifier of terminal in network and management network element
CN102209302A (en) System and method for realizing information push of mobile terminal
CN103297324A (en) Method for local area network positioning in instantaneous network data transmission
CN102833837B (en) Data communication equipment and data communications method
WO2016070633A1 (en) Network log generation method and device
CN112437168B (en) Intranet penetration system
CN105227403B (en) A kind of OpenStack network flow monitoring methods
CN102014039A (en) Data transmission method and access point
ATE505894T1 (en) MANAGEMENT OF SUBSCRIBER DATA IN COMMUNICATION NETWORKS
CN107592639A (en) A kind of terminal device adds the method and system of router white list
CN102571394A (en) Simple network management protocol (SNMP) network managing method and system
KR101144190B1 (en) System and method for transmitting message
CN104735073A (en) IPv4-IPv6 transitional protocol dispatching method and device
CN103944760A (en) NAT-traversal network managing method and device
CN101106551B (en) Method and device for transferring user number
CN107360095A (en) The implementation method of port forwarding in the router based on client host title
CN102420799B (en) User authentication method, device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant