A kind of system and method that utilizes the IPv6 transition protocol to support the peer-to-peer network address transition
Technical field
The present invention relates to a kind of system and method for supporting the peer-to-peer network address transition, relate in particular to the system and method that a kind of IPv6 of utilization transition protocol is supported the peer-to-peer network address transition.
Background technology
Teredo be an IPv6 to the IPv4 switch technology, when IPv6 or IPv4 main frame are positioned at after one or more IPv4 network address translation (nat)s, be used for providing automatic tunnel between address assignment and main frame for clean culture IPv6 connects.IPv6 data flow from the Teredo main frame sends with the IPv4UDP data format, and when NAT supported that udp port is resolved, the Tered data flow can be passed through NAT.
NAT device lacks IPv6 to IPv4 function and multi-layer NAT allocation problem to Teredo by realizing solving now in IPv6 packet tunnel between the main frame in website, and IPv6 is to the tunnel between the IPv4 use edge device.The IPV4 header of protocol domain was set at 41 when the tunnel had brought the IPv6 packet of another one problem: IPv4 compression to send to NAT between the main frame, but the parsing of agreement 41 is not the general utility functions of NAT, so the IPv6 communications of IPv4 compression can not be passed through general NAT.In order to make the IPv6 transfer of data can pass through single or multi-layer NAT, the IPv6 packet must be compressed into the data of IPv4UDP form, comprises each one of IPv4 and UDP header.UDP message generally can be resolved by NAT and can be passed through multi-layer NAT.
Network address translation (nat) is meant the IPv4 router that meets RFC 1631 standards, it can be before transmission resolution data bag IP address and TCP/UDP port numbers.The type of NAT has:
(Cone) NAT fully: be meant a class NAT who in nat translation table, has stored mapping relations between home address and port numbers and external address and the port numbers.One nat translation table is started working, and all will be converted from the inbound data bag of any source address and port opens into external address and port.
Limited NAT: no matter refer to store in nat translation table the mapping between home address and port numbers and external address and the port numbers, be specific source address or particular source and port numbers.If coincide to the inbound data bag and the nat translation table of external object address and port from certain unknown external address or port, this data flow will be abandoned automatically so.
Symmetry NAT: refer to identical home address and port numbers are mapped to the different external addresss and the NAT of port numbers according to external object address (being applicable to the outbound data bag).
For existing IPv6 transition protocol Teredo, only support taper NAT and restriction NAT, can not support reciprocity NAT, this has limited the deployment of Teredo technology in particular network environment.
Summary of the invention
In order to solve the deficiency that prior art exists, the object of the present invention is to provide a kind of IPv6 of utilization transition protocol to support the system and method for peer-to-peer network address transition, adopt the mode of WLAN (wireless local area network) and mobile radio communication collaborative work, in mobile communication terminal with WLAN function, pass through reciprocity NAT in the time of can be based on Teredo protocol access IPv6 network, by IPv4 access to netwoks IPv6 website.
For achieving the above object, the invention provides the system that a kind of IPv6 of utilization transition protocol is supported the peer-to-peer network address transition, this system comprises mobile terminal device, the Teredo server, the Teredo relaying, mobile radio communication support node, reciprocity NAT, the IPv6 main frame, the IPv4 net, IPv6 net, mobile radio communication and WLAN (wireless local area network), wherein
Described mobile terminal device is connected with described reciprocity NAT by WLAN (wireless local area network), by mobile radio communication and described mobile radio communication support node, is used to visit the IPv6 main frame;
Described Teredo server, it connects IPv4 net and IPv6 net, helps the address configuration of described mobile terminal device, aid between the described mobile terminal device or described mobile terminal device and IPv6 main frame between establish a communications link, and intercept Teredo and communicate by letter;
Described Teredo relaying, it connects IPv4 net and IPv6 net respectively, uses the Teredo tunnel interface connecting between the online described mobile terminal device of IPv4 and between described mobile terminal device and the IPv6 main frame, and transmits data;
Described mobile radio communication support node is the network node that network enabled is used in the mobile communication core network, for described mobile terminal device provides gateway and service support;
Described reciprocity NAT connects the IPv4 router of described mobile terminal device by WLAN (wireless local area network), and it is mapped to different external addresss and port numbers according to external object address (being applicable to the outbound data bag) with identical home address and port numbers;
Described IPv6 main frame connects the IPv6 net, is used to accept the visit of described mobile terminal device.
For achieving the above object, a kind of method of utilizing the IPv6 transition protocol to support the peer-to-peer network address transition provided by the invention, this method may further comprise the steps:
Mobile terminal device detects the NAT type;
Mobile terminal device communicates the initialization setting;
The IPv6 main frame transmits Teredo protocol data message to mobile terminal device.
Further, mobile terminal device communicates initialization and is provided with further comprising the steps of:
Mobile terminal device sends to the Teredo server by mobile radio communication and Teredo relaying and carries the router solicitation message in source;
The router solicitation message that carries the source that Teredo server mobile terminal receive equipment sends, and the mobile radio communication source address of record mobile terminal device;
The Teredo server sends the carried router notification message of carrying the source by Teredo relaying and mobile radio communication to mobile terminal device; Mobile terminal device receives and carries the carried router notification message in source, and finishes the communication initialization setting.
Further, the IPv6 main frame is further comprising the steps of to mobile terminal device transmission Teredo protocol data message:
The Teredo relaying sends " sending request control message " to mobile terminal device by mobile radio communication;
Mobile terminal device receives " sending request control message " that the Teredo relaying sends by mobile radio communication, and sends " request triggers the control message " to the Teredo relaying by WLAN (wireless local area network), reciprocity NAT;
The Teredo relaying sends to mobile terminal device with Teredo protocol data message by reciprocity NAT, WLAN (wireless local area network), finishes the transmission of data message.
The present invention has significant advantage and technique effect, the WLAN (wireless local area network) that the present invention adopts and the technical scheme of mobile radio communication collaborative work solved mobile communication terminal with WLAN function based on Teredo protocol access IPv6 network the time pass through reciprocity NAT problem, when having strengthened the Teredo agreement and having disposed to the support of different network environments, utilize separately network characteristics and advantage, solve in the single network environment defective and problem with technology and agreement.
Other features and advantages of the present invention will be set forth in the following description, and, partly from specification, become apparent, perhaps understand by implementing the present invention.
Description of drawings
Accompanying drawing is used to provide further understanding of the present invention, and constitutes the part of specification, and with embodiments of the invention, is used to explain the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the system architecture schematic diagram that utilizes the IPv6 transition protocol to support the peer-to-peer network address transition according to the present invention;
Fig. 2 is the method flow diagram that utilizes the IPv6 transition protocol to support the peer-to-peer network address transition according to the present invention;
Fig. 3 constitutes schematic diagram for the router solicitation message that carries the source according to the present invention;
Fig. 4 constitutes schematic diagram for carried router notification message of carrying the source according to the present invention;
Fig. 5 constitutes schematic diagram according to auxiliary source address information of the present invention;
Fig. 6 is that transmission request control message according to the present invention constitutes schematic diagram;
Fig. 7 triggers the control message according to request of the present invention to constitute schematic diagram.
Embodiment
Below in conjunction with accompanying drawing the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein only is used for description and interpretation the present invention, and be not used in qualification the present invention.
Fig. 1 is the system architecture schematic diagram that utilizes the IPv6 transition protocol to support the peer-to-peer network address transition according to the present invention, and as shown in Figure 1, the IPv6 of utilization transition protocol of the present invention supports the system of peer-to-peer network address transition to comprise: mobile terminal device 101, Teredo server 102, Teredo relaying 103, mobile radio communication support node 104, reciprocity NAT105, IPv6 main frame 106, IPv4 net 107, IPv6 net 108, mobile radio communication 109 and wireless lan (wlan) 110, wherein
Mobile terminal device 101 for having the mobile communication terminal of WLAN function, is connected with reciprocity NAT105 by WLAN (wireless local area network) 110, by mobile radio communication 109 and mobile radio communication support node 104, is used to visit IPv6 main frame 106.
Teredo server 102, it connects IPv4 net 107, IPv6 net 108 respectively, help the address configuration of mobile terminal device 101 and aid between the mobile terminal device 101 or mobile terminal device 101 and IPv6 main frame 106 between establish a communications link.The Teredo server uses UDP 3544 port snooping Teredo communication.
Teredo relaying 103, it connects IPv4 net 107, IPv6 net 108 respectively, the Teredo relaying be (use Teredo tunnel interface) between the mobile terminal device on the IPv4 net 107 101 and and IPv6 main frame 106 between the IPv6/IPv4 router of transfer data packets.Teredo relaying 103 and 102 collaborative works of Teredo server, help between the mobile terminal device 101 and and IPv6 main frame 106 between connect.The Teredor relaying uses UDP 3544 port snooping Teredo communication.
Mobile radio communication support node 104 is network nodes that network enabled is used in the mobile communication core network, and it connects mobile terminal device 101 by mobile radio communication 109, and is connected to IPv4 net 107, for mobile terminal device provides gateway and service support.
Equity NAT105, for meeting the IPv4 router of RFC 1631 standards, connect mobile terminal device 101 by WLAN (wireless local area network) 110, and identical home address and port numbers are mapped to different external addresss and port numbers according to external object address (being applicable to the outbound data bag).
IPv6 main frame 106 connects IPv6 net 108 networks, accepts the visit of mobile terminal device 101.
IPv4 net 107, IPv6 net 108, mobile radio communication 109 and wireless lan (wlan) 110 are the information transfer channels between mobile terminal device 101 and the IPv6 main frame 106, mobile radio communication 109 comprises GPRS net or 3G network.
Fig. 2 is the method flow diagram that utilizes the IPv6 transition protocol to support the peer-to-peer network address transition according to the present invention, and below with reference to Fig. 2, the method that self adaptation mail of the present invention is disposed is described in detail:
At first, in step 201, detect reciprocity NAT105, mobile terminal device 101 sends the router solicitation message by wireless lan (wlan) 110 to Teredo server 102, and confirms that according to the carried router notification message that receives the network address translation router is the reciprocity NAT that identical home address and port numbers is mapped to different external addresss and port numbers according to the external object address;
In step 202, mobile terminal device 101 sends to Teredo server 102 by mobile radio communication and Teredo relaying 103 and carries the router solicitation message in source.
Fig. 3 constitutes schematic diagram for the router solicitation message that carries the source according to the present invention, and as shown in Figure 3, the router solicitation message that carries the source comprises IPV4 header, UDP header, identifying code, source and router solicitation message information.
Fig. 5 constitutes schematic diagram according to source-information of the present invention, and as shown in Figure 5, source-information comprises indication type, port numbers and IP address, and its expanding value is 1.
In step 203, the router solicitation message that carries the source that Teredo server 102 mobile terminal receive equipment 101 send, and the mobile radio communication source address of record mobile terminal device 101, then, send the carried router notification message of carrying the source by Teredo relaying 103 and mobile radio communication to mobile terminal device 101, mobile terminal device 101 receives this carried router notification message of carrying the source and finishes the communication initialization setting;
Fig. 4 constitutes schematic diagram for carried router notification message of carrying the source according to the present invention, and as shown in Figure 4, the carried router notification message of carrying the source comprises IPV4 header, UDP header, source and Teredo bubbling information.
In step 204, when IPv6 main frame 106 will send the Teredo data to mobile terminal device 101, Teredo relaying 103 sent " sending request control message " to mobile terminal device 101 by mobile radio communication 109.Form as shown in Figure 6 should " to send request control message ";
Fig. 6 is that transmission request control message according to the present invention constitutes schematic diagram, as shown in Figure 6, should " send request control message " and comprise IPV4 header, UDP header, identifying code, source and send request control message information.
In step 205, mobile terminal device 101 receives " sending request control message " that Teredo relaying 103 sends by mobile radio communication 109, and sends " request triggers the control message " to Teredo relaying 103 by WLAN (wireless local area network) 110, reciprocity NAT105.Form as shown in Figure 7 should " to ask to trigger the control message ";
Fig. 7 triggers the control message according to request of the present invention to constitute schematic diagram, as shown in Figure 7, should " request triggers the control message " comprise that IPV4 header, UDP header, source and request triggered the control message information.
In step 206, Teredo relaying 103 sends to mobile terminal device 101 with the Teredo data through reciprocity NAT105, WLAN (wireless local area network) 110, finishes the transmission of data message.
The WLAN mobile communication terminal is supported in technical scheme utilization of the present invention, passes through reciprocity NAT in the time of can be based on Teredo protocol access IPv6 network, has strengthened when the Teredo agreement is disposed the support to different network environments.In the present invention, adopt the mode of WLAN (wireless local area network) and mobile radio communication collaborative work, utilize separately network characteristics and advantage, solve in the single network environment defective and problem with technology and agreement.
One of ordinary skill in the art will appreciate that, the above only is the preferred embodiments of the present invention, be not limited to the present invention, although the present invention is had been described in detail with reference to previous embodiment, for a person skilled in the art, it still can be made amendment to the technical scheme of aforementioned each embodiment record, perhaps part technical characterictic wherein is equal to replacement.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.