CN104320498B - Effectively keep NAT channel service methods - Google Patents
Effectively keep NAT channel service methods Download PDFInfo
- Publication number
- CN104320498B CN104320498B CN201410316794.2A CN201410316794A CN104320498B CN 104320498 B CN104320498 B CN 104320498B CN 201410316794 A CN201410316794 A CN 201410316794A CN 104320498 B CN104320498 B CN 104320498B
- Authority
- CN
- China
- Prior art keywords
- nat
- package
- server
- validity
- channel port
- 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
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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention is related to a kind of effectively holding NAT channel service methods, and its method is applied in a network system.This network system includes an at least Intranet device, a NAT network equipments and an at least server, and a plurality of NAT channel ports are configured with NAT network equipments.Intranet device performs the detecting flow process of a NAT passage period of validity via NAT channel port for server, and the period of validity of a NAT passages is obtained with detecting.Then, Intranet device provides the service of network transmission using the period of validity of NAT passages regularly to send package to server via NAT channel port to cause each NAT passages to remain the state of unlatching.
Description
【Technical field】
The present invention is related to a kind of effectively holding NAT channel service methods, espespecially a kind of the NAT detected to be utilized to lead to
Road period of validity, and the method regularly to send package via NAT channel port and keep NAT channel services.
【Background technology】
World-wide web (internet) it is growing so that the application of network and information turned into people's life can not or
A scarce part.However, due to the limited amount of open IP (Public IP) on world-wide web, in order to which number crowd can be supplied as
More computer apparatus are surfed the Net, thus extend a NAT technology (Network Address
Translation;NAT).The computer apparatus that NAT technologies can allow on each private network can be used in conjunction with IPv4or
IPv6 (Internet Protocol version4,6) is the publicly-owned IP (Public IP) of form.Then, the computer of private network
Device links to external network by that can pass through the network equipment with nat feature.
The 1st figure is referred to, is for the system construction drawing of general networking system.As illustrated, network system includes a NAT nets
Network device 10, at least server 12 of an Intranet device 11 and an external network.NAT network equipments 10 have an open IP, example
Such as:140.117.171.181 server 12 has another open IP and Bu Kou, such as:160.112.100.131:1000, and
Intranet device 11 has a private ip and Bu Kou, such as:192.168.0.100:5000.
NAT network equipments 10 can establish NAT passages between Intranet device 11 and server 12, and this NAT passage it
The middle NAT channel port 101 of configuration one (such as:Port1000).This NAT channel port 101 will map to Intranet device 11
Private ip and Bu Kou.When Intranet device 11 will send a registration package 111 to server 12, first registration package 111 is transmitted
To the NAT channel port 101 of NAT network equipments 10.NAT network equipments 10 are the source IP in registration package 111 and Bu Kou (meanings
That is the private ip and Bu Kou of Intranet device 11) be converted to the open IP and Bu Kou of NAT network equipments 10 after, such as
192.168.0.100:5000 are converted to 140.117.171.181:1000, then package 111 will be registered from NAT channel port 101
It is sent to server 12.Conversely, when server 12 has a reaction package 121 to be back to Intranet device 11, first reaction is sealed
Bag 121 is sent to the NAT channel port 101 of NAT network equipments 10.NAT network equipments 10 are the purpose IP in reaction package 121
And after Bu Kou (the publicly-owned IP and Bu Kou that imply that NAT network equipments 10) is converted to the private ip and Bu Kou of Intranet device 11, such as
140.117.171.181:1000 are converted to 192.168.0.100:5000, then reaction package 121 is sent to Intranet device 11.
In this, Intranet device 11 can set up NAT passages via NAT network equipments 10 and carry out network to each other with server 12
Line and package transmission.
Furthermore NAT network equipments 10 all can actively detect whether Intranet device 11 continues to send out via NAT channel port 101
Send package.If after the period of validity of one section of NAT passage, Intranet device 11 does not send any envelope via NAT channel port 101
For bag to server 12, NAT network equipments 10 will actively turn off the NAT passages between Intranet device 11 and server 12, and make
Line between the two interrupts.
Because there is not the numerical benchmark of a fixation NAT passage period of validity, therefore, in the past in order to keep NAT passages
Service, Intranet device 11 continually can only send a test packets to server 12 via NAT channel port 101, such as:Intranet
Device sends test packets to server 12 in 11 every 10 seconds via NAT channel port 101.However, such way, is not only resulted in
The load capacity of server 12, and the test packets that also can frequently be transmitted by these of NAT network equipments 10 occupy part frequency range and
The transmission of authentic data is had influence on, here, totally unfavorable for the running of network system.
【The content of the invention】
The present invention proposes a kind of method for effectively keeping NAT channel services, and it is effectively that its method can detect NAT passages
Time limit, then, appoint as long as the Intranet device under NAT structures is regularly sent within NAT passage period of validity via NAT channel port
To server, the NAT passages corresponding to NAT channel port can keep it turned on and provide the clothes of network transmission one package
Business.
The present invention proposes a kind of method for effectively keeping NAT channel services, and its method can detect the class of NAT structures
Type, when NAT structures be detected out for a complete cone type when, the Intranet device under NAT structures can be according to predetermined in one
The cycle time of package transmission regularly sends package to arbitrary server, arbitrary outer net device via NAT channel port
Or arbitrary IP address, the NAT passages corresponding to NAT channel port can keep it turned on and provide the clothes of network transmission
Business.The present invention proposes a kind of holohedral symmetry synchronous mode string pulse width modulating method, and its method reformulates out actual carrier wave
Frequency, and actual frequency order is readjusted out according to the carrier frequency of reality, so that actual carrier frequency remains
For reality frequency order six integral multiple, furthermore, actual frequency order will further perform a pulse width modulation
Program, the three-phase pulse width modulation signal with synchronism, symmetry feature is gone out with PWM, afterwards, using with same
Step property, the three-phase pulse width modulation signal of symmetry feature adjust the three phase mains of motor, with via the three-phase electricity after adjustment
Source controls the operating of motor.
To reach above-mentioned purpose, the present invention provides a kind of effectively holding network address translation (Network Address
Translation, NAT) channel service method, its method applied in a network system, and network system includes an at least Intranet
Device, a NAT network equipments and an at least first server, be configured with NAT network equipments one first NAT channel port and
One second NAT channel port, its characteristic are that method and step includes:Order Intranet device perform a NAT passage period of validity it
Detecting flow process, process step include:One first package is sent to first server via the first NAT channel port;Record is sent
The time of first package;One second package is periodically sent to the via the second NAT channel port in each predetermined interval time
One server;The second package is sent to be connect successively via the first NAT channel port and the second NAT channel port respectively by regular
Receive the reaction package that first server is returned;Judge whether to continue to react package via the first NAT channel port, if
No, record does not receive the time of reaction package;And calculate do not receive reaction package time with send the first package time it
Between time difference to obtain the period of validity of a NAT passages;And order Intranet device according to the period of validity of NAT passages with regular
Ground sends any package to first service via the first NAT channel port, the second NAT channel port or other NAT channel ports
Device is to keep the service of each NAT passages.
In one embodiment of the invention, network system includes a plurality of first servomechanisms, and Intranet device is watched for each first
The interval time that device formulates package transmission respectively is taken, package of the Intranet device according to corresponding to each first servomechanism is sent
Interval time periodically to send the second package to each first servomechanism.
In one embodiment of the invention, before Intranet device performs the detecting flow process of NAT passage period of validity, including following step
Suddenly:Inquire whether other Intranet devices have carried out or just carried out the detecting flow process of NAT passage period of validity, if so, Intranet fills
The detecting flow process for stopping NAT passage period of validity is put to receive NAT passage period of validity from other Intranet devices, if it is not, interior
The detecting flow process that net device performs NAT passage period of validity obtains NAT passage period of validity to detect.
In one embodiment of the invention, Intranet device is via the first NAT channel port, the second NAT channel port or others
NAT channel port carries out the communication at networking with the first servomechanism, arbitrary outer net device or arbitrary IP address, as the first NAT
When passage Bu Kou, the second NAT channel port or other NAT channel ports port number change, Intranet device re-executes NAT and led to
The detecting flow process of road period of validity.
In one embodiment of the invention, network system is configured with one the 3rd including at least one second servomechanism, NAT network apparatus
NAT channel port, Intranet device carry out normal networking running via the 3rd NAT channel port and the second servomechanism.
In one embodiment of the invention, network system includes at least one second servomechanism, and Intranet device is via the 2nd NAT passages
Bu Kou and the second servomechanism carry out normal networking running.
In one embodiment of the invention, NAT passage period of validity is subtracted a predictor error value to obtain a peace by Intranet device
The NAT passage period of validity of full property, Intranet device is according to the NAT passage period of validity of security with regularly via the first NAT
Passage Bu Kou, the second NAT channel port or other NAT channel ports send any package to the first servomechanism.
In one embodiment of the invention, including a step:Detect whether NAT network equipments are a complete pyramid type (Full
Cone NAT network equipments), if it is not, order Intranet device performs the detecting flow process of NAT passage period of validity, if so, in order
Net device performs one and arbitrarily sends package flow.
In one embodiment of the invention, Intranet device, which performs any step for sending package flow, to be included:Lead to via the first NAT
Road Bu Kou sends one the 3rd package to first server to be registered to first server;During the cycle of a predetermined package transmission
Between;And one the 4th package is regularly arbitrarily sent to via the first NAT channel port according to the cycle time of package transmission
One server, arbitrary outer net device or arbitrary IP address with cause the NAT passages of the first NAT channel port keep service.
The present invention provides one kind and effectively keeps network address translation (Network Address Translation, NAT) again
Channel service method, its method are applied in a network system, and network system includes an at least Intranet device, a NAT networks fill
Put and an at least first server, NAT network equipments are the NAT network equipments of a complete pyramid type (Full Cone), in NAT
At least one first NAT channel port, its characteristic are configured with network equipment and is that method and step includes:Order Intranet device is held
Row one arbitrarily sends package flow, and process step includes:One the 3rd package is sent to first service via the first NAT channel port
Device to first server to be registered;The cycle time of a predetermined package transmission;And determined according to the cycle time of package transmission
Phase one the 4th package is arbitrarily sent to first server, arbitrary outer net device or any via the first NAT channel port
IP address with cause the NAT passages of the first NAT channel port keep service.
【Brief description of the drawings】
Fig. 1 is the system construction drawing of conventional network system.
Fig. 2 is the system construction drawing of the embodiment of inventive network system one.
Fig. 3 is the flow chart that the present invention effectively keeps the embodiment of NAT channel services method one.
Fig. 4 is the system construction drawing of the another embodiment of inventive network system.
Fig. 5 is the flow chart that the present invention effectively keeps the another embodiment of NAT channel service methods.
Fig. 6 is the system construction drawing of the another embodiment of inventive network system.
Fig. 7 is the system construction drawing of the another embodiment of inventive network system.
Fig. 8 is the system construction drawing of the another embodiment of inventive network system.
Fig. 9 is the flow chart that the present invention effectively keeps the another embodiment of NAT channel service methods.
Figure 10 is the system construction drawing of the another embodiment of inventive network system.
Figure 11 is the flow chart that the present invention effectively keeps the another embodiment of NAT channel service methods.
Figure 12 is the flow chart that the present invention effectively keeps the another embodiment of NAT channel service methods.
Primary clustering symbol description:
The NAT channel port of 10 NAT network equipments 101
11 Intranet devices 111 register package
12 servers 121 react package
The NAT channel port of 20 NAT network equipments 201 first
The NAT channel port of 202 second NAT channel port 203 the 3rd
The package of 21 Intranet device 211 first
The package of 212 second package 213 the 3rd
The first server of 214 the 4th package 22
The 221 reaction second servers of package 23
The outer net device of 24 client terminal device 25
26 IP address
【Embodiment】
Referring to Fig. 2, the system construction drawing for the embodiment of inventive network system one.As shown in Fig. 2 inventive network system
System includes a NAT network equipments 20, at least first server 22 of an Intranet device 21 and an external network.NAT network equipments
20 be a router, a gateway or a wireless Wireless Router, and Intranet device 21 is a computer or a mobile phone.
Wherein, NAT network equipments 20 can establish multiple NAT passages between Intranet device 21 and first server 22, and
Among these NAT passages respectively binding have one first NAT channel port 201 (such as:Port X) and one the 2nd NAT passages port
Mouth 202 (such as:Port Y).In the present embodiment, Intranet device 21 via two NAT channel ports 201,202 with for first
Server 22 performs the detecting flow process of a NAT passage period of validity.
Continue, while refer to Fig. 3, the flow chart of the embodiment of NAT channel services method one, its side are effectively kept for the present invention
Method is applied on network system.First, step S31, Intranet device 21 perform the detecting stream of a NAT passage period of validity
Journey, its detecting flow process are as described below:Step 311, Intranet device 21 sends one first package via the first NAT channel port 201
211 to first server 22 and record send the first package 211 time T0.In the present embodiment, the first package 211 can be
One logins package.When first server 22 receives the first package 211, can select to return via the first NAT channel port 201
Pass one and confirm package to Intranet device 21 to confirm the presence of the first NAT channel port 201.
Step S312, Intranet device 21 in each predetermined interval time (such as:Interval 1 second) via the 2nd NAT passages
Port mouth 202 periodically sends one second package 212 to first server 22.In the present embodiment, the second package 212 can be a life
Make package.
Step 313, when first server 22 receives second package 212 at each time point, it will return one in order
React the NAT channel port 201 of package 221 to the first and the second NAT channel port 202.Then, Intranet device 21 can be via first
The NAT channel port 202 of NAT channel port 201 and second receives the reaction package 221 that first server 12 is returned successively.
Then, step S314, Intranet device 21 judge whether to continue to via the first NAT channel port 201
The reaction package 221 that first server 22 is returned, if can be to return to step S312;If it is not, perform step 315, Intranet device
21 note down the time T that the first NAT channel port 201 does not receive reaction package immediately1。
Step S316, Intranet device 21 calculate the time T for not receiving reaction package1Time T with sending the first package0It
Between time difference to obtain the period of validity T of a NAT passagesX=T1-T0, and complete the detecting flow process of NAT passage period of validity.
After Intranet device 21 completes the detecting flow process of NAT passage period of validity, step 32 is performed, Intranet device 21 utilizes
The NAT passages period of validity T detectedXRegularly via the first NAT channel port 201, the second NAT channel port 202 or its
His NAT channel port sends any package (such as test packets) to first server 22 or specific outer net device, then, each NAT
NAT passages corresponding to passage port mouth 201,202 can keep servicing.For example, if the NAT passage terms of validity detected
Limit TXFor 60 seconds, then, as long as Intranet device 21 regularly sends a test packets in every 60 seconds via NAT channel port 201,202
It can be kept to first server 22 or specific outer net device, the NAT passages corresponding to each NAT channel port 201,202
Opening and normal network service is provided.
Here, by NAT passages period of validity TXDetecting, Intranet device 21 of the present invention need not continually lead to via NAT
Road port mouth 201,202 sends test packets to first server 22, and the purpose of service is remained with regard to that can reach NAT passages.Such as
This is implemented according to this, can not only reduce the load capacity of first server 22, can also avoid the part frequency range quilt of NAT network equipments 20
The test packets frequently transmitted are occupied and have influence on the transmission of authentic data.
Furthermore in one embodiment of the invention, when having performed NAT passages period of validity TXDetecting flow process after, the first NAT leads to
Road port mouth 201 and the second NAT channel port 202 may select for the Bu Kou of network communication.Then, Intranet device 21 of the present invention
Can via the first NAT channel port 201, the second NAT channel port 202 or other NAT channel ports and and first server
22nd, arbitrary outer net device or arbitrary IP address carry out the communication of network.
Continue, the present invention effectively keeps NAT channel services method still to include a step S33.As shown in step S33, Intranet
Device 21 detects NAT communication ports mouth at any time, and (such as the first NAT channel port 201, the second NAT channel port 202 or other NAT lead to
Road Bu Kou) port number whether change.If the port number that Intranet device 21 detects NAT communication port mouths does not change, step 32 is returned to.
If the port number that Intranet device 21 detects NAT communication port mouths has changed, step S31 is returned to, re-fetches the NAT passage terms of validity
Limit TX。
Referring to Fig. 4, the system construction drawing for the another embodiment of inventive network system.In the present embodiment, Intranet fills
Put 21 can further by the use of a plurality of first servers 22 (such as first server A, B) as the NAT passage period of validity it
The detecting object of detecting flow process.
Simultaneously refering to Fig. 5 process step.As stated in step s 31, Intranet device 21 performs detecing for NAT passage period of validity
Flow gauge, its detecting flow process are as described below:First, step 3111, Intranet device 21 can be via the first NAT channel port 201
Send the time that the first package 211 sends the first package 211 to each first server 22 and record.Step S3121, Intranet dress
Put 21 and formulate the interval time for thering is a package to send respectively for each first server 22, Intranet device 21 is according to each first
The interval time that package corresponding to server 22 is sent is with periodically the second package 212 of transmission to each first server 22.
In an embodiment of the present invention, Intranet device 21 can be formulated for each first server 22 identical package
The interval time of transmission, such as:The interval time for the package transmission that Intranet device 21 is formulated for first server A, B is all
1 second.Or in still another embodiment of the process, Intranet device 21 formulated respectively for each first server 22 have it is different
The interval time that package is sent, such as:Intranet device 21 is for the interval time of the first server A package transmissions formulated
2 seconds, and the interval time for the first server B package transmissions formulated is 3 seconds.
Then, step S3131, when first server (A) 22 and first server (B) 22 are respectively received in each time point
After the second package 212 transmitted by Intranet device 21, it will indivedual passback reaction packages 221 are to the first NAT channel port 201
And second NAT channel port 202.Then, Intranet device 21 can be via the first NAT channel port 201 and the second NAT channel port
202 receive the reaction package 221 that first server (A) 22 and/or first server (B) 22 are returned successively.Subsequently, it is same as
Fig. 3 process step, perform step S314, step S315 and step S316, you can obtain NAT passages period of validity TX。
In this, detecting flow process of the Intranet device 21 by the use of a plurality of first servers 22 as the NAT passage period of validity
Detecting object.If the network connectivity between Intranet device 21 and wherein a first server 22 is unstable, it can still pass through
Other first servers 22 receive reaction signal 221, and correctly detect NAT passages period of validity TX。
In addition, in further embodiment of this invention, due to detecting error, network transmission postpone, server reacted it is slow etc. because
Element so that the NAT passages period of validity T that Intranet device 21 is detectedXIt there are the doubt not enough surely leaned on.Here, in order to keep away
Exempt from Intranet device 21 using NAT passages period of validity TXSend package and still cause the awkward situation that NAT passages are closed, Intranet device 21
Can be formulated respectively for each first server (A), (B) 22 has predictor error value T corresponding to oneYA、TYB.When Intranet device 21
Detect NAT passages period of validity TXWhen, can be by NAT passages period of validity TXSubtract predictor error value TYAOr TYBTo obtain one
The NAT passages period of validity T of securityZA=TX-TYAOr TZB=TX-TYB.Then, Intranet device 21 is led to using the NAT of security
Road period of validity TZAOr TZBRegularly any package is sent to first server (A) 22 via each NAT channel port 201,202
Or first server (B) 22, each pent risk of NAT passages can be reduced.
Referring to Fig. 6, the system construction drawing for the another embodiment of inventive network system.In inventive network system still
Including a second server 23.Intranet device 21 can send one via the second NAT channel port 202 and login package to the second clothes
Business device 23, network connectivity is set up with second server 23, and carries out normal network running.
If a client terminal device 24 of distal end is intended to carry out information communication with Intranet device 21, second server can be passed through
23 assist to transmit packet information.Or client terminal device 24 can burrow (hole by the assistance of second server 23 with one
Punching) mode sets up the network connectivity of point-to-point (P2P) with Intranet device 21 so that client terminal device 24 can be direct
The transmission of packet information is carried out with Intranet device 21.
In addition, refer in Fig. 7, further embodiment of this invention, in order to avoid the second NAT channel port 202 is used to hold
The detecting flow process of row NAT passage period of validity and have influence on Intranet device 21 and carry out normal network running, can be in NAT networks
One the 3rd NAT channel port 203 is further configured among device 20.Intranet device 21 can utilize the 3rd NAT channel port
203 set up network connectivity to carry out normal network running with second server 23 and/or client terminal device 24.
Fig. 8 and Fig. 9 is referred to, is that the system construction drawing of the another embodiment of inventive network system and the present invention are effectively kept
The flow chart of the another embodiment of NAT channel service methods.Compared to Fig. 3 or Fig. 5 method and step, the present embodiment Intranet device 21
Before step S31 is performed, a step S30 is still performed.As shown in step S30, Intranet device 21 will inquire other Intranets
Whether device 21 has carried out or has just carried out the detecting flow process of NAT passage period of validity, if so, performing step S301, Intranet device
21 (such as:Intranet device B) from other Intranet devices 21 (such as:Intranet device A) receive NAT passages period of validity TX;If
It is no, Intranet device 21 (such as:Intranet device A) perform NAT passage period of validity detecting flow process with detect obtain NAT passages have
Imitate time limit TX。
Referring to Fig. 10, the system construction drawing for the another embodiment of inventive network system.In the present embodiment, NAT nets
Network device 20 can be the NAT network equipments of a complete pyramid type (Full Cone).The Intranet device 21 of the present embodiment can profit
It is finished complete conical NAT network equipments 21 and performs any transmission package flow.
Also, Figure 11 process step is referred to simultaneously.As shown in step S41, Intranet device 21 performs one and arbitrarily sends package
Flow, its flow are as follows:First, step S410, Intranet device 21 send one the 3rd package via the first NAT channel port 201
213 (such as registration packages) are to first server 22, to be registered to first server 22.Step S411, Intranet device 21 can
To make a reservation for the cycle time of a package transmission, such as:30 seconds.Then, step S412, Intranet device 21 are sent out according to predetermined package
The cycle time sent regularly arbitrarily sent via the first NAT channel port 201 one the 4th package (such as test packets) 214 to
First server 22, arbitrary outer net device 25 or arbitrary IP address 26 so that the NAT passages of the first NAT channel port 201
Opening can be remained and the service of network transmission is provided.
Figure 12 is referred to, the flow chart of the embodiment of NAT channel services method one is effectively kept for the present invention.Compared to above-mentioned
Fig. 9 method and step, the present embodiment method still include a step S50.As shown in step S50, Intranet device 21 can be detected
Whether the type of NAT network equipments 20 is complete pyramid type (Full Cone).If NAT network equipments 20 are complete pyramid type
The NAT network equipments of (Full Cone), step S41 is performed, Intranet device 21 performs one and arbitrarily sends package flow, with regular
Ground arbitrarily sends test packets 214 via the first NAT channel port 201 to first server 22, arbitrary outer net device 25
Or arbitrary IP address 26 so that the NAT passages of the first NAT channel port 201 can remain opening and provide net
The service of network transmission.If conversely, NAT network apparatus 20 be other types (such as:Restricted Cone、Port
Restricted Cone or Symmetric) NAT network apparatus, perform step S30, Intranet device 21 will inquire other
Intranet device 21 whether carried out or just carried out the detecting flow process of NAT passage period of validity, it is interior if so, perform step S301
Net device 21 will receive NAT passages period of validity T from other Intranet devices 21X;If it is not, perform step S31, Intranet device 21
The detecting flow process of NAT passage period of validity is performed to obtain NAT passages period of validity TX;Afterwards, continue and perform step S32, it is interior
Net device 21 utilizes the NAT passages period of validity T detectedXRegularly via the first NAT channel port 201, the 2nd NAT passages
Port mouth 202 or other NAT channel ports send package to first server 22 or specific outer net device, each NAT passages
Keep it turned on and the service of network transmission is provided.
As described above, only preferable embodiment, is not used for limiting the scope of implementation of the invention,
I.e. all shapes according to described in scope of the present invention patent, construction, characteristic and spirit institute equivalent changes and modifications for it, all should be wrapped
Include in the claim of the present invention.
Claims (10)
1. a kind of effectively keep network address translation (Network Address Translation, NAT) channel service method,
Its method is applied in a network system, and network system includes an at least Intranet device, a NAT network equipments and at least one first
Server, one first NAT channel port and one second NAT channel port are configured with NAT network equipments, it is characterised in that
Method and step includes:
Order Intranet device performs the detecting flow process of a NAT passage period of validity, and process step includes:
One first package is sent to first server via the first NAT channel port;
Record sends the time of the first package;
One second package is periodically sent to first server via the second NAT channel port in each predetermined interval time;
The second package is sent to receive the successively via the first NAT channel port and the second NAT channel port respectively by regular
The reaction package that one server is returned;
Judge whether via the first NAT channel port continue to react package, if it is not, record do not receive reaction package when
Between;And
The time difference between the time for not receiving the time of reaction package and sending the first package is calculated to obtain a NAT passages
Period of validity;And
Order Intranet device is according to the period of validity of NAT passages with regularly via the first NAT channel port, the 2nd NAT passages
Bu Kou or other NAT channel ports send any package to first server to keep the service of each NAT passages.
2. according to the method for claim 1, it is characterised in that the network system includes a plurality of first servers, should
Intranet device formulates the interval time of package transmission for each first server respectively, and the Intranet device is according to each
The interval time that the package corresponding to the first server is sent is periodically to send second package to each first service
Device.
3. according to the method for claim 1, it is characterised in that the Intranet device performs detecing for the NAT passage period of validity
Before flow gauge, comprise the following steps:
Whether the other Intranet devices of inquiry have carried out or have just carried out the detecting flow process of NAT passage period of validity, if so, should
The detecting flow process that Intranet device stops NAT passage period of validity is effective to receive the NAT passages from other Intranet devices
Time limit, if it is not, the detecting flow process that the Intranet device performs NAT passage period of validity obtains the NAT passage terms of validity to detect
Limit.
4. according to the method for claim 1, it is characterised in that the Intranet device via first NAT channel port, this
Two NAT channel ports or other NAT channel ports are entered with the first server, arbitrary outer net device or arbitrary IP address
The communication of row network, when the port number of first NAT channel port, second NAT channel port or other NAT channel ports changes
During change, the Intranet device re-executes the detecting flow process of NAT passage period of validity.
5. according to the method for claim 1, it is characterised in that the network system includes an at least second server, the NAT
Network equipment is configured with one the 3rd NAT channel port, and the Intranet device is via the 3rd NAT channel port and the second server
Carry out normal network running.
6. according to the method for claim 1, it is characterised in that the network system includes an at least second server, and this is interior
Net device carries out normal network running via second NAT channel port and the second server.
7. according to the method for claim 1, it is characterised in that the NAT passage period of validity is subtracted one by the Intranet device
For predictor error value to obtain the NAT passage period of validity of a security, the Intranet device is effective according to the NAT passages of the security
Time limit sends any with regularly via first NAT channel port, second NAT channel port or other NAT channel ports
Package is to the first server.
8. according to the method for claim 1, it is characterised in that including a step:
Detect the NAT network equipments whether be a complete pyramid type (Full Cone) NAT network equipments, if it is not, ordering this interior
Net device performs the detecting flow process of NAT passage period of validity, if so, ordering the Intranet device to perform one arbitrarily sends package stream
Journey.
9. according to the method for claim 8, it is characterised in that the Intranet device performs any step for sending package flow
Suddenly include:
One the 3rd package is sent to the first server via first NAT channel port to be stepped on to the first server
Note;
The cycle time that a predetermined package is sent;And
One the 4th package is regularly arbitrarily sent extremely via first NAT channel port according to the cycle time that the package is sent
The first server, arbitrary outer net device or arbitrary IP address are to cause the NAT passages of first NAT channel port to keep
Service.
10. according to the method for claim 8, it is characterised in that the Intranet device performs detecing for the NAT passage period of validity
Before flow gauge, comprise the following steps:
Whether the other Intranet devices of inquiry have carried out or have just carried out the detecting flow process of NAT passage period of validity, if so, should
The detecting flow process that Intranet device stops NAT passage period of validity is effective to receive the NAT passages from other Intranet devices
Time limit, if it is not, the detecting flow process that the Intranet device performs NAT passage period of validity obtains the NAT passage terms of validity to detect
Limit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410316794.2A CN104320498B (en) | 2014-07-04 | 2014-07-04 | Effectively keep NAT channel service methods |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410316794.2A CN104320498B (en) | 2014-07-04 | 2014-07-04 | Effectively keep NAT channel service methods |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104320498A CN104320498A (en) | 2015-01-28 |
CN104320498B true CN104320498B (en) | 2018-02-13 |
Family
ID=52375665
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410316794.2A Active CN104320498B (en) | 2014-07-04 | 2014-07-04 | Effectively keep NAT channel service methods |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104320498B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109274590B (en) * | 2017-07-18 | 2021-10-01 | 合勤科技股份有限公司 | Remote management method and circuit for mobile broadband router |
CN109756401B (en) * | 2019-03-25 | 2020-11-27 | 新华三信息安全技术有限公司 | Test method, test device, electronic equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1658558A (en) * | 2004-02-25 | 2005-08-24 | 捷讯研究有限公司 | System and method for maintaining a network connection |
CN101800683A (en) * | 2010-04-26 | 2010-08-11 | 中兴通讯股份有限公司 | Method and device for probing survival time of address translation entries on NAT equipment |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3548157B2 (en) * | 2001-12-26 | 2004-07-28 | アライドテレシス株式会社 | Relay device, address conversion control method, and program |
US8412833B2 (en) * | 2010-04-07 | 2013-04-02 | Apple Inc. | Apparatus and method for inviting users to online sessions |
-
2014
- 2014-07-04 CN CN201410316794.2A patent/CN104320498B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1658558A (en) * | 2004-02-25 | 2005-08-24 | 捷讯研究有限公司 | System and method for maintaining a network connection |
CN101800683A (en) * | 2010-04-26 | 2010-08-11 | 中兴通讯股份有限公司 | Method and device for probing survival time of address translation entries on NAT equipment |
Also Published As
Publication number | Publication date |
---|---|
CN104320498A (en) | 2015-01-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108234235B (en) | Method, network device and computer-readable storage medium for data monitoring | |
CN104618237B (en) | A kind of wide area network acceleration system and method based on TCP/UDP | |
CN102404396B (en) | Method, device and system for identifying peer-to-peer (P2P) flow and equipment | |
CN102377620B (en) | Method for detecting broadband private connection based on open system interconnection (OSI) transmission layer timestamp | |
EP1746801A3 (en) | Transmission of packet data over a network with a security protocol | |
CN106376003A (en) | Method and device for detecting wireless local area network connection and wireless local area network data transmission | |
CN101843079A (en) | Communicating a selection of a potential configuration | |
CN105703999B (en) | The method and apparatus for establishing gre tunneling | |
WO2006028674A3 (en) | A system and method for sharing an ip address | |
CN105323796B (en) | Method for determining maximum segment size | |
CN104092790B (en) | Base station master-slave communication method and system | |
CN102457421B (en) | Process for establishing a VPN connection between two networks | |
CN106571985A (en) | Household appliance distribution method and system, household appliance and router | |
CN104320498B (en) | Effectively keep NAT channel service methods | |
WO2016101510A1 (en) | Method andbroadband remote access serverdevice for acquiringnetwork address translation information | |
CN103701713A (en) | QoS (Quality of Service) scheduling method based on WIFI (Wireless Fidelity) password of AP (Access Point) router | |
CN104081740B (en) | Method and system to the wireless network bag of the second layer network for reducing concentration | |
CN206313803U (en) | A kind of router for realizing network game acceleration | |
CN104601944B (en) | Method for connecting to media stream providing device and media stream system | |
CN109644161A (en) | The MP-GW port mapping method divided by service flow and system in multi-path environment | |
CN104348731A (en) | Community virtual network connection establishing method and network communication system | |
CN105610808A (en) | Network traffic identification method and system based on dynamic domain name resolution | |
CN107547467B (en) | Circuit authentication processing method, system and controller | |
CN102377765A (en) | Communication method and system | |
TWI555357B (en) | Effectively maintain the NAT channel service method |
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 |