Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Fig. 1 is the schematic flow sheet of an embodiment of method for network address translation of the present invention, and as shown in Figure 1, the embodiment of the invention comprises the steps:
The IPv4 address assignment request that step 101, reception use the main process equipment of IPv6 to send, said IPv4 address assignment request is used to indicate the IPv4 address of being asked to be used for prefix network address translation PNAT;
Wherein, the particular content of this IPv4 address can be a definite IP address allocated, also can for the available information of IP address for example: but distributable one or more IP address or zero-address distribution state.Main process equipment in the embodiment of the invention generally comprises IPv4 and uses and the PNAT module.
Wherein, the IPv4 address assignment request mode that is used to indicate the IPv4 address of being asked to be used to carry out the prefix network address translation can comprise:
Carry the PNAT sign in mode one, the IPv4 address assignment request, said PNAT identifies to be used to indicate the IPv4 address of being asked is used to carry out PNAT; Under this mode,, follow-up the IPv4 address that obtains is used to carry out PNAT if carry PNAT sign in the IPv4 address assignment request, otherwise, the IPv4 address that obtains is not used to carry out PNAT.
Mode two, IPv4 address assignment request are defaulted as the IPv4 address of being asked are used to carry out PNAT.Under this mode,, just the IPv4 address is used to carry out PNAT as long as obtain the IPv4 address.
Generally can comprise main process equipment, couple in router, prefix network address translation 64 gateway PNAT64GW and opposite equip.s in the network address translation network of the embodiment of the invention; Optional, also can comprise a data center.Step 101 specifically can comprise:
Couple in router receives the said IPv4 address assignment request of the main process equipment transmission of using IPv6;
PNAT64GW or data center receive the said IPv4 address assignment request that said couple in router is transmitted.If comprise data center in the network, can receive the IPv4 address assignment request that couple in router is transmitted through data center; If there is not data center in the network, PNAT64GW can directly receive couple in router and transmit the IPv4 address assignment request.
Step 102, according to said IPv4 address assignment request, from the IPv4 address pool, obtain a unappropriated IPv4 address assignment and give said main process equipment; Specifically can comprise following arbitrary situation:
Situation one, PNAT64GW obtain a unappropriated IPv4 address assignment and give said main process equipment according to said IPv4 address assignment request from the IPv4 address pool of said PNAT64GW; If there is not data center in the network, PNAT64GW can a unappropriated IPv4 address assignment give said main process equipment from self IPv4 address pool.
If comprise data center in situation two networks, data center obtains a unappropriated IPv4 address assignment and gives said main process equipment according to said IPv4 address assignment request from the IPv4 address pool of said PNAT64GW.
If comprise data center in situation three networks, data center is according to said IPv4 address assignment request, obtains a unappropriated IPv4 address assignment the IPv4 address pool of the said PNAT64GW that preserves from said data center and gives said main process equipment.Need to prove: the informational needs that is comprised of the address pool of the PNAT64GW that data center preserves and the IPv4 address pool of PNAT64GW is consistent.
In addition; If comprise a plurality of PNAT64GW in the network, the information that can also carry opposite equip. in the then said IPv4 address assignment request is before step 102; Can make the information of couple in router, confirm the PNAT64GW that said opposite equip. is corresponding according to said opposite equip.; And then by the PNAT64GW execution in step of confirming 102.
Step 103, the IPv4 address of distributing is returned to said main process equipment, so that said main process equipment uses the opposite equip. of IPv4 according to the IPv4 accessed of said distribution.
In step 103, make said main process equipment specifically can comprise following example according to the process of the opposite equip. in the said IPv4 network of said IPv4 accessed:
Example one, according to the IPv4 address of said distribution; To convert the corresponding packet in IPv4 address of said distribution from the corresponding packet in the IPv6 address of said main process equipment into, and the corresponding packet in the IPv4 address of the said distribution after will changing is sent to said opposite equip.;
For example: PNAT64GW receives the main process equipment that uses IPv6 and sends the IPv6 packet to PNAT64GW; Wherein, The destination address of this IPv6 packet is " the opposite equip. address of WKP/PNAT64 prefix+use IPv4 "; Source address is " main process equipment IPv6 prefix+32bit ' 1 '+network is the IPv4 address that main process equipment distributes "; From the address of IPv6 packet, take out " network is the IPv4 address that main process equipment distributes ", PNAT64GW will be somebody's turn to do " network is the IPv4 address that main process equipment distributes " source address as the IPv4 packet after the conversion, the IPv4 packet after the conversion will be sent to the opposite equip. that uses IPv4.
Example two, according to the IPv4 address of said distribution; To convert the corresponding packet in IPv6 address into from the corresponding packet in the IPv4 address of the distribution of said opposite equip., and the packet of the correspondence of the said IPv6 address after will change is sent to said main process equipment.
For example: PNAT64GW receives the IPv4 packet of the opposite equip. transmission of using IPv4, and the destination address of this IPv4 packet is the IPv4 address of network allocation, and source address is for using the opposite equip. address of IPv4.PNAT64GW is according to the corresponding relation of the IPv4 address and the IPv6 address of self record; Can convert the IPv4 packet to the IPv6 packet; The destination address of this IPv6 packet is " main process equipment IPv6 prefix+32bit ' 1 '+network is the IPv4 address of host assignment "; Source address is " the opposite equip. address of WKP/PNAT64 prefix+use IPv4 ", and the IPv6 packet after will changing then sends to the main process equipment that uses IPv6.
In the embodiment of the invention; After PNAT64GW receives the IPv4 address assignment request of the main process equipment that uses IPv6; Can obtain the IPv4 address for main process equipment according to this IPv4 address assignment request; And the IPv4 address of distributing returned to this main process equipment, then, main process equipment can use the opposite equip. of IPv4 according to the IPv4 accessed of this distribution.For example: use the opposite equip. of IPv4 receiving the main process equipment that uses IPv6 behind the IPv4 packet of PNAT64GW conversion, the source address in the use IPv4 packet is communicated by letter with main process equipment through PNAT64GW as destination address; Perhaps, use the opposite equip. of IPv6 receiving the main process equipment that uses IPv4 behind the IPv6 packet of PNAT46GW conversion, the source address in the use IPv6 packet is communicated by letter with main process equipment through PNAT46GW as destination address.Wherein, PNAT46GW also is a kind of PNAT64GW, and is relevant with the IPv6 address pool, is used for the IPv4 packet that the main process equipment that uses IPv4 sends is converted into the IPv6 packet.
Further, this network address assignment method also comprises: the step that is come into force in the IPv4 address of said distribution.Wherein, this step that comes into force can be carried out between step 102 and step 103, also can after step 103, carry out.
The method for network address translation that the embodiment of the invention provides; Through main process equipment distributing IP v4 address for use IPv6; Satisfied PNAT and passed through demand the IP address; Use the opposite equip. of IPv4 can be routed to gateway device to the packet of the main process equipment transmission of the corresponding use IPv6 in the IPv4 address of distributing; Thereby the opposite equip. that guarantees to use IPv4 is communicated by letter with the main process equipment that uses IPv6 through PNAT64GW receiving that the main process equipment that uses IPv6 behind PNAT64GW translation data bag, can use IP address wherein.
Fig. 2 is the schematic flow sheet of another embodiment of method for network address translation of the present invention, and as shown in Figure 2, this method for network address translation comprises the steps:
Step 201, PNAT64GW or data center receive the IPv4 address assignment request of the main process equipment that uses IPv6, and said IPv4 address assignment request is used for indication said I Pv4 address is used to carry out PNAT;
Step 202, PNAT64GW or data center obtain a unappropriated IPv4 address assignment and give said main process equipment according to said IPv4 address assignment request from the IPv4 address pool of PNAT64GW;
This IPv4 address that step 203, PNAT64GW or data center will distribute returns to this main process equipment;
Step 204, PNAT64GW receive from the corresponding packet in the IPv6 address of main process equipment;
Step 205, the packet that PNAT64GW is corresponding with the IPv6 address convert the corresponding packet in IPv4 address into, and the corresponding packet in the IPv4 address after will changing is sent to opposite equip.;
Step 206, PNAT64GW receive from the corresponding packet in the IPv4 address of opposite equip.;
Step 207, the packet that PNAT64GW is corresponding with the IPv4 address convert the corresponding packet in IPv6 address into, and the corresponding packet in the IPv6 address after will changing is sent to main process equipment.
Further, embodiment illustrated in fig. 2 in, also comprise: with the step that comes into force in said IPv4 address, this comes into force the IPv4 address can be between step 202 and step 203, to carry out, and can also between step 204 and step 205, carry out.
Present embodiment is through the main process equipment distributing IP v4 address for use IPv6; Satisfied PNAT and passed through demand the IP address; Make the opposite equip. in the IPv4 network can be routed to gateway device to the packet of the main process equipment transmission of the corresponding use IPv6 in the IPv4 address of distributing; Thereby the opposite equip. that guarantees to use IPv4 is communicated by letter with the main process equipment that uses IPv6 through PNAT64GW receiving that the main process equipment that uses IPv6 behind PNAT64GW translation data bag, can use IP address wherein.
Fig. 3 is for the schematic flow sheet of another embodiment of method for network address translation of the present invention, and is as shown in Figure 3, and the main process equipment of use IPv6 obtains the IP address to PNAT64GW and can comprise the steps:
Step 301, transmission IPv4 address assignment request; So that PNAT64GW obtains a unappropriated IPv4 address according to said IPv4 address assignment request and distributes from the IPv4 address pool, said IPv4 address assignment request is used to indicate the IPv4 address of being asked to be used for prefix network address translation PNAT;
The IPv4 address that step 302, the said PNAT64G of reception distribute;
Step 303, use the opposite equip. of IPv4 according to the IPv4 accessed of said distribution.
The main process equipment that uses IPv6 is after PNAT64GW sends the IPv4 address assignment request, if receive the IPv4 address that said PNAT64GW returns according to said IPv4 address assignment request, according to the opposite equip. in the said IPv4 network of said IPv4 accessed.
Further, on above-mentioned basis embodiment illustrated in fig. 3, in the process that main process equipment that uses IPv6 and the opposite equip. that uses IPv4 communicate, step 302 specifically can comprise:
Send the corresponding packet in said IPv6 address to PNAT64GW, make said PNAT64GW convert the corresponding packet in the IPv4 address of said distribution into and be sent to said opposite equip. according to the IPv4 address of said distribution, the packet that said IPv6 address is corresponding; Or
Receive the corresponding packet in IPv6 address after the conversion that PNAT64GW returns, the corresponding packet in said IPv6 address is converted to by the corresponding packet in IPv4 address of the distribution that said PNAT64GW sends according to the IPv4 address of said distribution, to the said opposite equip. that receives.
Present embodiment is for using the main process equipment distributing IP v4 address of IPv6; Satisfied PNAT and passed through demand the IP address; Use the opposite equip. of IPv4 receiving that the main process equipment that uses IPv6 is behind PNAT64GW translation data bag; Can use IP address wherein, communicate by letter with the main process equipment that uses IPv6 through PNAT64GW.
Technical scheme for the clearer description embodiment of the invention; Below in conjunction with Fig. 4~Fig. 6 to Fig. 1~embodiment illustrated in fig. 3 being elaborated; Fig. 4 a is the sketch map of the application scenarios of method for network address translation embodiment of the present invention, and shown in Fig. 4 a, the network address translation network comprises in the present embodiment: couple in router 1, data center 2, PNAT64GW 3, main process equipment 4 and opposite equip. 5; Wherein, Main process equipment 4 data comprise that IPv4 uses and the PNAT module, and main process equipment 4 uses IPv6, and opposite equip. uses IPv4.The signaling process figure that Fig. 4 b is suitable for for method for network address translation embodiment of the present invention in the present embodiment, uses IPv6 with main process equipment, and opposite equip. uses IPv4 to carry out exemplary illustration as example; Wherein, Couple in router will be given the main process equipment that uses IPv6 from the IPv4 address assignment that data center gets access to; Need there be interactive interface in data center with PNAT64GW, to guarantee the using main process equipment of IPv6 can come into force at PNAT64GW from the IPv4 address that couple in router obtains.When the main process equipment that uses IPv6 when the opposite equip. of IPv4 is used in the PNAT64GW visit; Then main process equipment uses this IPv4 address as source address; PNAT64GW can directly use the opposite equip. of this IPv4 address as source address visit use IPv4; The IPv4 packet that the opposite equip. of the feasible IPv4 of use sends to the IPv4 address can both arrive PNAT64GW, and is processed into the main process equipment that the IPv6 packet arrives use IPv6 by PNAT64GW; Shown in Fig. 4 b, in the present embodiment method for network address translation, use the main process equipment of IPv6 to obtain the IPv4 address that is used for PNAT, specifically comprise the steps:
The main process equipment of step 401, use IPv6 sends the IPv4 address assignment request to couple in router, and the IPV4 address that this IPv4 address assignment request indication is asked is used for PNAT.
Step 402, couple in router send the IPv4 address to data center and obtain request, and the request of obtaining of this IPv4 address indicates the IPV4 address of being asked to be used for PNAT;
Step 403, data center obtain unappropriated IPv4 address from the I PV4 address pool of PNAT64GW.As: data center can issue PNAT64GW with the request of obtaining of IPv4 address, returns unappropriated IPv4 address by PNAT64GW, and data center also can obtain unappropriated IPv4 address from the PNAT64GWIPV4 address pool of self preserving.
Step 404a, data center return some unappropriated IPv4 address to couple in router, and data center can also return the WKP/PNAT64 prefix to couple in router simultaneously.
Step 404b, the notice PNAT64GW of data center, this IPv4 address is distributed.Wherein, step 404a and step 404b can not have sequential relationship, can first execution in step 404a, also can first execution in step 404b, and perhaps the two is carried out simultaneously.
Step 405a, couple in router return this IPv4 address to the main process equipment that uses IPv6; Couple in router can also return the WKP/PNAT64 prefix to the main process equipment that uses IPv6 simultaneously, supplies to use the main process equipment of IPv6 when follow-up opposite equip. with use IPv4 communicates process, to use.
Step 405b, PNAT64GW come into force the IPv4 address of being distributed.
Wherein, step 405a and step 405b can not have sequential relationship, can first execution in step 405a, also can first execution in step 405b, and perhaps the two is carried out simultaneously.
Through above-mentioned steps, after the main process equipment of use IPv6 obtains the IPv4 address that is used for PNAT, can communicate with the opposite equip. that uses IPv4 through PNAT64GW, concrete communication process is following:
The main process equipment of step 406, use IPv6 uses the opposite equip. of IPv4 through the PNAT64GW visit; Use the main process equipment of IPv6 to send the IPv6 packet to PNAT64GW; Wherein, The destination address of this IPv6 packet is " the opposite equip. address of WKP/PNAT64 prefix+use IPv4 ", and source address is " using the IPv4 address of main process equipment IPv6 prefix+32bit ' 1 '+network of IPv6 for the main process equipment distribution of use IPv6 ".
Step 407, find corresponding PNAT64GW according to the WKP/PNAT64 prefix in the destination address; When this PNAT64GW carries out PNAT; Can directly use this IPv4 address as source address to the opposite equip. that uses IPv4 for example: the IPv4 service server conducts interviews; At this moment; PNAT64GW converts received IPv6 packet into the IPv4 packet, and the destination address of this IPv4 packet is the address of the opposite equip. of use IPv4, and source address is that network is the IPv4 address of using the main process equipment distribution of IPv6;
IPv4 packet after step 408, PNAT64GW will transform is sent to the opposite equip. that uses IPv4.
In addition, if use the IPv4 packet that the opposite equip. of IPv4 mails to the main process equipment that uses IPv6 to be routed to PNAT64GW, wherein, the destination address of this IPv4 packet is the IPv4 address of network allocation, and source address is for using the opposite equip. address of IPv4.PNAT64GW is according to the corresponding relation of the IPv4 address and the IPv6 address of self record; Can convert the IPv4 packet to the IPv6 packet; Wherein, The destination address of this IPv6 packet is " using the IPv4 address of main process equipment IPv6 prefix+32bit ' 1 '+network of IPv6 for the main process equipment distribution of use IPv6 ", and source address is " the opposite equip. address of WKP/PNAT64 prefix+use IPv4 ".IPv6 packet after will changing then sends to the main process equipment of the use IPv6 that uses IPv6.
The embodiment of the invention; Through obtaining the IPv4 address for the main process equipment that uses IPv6; Satisfied PNAT and passed through demand the IP address; The opposite equip. that uses IPv4 receive that the main process equipment that uses IPv6 sends behind the IPv4 packet of PNAT64GW conversion, can use source address in the I Pv4 packet as destination address, communicate by letter with the main process equipment of use IPv6 through PNAT64GW.
In above-mentioned Fig. 4 a and the 4b illustrated embodiment; If there are a plurality of PNAT64GW; And the main process equipment that uses I Pv6 is known the situation which PNAT64GW visit to use the opposite equip. of IPv4 through, and can go on foot that the main process equipment that in rapid 401~step 403, uses IPv6 indicates when couple in router sends the IPv4 address assignment request is the pairing IPv4 of which PNAT64GW of acquisition request address.For example: in rapid 401, use the main process equipment of IPv6 in the IPv4 address assignment request that couple in router sends, to portably use the opposite equip. information (for example, using service identification and/or the address etc. of using the opposite equip. of IPv4 of the opposite equip. of IPv4) of IPv4; Obtain the opposite equip. information that also portably uses IPv4 in the request at step 402 couple in router to the IPv4 address that data center sends; In step 403; Data center is according to the opposite equip. information searching target P NAT64GW that uses IPv4; Perhaps further combine the situation of current all PNAT64GW to confirm target P NAT64GW; Then data center from target P NAT64GW corresponding address pond obtain unappropriated IPv4 address, return the main process equipment that uses IPv6 through couple in router; If there are a plurality of PNAT64GW; And unclear which PNAT64GW that should use of the main process equipment that uses IPv6 visits the opposite equip. that uses IPv4; Then the target P NAT64GW that selection is suitable need judge in data center, and returns the IPv4 address corresponding with this suitable target P NAT64GW to couple in router.
Alternatively, the sequential that among the step 405b come into force in the IPv4 address also can be between step 406 and step 407.In this case, obtain the IPv4 address process that is used for PNAT, not execution in step 405a at the main process equipment that uses IPv6; At the main process equipment that uses IPv6 in the process that PNAT64GW and the opposite equip. that uses IPv4 communicate; Between step 406 and step 407, comprise that following checking procedure: PNAT64GW and data center are mutual, whether comprise the IPv4 address in the verification source address; Specifically can be that PNAT64GW informs that this IPv4 address of data center is used; The legitimacy of all right this IPv4 address of verification of PNAT64GW, if the legitimacy verification is passed through, PNAT64GW comes into force the IPv4 address of being distributed.In addition; In this case; If there are a plurality of PNAT64GW; Know at the main process equipment that uses IPv6 under the situation of the opposite equip. that which PNAT64GW visit to use IPv4 that can go on foot that the main process equipment that in rapid 401~step 403, uses IPv6 indicates when couple in router sends the IPv4 address assignment request is the pairing IPv4 of which PNAT64GW of acquisition request address through; Which do not know under the situation that use PNAT64GW to visit the opposite equip. that uses IPv4 at the main process equipment that uses IPv6; Then the target P NAT64GW that selection is suitable need judge in data center, and returns the IPv4 address corresponding with this suitable target P NAT64GW to couple in router.
Fig. 5 a is the sketch map of another application scenarios of method for network address translation embodiment of the present invention; Shown in Fig. 5 a; Compare with a last embodiment, data center's function in logic can merge with couple in router, the PNAT64GW in the present embodiment, comprises in the network address translation network in the present embodiment: couple in router 1, PNAT64GW 3, main process equipment 4 and opposite equip. 5; Wherein, Main process equipment 4 data comprise that IPv4 uses and the PNAT module, and main process equipment 4 uses IPv6, and opposite equip. is for using IPv4.Another signaling process figure that Fig. 5 b is suitable for for method for network address translation embodiment of the present invention as other a kind of possible system, uses IPv6 with main process equipment, and opposite equip. uses IPv4 to carry out exemplary illustration as example; Couple in router obtains unappropriated IPv4 address for using the main process equipment distributing IP v4 address of IPv6 from PNAT64GW, to guarantee that main process equipment from the IPv4 address that couple in router obtains, can come into force at PNAT64GW.When the main process equipment that uses IPv6 when the opposite equip. of IPv4 is used in the PNAT64GW visit, use this IPv4 address to form source address, PNAT64GW can directly use this IPv4 address as source address visit use the opposite equip. of IPv4.Use the IPv4 packet of the opposite equip. of IPv4, can both arrive PNAT64GW, and be processed into IPv6 packet arrival main frame by PNAT64GW to the transmission of said IPv4 address; Shown in Fig. 5 b, in the present embodiment method for network address translation, at first, use the main process equipment of IPv6 to obtain the IPv4 address that is used for PNAT, specifically comprise the steps:
The main process equipment of step 501, use IPv6 sends the IPv4 address assignment request to couple in router, and the IPV4 address that this IPv4 address assignment request indication is asked is used for PNAT;
Step 502, couple in router send the IPv4 address to PNAT64GW and obtain request, and the request of obtaining of this IPv4 address indicates the IPV4 address of being asked to be used for PNAT;
Step 503a, PNAT64GW obtain unappropriated IPv4 address from its IPV4 address pool, and some unappropriated IPv4 address is sent to couple in router;
Step 503b, PNAT64GW carry out the IPv4 address and come into force;
Step 504, PNAT64GW return above-mentioned IPv4 address to couple in router;
Step 505, couple in router are returned the IPv4 address to the main process equipment that uses IPv6, and this step can be returned the WKP/PNAT64 prefix simultaneously, use when supplying the main process equipment of the follow-up IPv6 of use to communicate process.
Through above-mentioned steps, after the main process equipment of use IPv6 obtains the IPv4 address that is used for PNAT, can communicate with the opposite equip. that uses IPv4 through PNAT64GW, concrete communication process is following:
The main process equipment of step 506, use IPv6 uses the opposite equip. of IPv4 through the PNAT64GW visit; Use the main process equipment of IPv6 to send the IPv6 packet to PNAT64GW; For example: the destination address of this IPv6 packet is " the opposite equip. address of WKP/PNAT64 prefix+use IPv4 ", and source address is " using the IPv4 address of main process equipment IPv6 prefix+32bit ' 1 '+network of IPv6 for the main process equipment distribution of use IPv6 ".
Step 507, when PNAT64GW carries out PNAT, can directly use this IPv4 address to conduct interviews to the opposite equip. such as the IPv4 service server that use IPv4 as source address.That is, convert received IPv6 packet into the IPv4 packet, the destination address of this IPv4 packet is the address of the opposite equip. of use IPv4, and source address is that network is the IPv4 address of using the main process equipment distribution of IPv6.
IPv4 packet after step 508, PNAT64GW will transform is sent to the opposite equip. that uses IPv4.
In addition, the IPv4 packet that the opposite equip. of use IPv4 mails to the main process equipment that uses IPv6 is routed to PNAT64GW, and the destination address of this IPv4 packet is the IPv4 address of network allocation, and source address is for using the opposite equip. address of IPv4.PNAT64GW is according to the corresponding relation of the IPv4 address and the IPv6 address of self record; Send to the main process equipment that uses IPv6 after can converting the IPv4 packet to the IPv6 packet; The destination address of this IPv6 packet is " using the IPv4 address of main process equipment IPv6 prefix+32bit ' 1 '+network of IPv6 for the main process equipment distribution of use IPv6 ", and source address is " the opposite equip. address of WKP/PNAT64 prefix+use IPv4 ".
Above-mentioned embodiment illustrated in fig. 5 in; If when having a plurality of PNAT64GW; And the main process equipment that uses IPv6 is known the situation which PNAT64GW visit to use the opposite equip. of IPv4 through, and can go on foot that the main process equipment that in rapid 501~step 503, uses IPv6 indicates when couple in router sends the IPv4 address assignment request is the pairing IPv4 of which PNAT64GW of acquisition request address.In rapid 501, use the main process equipment of IPv6 in the IPv4 address assignment request that couple in router sends, to portably use the opposite equip. information (like the service identification of the opposite equip. that uses IPv4, the address etc. of using the opposite equip. of IPv4) of IPv4; Obtain the opposite equip. information that also portably uses IPv4 in the request at step 502 couple in router to the IPv4 address that PNAT64GW sends; In step 503; Data center is according to the opposite equip. information searching target P NAT64GW that uses IPv4; Perhaps further combine the situation of current all PNAT64GW to confirm target P NAT64GW; Data center from target P NAT64GW corresponding address pond obtain unappropriated IPv4 address, return the main process equipment that uses IPv6 through couple in router; If there are a plurality of PNAT64GW; And the main process equipment that uses IPv6 is unclear should to use which to visit the opposite equip. that uses IPv4 as target P NAT64GW; Then the target P NAT64GW that selection is suitable need judge in data center, and returns the IPv4 address corresponding with this suitable target P NAT64GW to couple in router.
Alternatively, the sequential that among the step 503b come into force in the IPv4 address also can be between step 507 and step 508.In this case; Between step 406 and step 407, can also comprise that following checking procedure: PNAT64GW and data center are mutual, whether comprise the IPv4 address in the verification source address; Specifically can be that PNAT64GW informs that this IPv4 address of data center is used; The legitimacy of all right this IPv4 address of verification of PNAT64GW, if the legitimacy verification is passed through, PNAT64GW comes into force the IPv4 address of being distributed.In addition; In this case; If there are a plurality of PNAT64GW; Know at the main process equipment that uses IPv6 under the situation of the opposite equip. that which PNAT64GW visit to use IPv4 that can go on foot that the main process equipment that in rapid 501~step 503, uses IPv6 indicates when couple in router sends the IPv4 address assignment request is the pairing IPv4 of which PNAT64GW of acquisition request address through; Which do not know under the situation that use PNAT64GW to visit the opposite equip. that uses IPv4 at the main process equipment that uses IPv6; Then the target P NAT64GW that selection is suitable need judge in data center, and returns the IPv4 address corresponding with this suitable target P NAT64GW to couple in router.
The embodiment of the invention; Through obtaining the IPv4 address for the main process equipment among the use IPv6; Satisfied PNAT and passed through demand the IP address; The IPv4 opposite equip. can be routed to gateway device to the packet of the main process equipment transmission of the corresponding use IPv6 in the IPv4 address of distributing; Thereby the opposite equip. that guarantee to use IPv4 receive that the main process equipment that uses IPv6 sends behind the IPv4 packet of PNAT64GW conversion, can use source address in the IPv4 packet as destination address, communicate by letter with the main process equipment of use IPv6 through PNAT64GW.
Another signaling process figure that Fig. 6 is suitable for for method for network address translation embodiment of the present invention; As another possible system; Do not comprise independently data center in the present embodiment, couple in router is not understood the loading condition of PNAT64GW in advance, earlier to all corresponding PNAT64GW request IPv4 addresses; PNAT64GW does not return concrete IP address, but determine whether according to current IP v4 address assignment situation can distributing IP v4 address and return IP address available information to couple in router.Couple in router confirm to select one of them can addresses distributed, and the result is confirmed; As shown in Figure 6, in the present embodiment method for network address translation, at first, use the main process equipment of IPv6 to obtain the IPv4 address that is used for PNAT, specifically comprise the steps:
The main process equipment of step 601, use IPv6 sends the IPv4 address assignment request to couple in router; The IPV4 address that this IPv4 address assignment request indication is asked is used for PNAT; This IPv4 address assignment request portably uses the identification information of the opposite equip. of IPv4, this use IPv4 opposite equip. identification information for example specifically can for: use the service identification of the opposite equip. of IPv4, the address of using the opposite equip. of IPv4.
Step 602, couple in router are selected each target P NAT64GW that can reach according to the identification information of the opposite equip. that uses IPv4.
Step 603, couple in router send the IPv4 address to each target P NAT64GW that chooses and obtain request.
Step 604, each target P NAT64GW confirm unappropriated IPv4 address situation in its address pool.
Step 605, each target P NAT64GW return IPv4 address available information to couple in router, but this IPv4 address available information specifically can be distributable one or more IPv4 address or zero-address distribution state.
Step 606, couple in router are selected an IPv4 address from the available IPv4 address that each target P NAT64GW returns; Return the IPv4 address and the corresponding WKP/PNAT64 prefix of selection to the main process equipment that uses IPv6, use when supplying the main process equipment of the follow-up IPv6 of use to communicate process; Couple in router is to each target P NAT64GW notice IPv4 address utilization, and promptly couple in router is finally confirmed the IPv4 address of use, informs perhaps whether each target P NAT64GW uses its IPv4 address.
Step 607, corresponding target P NAT64GW mark IPv4 address assignment state and this IPv4 address of coming into force, employed IPv4 address.Then, target P NAT64GW can return the IPv4 address of this selection to couple in router; Couple in router can return to the main process equipment that uses IPv6 with the IPv4 address and the corresponding WKP/PNAT64 prefix thereof of this selection.
Through above-mentioned steps, after the main process equipment of use IPv6 obtains the IPv4 address that is used for PNAT, can communicate with the opposite equip. that uses IPv4 through target P NAT64GW, concrete communication process is following:
The main process equipment of step 608, use IPv6 uses the opposite equip. of IPv4 through target P NAT64GW visit; Use the main process equipment of IPv6 to send the IPv6 packet to target P NAT64GW; Wherein, The destination address of this IPv6 packet is " the opposite equip. address of WKP/PNAT64 prefix+use IPv4 ", and source address is " using the IPv4 address of main process equipment IPv6 prefix+32bit ' 1 '+network of IPv6 for the main process equipment distribution of use IPv6 ".
Step 609, when target P NAT64GW carries out PNAT; Can directly use this IPv4 address to conduct interviews to the opposite equip. such as the IPv4 service server that use IPv4 as source address; Be that target P NAT64GW converts received IPv6 packet into the IPv4 packet; The destination address of this IPv4 packet is the address of the opposite equip. of use IPv4, and source address is that network is the IPv4 address of using the main process equipment distribution of IPv6; IPv4 packet after target P NAT64GW will change is sent to the opposite equip. that uses IPv4.
The IPv4 packet that the opposite equip. of step 610, use IPv4 mails to the main process equipment that uses IPv6 is routed to target P NAT64GW, and the destination address of this IPv4 packet is the IPv4 address of network allocation, and source address is for using the opposite equip. address of IPv4.
Step 611, target P NAT64GW are according to the corresponding relation of the IPv4 address and the I Pv6 address of self record; Can the IPv4 packet be converted to the IPv6 packet and send to the main process equipment that uses IPv6; The destination address of this IPv6 packet is " host ip v6 prefix+32bit ' 1 '+network is the IPv4 address of host assignment ", and source address is " the opposite equip. address of WKP/PNAT64 prefix+use IPv4 ".Wherein, step 610,611 and step 608,609 sequential can part successively.
Alternatively, coming into force the sequential of this IPv4 address in the step 607 also can be between step 608 and step 609.Promptly; When step 607; Behind the corresponding target P NAT64GW mark IPv4 address assignment state in employed IPv4 address, if use the main process equipment of IPv6 to communicate with the opposite equip. that uses IPv4 through target P NAT64GW, the main process equipment that then uses IPv6 in execution in step 608 is after target P NAT64GW sends the IPv6 packet; The IPv4 address of above-mentioned selection and then execution in step 609 come into force.
The embodiment of the invention; Through obtaining the IPv4 address for the main process equipment that uses IPv6; Satisfied PNAT and passed through demand the IP address; The packet that the opposite equip. of use IPv4 can send to the main process equipment of the corresponding use IPv6 in the IPv4 address of distributing can be routed to gateway device; Thereby the opposite equip. that guarantee to use IPv4 receive that the main process equipment that uses IPv6 sends behind the IPv4 packet of PNAT64GW conversion, can use source address in the IPv4 packet as destination address, communicate by letter with the main process equipment of use IPv6 through PNAT64GW.
The foregoing description also can be applied to main process equipment and use IPv4, and opposite equip. uses the IPv6 situation.In this case, main process equipment uses IPv4 (main process equipment distributing IP v4 address under the normal condition), is the demand of address transition, uses the main process equipment of IPv4 can ask an IPv6 address or IPv6 prefix addresses.Because the IPv6 address has 128, and the IPv4 address has 32, so this IPv6 address or IPv6 address prefix can not directly carry through the IPv4 address, can in the IPv4 packet, carry IPv6 address prefix or IPv6 address, uses for conversion.
Fig. 7 is the structural representation of an embodiment of network address conversion gateway of the present invention, and as shown in Figure 7, present embodiment comprises: first receiver module 71, distribution module 72 and first sending module 73;
First receiver module 71 is used to receive the IPv4 address assignment request that the main process equipment that uses IPv6 sends, and said IPv4 address assignment request is used to indicate the IPv4 address of being asked to be used for prefix network address translation PNAT;
Distribution module 72 is used for according to said IPv4 address assignment request, from the IPv4 address pool, obtains a unappropriated IPv4 address assignment and gives said main process equipment;
First sending module 73 is used for the IPv4 address of distributing is returned to said main process equipment, so that said main process equipment uses the opposite equip. of IPv4 according to the IPv4 accessed of said distribution.
First receiver module of present embodiment, distribution module and first sending module carry out the concrete grammar of PNAT, can be with reference to the associated description among the above-mentioned method for network address translation embodiment.
First receiver module of present embodiment network address conversion gateway can obtain the IPv4 address for the main process equipment that uses IPv6; Satisfied PNAT and passed through demand the IP address; Use the opposite equip. of IPv4 can be routed to gateway device to the packet of the main process equipment transmission of the corresponding use IPv6 in the IPv4 address of distributing; Guaranteed to use the opposite equip. of IPv4 receiving that the main process equipment that uses IPv6 is behind network address conversion gateway translation data bag; Can use IP address wherein, communicate by letter with the main process equipment that uses IPv6 through network address conversion gateway.
Fig. 8 is the structural representation of another embodiment of network address conversion gateway of the present invention; As shown in Figure 8; On the basis of a last embodiment; Distribution module 73 specifically is used for, and according to said IPv4 address assignment request, from the IPv4 address pool of network address conversion gateway self, obtains a unappropriated IPv4 address assignment and gives said main process equipment.
Further, first sending module 73 comprises: first transmitting element 731 and/or second transmitting element 733.
First transmitting element 731; Be used for IPv4 address according to said distribution; To convert the corresponding packet in IPv4 address of said distribution from the corresponding packet in the IPv6 address of said main process equipment into, and the corresponding packet in the IPv4 address of the said distribution after will changing is sent to said opposite equip.;
Second transmitting element 733; Be used for IPv4 address according to said distribution; To convert the corresponding packet in IPv6 address into from the corresponding packet in the IPv4 address of the distribution of said opposite equip., and the packet of the correspondence of the said IPv6 address after will change is sent to said main process equipment.
Further, this network address conversion gateway can also comprise:
The module 75 that comes into force is used for being come into force in the IPv4 address of said distribution, and concrete grammar can be with reference to the associated description among the above-mentioned method for network address translation embodiment.
First receiver module of present embodiment network address conversion gateway can obtain the IPv4 address for the main process equipment that uses IPv6; Satisfied PNAT and passed through demand the IP address; The packet that the main process equipment of the use IPv6 that the IPv4 address that the opposite equip. of use IPv4 can distribute is corresponding sends can be routed to gateway device; Guaranteed to use the opposite equip. of IPv4 receiving that the main process equipment that uses IPv6 is behind network address conversion gateway translation data bag; Can use IP address wherein, communicate by letter with the main process equipment that uses IPv6 through network address conversion gateway.
Fig. 9 is the structural representation of an embodiment of main process equipment of the present invention, and as shown in Figure 9, present embodiment comprises: second sending module 90, second receiver module 91 and access modules 93;
Wherein, Second sending module 90; Be used to send the IPv4 address assignment request; So that PNAT64GW obtains a unappropriated IPv4 address according to said IPv4 address assignment request and distributes from the IPv4 address pool, said IPv4 address assignment request is used to indicate the IPv4 address of being asked to be used for prefix network address translation PNAT;
Second receiver module 91 is used to receive the IPv4 address that said PNAT64G distributes;
Access modules 93 is used for the opposite equip. according to the IPv4 accessed use IPv4 of said distribution.
Second receiver module of present embodiment and access modules are carried out the concrete grammar of PNAT, can be with reference to the associated description among the above-mentioned method for network address translation embodiment.
Present embodiment use IPv6 main process equipment can obtain the IPv4 address of distribution through second sending module and second receiver module; Satisfied PNAT and passed through demand the IP address; Use the opposite equip. of IPv4 can be routed to gateway device to the packet of the main process equipment transmission of the corresponding use IPv6 in the IPv4 address of distributing; Guaranteed to use the opposite equip. of IPv4 receiving that the main process equipment that uses IPv6 is behind PNAT64GW translation data bag; Can use IP address wherein, communicate by letter with the main process equipment that uses IPv6 through PNAT64GW.
Figure 10 is the structural representation of another embodiment of main process equipment of the present invention, and shown in figure 10, on the basis of a last embodiment, the access modules 93 of this main process equipment can comprise: first addressed location 931 and/or second addressed location 933.
Wherein, First addressed location 931; Be used for sending the corresponding packet in said IPv6 address, make PNAT64GW convert the corresponding packet in the IPv4 address of said distribution into and be sent to said opposite equip. according to the IPv4 address of said distribution, the packet that said IPv6 address is corresponding to PNAT64GW;
Second addressed location 933; Receive the corresponding packet in IPv6 address after the conversion that PNAT64GW returns, the corresponding packet in said IPv6 address is converted to by the corresponding packet in IPv4 address of the distribution that said PNAT64GW sends according to the IPv4 address of distributing, to the said opposite equip. that receives.
Present embodiment uses the main process equipment of IPv6 can obtain the IPv4 address of distribution; Satisfied PNAT and passed through demand the IP address; Use the opposite equip. of IPv4 can be routed to gateway device to the packet of the main process equipment transmission of the corresponding use IPv6 in the IPv4 address of distributing; Thereby the assurance opposite equip. is communicated by letter with the main process equipment that uses IPv6 through PNAT64GW receiving that the main process equipment that uses IPv6 behind PNAT64GW translation data bag, can use IP address wherein.
Figure 11 is the structural representation of network address distribution system embodiment of the present invention, and shown in figure 11, this network address distribution system can comprise: main process equipment 11, couple in router 12, prefix network address translation 64 gateway PNAT64GW 13 and opposite equip. 14;
Wherein, PNAT64GW 13 can adopt arbitrary prefix network address translation 64 gateways that the embodiment of the invention provides;
Arbitrary main process equipment that main process equipment 11 adopts the embodiment of the invention to provide;
Couple in router 12 is used to receive the IPv4 address assignment request that the said main process equipment 11 that uses IPv6 sends.
Further, network address distribution system can also comprise:
Data center 15 is used to receive the IPv4 address assignment request that said couple in router 12 sends, and from the IPv4 address pool of said PNAT64GW 13, obtains a unappropriated IPv4 address assignment and gives said main process equipment.
Again further, couple in router 12 can comprise: the 3rd sending module and/or the 4th sending module.
Wherein, the 3rd sending module is used for said IPv4 address assignment request is sent to PNAT64GW;
The 4th sending module is used for said IPv4 address assignment request is sent to data center.
The main process equipment of present embodiment, couple in router, PNAT64GW, opposite equip., data center carry out the concrete grammar of PNAT, can be with reference to the associated description among the above-mentioned method for network address translation embodiment.
Present embodiment is for using the main process equipment distributing IP v4 address of IPv6; Satisfied PNAT and passed through demand the IP address; Use the opposite equip. of IPv4 can be routed to gateway device to the packet of the main process equipment transmission of the corresponding use IPv6 in the IPv4 address of using IPv6; Guaranteed to use the opposite equip. of IPv4 receiving that main process equipment behind PNAT64GW translation data bag, can use IP address wherein, communicated by letter with the main process equipment that uses IPv6 through PNAT64GW.
Need to prove that the related main process equipment of the embodiment of the invention includes but not limited to that portable terminal or fixed terminal or other can insert the communication equipment of IP network; Opposite equip. includes but not limited to mobile phone, server or business platform.
The those skilled in the art can be well understood to, for the convenience described with succinct, the concrete course of work of the equipment of foregoing description and system can repeat no more at this with reference to the corresponding process among the preceding method embodiment.
One of ordinary skill in the art will appreciate that: all or part of step that realizes the foregoing description can be accomplished through the relevant hardware of program command; Aforesaid program can be stored in the computer read/write memory medium; This program the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
What should explain at last is: above embodiment is only in order to explaining technical scheme of the present invention, but not to its restriction; Although with reference to previous embodiment the present invention has been carried out detailed explanation, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these are revised or replacement, do not make the spirit and the scope of the essence disengaging various embodiments of the present invention technical scheme of relevant art scheme.