CN101577676B - Method and device for realizing viscosity access - Google Patents

Method and device for realizing viscosity access Download PDF

Info

Publication number
CN101577676B
CN101577676B CN2009100868757A CN200910086875A CN101577676B CN 101577676 B CN101577676 B CN 101577676B CN 2009100868757 A CN2009100868757 A CN 2009100868757A CN 200910086875 A CN200910086875 A CN 200910086875A CN 101577676 B CN101577676 B CN 101577676B
Authority
CN
China
Prior art keywords
address
indication information
internal server
network
forwarding information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN2009100868757A
Other languages
Chinese (zh)
Other versions
CN101577676A (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.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN2009100868757A priority Critical patent/CN101577676B/en
Publication of CN101577676A publication Critical patent/CN101577676A/en
Application granted granted Critical
Publication of CN101577676B publication Critical patent/CN101577676B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method and a device for realizing viscosity access, comprising the steps that: a network address translation (NAT) device receives the request message of users in a network and sends the request message to an internal server, then obtains the instruction information of the actually forwarded information which is required by the returning of the response message and recordsthe instruction information in a session table, and then obtains the actually forwarded information according to the instruction information in the session table when receiving the response message r eturned by the internal server, and finally return the response message to the users in the network according to the actually forwarded information. By the embodiment of the proposal, as the instruction information of the actually forwarded information which is required by the returning of the response message is obtained in advance, the response message can be directly returned to the users in the network according to the actually forwarded information, thereby realizing viscosity access and improving the efficiency for the users to access to the internal server.

Description

A kind of method and apparatus of realizing viscosity access
Technical field
The present invention relates to the network communications technology, particularly relate to a kind of method and apparatus of realizing viscosity access.
Background technology
Network address translation (nat) equipment not only can offer private network client access internet, after it possesses the internal server function, the internal server in the private network can also be published to public network, by the internal server in the user capture private network of public network.
Fig. 1 is the system schematic of the internal server of user capture private network in certain network.As shown in Figure 1, suppose that the user in this network is the user of certain Virtual network operator (ISP), and the private net address of case of internal server is 10.0.0.1, announces that giving the public network address of ISP1 is GIP1, announce that giving the public network address of ISP2 is GIP2; NAT device links with ISP1 in the public network by interface 1, links with ISP2 in the public network by interface 2; The gateway address of ISP1 is IP1, and the gateway address of ISP2 is IP2; The IP address of user A is IPA among the ISP1, and the IP address of user B is IPB among the ISP2.
In the practical application, user A and user B can send message to internal server by gateway and NAT device separately, and receive the message that returns, to reach the purpose of visit internal server.But determine interface because NAT device is normally inquired about route forwarding table, can't guarantee that message directly returns to ISP separately.Such as, when NAT device receives internal server when returning to the message of user A, may determine interface by the inquiry route forwarding table is interface 2, ISP2 may abandon this message or be transmitted to ISP1 by other approach again.Here, Fig. 1 has omitted the connection situation of ISP2 arrival ISP1.But no matter be dropping packets or arrive ISP1,, reduced the effect or the speed of user capture internal server, made user experience not good owing to can't guarantee the ISP1 of the direct backward reference of returned packet by other approach.
Summary of the invention
In view of this, first goal of the invention of the present invention provides a kind of method that realizes viscosity access, can realize viscosity access, improves the efficient of user capture internal server.
In order to achieve the above object, the technical scheme of the present invention's proposition is:
A kind of method that realizes viscosity access, this method comprises:
Network address translation (nat) equipment receives the request message of user in the network and sends to internal server; Obtain the indication information of actual forwarding information required when returning response message, described actual forwarding information be for can make response message directly return the forwarding information of this network, and the indication information that obtains is recorded in the conversational list of establishment; When receiving the response message that internal server returns, NAT device obtains actual forwarding information according to the indication information in the conversational list, and according to actual forwarding information response message is returned to user in this network.
In the such scheme, in the time of in the conversational list that indication information is recorded in establishment, this method further comprises: the viscosity sign that will represent viscosity access is recorded in the conversational list;
When receiving the response message that internal server returns, this method further comprised before NAT device obtained actual forwarding information: judge whether the viscosity sign is effective, if then continue the step that actual forwarding information is obtained in execution; Otherwise, carry out message according to the non-sticky access method and transmit.
In the such scheme, it is characterized in that described NAT device receives before the request message of user in the network, this method further comprises:
Next jumping Internet Protocol (IP) address of configuration in NAT device, described next-hop ip address is the gateway ip address of this network; Next-hop ip address inquiry route forwarding table according to configuration records the next skip list entry index that inquires in the internal server allocation list of NAT device;
The described method of obtaining indication information comprises: inquiry internal server allocation list to be to obtain the next skip list entry index, with the next skip list entry index as indication information;
The described method of obtaining actual forwarding information comprises: NAT device obtains actual forwarding information according to described next skip list entry index from route forwarding table.
In the such scheme, described NAT device receives before the request message of user in the network, and this method further comprises:
Dispose next-hop ip address in NAT device, described next-hop ip address is the gateway ip address of this network; The next-hop ip address of configuration is recorded in the internal server allocation list of NAT device;
The described method of transmitting indication information of obtaining comprises: inquiry internal server allocation list is to obtain next-hop ip address, and described next-hop ip address is for transmitting indication information;
The described method of obtaining actual forwarding information is: NAT device to obtain the next skip list entry index, obtains actual forwarding information according to the next skip list entry index according to described next-hop ip address inquiry route forwarding table again from route forwarding table.
In the such scheme, the described method of obtaining indication information comprises: according to the inquiry of the source IP address in the request message that receives route forwarding table, the identical next skip list entry index of incoming interface when from the list item that inquires, selecting interface and receiving this message, and with the next skip list entry index as indication information;
The described method of obtaining actual forwarding information is: NAT device obtains actual forwarding information according to described next skip list entry index from route forwarding table.
Second goal of the invention of the present invention provides a kind of device of realizing viscosity access, can realize viscosity access, improves the efficient of user capture internal server.
In order to achieve the above object, the technical scheme of the present invention's proposition is:
A kind of device of realizing viscosity access, this device comprises:
Transmit-Receive Unit is used for receiving network user's request message and sends to internal server; Also be used to receive the response message that internal server returns, and response message returned to user in this network according to actual forwarding information;
The indication information acquiring unit, be used to obtain the indication information of actual forwarding information required when returning response message, described actual forwarding information be for can make response message directly return the forwarding information of this network, and the indication information that obtains is recorded in the conversational list of first memory cell;
Actual forwarding information acquiring unit is used for obtaining actual forwarding information according to the indication information of the conversational list of first memory cell, and sends to Transmit-Receive Unit;
First memory cell is used to preserve the conversational list of establishment.
In the such scheme, also record the viscosity sign of expression viscosity access in the conversational list of described first memory cell; This device also further comprises:
Judgement unit is used for judging whether the viscosity sign of conversational list is effective, if, then trigger actual forwarding information acquiring unit and carry out, transmit otherwise carry out message according to the non-sticky access method.
In the such scheme, the indication information that described indication information acquiring unit obtains is the next skip list entry index that the internal server allocation list is preserved in the 3rd memory cell;
This device also further comprises:
Dispensing unit is used to dispose next and jumps Internet Protocol (IP) address, and described next-hop ip address is the gateway ip address of network; Inquire about route forwarding table in second memory cell according to the next-hop ip address of configuration, the next skip list entry index that inquires is recorded in the internal server allocation list of the 3rd memory cell;
Second memory cell is used to preserve route forwarding table;
The 3rd memory cell is used to preserve the internal server allocation list.
In the such scheme, the indication information that described indication information acquiring unit obtains is the next-hop ip address that the internal server allocation list is preserved in the 4th memory cell;
Described actual forwarding information acquiring unit also is used for after obtaining indication information, inquires about that route forwarding table obtains the next skip list entry index in second memory cell, and according to the next skip list entry index to obtain actual forwarding information;
This device also further comprises:
Dispensing unit is used to dispose next-hop ip address, and described next-hop ip address is the gateway ip address of this network; The next-hop ip address of configuration is recorded in the internal server allocation list of the 3rd memory cell;
Second memory cell is used to preserve route forwarding table;
The 3rd memory cell is used to preserve the internal server allocation list.
In the such scheme, described indication information acquiring unit is when obtaining indication information, also be used for inquiring about the route forwarding table of preserving in the second memory according to the request message source IP address, the identical next skip list entry index of incoming interface when from the list item that inquires, selecting interface and receiving this message, and with the next skip list entry index as the indication information that obtains;
Second memory cell is used to preserve route forwarding table.
In sum, the present invention proposes a kind of method and apparatus of realizing viscosity access, is received the request message of user in the network and is sent to internal server by NAT device; Obtain the indication information of actual forwarding information required when returning response message and be recorded in the conversational list; When receiving the response message that internal server returns, obtain actual forwarding information according to the indication information in the conversational list, and response message is returned to user in this network according to actual forwarding information.In the present invention, owing to obtained the indication information of actual forwarding information required when returning response message in advance, just can response message directly be returned to user in this network, thereby realize viscosity access, improve the efficient of user capture internal server according to actual forwarding information.
Description of drawings
Fig. 1 is the system schematic of the internal server of user capture private network in the network;
Fig. 2 is the present invention program's a method flow diagram;
Fig. 3 is the flow chart of method embodiment one;
Fig. 4 is the flow chart of method embodiment two;
Fig. 5 is the present invention program's an apparatus structure schematic diagram;
Fig. 6 is the structure chart of device embodiment one;
Fig. 7 is the structure chart of device embodiment two.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with the accompanying drawings and the specific embodiments.
When in the user capture private network in certain public network during internal server, for the message that guarantees to return can directly return user place network, realize viscosity access, can obtain the actual forwarding information that makes response message directly return this user place network earlier, thereby returned packet is directly sent to this user place network.
Fig. 2 is a schematic diagram of realizing an embodiment of the inventive method.As shown in Figure 2, this method comprises:
Step 201:NAT equipment receives the request message of user in the network and sends to internal server.
User in the network described here can be the user in the Virtual network operator (ISP), and described network is exactly the network of this operator.Certainly, be to be that example describes with ISP here, in the practical application, the user of any one network need carry out viscosity access to internal server in the private network, can adopt the inventive method to realize, and is not limited to the user among the ISP.
Step 202: obtain the indication information of actual forwarding information required when returning response message, described actual forwarding information be for can make response message directly return the forwarding information of this network, and the indication information that obtains is recorded in the conversational list of establishment.
Step 203: when receiving the response message that internal server returns, NAT device obtains actual forwarding information according to the indication information in the conversational list, and according to actual forwarding information response message is returned to user in this network.
In the practical application, the required actual forwarding information that E-Packets generally includes the outgoing interface information that links to each other with next-hop device, link layer packaging information etc., its amount of information is bigger, not too be fit to be issued in the conversational list, so the present invention can indicate the indication information of these actual forwarding informations to be recorded in the conversational list with one, obtain this actual forwarding information when making things convenient for returned packet.
Among the present invention program, obtaining indication information and actual forwarding information can have following several execution mode:
First kind of execution mode: be before NAT device receives the request message of user in the network at first in step 201, next jumping Internet Protocol (IP) address of configuration in NAT device, described next-hop ip address is the gateway ip address of this ISP; According to the next-hop ip address inquiry route forwarding table of configuration, the next skip list entry index that inquires is recorded in the internal server allocation list of NAT device again.So, obtain in the step 202 indication information method can for: inquiry internal server allocation list to obtain the next skip list entry index, with the next skip list entry index as indication information.Correspondingly, the method for obtaining actual forwarding information in the step 203 is: NAT device obtains actual forwarding information according to described next skip list entry index from route forwarding table.
Second kind of execution mode: be before NAT device receives the request message of user in the network in step 201 earlier still, in NAT device, dispose next-hop ip address, described next-hop ip address is the gateway ip address of this network, and the next-hop ip address with configuration records in the internal server allocation list of NAT device again.So, the method for obtaining indication information in the step 202 is: inquiry internal server allocation list is to obtain next-hop ip address, and described next-hop ip address is for transmitting indication information.Correspondingly, the method for obtaining actual forwarding information in the step 203 is: NAT device to obtain the next skip list entry index, obtains actual forwarding information according to the next skip list entry index according to described next-hop ip address inquiry route forwarding table again from route forwarding table.
In the practical application, the outgoing interface of NAT device is normally corresponding with certain network of connection, such as certain ISP, also should be corresponding with the gateway of this network so, so in above-mentioned first kind of execution mode and second kind of execution mode, because the next-hop ip address that is provided with is the gateway ip address of network, the pairing information of next skip list entry index that this next-hop ip address inquires is exactly to return the required actual forwarding information of response message, just the response message that returns directly can be returned to the network of initiating visit according to this actual forwarding information, thereby realize viscosity access.The difference of above-mentioned first kind of execution mode and second kind of execution mode is that preceding a kind of mode is that the next skip list entry index is recorded in the conversational list as indication information, can directly obtain the next skip list entry index when returning response message from conversational list; Then a kind of mode is that next-hop ip address is recorded in conversational list as indication information, obtains the next skip list entry index according to the next-hop ip address table of query and routing again when returning response message.No matter be above-mentioned which kind of mode,, just can from routing table, obtain actual forwarding information according to the next skip list entry index as long as determined the next skip list entry index.
The third execution mode: the method for obtaining indication information in the step 202 is: according to the inquiry of the source IP address in the request message that receives route forwarding table, the identical next skip list entry index of incoming interface when from the list item that inquires, selecting interface and receiving this message, and with the next skip list entry index as indication information.Correspondingly, the method for obtaining actual forwarding information in the step 203 is: NAT device obtains actual forwarding information according to described next skip list entry index from route forwarding table.
The third above-mentioned execution mode is different with first, second kind execution mode, do not need configured in advance, but when receiving request message, in routing table, select the interface list item identical, required actual forwarding information when determining to return response message with this with incoming interface.
In the practical application,, the viscosity sign of an expression viscosity access can also be set, and when step 202 is recorded in indication information in the conversational list of establishment, the viscosity sign also be recorded in the conversational list in the lump for whether accurate differentiation is viscosity access.When subsequent step 203 received the response message that internal server returns, NAT device further comprised before obtaining actual forwarding information: judge whether the viscosity sign is effective, if then continue the step that actual forwarding information is obtained in execution; Otherwise, carry out message according to the non-sticky access method and transmit.Non-sticky access method described here is exactly not require the prior art that realizes viscosity access.
The present invention program be described in detail below with specific embodiment in order to illustrate better.
Method embodiment one
The system configuration schematic diagram of this method embodiment still can be referring to Fig. 1, and the private net address of case of internal server is 10.0.0.1, announces that giving the public network address of ISP1 is GIP1, announces that giving the public network address of ISP2 is GIP2; NAT device links with ISP1 in the public network by interface 1, links with ISP2 in the public network by interface 2; The gateway address of ISP1 is IP1, and the gateway address of ISP2 is IP2; The IP address of user A is IPA among the ISP1, and the IP address of user B is IPB among the ISP2.
The indication information of required actual forwarding information was the next skip list entry index when present embodiment hypothesis was returned response message, and also hypothesis is that user A initiates the visit to internal server.The method flow diagram that present embodiment is realized viscosity access as shown in Figure 3, implementation step can comprise:
Step 301: the interface 1 configuration next-hop ip address at NAT device is the gateway address IP1 of ISP1.
Present embodiment is to dispose next-hop ip address on interface, in the practical application, and also can directly configuration in the internal server allocation list.That is to say, after having inquired about route forwarding table, the next skip list entry index that inquires directly is recorded in the internal server allocation list, and need not on interface, to dispose next-hop ip address according to next-hop ip address.
Step 302: the next-hop ip address inquiry route forwarding table according to configuration records the next skip list entry index that inquires in the internal server allocation list, and the viscosity sign is set simultaneously.
In the present embodiment, suppose that route forwarding table is shown in table one and table two:
Purpose IP address prefix The next skip list entry index
... ...
The address prefix of IPA 3
... ...
Table one
The next skip list entry index Outgoing interface ...... Link layer information
... ... ... ...
3 Interface 1 ... ...
... ... ... ...
Table two
This step is by the route forwarding table shown in above-mentioned table one of inquiry and the table two, just can determine the next skip list entry index, viscosity sign with next skip list entry index and setting is recorded in the internal server allocation list again, and the form of this internal server allocation list can be as shown in Table 3:
Public network IP address Private network IP address The next skip list entry index The viscosity sign
... ... ... ...
GIP1 10.0.0.1 3 1
Table three
Wherein, this step can be supposed the effective viscosity sign of " 1 " expression, promptly needs to carry out viscosity access; The invalid viscosity sign of " 0 " expression does not promptly need to carry out viscosity access.In addition, route forwarding table that present embodiment is listed and internal server allocation list only are the schematic list items of listing in order to describe the present invention program, and practical application is not necessarily so.Such as, can also comprise four layers of contents such as port and protocol type of public network in the internal server allocation list.Relevant with practical application as for route forwarding table with the content of internal server allocation list physical record, be not described in detail herein.
The indication information that above-mentioned step 301 and step 302 can directly have been returned the forwarding information of ISP1 is configured in the NAT device, after this can utilize this information to E-Packet.
Step 303:NAT equipment receives the request message of user among the ISP and sends to internal server.
Step 304:NAT equipment is according to the destination address that carries in the request message, i.e. the public network IP address of internal server, inquiry internal server allocation list to be obtaining next skip list entry index and viscosity sign, and with the next skip list entry index as indication information.
In this step, NAT device can obtain next skip list entry index and viscosity sign by question blank three, and is recorded in the conversational list of establishment, this conversational list as shown in Table 4:
The IP five-tuple The next skip list entry index The viscosity sign
... 3 1
Table four
Step 305: when receiving the response message that internal server returns, NAT device comes the inquiry session table to obtain the viscosity sign according to the IP five-tuple in the response message, judges whether the viscosity sign is effective, if then continue execution in step 306; Otherwise, execution in step 307.
In the practical application, in order to take into account the realization that does not require viscosity access, present embodiment can also be implemented according to existing non-sticky access method.If but needed to carry out viscosity access all, then could omit step 305.
Step 306:NAT equipment obtains actual forwarding information according to the next skip list entry index in the conversational list, and according to actual forwarding information response message is returned to user A among the ISP1.
Step 307: carry out message according to existing non-sticky access method and transmit.Non-sticky access method described here is exactly any method that need not to carry out viscosity access of the present invention in the prior art, repeats no more herein.
Present embodiment is that the gateway ip address with ISP1 is configured to next-hop ip address, and the next skip list entry index of correspondence is recorded in the internal server allocation list.When the user A of ISP1 initiates inner server access,, just can when returning response message, directly inquire actual forwarding information and transmit according to the next skip list entry index if the next skip list entry index is issued in the conversational list.Because next-hop ip address is the gateway ip address of ISP1, with interface 1 also is corresponding, so the message that returns should directly return to ISP1 from the link of interface 1 by ISP1, the situation that message postpones or loses can not take place because of having returned to ISP2, thereby the realization viscosity access reaches the purpose that improves access speed.
In addition, present embodiment is that next is jumped index as indication information, also can be directly in the practical application with the next-hop ip address that disposes as indication information.But this method just needs to inquire about the next skip list entry index earlier according to next-hop ip address from route forwarding table when returning response message at every turn, inquire about actual forwarding information according to the next skip list entry index again, remaining execution mode can be identical with method embodiment one, repeats no more herein.
Method embodiment two
The system configuration schematic diagram of this method embodiment still can be referring to Fig. 1, and the private net address of case of internal server is 10.0.0.1, announces that giving the public network address of ISP1 is GIP1, announces that giving the public network address of ISP2 is GIP2; NAT device links with ISP1 in the public network by interface 1, links with ISP2 in the public network by interface 2; The gateway address of ISP1 is IP1, and the gateway address of ISP2 is IP2; The IP address of user A is IPA among the ISP1, and the IP address of user B is IPB among the ISP2.
The indication information of required actual forwarding information was the next skip list entry index when present embodiment hypothesis was returned response message, supposed that also user A initiates the visit to internal server.The method flow diagram that present embodiment is realized viscosity access as shown in Figure 4, implementation step can comprise:
Step 401:NAT equipment receives the request message of user A among the Virtual network operator ISP and sends to internal server.
Step 402:NAT equipment is according to the inquiry of the source IP address in the request message that receives route forwarding table, the identical next skip list entry index of incoming interface when from the list item that inquires, selecting interface and receiving this message, and with the next skip list entry index as indication information.
This step is according to the inquiry of the source IP address in message route forwarding table, and other prior aries of this area are normally inquired about according to purpose IP address when table of query and routing, so be the equal of oppositely to inquire about here, that is: the source IP address in the request message is inquired about route forwarding table as purpose IP address, then same as the prior art as for how to inquire about, repeat no more herein.In this step, the interface of supposing to receive request message is an interface 1, so, just should select that interface also is the next skip list entry index of the list item of interface 1 in the route forwarding table.
Step 403: the next skip list entry index is recorded in the conversational list of establishment, and corresponding viscosity sign is set.
This step is identical with situation among the embodiment one, repeats no more herein.
Step 404: when receiving the response message that internal server returns, NAT device judges whether the viscosity sign is effective, if then continue execution in step 405; Otherwise, execution in step 406.
Step 405:NAT equipment obtains actual forwarding information according to the next skip list entry index in the conversational list, and according to actual forwarding information response message is returned to user A among the ISP1.
Step 406: carry out message according to existing non-sticky access method and transmit.
Step 404 in the present embodiment~step 406 is identical with step 305~step 307 among the embodiment, repeats no more herein.
At said method, the present invention also proposes a kind of device of realizing viscosity access.The basic structure schematic diagram of this device can comprise as shown in Figure 5:
Transmit-Receive Unit 501 is used for receiving network user's request message and sends to internal server; Also be used to receive the response message that internal server returns, and response message returned to user in this network according to actual forwarding information.
Indication information acquiring unit 502, be used to obtain the indication information of actual forwarding information required when returning response message, described actual forwarding information be for can make response message directly return the forwarding information of this network, and the indication information that obtains is recorded in the conversational list of first memory cell 504.
Actual forwarding information acquiring unit 503 is used for obtaining actual forwarding information according to the indication information of the conversational list of first memory cell 504, and sends to Transmit-Receive Unit 501.
First memory cell 504 is used to preserve the conversational list of establishment.
That is to say that Transmit-Receive Unit 501 receives the request message of user in the network and sends to internal server; Indication information acquiring unit 502 obtains the indication information of actual forwarding information required when returning response message, described actual forwarding information be for can make response message directly return the forwarding information of this network, and the indication information that obtains is recorded in the conversational list of first memory cell 504; When Transmit-Receive Unit 501 received the response message that internal servers return, actual forwarding information acquiring unit 503 obtained actual forwarding information according to the indication information in the conversational list of first memory cell 504, and sends to Transmit-Receive Unit 501; Transmit-Receive Unit 501 returns to user in this network according to actual forwarding information with response message.
Device embodiment one
In the present embodiment, suppose the next skip list entry index as indication information, and configured in advance is in internal server.This device not only comprises above-mentioned Transmit-Receive Unit 501, indication information acquiring unit 502, actual forwarding information acquiring unit 503 and first memory cell 504, and as shown in Figure 6, this device can also comprise:
Judgement unit 505 is used for judging whether the viscosity sign of conversational list is effective, if, then trigger actual forwarding information acquiring unit 503 and carry out, transmit otherwise carry out message according to the non-sticky access method.Viscosity sign described here can be recorded in this viscosity sign in the conversational list by indication information acquiring unit 502 when being recorded in the next skip list entry index in the conversational list simultaneously.
Dispensing unit 506 is used to dispose next-hop ip address, and described next-hop ip address is the gateway ip address of network; Inquire about route forwarding table in second memory cell 507 according to the next-hop ip address of configuration, the next skip list entry index that inquires is recorded in the internal server allocation list of the 3rd memory cell 508.In addition, when recording the next skip list entry index in the internal server allocation list, corresponding viscosity sign can also be set at dispensing unit 506.
Second memory cell 507 is used to preserve route forwarding table.
The 3rd memory cell 508 is used to preserve the internal server allocation list.
Utilize the present embodiment scheme, dispensing unit 506 can the configured in advance next-hop ip address be the gateway ip address of ISP, and the next skip list entry index that will inquire from routing table records in the internal server allocation list of the 3rd memory cell 508 and the viscosity sign is set.When receiving request message, indication information acquiring unit 502 can record this next skip list entry index and viscosity sign in the conversational list.When receiving response message, judgement unit 505 judges whether the viscosity sign in the conversational list is effective, if, then trigger actual forwarding information acquiring unit 503 and carry out, transmit otherwise carry out message according to the non-sticky access method.If trigger actual forwarding information acquiring unit 503,503 of actual forwarding information acquiring units can obtain actual forwarding information according to the next skip list entry index in the conversational list, and send to Transmit-Receive Unit 501; Transmit-Receive Unit 501 returns to user in the network according to actual forwarding information with response message.
Present embodiment be with the next skip list entry index as indication information, in the practical application, can also be with next-hop ip address as indication information.In this case, the structure of this device is similar to device embodiment one, its difference is: dispensing unit 506 is used to dispose next-hop ip address, described next-hop ip address is the gateway ip address of this ISP, and the next-hop ip address of configuration is recorded in the internal server allocation list of the 3rd memory cell 508.In addition, actual forwarding information acquiring unit 503 also is used for after obtaining next-hop ip address, inquires about that route forwarding table obtains the next skip list entry index in second memory cell 507, and according to the next skip list entry index to obtain actual forwarding information.
Device embodiment two
In the present embodiment, do not need to suppose configured in advance, but when receiving request message, determine indication information.As shown in Figure 7, this device can comprise Transmit-Receive Unit 501, indication information acquiring unit 502, actual forwarding information acquiring unit 503, first memory cell 504, judgement unit 505, second memory cell 507.Wherein, the function of Transmit-Receive Unit 501, indication information acquiring unit 502, actual forwarding information acquiring unit 503, first memory cell 504 and judgement unit 505 is similar to device embodiment one description, difference is: indication information acquiring unit 502 is when obtaining indication information, also be used for route forwarding table according to preservation in the request message source IP address inquiry second memory 507, the identical next skip list entry index of incoming interface when from the list item that inquires, selecting interface and receiving this message, and with the next skip list entry index as the indication information that obtains.
Implement the present invention program, owing to obtained the indication information of actual forwarding information required when returning response message in advance, can make response message directly return the forwarding information of this network, and be recorded in the conversational list of establishment, so, when receiving the response message that internal server returns, NAT device obtains actual forwarding information according to the indication information in the conversational list, just can response message directly be returned to user in this network according to actual forwarding information, realize viscosity access, improve the efficient of user capture internal server in the network.
In sum, more than be preferred embodiment of the present invention only, be not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a method that realizes viscosity access is characterized in that, this method comprises:
Network address translation device receives the request message of user in the network and sends to internal server; Obtain the indication information of actual forwarding information required when returning response message, described actual forwarding information be for can make response message directly return the forwarding information of this network, and the indication information that obtains is recorded in the conversational list of establishment; When receiving the response message that internal server returns, NAT device obtains actual forwarding information according to the indication information in the conversational list, and according to actual forwarding information response message is returned to user in this network.
2. method according to claim 1 is characterized in that, in the time of in the conversational list that indication information is recorded in establishment, this method further comprises: the viscosity sign that will represent viscosity access is recorded in the conversational list;
When receiving the response message that internal server returns, this method further comprised before NAT device obtained actual forwarding information: judge whether the viscosity sign is effective, if then continue the step that actual forwarding information is obtained in execution; Otherwise, carry out message according to the non-sticky access method and transmit.
3. method according to claim 1 and 2 is characterized in that, described NAT device receives before the request message of user in the network, and this method further comprises:
Next jumping Internet Protocol IP address of configuration in NAT device, described next-hop ip address is the gateway ip address of this network; Next-hop ip address inquiry route forwarding table according to configuration records the next skip list entry index that inquires in the internal server allocation list of NAT device;
The described method of obtaining the indication information of actual forwarding information required when returning response message comprises: inquiry internal server allocation list to be to obtain the next skip list entry index, with the next skip list entry index as indication information;
The described method of obtaining actual forwarding information comprises: NAT device obtains actual forwarding information according to described next skip list entry index from route forwarding table.
4. method according to claim 1 and 2 is characterized in that, described NAT device receives before the request message of user in the network, and this method further comprises:
Dispose next-hop ip address in NAT device, described next-hop ip address is the gateway ip address of this network; The next-hop ip address of configuration is recorded in the internal server allocation list of NAT device;
The described method of obtaining the indication information of actual forwarding information required when returning response message comprises: inquiry internal server allocation list is to obtain next-hop ip address, and described next-hop ip address is an indication information;
The described method of obtaining actual forwarding information is: NAT device to obtain the next skip list entry index, obtains actual forwarding information according to the next skip list entry index according to described next-hop ip address inquiry route forwarding table again from route forwarding table.
5. method according to claim 1 and 2, it is characterized in that, the described method of obtaining the indication information of actual forwarding information required when returning response message comprises: according to the inquiry of the source IP address in the request message that receives route forwarding table, the identical next skip list entry index of incoming interface when from the list item that inquires, selecting interface and receiving this message, and with the next skip list entry index as indication information;
The described method of obtaining actual forwarding information is: NAT device obtains actual forwarding information according to described next skip list entry index from route forwarding table.
6. a device of realizing viscosity access is characterized in that, this device comprises:
Transmit-Receive Unit is used for receiving network user's request message and sends to internal server; Also be used to receive the response message that internal server returns, and response message returned to user in this network according to actual forwarding information;
The indication information acquiring unit, be used to obtain the indication information of actual forwarding information required when returning response message, described actual forwarding information be for can make response message directly return the forwarding information of this network, and the indication information that obtains is recorded in the conversational list of first memory cell;
Actual forwarding information acquiring unit is used for obtaining actual forwarding information according to the indication information of the conversational list of first memory cell, and sends to Transmit-Receive Unit;
First memory cell is used to preserve the conversational list of establishment.
7. device according to claim 6 is characterized in that, also records the viscosity sign of expression viscosity access in the conversational list of described first memory cell; This device also further comprises:
Judgement unit is used for judging whether the viscosity sign of conversational list is effective, if, then trigger actual forwarding information acquiring unit and carry out, transmit otherwise carry out message according to the non-sticky access method.
8. according to claim 6 or 7 described devices, it is characterized in that the indication information that described indication information acquiring unit obtains is the next skip list entry index that the internal server allocation list is preserved in the 3rd memory cell;
This device also further comprises:
Dispensing unit is used to dispose next and jumps Internet Protocol IP address, and described next-hop ip address is the gateway ip address of network; Inquire about route forwarding table in second memory cell according to the next-hop ip address of configuration, the next skip list entry index that inquires is recorded in the internal server allocation list of the 3rd memory cell;
Second memory cell is used to preserve route forwarding table;
The 3rd memory cell is used to preserve the internal server allocation list.
9. according to claim 6 or 7 described devices, it is characterized in that the indication information that described indication information acquiring unit obtains is the next-hop ip address that the internal server allocation list is preserved in the 4th memory cell;
Described actual forwarding information acquiring unit also is used for after obtaining indication information, inquires about that route forwarding table obtains the next skip list entry index in second memory cell, and according to the next skip list entry index to obtain actual forwarding information;
This device also further comprises:
Dispensing unit is used to dispose next-hop ip address, and described next-hop ip address is the gateway ip address of this network; The next-hop ip address of configuration is recorded in the internal server allocation list of the 3rd memory cell;
Second memory cell is used to preserve route forwarding table;
The 3rd memory cell is used to preserve the internal server allocation list.
10. according to claim 6 or 7 described devices, it is characterized in that, described indication information acquiring unit is when obtaining indication information, also be used for inquiring about the route forwarding table of preserving in the second memory according to the request message source IP address, the identical next skip list entry index of incoming interface when from the list item that inquires, selecting interface and receiving this message, and with the next skip list entry index as the indication information that obtains;
Second memory cell is used to preserve route forwarding table.
CN2009100868757A 2009-06-10 2009-06-10 Method and device for realizing viscosity access Expired - Fee Related CN101577676B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100868757A CN101577676B (en) 2009-06-10 2009-06-10 Method and device for realizing viscosity access

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100868757A CN101577676B (en) 2009-06-10 2009-06-10 Method and device for realizing viscosity access

Publications (2)

Publication Number Publication Date
CN101577676A CN101577676A (en) 2009-11-11
CN101577676B true CN101577676B (en) 2011-12-07

Family

ID=41272467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100868757A Expired - Fee Related CN101577676B (en) 2009-06-10 2009-06-10 Method and device for realizing viscosity access

Country Status (1)

Country Link
CN (1) CN101577676B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857414A (en) * 2012-08-20 2013-01-02 中兴通讯股份有限公司 Forwarding table writing method and device and message forwarding method and device
CN103188154A (en) * 2013-04-19 2013-07-03 杭州华三通信技术有限公司 Method for network address translation and board card
CN106210173A (en) * 2016-07-29 2016-12-07 杭州迪普科技有限公司 DNS replys retransmission method and the device of message

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106330715A (en) * 2015-06-30 2017-01-11 杭州华三通信技术有限公司 Message processing method and device
CN107979656B (en) * 2017-11-22 2020-12-18 安徽皖通邮电股份有限公司 Method for supporting dynamic identification of incoming flow by static NAT service
CN111953770B (en) * 2020-08-07 2022-11-25 平安科技(深圳)有限公司 Route forwarding method and device, route equipment and readable storage medium
CN116800473A (en) * 2023-05-10 2023-09-22 广州市玄武无线科技股份有限公司 Method, device, storage medium and system for communication between client and cloud service

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1558614A (en) * 2004-01-17 2004-12-29 港湾网络有限公司 Method for responding requests from address analysis protocol of network address conversion virtual address
CN1992675A (en) * 2005-12-31 2007-07-04 中兴通讯股份有限公司 Method for guarantying interconnection between network address conversion apparatus and external network
CN101197858A (en) * 2008-01-07 2008-06-11 杭州华三通信技术有限公司 Address translation method, device and router with the same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1558614A (en) * 2004-01-17 2004-12-29 港湾网络有限公司 Method for responding requests from address analysis protocol of network address conversion virtual address
CN1992675A (en) * 2005-12-31 2007-07-04 中兴通讯股份有限公司 Method for guarantying interconnection between network address conversion apparatus and external network
CN101197858A (en) * 2008-01-07 2008-06-11 杭州华三通信技术有限公司 Address translation method, device and router with the same

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857414A (en) * 2012-08-20 2013-01-02 中兴通讯股份有限公司 Forwarding table writing method and device and message forwarding method and device
CN102857414B (en) * 2012-08-20 2018-05-04 中兴通讯股份有限公司 A kind of forwarding table write-in, message forwarding method and device
CN103188154A (en) * 2013-04-19 2013-07-03 杭州华三通信技术有限公司 Method for network address translation and board card
CN103188154B (en) * 2013-04-19 2016-03-02 杭州华三通信技术有限公司 A kind of method of network address translation and board
CN106210173A (en) * 2016-07-29 2016-12-07 杭州迪普科技有限公司 DNS replys retransmission method and the device of message

Also Published As

Publication number Publication date
CN101577676A (en) 2009-11-11

Similar Documents

Publication Publication Date Title
CN101577676B (en) Method and device for realizing viscosity access
US8194566B2 (en) Information processing device, and bubble packet transmission method and program
KR101467726B1 (en) Concept for providing information on a data packet association and for forwarding a data packet
CN102075445B (en) Load balancing method and device
CN102859973B (en) Method, apparatus and system for address resolution
CN100539504C (en) A kind of network address translation and/or firewall spanning platform, system and method thereof
US8422486B2 (en) Method for controlling direct penetrating communication between two devices under different NATs, and device for the same
CN104618243B (en) Method for routing, apparatus and system, Scheduling of Gateway method and device
CN102035900B (en) NAT (network address translation) traversal method, system and relay server by relay mode
CN100411381C (en) Communication method and system between mixed network VPN stations across different autonomous systems
JP2006086800A (en) Communication apparatus for selecting source address
CA2884683C (en) Split network address translation
US9654540B2 (en) Load balancing among network servers
CN102215273A (en) Method and device for providing external network access for internal network user
CN101888338B (en) information forwarding method and gateway
CN104115473A (en) Virtual interface applications
CN1791053A (en) Method for implementing optimization selection for multi server
CN103581361A (en) Domain name resolution proxy method, device and system
CN101292501A (en) Apparatus and method for address mapping
US20100023620A1 (en) Access controller
JP2010226665A (en) Load distribution system, apparatus and method
CN107592376A (en) The access method of application and the access system of application
Cisco AppleTalk Commands
CN104935677A (en) NAT64 resource obtaining method and obtaining/distributing device
Cisco AppleTalk Commands

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.

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

Granted publication date: 20111207

Termination date: 20200610