[go: up one dir, main page]

WO2007109963A1 - A vpn gateway and an ipv6 network system and a system for realizing mobile vpn in hybrid network and the method - Google Patents

A vpn gateway and an ipv6 network system and a system for realizing mobile vpn in hybrid network and the method Download PDF

Info

Publication number
WO2007109963A1
WO2007109963A1 PCT/CN2007/000446 CN2007000446W WO2007109963A1 WO 2007109963 A1 WO2007109963 A1 WO 2007109963A1 CN 2007000446 W CN2007000446 W CN 2007000446W WO 2007109963 A1 WO2007109963 A1 WO 2007109963A1
Authority
WO
WIPO (PCT)
Prior art keywords
ipv6
address
vpn
ipv4
network
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.)
Ceased
Application number
PCT/CN2007/000446
Other languages
French (fr)
Chinese (zh)
Inventor
Hongke Zhang
Gang Cheng
Bin Zheng
Hui Zhang
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.)
Huawei Technologies Co Ltd
Beijing Jiaotong University
Original Assignee
Huawei Technologies Co Ltd
Beijing Jiaotong University
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 Huawei Technologies Co Ltd, Beijing Jiaotong University filed Critical Huawei Technologies Co Ltd
Publication of WO2007109963A1 publication Critical patent/WO2007109963A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • H04L63/0272Virtual private networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/04Network layer protocols, e.g. mobile IP [Internet Protocol]
    • H04W80/045Network layer protocols, e.g. mobile IP [Internet Protocol] involving different protocol versions, e.g. MIPv4 and MIPv6

Definitions

  • the present invention relates to the field of network communication technologies, and in particular, to a technology for implementing a mobile VPN. Background of the invention
  • Mobile VPN Virtual Private Network
  • the MN mobile node supporting the VPNrt unit maintains communication with the VPN internal node by establishing a tunnel with the VPN gateway on the external network.
  • IPsec VPN IP network security protocol VPN
  • IPsec IP network security protocol
  • IPsec IP network security protocol
  • the mobile node If the mobile node obtains the configuration care-of address on the external network, it can complete registration with the home agent in the VPN by establishing an IPSec tunnel with the VPN gateway, but the mobile node renegotiates with the VPN gateway every time the configuration of the care-of address is changed.
  • the IPSec tunnel in this case, increases the delay of network switching and reduces the mobility of the node when the node moves frequently.
  • ⁇ - ⁇ indicates the home agent set up in the external network.
  • External Internet External Network
  • Mobile IPv4 exists in the Internet (W network).
  • W network Internet
  • Home Net Home Network
  • Fore ign Net Form Network supporting Mobile IPv4.
  • the mobile node After the mobile node moves to the external network and obtains the care-of address, it first registers with the external home agent and obtains c-I-IoA (external home address); then uses the external home address to communicate with the VPN gateway for IKE (Internet Key Exchange)
  • IKE Internet Key Exchange
  • the IPsec tunnel is negotiated and registered with the home agent inside the VPN through the IPsec tunnel, so that the mobile node can communicate with the VPN internal network node.
  • the following takes the external network of the mobile node in the configuration x-FA (foreign agent of the external network) as an example to describe the registration process of the mobile node and the way the data packet is encapsulated.
  • the mobile node After the mobile node enters the external network configuring the external home agent, the foreign agent care-of address is obtained; at the same time, the mobile node also needs to send a standard mobile IPv4 registration request to the external home agent and the internal home agent;
  • the mobile node Since the mobile node is located in the external network, it can only receive the registration response from the external home agent, and according to the response message, the mobile node obtains the x-HoA assigned by the external home agent and acts as a handover of the mobile node on the external network. Address
  • the mobile node uses the obtained x-HoA as the endpoint address of the IKE negotiation and IPsec tunnel to establish a tunnel with the VPN gateway; during the negotiation with the VPN gateway, the VPN gateway assigns a VPN-TIA (VPN tunnel internal address) to the mobile node;
  • the node uses the VPN-TIA as the care-of address registered with the internal home agent, and encapsulates it in the IPsec tunnel to register with the internal home agent; After the registration is completed, the mobile node and the communication node inside the VPN can communicate.
  • the communication packet is encapsulated three times. The specific encapsulation result is shown in Figure 2.
  • the outermost x-MIP indicates the mobile IPv4 encapsulation of the mobile node to the external home agent, and the middle layer is from the X-HA to the VPN gateway.
  • VPN GW IPsec encapsulation
  • the innermost i-MIP is the VPN internal mobile IPv4 encapsulation.
  • the introduction of the external home agent in the above implementation scheme, the VPN network structure is more complicated and the maintenance cost is increased.
  • the introduction of the external home agent also brings some new problems, such as the location selection problem of the external home agent, and External home agent is subject to trust issues.
  • IPsec supporting the MOBIKE (IKEv2 Mobile and Multi-Interface Protocol) protocol is used as a tunneling technology between the mobile node and the VPN gateway to solve the above two Questions.
  • MOBIKE IKEv2 Mobile and Multi-Interface Protocol
  • the MOBIKE is an extension protocol based on IKEv2, which effectively supports the mobility of both ends of the IPsec tunnel communication.
  • IKEv2 IP Security
  • the MOBIKE protocol allows the nodes at both ends of the tunnel to update their IP addresses while maintaining IKE SA and IPsec SAs. That is, the original IPsec tunnel can still be maintained after the node addresses on both ends of the tunnel are changed, without renegotiation.
  • the network structure based on MOBIKE is shown in Figure 3.
  • the mobile node When the mobile node is located in a foreign network inside the VPN, it uses standard mobile IPv4 to communicate with the home agent and communication node inside the VPN. When the mobile node leaves the VPN internal network and enters the external network, it performs IKE negotiation with the VPN gateway to establish an IPsec tunnel that supports MOBIKE. At the same time, within the VPN, the mobile node and the home agent still maintain a valid mobile IPv4 binding cache, and the mobile node uses the VPN-TIA designated by the VPN gateway as the configuration care-of address of the VPN internal network to register with the internal home agent.
  • the mobile node After the mobile node enters another external network from one external network due to the change of location, a new mobile IPv4 care-of address is obtained. At this point, the mobile node starts to use the MOBIKE protocol to update the IP addresses of the IKE SA and IPsec SAs of the endpoint, and advertises the VPN gateway to update the IP address of the corresponding SA. After completing the address update of the SA, the communication is continued using the original IPsec tunnel.
  • Embodiments of the present invention provide a VPN gateway, an IPv6 network system, and a system and method for implementing a mobile VPN in a hybrid network, to solve the application problem of the mobile VPN under the corresponding IPv4 and IPv6 hybrid network, so that the existing In the network scenario, it is possible to conduct VPN services based on IPv6 networks.
  • the embodiment of the present invention provides a VPN gateway, which includes an IPv4 packet processing unit, an IPv4 interface, an IPv6 packet processing unit, and an IPv6 interface, where the IPv4 interface is used to perform IPv4 packet interaction with the IPv4 network.
  • IPv4 message processing unit is used to enter The IPv6 packet is encapsulated or decapsulated.
  • the IPv6 interface is used to perform IPv6 packet exchange with the IPv6 network.
  • the IPv6 packet processing unit is configured to encapsulate or decapsulate the IPv6 packet.
  • the embodiment of the present invention provides an IPv6 network system, where the system can traverse the IP v4 network and communicate with the IPv6 network inside the VPN through the VPN gateway.
  • the internal interface provided by the VPN gateway is an IPv6 interface
  • the external interface is an IPv4 interface.
  • the system further includes: a tunnel establishment module: configured to establish, between the VPN gateway and the external network, a tunnel that can transmit VPN packets exchanged between the two networks, and the addresses of the two ends of the tunnel are respectively an IPv4 address of the external network and The IPv4 address of the external interface provided by the VPN gateway.
  • the packet encapsulation and delivery module is configured to be configured to send the VPN packet to be sent to the peer end through the tunnel.
  • the embodiment of the present invention provides a system for implementing a mobile VPN in a hybrid network, including an external network, an IPv4 network, a VPN, and a VPN gateway.
  • the VPN internal network is an IPv6 network
  • the internal interface provided by the VPN gateway is IPv6.
  • the external interface is an IPv4 interface
  • the external network includes an IPv4 external network and an IPv6 external network
  • the system further includes:
  • the tunnel establishment module is configured to establish a tunnel between the VPN gateway and the external network, which can transmit the VPN packets exchanged between the two networks, and the addresses of the two ends of the tunnel are respectively provided by the IPv4 address of the external network and the VPN gateway. IPv4 address of the external interface;
  • the packet encapsulation and delivery module is configured to be configured to be configured to be configured to send the VPN packet to be sent to the peer end by using the tunnel.
  • Embodiments of the present invention provide a method for implementing a mobile VPN in a hybrid network, where the method is applied to a hybrid network including an IPv4 network and an IPv6 network inside a mobile virtual private network VPN, and a VPN is set in the hybrid network.
  • the VPN gateway provides an internal interface with an IPv6 address and an external interface of an IPv4 address, and the method includes:
  • the tunnel is used to transmit a VPN packet exchanged between the external network and the IPv6 network inside the VPN, and the addresses at both ends of the tunnel are respectively the IPv4 address of the external network.
  • an IPv4 address of the external interface provided by the VPN gateway where the external network is an IPv4 external network or an IPv6 external network;
  • the VPN packet to be transmitted is encapsulated in the IPv4 header, the VPN packet is transmitted through the tunnel to implement the VPN service in the hybrid network.
  • the embodiment of the present invention implements the mobile VPN service in the IPv4 and IPv6 hybrid network by using the IPv6 in IPv4 tunneling technology, so that the mobile VPN service can still be implemented in the process of transitioning from the IPv4 network to the IPv6.
  • Figure 1 shows the structure of a mobile VPN configured with an external home agent in an IPv4 environment
  • FIG. 2 is a schematic diagram of a data packet encapsulation structure
  • Figure 3 shows the structure of a mobile VPN configured with M0BIKE in an IPv4 environment
  • FIG. 4 is a schematic structural diagram of a network of a mobile VPN of a hybrid network according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a DNS request forwarding process in FIG. 3;
  • FIG. 6 is a schematic diagram of the DNS response forwarding processing process in FIG. 3. Mode for carrying out the invention
  • the embodiment of the present invention provides a hybrid network with a mobile network structure and corresponding device functions in an IPv4-v6 hybrid network, and a method for the mobile node to access the VPN in different types of networks, thereby Resolve an issue where the mobile node's SA (Security Association) address is updated when the mobile node switches between different types of networks.
  • SA Security Association
  • the specific embodiment of the present invention uses the "IPv6 island” and “IPv4 ocean” ⁇ 4- ⁇ 6 bubble network as the basic network framework, and solves the problem of updating the SA address of the mobile node by introducing the M0BIKE extension protocol; and adopts the IPv6 in IPv4 tunnel technology to combine
  • the method of domain name resolution enables the mobile node to communicate with the VPN gateway in the IPv6 network and the IPv4 network, so that the mobile node can communicate with the internal node of the VPN in the mobile node-multiple types of networks.
  • the embodiment of the present invention mainly adopts the idea of IPv6 in IPv4 tunneling technology, and configures a device such as a DNS-ALG (Domain Name Server-Application Layer Gateway) to implement a mobile node located in an IPv6 external network to query a WN gateway through an IPv4 network.
  • IPv6 address, and communicate accordingly. Therefore, when the mobile node is located in the IPv6 external network, the IPv4 network can still communicate with the VPN gateway, thereby implementing the mobile VPN service under the hybrid network of IPv4 and IPv6.
  • DNS-ALG Domain Name Server-Application Layer Gateway
  • the mobile node is located in the IPv6 internal network (that is, inside the VPN), the IPv4 external network, and the IPv6 external network. Different situations require different communication methods, so that mobile VPN services can be implemented in a hybrid network.
  • the communication with other nodes is first stopped, and the type of the current network is determined according to the IP address type;
  • the method of querying the VPN address determines whether the mobile node is located in the internal network or the external network, and establishes an IPsec tunnel or updates the address of the original IPsec SA according to the situation; after completing the corresponding processing, the previous communication is resumed.
  • an x-AR external access router
  • IPv4 and IPv6 dual protocol stacks are set in the DNS-ALG and the DNS server, and the dual protocol stack is set in the VPN gateway. Meanwhile, the x-AR and the VPN gateway need to have the IPv6 in IPv4 tunnel encapsulation and decapsulation processing functions.
  • the corresponding process mainly includes the following processes:
  • IPv6 DNS request of the VPN node of the mobile node is converted into an IPv4 DNS request by the DNS-ALG, and then forwarded to the IPv4 network;
  • IPv4 network After the IPv4 network returns the IPv4 address of the VPN gateway, it first sends it to the DNS-ALG.
  • the DNS-ALG adds a specific prefix to the IPv4 address to form an IPv6 address, and finally returns the address to the mobile node.
  • the mobile node constructs a data packet according to the returned VPN gateway IPv6 address, and communicates with the VPN gateway; wherein, the data packets communicated by the mobile node and the VPN gateway are encapsulated and decapsulated by the IPv6 in IPv4 tunnel to implement different protocols. Communication between type nodes.
  • the interworking of the mobile VPN service can be implemented in the hybrid network.
  • the embodiment of the present invention provides a system for implementing a mobile VPN in a hybrid network, which includes an external network, an IPv4 network, a VPN, and a VPN gateway.
  • the VPN internal network is an IPv6 network
  • the internal interface provided by the VPN gateway is An IPv6 interface
  • the external interface is an IPv4 interface
  • the external network includes an IPv4 external network and an IPv6 external network
  • the system further includes tunnel establishment.
  • Module and message encapsulation transfer module where:
  • the tunnel establishing module is configured to establish, between the VPN gateway and the external network, a tunnel that can transmit VPN packets exchanged between the two networks, and the addresses of the two ends of the tunnel are respectively an IPv4 address and a VPN of the external network.
  • the IPv4 address of the external interface provided by the gateway, that is, the IPv4 packet is transmitted through the tunnel.
  • the packet encapsulation and delivery module is configured at the two ends of the tunnel, and is configured to encapsulate the VPN packet to be sent into the IPv4 packet header, and send the packet to the peer end through the tunnel, so that the opposite end Whether the IPv4 network or the IPv6 network can identify the IPv4 packet, so that the communication interaction can be performed normally.
  • the IPv6 external network may be specifically implemented by using any one of the following two solutions:
  • the first solution is that the IPv6 external network further includes the following functional entities -
  • the DNS-ALG is configured as an IPv4 and IPv6 dual protocol stack, and is configured to provide an IPv6 address corresponding to the VPN gateway in the process of performing a VPN service through an IPv6 external network.
  • DNS in an IPv6 network Configure its upper-level DNS as the described DNS-ALG;
  • External access routers Configured as an IPv4 and IPv6 dual protocol stack, which is used to encapsulate IPv6 packets on IPv6 packets and decapsulate corresponding packets.
  • IPv6 external network may further include the following functional entities:
  • the DNS-ALG is configured to provide the IPv6 address corresponding to the VPN gateway in the process of performing the VPN service through the IPv6 external network.
  • DNS in an IPv6 network Configure its upper-level DNS in the DNS as the DNS-ALG;
  • NAT-PT entity used for communication with an external access router, and performs conversion between the corresponding IPv6 address and the IPv4 address of the packet passing through the entity;
  • the external access router is configured to send the packet converted by the NAT-PT entity to the VPN gateway, and receive the packet sent by the VPN gateway.
  • the main difference from the first scheme is that the NAT-PT entity is added, thereby simplifying the processing of the external access router.
  • FIG. 4 shows a networking structure of a technical solution for implementing a mobile VPN in an IPv4-v6 hybrid network according to an embodiment of the present invention.
  • the VPN is internally an IPv6 network environment.
  • the external network in the network is IPv4-based Internet, and there is also support for Mobile IPv4.
  • External Net IPv4 External Net IPv4
  • External Net IPv6 IPv6 External Network supporting Mobile IPv6.
  • the DNS-ALG device is set on the edge of the IPv6 external network, so that the mobile node can obtain the VPN gateway address in the IPv4 network through the domain name query on the IPv6 external network.
  • the IPv6 network further includes a tunnel establishment module and a packet encapsulation transmission module.
  • each component device In the network system shown in Figure 4, the functions of each component device are as follows:
  • IPv4-v6 dual protocol stack support standard MIPv4 (mobile IPv4) / ⁇ (mobile IPv6), configuration support M0BIKE IPsec protocol;
  • the connection is set on the path between the internal network and the external network, and provides an interface for communicating with the internal network and the external network respectively, and the external interface address provided with the external network is an IPv4 address, and the internal interface address of the internal network is An IPv6 address
  • an IPv4-v6 dual protocol stack is configured on the VPN gateway, and the VPN gateway has an IPv6 in IPv4 tunnel (the technology of transmitting IPv6 packets by using an IPv4 tunnel), and has an IPv4 packet processing unit. It is used to encapsulate or decapsulate IPv4 packets.
  • the IPv6 packet processing unit is used to encapsulate or decapsulate IPv6 packets.
  • the VPN gateway also supports standard MIPv6 (Mobile IPv6 protocol) and supports MOBIKE ( IPsec protocol for IKEv2 mobile and multi-interface protocol);
  • the VPN gateway further includes an IPv4 address allocation unit, configured to allocate a VPN tunnel internal address to the mobile node moving to the IPv4 external network, where the address is a care-of address of the mobile node in the home network.
  • IPv4 address allocation unit configured to allocate a VPN tunnel internal address to the mobile node moving to the IPv4 external network, where the address is a care-of address of the mobile node in the home network.
  • DNS-ALG Domain Name Server - Application Layer Gateway
  • DNS Domain Name Server
  • the DNS-ALG configures an IPv4 v6 dual protocol stack, that is, supports both IPv6 and IPv4 protocols, provides IPv4 address information of the VPN gateway, and adds a specific prefix to the corresponding IPv4 address. Converted to the corresponding IPv6 address, and acts as the upper-level DNS of the DNS in the IPv6 network.
  • the DNS in the IPv6 network can only be configured with the SlPv6 protocol stack;
  • the IPv4-v6 dual protocol stack is encapsulated and decapsulated.
  • the corresponding IP address configuration in the VPN is as follows:
  • the VPN of a traditional IPv4 network is internally configured with a private network address and can only be used inside the VPN.
  • the site local unicast address is very suitable for the application of the VPN. Therefore, in the embodiment of the present invention, the VPN internal network is configured with an IPv6 site local unicast address.
  • the site local unicast address can only be used to transmit data inside the VPN network.
  • the routers in the site can only forward the data packets of the address type within the site, but cannot forward them to the site.
  • the structure of the site local unicast address may be: 1111111011 + 38 bits of "0" + 16 bit subnet identifier + 64 bit interface identifier.
  • the mobile node inside the VPN communicates with the internal home agent and the communication node by using standard mobile IPv6;
  • the corresponding application examples of the VPN service are:
  • the whole internal network is regarded as a common IPv6 network, and the mobility of the mobile node is implemented by mobile IPv6; that is, in the internal home network, the mobile node communicates through the IPv6 routing mechanism; when the mobile node moves out of the home network, enters the mobile IPv6-enabled network.
  • the mobile IPv6 care-of address is obtained through the access router, and the home agent and the communication node are registered, and the binding update is completed, thereby implementing mobile communication on the internal network.
  • the mobile node outside the VPN supports mobile IPv4, obtains the IPv4 care-of address, performs IKE negotiation with the VPN gateway through the obtained care-of address, and establishes an IPsec tunnel, thereby implementing internal communication with the VPN through the tunnel.
  • the corresponding embodiments of the VPN service processing process specifically include:
  • a mobile node entering an IPv4 external network is assigned an IPv4 foreign agent care-of address or an IPv4 proxy care-of address.
  • the mobile node After the identity authentication is completed with the VPN gateway, the mobile node starts IKE negotiation with the VPN gateway to establish an IPsec tunnel.
  • the addresses at both ends of the tunnel are the care-of address of the mobile node and the IPv4 address of the external interface of the VPN gateway.
  • VPN gateway gives a VPN-TAA (VPN tunnel internal address) and advertises the address to the mobile node; after moving out of the internal network, the mobile node still maintains a move with the VPN internal home agent or communication node.
  • VPN-TAA VPN tunnel internal address
  • IPv6 binding cache VPN-TIA is a mobile IPv6 care-of address used as a mobile node to register with an internal home agent or communication node.
  • the mobile node does not use the care-of address obtained by the external network as the care-of address registered with the home agent of the internal network, but uses the VPN-TIA as the internal network care-of address of the mobile node; its purpose is: to make the VPN
  • the internal home agent and communication node can be affected by the change of the mobile node's care-of address in the external network, reducing the frequent transmission of control information such as registration updates, and avoiding the mobile node obtaining the IPv4 care-of address but moving to the internal home agent of the mobile IPv6. The problem caused by registration.
  • the mobile node After the IPsec tunnel is established, the mobile node first performs the mobile IPv6 encapsulation of the data packet of the upper layer protocol, the source address is VPN-TIA, and the destination address is the address of the internal home agent or the communication node; then the data packet is further encapsulated by IPsec, the source The address is the external network IPv4 care-of address of the mobile node, and the destination address is the IPv4 address of the external interface of the VPN gateway.
  • the structure of the packet after two encapsulation is shown in Table 1, where: i HoA is the home address of the mobile node in the internal network, x-CoA is the care-of address obtained by the mobile node on the external network, and the v4-v6 mark in front of the address Indicates the address type.
  • the mobile node outside the VPN supports mobile IPv6 and obtains the IPv6 care-of address.
  • the VPN gateway in the x-AR and IPv4 networks of the IPv6 external network utilizes the IPv6 in IPv4 tunnel encapsulation technology to enable the mobile node in the IPv6 external network to communicate with the VPN gateway in the IPv4 network;
  • the mobile node is located in the IPv6 external network, that is, in the case of the VPN external, the process of communicating with the VPN internal node is as follows: (1) When the mobile node enters an external network supporting mobile IPv6, the access router in the network (ie, X-AR) will provide a wireless interface to the external network, that is, the mobile node will obtain the corresponding IPv6 care-of address to facilitate network communication using the IPv6 care-of address;
  • the mobile node After obtaining the corresponding IPv6 care-of address, the mobile node uses the IPv6 in IPv4 tunneling technology to encapsulate and decapsulate IPv6 packets in the IPv6 external network's x-AR and IPv4 network VPN gateways respectively to implement IPv4. Interworking between the host and the IPv6 host;
  • IPv6 IPv4 tunneling technology
  • the mobile node After the mobile node obtains the IPv6 care-of address, if it communicates with the VPN gateway located in the IPv4 network, it will still be unable to process its own IP because of the different address structures at both ends.
  • the IP packets of different versions cannot communicate directly. To this end, IPv6 packets need to be encapsulated in IPv4 so that the peer VPN gateway can identify them. Received message.
  • the basis for establishing communication between the IPv4 host and the IPv6 host is to associate by domain name. That is, the mobile node does not need to know whether the VPN gateway that needs to communicate is an IPv4 address or an IPv6 address, but only needs to know the FQDN (Full Qualified Domain Name) of the VPN gateway. In this way, after the domain name is resolved, the communication address of the VPN gateway can be obtained, and corresponding data packets can be constructed to implement communication with each other.
  • FQDN Full Qualified Domain Name
  • the specific processing procedure of the VPN gateway domain name resolution through the DNS includes two processing stages: the domain name resolution request and the domain name resolution response.
  • the main processing S includes:
  • the mobile node sends a DNS request to the DNS server in the IPv6 site, that is, sends a DNS request ("AAAA") to the corresponding IPv6 DNS server to request to resolve the FQDN of the destination host to obtain the address information of the VPN gateway;
  • the mobile node MN For the IPv6 host (ie, the mobile node MN) that initiates the communication, it does not know that the communication partner is an IPv4 host or an IPv6 host, and the mobile node only has the FQDN of the destination host (VPN gateway), for example, ww.vpngw.com, Therefore, it is necessary to obtain the address of the VPN gateway through the domain name resolution request.
  • VPN gateway for example, ww.vpngw.com
  • the DNS server of the IPv6 site receives the DNS request of the mobile node, which is actually the FQDN of the VPN gateway in the IPv4 network, so the DNS server cannot resolve the domain name and will forward the request to the upper-level DNS server.
  • the address of the upper-level DNS server configured in the DNS server is the address of the intra-site DNS-ALG, and therefore, the DNS request sent by the mobile node MN is forwarded by the DNS server to the DNS-ALG;
  • the DNS-ALG holds the DNS server address of the IPv4 network.
  • the DNS-ALG determines the VPN according to the stored DNS server list.
  • the DNS server address of the gateway because the external interface of the VPN gateway of the internal network is an IPv4 interface, the corresponding address is an IPv4 address, and the corresponding DNS server is a DNS server in the IPv4 network. Therefore, it is necessary to convert this IPv6 DNS request.
  • An IPv4 DNS request (“A) and sent to the DNS server of the IPv4 network;
  • the DNS-ALG Since the DNS-ALG is connected to the X-AR, the DNS-ALG sends the IPv4 DNS request to the x-AR first, and then the x-AR sends it to the IPv4 network.
  • the corresponding domain name resolution response process that is, the DNS response forwarding process is as shown in FIG. 6.
  • the DNS server in the IPv4 network After receiving the request, the DNS server in the IPv4 network returns a DNS response, and the response message includes the IPv4 address of the VPN gateway, and the response message It will be returned to the mobile node in the IPv6 network.
  • the specific DNS response process includes the following processing:
  • the DNS-ALG in the IPv6 network receives the DNS response from the DNS server of the IPv4 network, and the result is the IPv4 address of the VPN gateway; the DNS-ALG needs to add a specific address prefix to the VPN gateway address, with the prefix Packets are routed to x-AR;
  • the prefix route can be configured and distributed in advance in the routing device of the IPv6 network.
  • the prefix is 5ef0: 3248 : : /64
  • the IPv4 address of the VPN gateway is 200. 0. 0. 1
  • the DNS-ALG will This prefix is added to the IPv4 address of the VPN gateway, and is configured as a DNS server in the form of 5ef0: 3248: : 200. 0. 0. 1 to the DNS server in the IPv6 network;
  • the DNS server in the IPv6 network corresponds to the DNS request of the mobile node, and writes the corresponding address as the address of the VPN gateway to the cache, that is, in IPv6.
  • the correspondence between the IPv6 format address of the VPN gateway and its domain name is saved on the DNS in the network;
  • the process will not be repeated, and then the host communicating with the VPN gateway through the domain name can directly obtain the converted office in the DNS server of the IPv6 network.
  • the address of the VPN gateway, and the address is an IPv6 address
  • the DNS server After the parsing result (that is, the IPv6 address with the specific prefix) is written into the cache, the DNS server also returns the IPv6 address formed by the specific address prefix and the IPv4 address of the VPN gateway to the mobile node, so that the mobile node Obtained the address information of the VPN gateway required to carry out the mobile VPN service.
  • the mobile point can implement communication with the node in the VPN intranet through data packet conversion and forwarding processing, and corresponding specific communication.
  • the process includes:
  • the mobile node receives the IPv6 address returned by the DNS server.
  • the address is an IPv6 address of the VPN gateway's IPv4 address added with a specific address prefix.
  • the mobile node constructs an IPv6 packet with this address as the destination address.
  • the IPv6 packets with the address prefix are all directed to the X AR, so the IPv6 packets sent by the mobile node are routed to the X- AR.
  • the specific address prefix is 5ef0 : 3248 : : /64, and the IPv4 address of the VPN gateway is 200. 0. 0. 1;
  • the X-AR receives an IPv6 packet whose destination prefix is 5ef 0: 3248:: /64, and identifies the specific prefix whose prefix is DNS-ALG, and then performs IPv6 in IPv4 tunnel for the TPv6 packet.
  • the specific packaging method is:
  • the X-AR extracts the IPv4 address of the VPN gateway from the destination address entry of the IPv6 packet as the destination address of the IPv4 tunnel header, and uses the IPv4 address of the X- AR as the source address of the IPv4 tunnel header, and the newly constructed IPv4 packet structure.
  • Table 2 the corresponding packet structure encapsulated by IPv4 tunnel is shown in Table 2:
  • the x-AR sends the encapsulated IPv4 data packet to the IPv4 network
  • the IPv4 data packet received by the VPN gateway may be a data packet from an IPv4 external network mobile node, or may be a data packet encapsulated by an IPv4 external network from a mobile node of the IPv6 external network; to identify the source of the data packet, the VPN gateway needs to If the next packet header is an IPv6 address, the packet is determined to be from the IPv6 external network and decapsulated. The unencapsulated IPv6 packet is forwarded to other modules for further processing. The processing is the same as that of ordinary IPv6 packets, so it will not be described in detail.
  • a node that is inside a VPN needs to send information to a mobile node that is in an IPv6 external network, it needs to encapsulate the IPv4 header on the IPv6 packet that the VPN gateway needs to send to the mobile node, and pass the x-AR.
  • the tunnel between the VPN gateway and the VPN gateway is sent to the mobile node.
  • the destination address of the IPv4 packet header encapsulated by the VPN gateway IPv4 tunnel is the IPv4 address of the x-AR, and the source address is the VPN gateway IPv4 address.
  • the x-AR When the x-AR receives the IPv4 packet, reads the IPv4 header, and finds that the next packet is IPv6, decapsulates the IPv4 packet and forwards the decapsulated IPv6 packet to the mobile node.
  • the specific process can be seen as a mobile node to a VPN gateway. An inverse process of sending a packet.
  • the mobile node when the mobile node is in the IPv6 external network, if the mobile node communicates with the VPN internal node, it needs to establish a tunnel with the VPN gateway, that is, how to establish a tunnel to ensure the IPv6 external network and the VPN internal Letters are the key to implementing VPN communications in a hybrid network.
  • the following is a detailed description of the establishment of the corresponding IPsec tunnel and the forwarding process of the data packet when the mobile node is in the IPv6 external network.
  • the communication between the mobile node and the VPN gateway supports the IKEv2 negotiation of M0BIKE, establishes an IPsec tunnel, and then the data packet is transmitted in the IPsec ESP (IPsec Encapsulated Security Payload) tunnel mode encapsulation.
  • IPsec ESP IPsec Encapsulated Security Payload
  • Encapsulation and decapsulation therefore, for a mobile node in an IPv6 external network to communicate with a VPN internal node, it is necessary to establish an IPsec tunnel with an IPv4 address at both ends, that is, a tunnel supporting IPv6 in IPv4 encapsulation and decapsulation.
  • IPv6 in IPv4 packet is encapsulated and delivered through the tunnel.
  • the SPI (Security Parameter Index) destination address entry of the mobile node SA is the IPv6 address of the VPN gateway
  • the SPI destination address entry of the VPN gateway SA is the IPv6 address of the mobile node.
  • the VPN gateway also obtains its own IPv6 address, that is, the corresponding specific prefix plus its own IPv4 address.
  • the data packet After the IPsec tunnel is established, the data packet needs to be transmitted through the tunnel.
  • the following describes the forwarding process of the corresponding data packet.
  • the mobile node first performs the mobile IPv6 encapsulation of the data packet of the upper layer protocol.
  • the source address is VPN-TIA (VPN Tunnel Inner Address), and the destination address is the node inside the VPN (including the internal home agent or communication 'point). address.
  • the IPsec encapsulation is performed, and the source address is the external network IPv6 care-of address of the mobile node, and the destination address is the IPv6 address of the external interface of the VPN gateway.
  • the address is generated by the VPN gateway IPv4 address plus a specific prefix.
  • IPv6 packet after the corresponding packet is encapsulated twice is shown in Table 3.
  • i-HoA is the home address of the mobile node in the internal network
  • x-CoA is the care-of address obtained by the mobile node on the external network.
  • VPN- GW is an IPv6 address with a specific prefix. The v4/v6 flag in front of the address indicates the address type.
  • the X-AR identifies the IPv6 in IPv4 tunnel encapsulation of the IPv6 packet, and the X-AR extracts the IPv4 of the VPN gateway from the destination address entry of the IPv6 packet.
  • the IPv4 packet format encapsulated by the IPv4 tunnel is shown in Table 4, where the outermost header is IPv4.
  • the packet header, the original entire IPv6 packet is encapsulated in the IPv4 packet as an IPv payload.
  • the x-AR in the outermost packet header is the IPv4 address of the access router, and the VPN-GW is the IPv4 address of the VPN gateway.
  • the tunnel encapsulated IPv4 packet forwarding is forwarded by the x-AR to the IPv4 network.
  • the VPN gateway After receiving the data packet, the VPN gateway first decapsulates the IPv4 tunnel; then forwards it to the IPsec function module, releases the IPsec encapsulation, and forwards it to the internal home agent or communication point to implement communication between the mobile node and the WN internal node.
  • the forwarding and conversion of the data packets transmitted by the internal nodes of the VPN to the mobile node can be regarded as the reverse process of the above steps, and therefore will not be described here.
  • the implementation of the communication between the mobile node and the internal node of the VPN can also be implemented by the following scheme.
  • IPv4-v6 hybrid network in order to implement communication between the host (mobile node) located in the IPv6 network and the host (VPN gateway) located in the IPv4 network, refer to the second implementation scheme of the IPv6 external network described above, except In addition to the IPv6 in IPv4 tunneling technology, NAT-PT (Network Address Translation - Protocol Translation) technology can also be implemented.
  • NAT-PT Network Address Translation - Protocol Translation
  • the implementation of the present invention can also be applied to the IPv4-v6 hybrid network to implement the mobile VPN according to the basic technology and idea of the NAT-PT, and then the mobile node located in the IPv6 network and the IPv4 network under the structure are proposed.
  • the communication scheme of the VPN gateway can also be applied to the IPv4-v6 hybrid network to implement the mobile VPN according to the basic technology and idea of the NAT-PT, and then the mobile node located in the IPv6 network and the IPv4 network under the structure are proposed.
  • the corresponding NAT-PT entity that is, the NAT-PT device, needs to be configured on the edge of the IPv6 external network.
  • the MT-PT and the previously described DNS-ALG can be combined into the same device.
  • the mobile node still obtains the IPv6 address of the VPN gateway by using the domain name query method.
  • the specific query process has been described in the foregoing description and will not be described in detail herein.
  • the IPv6 address is the VPN gateway IPv4 address plus a specific address prefix.
  • the mobile node constructs a packet with this address as the destination address.
  • the IPv6 packet with the specific address prefix is routed to the NAT-PT by default.
  • the MT-PT determines that the packet is sent to the host in the IPv4 network according to the specific address prefix, and therefore performs protocol conversion on the IPv6 packet.
  • the NAT-PT maps the received source address of the IPv6 packet (the care-of address of the mobile node) to an IPv4 address as the source address of the translated IPv4 packet, and the 32-bit address of the destination address is used as the destination address for converting the IPv4 packet to the IPv6 packet.
  • Each field is grammatically and semantically converted (ie, NAT-PT), and the destination address of the converted IPv4 packet is the IPv4 address of the VPN gateway;
  • NAT-PT sends the converted IPv4 packets to X- AR, which then sends the packets to the IPv4 network.
  • the process of converting an IPv4 packet into an IPv6 packet is the reverse of the above steps.
  • the x-AR receives the IPv4 data packet, it first routes to the NAT-PT, and the NAT-PT extracts the IPv4 packet destination address, searches the address mapping table, and finds the IPv6 address corresponding to the IPv4 destination address as the destination address of the IPv6 data packet;
  • the source address of the IPv4 packet is added as a source address of the IPv4 packet, and the fields in the IPv4 packet are grammatically and semantically converted, and the IPv6 data packet is constructed and finally forwarded to the mobile node.
  • the mobile node in the IPv6 external network is internally communicated with the VPN.
  • the process of establishing the tunnel and the process of forwarding the data packet are described in detail.
  • the tunnel establishment process is as follows:
  • the initial communication between the mobile node and the VPN gateway is to support M0BIKE IKEv2 negotiation, establish an IPsec tunnel, and then the data packet is transmitted after IPsec ESP tunnel mode encapsulation.
  • the signaling information of the IKE negotiation and the subsequent IPsec encapsulated data packets are converted by IPv4 to IPv6 or IPv6 to IPv4, and the SPI destination address entry of the mobile node SA is the IPv6 address of the VPN gateway, and the VPN gateway
  • the SPI destination address entry of the SA is the IPv4 address of the mobile node, and the two parties do not know that the communication peer is a different host of its own network type. This does not affect the establishment of tunnels and data transmission between the two parties. It also brings convenience for mobile nodes to switch between different types of external networks: Regardless of whether the mobile node is in an IPv4 external network or an IPv6 external network, the VPN gateway always considers the mobile node to be In an IPv4 network.
  • the mobile node After the IPsec tunnel is established, the mobile node first performs the mobile IPv6 encapsulation of the data packet of the upper layer protocol, the source address is VPN-TAA, and the destination address is the address of the internal home agent or the communication node; then the IPsec encapsulation is performed, and the source address is the mobile node.
  • the external network IPv6 care-of address, the destination address is the IPv6 address of the VPN gateway external interface, which is generated by the VPN gateway IPv4 address plus a specific prefix.
  • IPv6 packet structure of the mobile node located in the IPv6 external network twice encapsulated is shown in Table 5, where i-HoA is the home address of the mobile node in the internal network, and x-CoA is the care-of address obtained by the mobile node on the external network.
  • - GW VPN Gateway
  • v4/v6 tag in front of the address indicates the address type.
  • the NAT-PT maps the received source address of the IPv6 packet (the care-of address of the mobile node) to an IPv4 address, which is used as the source address for converting the IPv4 packet, and the destination address is 32 bits as the conversion.
  • the destination address of the IPv4 packet grammatically and semantically converts the fields in the IPv6 packet, and constructs an IPv4 packet whose destination address is the IPv4 address of the VPN gateway.
  • Table 6 shows the NAT-PT-converted IPv4 packet format, at which point the outermost IPsec header has been converted to an IPv4 address.
  • the x-CoA is the IPv4 care-of address obtained by the mobile node from the IPv6 care-of address mapping
  • the VPN-GW is the IPv4 address of the VPN gateway.
  • IPv4 packets are forwarded to the x-AR, which is then forwarded by the x-AR to the IPv4 network.
  • the VPN gateway releases the IPsec encapsulation and forwards it to the internal home agent or communication node to implement communication between the mobile node and the VPN internal node.
  • the forwarding and conversion of the data packets sent by the VPN internal node to the mobile node is completely the reverse process of the above steps, and will not be described here.
  • the mobility of the mobile node determines the process of the handover of the mobile node between different types of networks and the update of the SA address in the specific implementation process of the embodiment of the present invention. Carry out detailed instructions.
  • the IPv4-v6 hybrid network has an IPv4 external network supporting mobile IPv4 and an IPv6 external network supporting mobile IPv6.
  • the heterogeneous network refers to the IPv4 and IPv6 networks respectively, and the similar network refers to the same IPv4 network or the same IPv6 network.
  • the mobile node After the mobile node accesses the VPN using the IPsec tunnel, it may move between different networks.
  • standard mobile IPv6 communication may be used; when the mobile node roams from the internal network to the external network, the IPsec tunnel needs to be established to communicate with the VPN internal node; After the mobile node enters a new heterogeneous or homogeneous external network from the current external network, it can update the SA address with the newly obtained care-of address through the M0BIKE protocol, maintain the original IPsec tunnel, and continue to communicate with the VPN internal node.
  • the original IPsec tunnel is used to continue the communication.
  • the M0BIKE protocol is used to implement the IPsec protocol to support the mobility of the node, thereby allowing After the mobile node care-of address changes, the original IPsec tunnel continues to be communicated through the SA address update.
  • M0BIKE an extension protocol based on IKEv2
  • M0BIKE allows the nodes at both ends of the tunnel to update their IP addresses while maintaining the IKE SA and IPsec SA. That is, the original IPsec tunnel can be maintained after the IP addresses of the nodes at both ends of the tunnel are changed.
  • a key application scenario of the M0BIKE protocol is that the IPsec VPN mobile node still maintains the original IPsec tunnel with the VPN gateway after the external network changes its care-of address.
  • the M0BIKE support communication has multiple addresses on both sides, and the initiator address of the IKE-SA (Internet Key Exchange-Security Association) determines the end address pair of the tunnel to be used.
  • IKE-SA Internet Key Exchange-Security Association
  • the update address request is also issued by the initiator of the IKE-SA.
  • the setting of M0BIKE is very suitable for the application scenario of mobile VPN. In a mobile VPN, it is often the case that the mobile node initiates an IKE negotiation to the VPN gateway when the external network is in the external network, and establishes an IPsec tunnel. After the mobile node care-of address changes, the mobile node initiates an update address request, and begins to update the address of the mobile node in the IKE SA and IPsec SAs (IPsec SA).
  • IPsec SA IPsec SA
  • M0BIKE is an extended protocol of IKEv2, its implementation is completed in the negotiation exchange of IKEv2.
  • M0BIKE defines some new advertising payloads, which are used to implement M0BIKE support in the negotiation exchange of IKEv2's three switching types (IKE-SA switching, IPsec SA switching, and information exchange).
  • the M0BIKE protocol supports entities at both ends of the communication to have multiple addresses at the same time.
  • the initiator and the responder can add ADDITI0NAL_IPv4_ADDRESS (adding IPv4 address) or ADDITIONAL-IPv6-ADDRESS in the IKE JVUTH exchange (that is, the last two messages exchanged by IKEv2). (Join the IPv6 address) Announce the payload.
  • the initiator of IKE_SA determines the address used in IPsec SAs. That is, the responder updates the IP address of the IPsec SAs only after receiving the UPDATE_SA_ADDRESSES request from the initiator. After the initiator determines that the address is to be updated, update the IP address in IKE-SA and IPsec SAs, set the "pending-update” flag in IKE-SA; if it is sent to the responder but has not received it yet Responding to the IKEv2 request, retransmitting the request with the updated IP address; when the window size allows, sending a message exchange if request containing the UPDATE_SA_ADDRESSES notification payload, and clearing the "pending_update”flag; Waiting for the message exchange response period address ⁇ has changed, it starts again from the first step The returned response message is ignored.
  • the initiator When the initiator receives the response, it needs to perform the corresponding processing as follows:
  • the initiator can choose another address and re-exchange, or continue to use the current address, or disconnect.
  • the Return Routabiity Check function is also included, which is: Whether the initiator or the responder can selectively confirm whether the other party can receive the data packet by using the current address. .
  • the return route reachability check can be performed before or after updating the IPsec SAs, or during a normal connection. By default, a return route reachability check is required after the IPsec SAs update is completed.
  • One party initiates an IKE information exchange request, which contains a C00 kie2 advertisement payload; the other party sends an information exchange response after receiving the information exchange request, copies the received c 0 okie2 advertisement payload and is included in the information exchange response; After receiving the information exchange response, the party checks whether the received cookie2 advertisement payload is exactly the same as that sent by itself, thus completing the return route reachability check.
  • the switching of mobile nodes on the external network can be divided into two situations:
  • the switching between the similar networks refers to the mobile node roaming from one IPv4 external network to another IPv4 external network, or roaming from one IPv6 external network to another IPv6 external network;
  • the heterogeneous network switching refers to the mobile node roaming from an IPv4 external network to an IPv6 external network, or roaming from an IPv6 external network to an IPv4 external network.
  • the mobile node roaming from the IPv6 internal network to the external network can be divided into two cases: moving to the IPv4 external network and the mobile IPv6 external network.
  • the mobile node is located in the internal network
  • the mobile node is located on the internal network. If it is not in the home network, it communicates with the VPN internal home agent and communication node through standard mobile IPv6.
  • the mobile node located in the internal network moves, when the IP address changes, it needs to immediately stop communication with other nodes in the VPN, and includes:
  • IPv4 care-of address If the IPv4 care-of address is obtained, it is determined that the mobile node is located in an IPv4 external network, and the IPv4 care-of address is used to perform IKE negotiation with the VPN gateway to support MOBIKE, and an IPsec tunnel is established; the mobile node generates the VPN gateway.
  • the VPN-TIA sends a registration request to the i-HA (internal home agent) through the IPsec tunnel as the internal MIPv6 care-of address, and passes the registration response.
  • the established IPsec tunnel communicates with the internal network node;
  • the domain name is used to indirectly query the IPv6 address of the VPN gateway.
  • the specific query process has been described above and will not be described here.
  • the mobile node needs to play the VPN internal hometown.
  • the proxy sends a standard mobile IPv6 registration request, and the mobile node performs corresponding communication processing according to whether the corresponding mobile IPv6 registration response is received, specifically: if the mobile node receives the mobile IPv6 registration response corresponding to the mobile IPv6 registration request, Then, it is determined that the network where the mobile node EI is located is still in the VPN internal network, so that after completing the registration update, the mobile node can communicate with the VPN internal node by using the new IPv6 care-of address;
  • the mobile node should be located in an IPv6 external network, and use the new IPv6 address and the VPN gateway to support M0BIKE.
  • the IKE negotiation establishes an IPsec tunnel.
  • the specific process of establishing an IPsecP tunnel is as follows: The mobile node uses the VPN-TIA generated by the VPN gateway as the internal mobile IPv6 care-of address, and sends a registration request to the internal home agent through the IPsec tunnel. After receiving the registration response, it communicates with the internal network node through the established IPsec tunnel.
  • the mobile node is located in the external network
  • IPsec tunnel When the mobile node is on the external network, an IPsec tunnel is established to communicate with the internal nodes of the VPN through the IPsec tunnel.
  • the configuration of the mobile node in the IPv4 external network and the IPv6 external network is different.
  • the IPv6 external network in the mobile node needs to be encapsulated in IPv6 in IPv4 tunnel, which is more complicated.
  • the following describes the mobile node roaming on the IPv4 external network and the roaming on the IPv6 external network respectively.
  • the mobile node is located in the IPv4 external network.
  • the IPv4 care-of address is used as the local address of the tunnel
  • the VPN gateway supports the IKE negotiation of M0BIKE to establish an IPsec tunnel and communicate with the VPN internal node through the IPsec tunnel.
  • the communication with the internal node of the VPN is immediately stopped, and includes:
  • the mobile node enters another IPv4 external network, starts to initialize M0BIKE, and performs SA address update.
  • the updated endpoint address of the SA is the new IPv4 care-of address of the mobile node and the IPv4 address of the VPN gateway.
  • the domain name resolution method is used to indirectly query the IPv6 address of the VPN gateway; at the same time, the mobile node also needs to send a standard mobile IPv6 registration request to the VPN internal home agent; Return the corresponding registration response for corresponding communication processing, including:
  • the mobile node receives the mobile IPv6 registration response corresponding to the mobile IPv6 registration request, it is determined that the mobile node now enters the VPN internal network, and after completing the registration update, the mobile node can use the new IPv6 care-of address and the VPN
  • MIPv6 Mobile IPv6
  • the address update, the updated SA endpoint address is the newly obtained IPv6 care-of address of the mobile node and the IPv6 address of the VPN gateway; after completing the IKE SA and iPsec SAs address update, the mobile node continues to communicate with the VPN internal node through the IPsec tunnel.
  • the SA address needs to be explained: Since the mobile node moves from the IPv4 external network to the IPv6 external network, the destination address and the source address of the mobile node (that is, the endpoint address of the SA) are changed, and the mobile node updates them to IPv6 address; for the VPN gateway, after receiving the UPDATE-SA-ADDRESSES (Update Security Association Address) notification payload, it is updated according to the address of the worker P packet. Therefore, the VPN gateway considers that the endpoint address of the SA has changed and will be updated to mobile.
  • the IPv6 address of the node and VPN gateway 2.
  • the mobile node is located in the IPv6 external network.
  • the mobile node When the mobile node is located on the IPv6 external network, obtain the IPv6 care-of address and query the IPv6 address of the VPN gateway through domain name resolution. Then initiate IKE negotiation that supports M0BIKE and establish an IPsec tunnel. Communicate with the internal nodes of the VPN through the IPsec tunnel. When the mobile node moves in the IPv6 external network and the IP address changes, it immediately stops communication with the internal node of the VPN, and includes:
  • the mobile node enters another IPv4 external network, starts to initialize M0BIKE, and performs SA address update.
  • the updated endpoint address of the SA is the new IPv4 care-of address of the mobile node and the IPv4 address of the VPN gateway.
  • the domain name resolution method is used to indirectly query the IPv6 address of the VPN gateway; at the same time, a standard mobile IPv6 registration request is sent to the VPN internal home agent; and the mobile node returns the registration response according to whether it is returned.
  • Corresponding communication processing including:
  • the mobile node receives the mobile IPv6 registration response corresponding to the mobile IPv6 registration request, it is determined that the mobile node now enters the VPN internal network, and after completing the registration update, the mobile node can communicate with the VPN internal node by using the new IPv6 care-of address. If the MIPv6 registration response corresponding to the mobile IPv6 registration request is not received, and the IPv6 address of the VPN gateway is successfully queried, the mobile node is located in an IPv6 external network, and the M0BIKE is initialized, and the SA address is updated, and the updated The SA endpoint address is the newly obtained IPv6 care-of address of the mobile node and the IPv6 address of the VPN gateway. After completing the IKE SA and IPsec SAs address update, the mobile node continues to communicate with the VPN internal node through the IPsec tunnel.
  • the return routability check (“return routability" check) can be used to check the reachability of addresses provided by both nodes of the apricot, which avoids A large amount of communication traffic is passed to third parties;
  • NAT prohibition makes IP addresses unmodified by any NAT, IPv4/v6, or other similar device.
  • This feature is mainly used when the administrator already knows that there are no NAT devices between the two nodes, so any modification to the packet is considered an attack.
  • a return route reachability check is added before each SA address update, before the communication of the data stream has been resumed, ensuring that the updated address is securely routable.
  • the mobile node enters the IPv4 external network or the IPv6 external network, it is considered that there is no necessary NAT device between the mobile node and the VPN gateway. Therefore, NAT prohibition can be used to protect the data packet from being modified.
  • the embodiment provided by the present invention successfully solves the two problems mentioned in the prior art by using the M0BIKE protocol to update the address item of the SA and the method assigned by the VPN gateway to the VPN node of the mobile node. It is proposed that in the IPv4 to IPv6 transition period, the IPv4 is used as the backbone network in the IPv4-v6 hybrid environment, the mobile node implements access to the VPN service, and maintains the normal communication under the premise of switching between networks.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A VPN gateway and a IPv6 network system and a system for realizing mobile VPN in hybrid network and the method, the present invention is used in the hybrid network including IPv4 network and IPv6 network, in which, a VPN gateway is set, the VPN gateway provides the inner interface of IPv6 address and the external interface of IPv4; and includes that: first, a tunnel is set up between the VPN gateway and the external network so as to transmit the packets interacted between the external network and IPv6 network inside the VPN, the dual end addresses of the tunnel are the IPv4 address of the external network and the IPv4 address of the external interface provided by VPN gateway; then, transmits the VPN packets which need to be transmitted by the said tunnel, so as to realize the VPN service. By realizing the present invention, during the evolvement from IPv4 network to IPv6, the mobile VPN service also can be realized by the hybrid network.

Description

一种 VPN网关及 IPv6网络系统及混合网络中实现移动 VPN的系统及方法 技术领域  System and method for implementing mobile VPN in VPN gateway and IPv6 network system and hybrid network

本发明涉及网络通信技术领域, 尤其涉及一种实现移动 VPN的技术。 发明背景  The present invention relates to the field of network communication technologies, and in particular, to a technology for implementing a mobile VPN. Background of the invention

移动 VPN (虚拟专用网)是传统 VPN与移动技术相结合的新型 VPN解决方案。支持 VPNrt部的 MN (移 动节点)在外部网络通过与 VPN网关建立隧道与 VPN内部节点保持通信。 IPsec VPN ( IP网安全协议 VPN ) 采用 IPsec ( IP网安全协议) 作为隧道技术的安全保证实现 VPN, 从而可以为 IP网络中的隧道两端通 信节点提供很好的安全性, 进而保证 VPN业务的安全性。 IPsec VPN结合标准的移动 IPv4协议提供了 移动 VPN的基本框架。  Mobile VPN (Virtual Private Network) is a new VPN solution combining traditional VPN and mobile technologies. The MN (mobile node) supporting the VPNrt unit maintains communication with the VPN internal node by establishing a tunnel with the VPN gateway on the external network. IPsec VPN (IP network security protocol VPN) uses IPsec (IP network security protocol) as the security guarantee of the tunnel technology to implement VPN, which can provide good security for the communication nodes at both ends of the tunnel in the IP network, and thus ensure the VPN service. safety. IPsec VPN combines the standard mobile IPv4 protocol to provide the basic framework for mobile VPN.

在纯 IPv4网络环境下, 典型的 IPsec VPN与 MIPv4 (移动 IPv4) 相结合时, 会存在以下两个土要 问题:  In a pure IPv4 network environment, when a typical IPsec VPN is combined with MIPv4 (Mobile IPv4), there are two common problems:

( 1 ) 当移动节点移动到 VPN外部时, 如果通过外部网络的 FA (外地代理) 获得转交地址, 则由 于外地代理是由其它网络的管理员配置, 其通常不支持 IPSec , 因而将导致移动节点无法向位于 VPN 中的 i- HA (内部的家乡代理) 进行注册;  (1) When the mobile node moves outside the VPN, if the care-of address is obtained through the FA (foreign agent) of the external network, since the foreign agent is configured by the administrator of the other network, it usually does not support IPSec, thus causing the mobile node Unable to register with i-HA (internal home agent) located in the VPN;

( 2 )如果移动节点在外部网络获得配置转交地址, 其虽然可以通过与 VPN网关建立 IPSec隧道向 VPN内部的家乡代理完成注册, 但是移动节点每更改一次配置转交地址就耍与 VPN网关重新协商建立 IPSec隧道, 这样, 在节点频繁移动的情况下, 增加了网络切换的延迟, 降低了节点的移动性。  (2) If the mobile node obtains the configuration care-of address on the external network, it can complete registration with the home agent in the VPN by establishing an IPSec tunnel with the VPN gateway, but the mobile node renegotiates with the VPN gateway every time the configuration of the care-of address is changed. The IPSec tunnel, in this case, increases the delay of network switching and reduces the mobility of the node when the node moves frequently.

目前, 针对上述问题提供的一种解决方案为: 在 IPv4环境下, 在 VPN网关之外设: Six- HA (外部家 乡代理) , 移动节点首先向外部家乡代理注册, 之后通过外部家乡代理与 VPN网关建立 IPsec隧道, 实现向 νΡΝ| 部家乡代理完成注册, 从而解决了上述的两个问题。  Currently, a solution to the above problem is: In the IPv4 environment, outside the VPN gateway: Six-HA (external home agent), the mobile node first registers with the external home agent, and then through the external home agent and VPN The gateway establishes an IPsec tunnel to complete registration with the νΡΝ| department agent, thus solving the above two problems.

相应的网络结构如图 1所示, Χ-ΗΑ表示在外部网络设置的家乡代理, 在 Internet ( W特网) 中存 在着支持移动 IPv4的 External Net (外部网络); 同时, 在 VPN内部也存在着支持移动 IPv4的 Home Net (家乡网络) 和 Fore ign Net (外地网络) 。  The corresponding network structure is shown in Figure 1. Χ-ΗΑ indicates the home agent set up in the external network. External Internet (External Network) supporting Mobile IPv4 exists in the Internet (W network). At the same time, it also exists inside the VPN. Home Net (Home Network) and Fore ign Net (Foreign Network) supporting Mobile IPv4.

在移动节点移动到外部网络, 并获得转交地址后, 首先向外部家乡代理注册并获得 c- I-IoA (外部 家乡地址) ; 之后再利用外部家乡地址与 VPN网关进行 IKE (因特网密钥交换)协商建立 IPsec隧道, 通过 IPsec隧道向 VPN内部的家乡代理注册, 这样, 移动节点就可以与 VPN内部网络节点进行通信。  After the mobile node moves to the external network and obtains the care-of address, it first registers with the external home agent and obtains c-I-IoA (external home address); then uses the external home address to communicate with the VPN gateway for IKE (Internet Key Exchange) The IPsec tunnel is negotiated and registered with the home agent inside the VPN through the IPsec tunnel, so that the mobile node can communicate with the VPN internal network node.

下面将以移动节点位于配置 x-FA (外部网络的外地代理) 的外部网络为例, 说明移动节点的注 册流程以及数据包的封装方式。  The following takes the external network of the mobile node in the configuration x-FA (foreign agent of the external network) as an example to describe the registration process of the mobile node and the way the data packet is encapsulated.

当移动节点进入配置外部家乡代理的外部网络后, 获得外地代理转交地址; 同时, 移动节点还 需要向外部家乡代理和内部家乡代理发送标准的移动 IPv4注册请求;  After the mobile node enters the external network configuring the external home agent, the foreign agent care-of address is obtained; at the same time, the mobile node also needs to send a standard mobile IPv4 registration request to the external home agent and the internal home agent;

由于移动节点位于外部网络, 因此, 其只能收到来自外部家乡代理的注册应答, 裉据所述的应 答消息移动节点获得外部家乡代理分配的 x-HoA, 并作为移动节点在外部网络的转交地址;  Since the mobile node is located in the external network, it can only receive the registration response from the external home agent, and according to the response message, the mobile node obtains the x-HoA assigned by the external home agent and acts as a handover of the mobile node on the external network. Address

移动节点使用获得的 x-HoA作为 IKE协商和 IPsec隧道的端点地址, 与 VPN网关建立隧道; 在与 VPN网关协商过程中, VPN网关指派给移动节点一个 VPN- TIA (VPN隧道内部地址) ; 移动节 点将 VPN-TIA作为向内部家乡代理注册的转交地址, 封装在 IPsec隧道内向内部家乡代理进行注册; 在注册完成后, 移动节点和 VPN内部的通信节点就可进行通信。通信的数据包经过三次封装, 具 体的封装结果如图 2所示, 其中最外层的 x-MIP表示是移动节点到外部家乡代理的移动 IPv4封装, 中 间层是从 X- HA到 VPN网关 (VPN GW) 的 IPsec封装, 最内层 i- MIP是 VPN内部移动 IPv4封装。 通过图 2 可以看出, 移动节点在配置外地代理的外部网络中可以完成向 VPN内部的家乡代理的注册, 当移动节 点的转交地址发生变化时, 也不会影响 IPsec隧道的维持。 因此, 这一实现方案有效解决了上述的两 个问题。 The mobile node uses the obtained x-HoA as the endpoint address of the IKE negotiation and IPsec tunnel to establish a tunnel with the VPN gateway; during the negotiation with the VPN gateway, the VPN gateway assigns a VPN-TIA (VPN tunnel internal address) to the mobile node; The node uses the VPN-TIA as the care-of address registered with the internal home agent, and encapsulates it in the IPsec tunnel to register with the internal home agent; After the registration is completed, the mobile node and the communication node inside the VPN can communicate. The communication packet is encapsulated three times. The specific encapsulation result is shown in Figure 2. The outermost x-MIP indicates the mobile IPv4 encapsulation of the mobile node to the external home agent, and the middle layer is from the X-HA to the VPN gateway. VPN GW) IPsec encapsulation, the innermost i-MIP is the VPN internal mobile IPv4 encapsulation. As can be seen from FIG. 2, the mobile node can complete registration with the home agent inside the VPN in the external network configuring the foreign agent. When the mobile node's care-of address changes, it does not affect the maintenance of the IPsec tunnel. Therefore, this implementation effectively solves the above two problems.

然而, 由于上述实现方案中引入了外部家乡代理,使得 VPN网络结构更加复杂,提髙了维护成本; 同时, 引入外部家乡代理也带来一些新的问题, 如外部家乡代理的位置选取问题, 以及外部家乡代 理受信问题等。  However, due to the introduction of the external home agent in the above implementation scheme, the VPN network structure is more complicated and the maintenance cost is increased. At the same time, the introduction of the external home agent also brings some new problems, such as the location selection problem of the external home agent, and External home agent is subject to trust issues.

目前, 提供的另一种解决上述两个问题实现方案为: 在 IPv4环境下, 使用支持 MOBIKE ( IKEv2 移动与多接口协议) 协议的 IPsec作为移动节点与 VPN网关的隧道技术, 以解决上述的两个问题。  At present, another solution for solving the above two problems is as follows: In the IPv4 environment, IPsec supporting the MOBIKE (IKEv2 Mobile and Multi-Interface Protocol) protocol is used as a tunneling technology between the mobile node and the VPN gateway to solve the above two Questions.

所述的 MOBIKE是基于 IKEv2的扩展协议, 有效支持了 IPsec隧道通信两端的移动性。 在移动节点 开始与 VPN网关协商建立 IPsec隧道时, 会先后生成 IKE SA和 IPsec SAs。 MOBIKE协议允许隧道两端的 节点在保持 IKE SA和 IPsec SAs的情况下更新其 IP地址, 也就是说在隧道两端的节点地址改变后仍可 以保持原有的 IPsec隧道进行通信, 无须重新协商。  The MOBIKE is an extension protocol based on IKEv2, which effectively supports the mobility of both ends of the IPsec tunnel communication. When the mobile node starts to negotiate with the VPN gateway to establish an IPsec tunnel, it will generate IKE SA and IPsec SAs. The MOBIKE protocol allows the nodes at both ends of the tunnel to update their IP addresses while maintaining IKE SA and IPsec SAs. That is, the original IPsec tunnel can still be maintained after the node addresses on both ends of the tunnel are changed, without renegotiation.

基于 MOBIKE的网络结构如图 3所示, 在 Internet中存在着支持移动 IPv4的 External Net; 同时, 在 VPN内部网络也存在着支持移动 IPv4的 Home Net和 Foreign Net。  The network structure based on MOBIKE is shown in Figure 3. There is External Net supporting mobile IPv4 on the Internet. At the same time, Home Net and Foreign Net supporting mobile IPv4 exist in the VPN internal network.

移动节点位于 VPN内部的外地网络时, 使用标准的移动 IPv4与 VPN内部的家乡代理和通信节点进 行通信。当移动节点离开 VPN内部网络,进入外部网络时,则与 VPN网关进行 IKE协商,建立支持 MOBIKE 的 IPsec隧道。 同时在 VPN内部, 移动节点和家乡代理仍保持一个有效的移动 IPv4绑定缓存, 移动节 点使用由 VPN网关为其指定的 VPN-TIA作为 VPN内部网络的配置转交地址向内部家乡代理注册。  When the mobile node is located in a foreign network inside the VPN, it uses standard mobile IPv4 to communicate with the home agent and communication node inside the VPN. When the mobile node leaves the VPN internal network and enters the external network, it performs IKE negotiation with the VPN gateway to establish an IPsec tunnel that supports MOBIKE. At the same time, within the VPN, the mobile node and the home agent still maintain a valid mobile IPv4 binding cache, and the mobile node uses the VPN-TIA designated by the VPN gateway as the configuration care-of address of the VPN internal network to register with the internal home agent.

移动节点因位置的改变从一个外部网络进入另一个外部网络后, 获得新的移动 IPv4转交地址。 此时移动节点开始使用 MOBIKE协议, 更新本端点的 IKE SA和 IPsec SAs的 IP地址, 并通告 VPN网关更 新相应 SA的 IP地址。 在完成 SA的地址更新之后, 使用原有的 IPsec隧道继续通信。  After the mobile node enters another external network from one external network due to the change of location, a new mobile IPv4 care-of address is obtained. At this point, the mobile node starts to use the MOBIKE protocol to update the IP addresses of the IKE SA and IPsec SAs of the endpoint, and advertises the VPN gateway to update the IP address of the corresponding SA. After completing the address update of the SA, the communication is continued using the original IPsec tunnel.

可以看出, 该方案提出了纯 IPv4网络环境下使用 MOBIKE解决所述的两个问题。 但是, 由于因特 网的发展方向是 IPv6, 且在 IPv6取代 IPv4的进程中, " IPv6孤岛"和 "IPv4海洋" 的混合网络必然 会长期存在, 因此, 还需要解决在混合网络中存在的相应问题。 然而, 现有的技术方案还无法解决 包括 IPv4和 IPv6的混合网络下移动 VPN的应用问题。 发明内容 本发明实施例提供了一种 VPN网关及 IPv6网络系统及混合网络中实现移动 VPN的系统及方法, 以 解决相应的 IPv4和 IPv6混合网络下的移动 VPN的应用问题, 使得在现有的网络场景中, 基于 IPv6网络 开展 VPN业务成为可能。  It can be seen that the scheme proposes two problems described in the pure IPv4 network environment using MOBIKE. However, since the development direction of the Internet is IPv6, and in the process of IPv4 replacing IPv4, the hybrid network of "IPv6 island" and "IPv4 ocean" will inevitably exist for a long time. Therefore, it is necessary to solve the corresponding problems in the hybrid network. However, the existing technical solutions cannot solve the application problem of mobile VPN under the hybrid network including IPv4 and IPv6. SUMMARY OF THE INVENTION Embodiments of the present invention provide a VPN gateway, an IPv6 network system, and a system and method for implementing a mobile VPN in a hybrid network, to solve the application problem of the mobile VPN under the corresponding IPv4 and IPv6 hybrid network, so that the existing In the network scenario, it is possible to conduct VPN services based on IPv6 networks.

本发明实施例提供了一种 VPN网关,包括 IPv4报文处理单元、 IPv4接口、 IPv6报文处理单元及 IPv6 接口, 其中, 所述 IPv4接口用于与 IPv4网络进行 IPv4报文的交互, 所述的 IPv4报文处理单元用于进 行 IPv4报文的封装或解封装处理; 所述 IPv6接口用于与 IPv6网络进行 IPv6报文的交互, 所述的 IPv6 报文处理单元用于进行 IPv6报文的封装或解封装处理。 The embodiment of the present invention provides a VPN gateway, which includes an IPv4 packet processing unit, an IPv4 interface, an IPv6 packet processing unit, and an IPv6 interface, where the IPv4 interface is used to perform IPv4 packet interaction with the IPv4 network. IPv4 message processing unit is used to enter The IPv6 packet is encapsulated or decapsulated. The IPv6 interface is used to perform IPv6 packet exchange with the IPv6 network. The IPv6 packet processing unit is configured to encapsulate or decapsulate the IPv6 packet.

本发明实施例提供了一种 IPv6网络系统, 该系统可穿越 IP v4网络并通过 VPN网关与 VPN内部的 IPv6网络通信, 所述 VPN网关提供的内部接口为 IPv6接口, 外部接口为 IPv4接口, 该系统还包括: 隧道建立模块: 用于在 VPN网关与外部网络之间建立可传输两网络之间交互的 VPN报文的隧道, 且所述的隧道的两端地址分别为外部网络的 IPv4地址和 VPN网关提供的外部接口的 IPv4地址;  The embodiment of the present invention provides an IPv6 network system, where the system can traverse the IP v4 network and communicate with the IPv6 network inside the VPN through the VPN gateway. The internal interface provided by the VPN gateway is an IPv6 interface, and the external interface is an IPv4 interface. The system further includes: a tunnel establishment module: configured to establish, between the VPN gateway and the external network, a tunnel that can transmit VPN packets exchanged between the two networks, and the addresses of the two ends of the tunnel are respectively an IPv4 address of the external network and The IPv4 address of the external interface provided by the VPN gateway.

报文封装传送模块: 设 S于所述隧道的两端, 用于将待发送的 VPN报文封装上 IPv4报文头, 并通 过所述的隧道发送给对端。  The packet encapsulation and delivery module is configured to be configured to send the VPN packet to be sent to the peer end through the tunnel.

本发明实施例提供了一种混合网络中实现移动 VPN的系统, 包括外部网络、 IPv4网络、 VPN和 VPN 网关,所述的 VPN内部网络为 IPv6网络,所述的 VPN网关提供的内部接口为 IPv6接口,外部接口为 IPv4 接口, 所述的外部网络包括 IPv4外部网络和 IPv6外部网络, 所述的系统还包括:  The embodiment of the present invention provides a system for implementing a mobile VPN in a hybrid network, including an external network, an IPv4 network, a VPN, and a VPN gateway. The VPN internal network is an IPv6 network, and the internal interface provided by the VPN gateway is IPv6. The external interface is an IPv4 interface, and the external network includes an IPv4 external network and an IPv6 external network, and the system further includes:

隧道建立模块: 用于在 VPN网关与外部网络之间建立可传输两网络之间交互的 VPN报文的隧道, 且所述的隧道的两端地址分别为外部网络的 IPv4地址和 VPN网关提供的外部接口的 IPv4地址;  The tunnel establishment module is configured to establish a tunnel between the VPN gateway and the external network, which can transmit the VPN packets exchanged between the two networks, and the addresses of the two ends of the tunnel are respectively provided by the IPv4 address of the external network and the VPN gateway. IPv4 address of the external interface;

报文封装传送模块: 设置于所述隧道的两端, 用于将待发送的 VPN报文封装上 IPv4报文头, 并通 过所述的隧道发送给对端。  The packet encapsulation and delivery module is configured to be configured to be configured to be configured to send the VPN packet to be sent to the peer end by using the tunnel.

本发明实施例提供了一种混合网络中实现移动 VPN的方法,该方法应用于包括 IPv4网络和移动虚 拟专用网 VPN内部的 IPv6网络的混合网络中, 且在所述的混合网络中设置 VPN的 VPN网关, 所述的 VPN 网关提供有 IPv6地址的内部接口和 IPv4地址的外部接口, 该方法包括:  Embodiments of the present invention provide a method for implementing a mobile VPN in a hybrid network, where the method is applied to a hybrid network including an IPv4 network and an IPv6 network inside a mobile virtual private network VPN, and a VPN is set in the hybrid network. The VPN gateway, the VPN gateway provides an internal interface with an IPv6 address and an external interface of an IPv4 address, and the method includes:

在所述的 VPN网关与外部网络之间建立隧道, 所述隧道用于传输外部网络与 VPN内部的 IPv6网络 之间交互的 VPN报文, 且所述隧道两端地址分别为外部网络的 IPv4地址和 VPN网关提供的外部接口的 IPv4地址, 所述的外部网络为 IPv4外部网络或 IPv6外部网络;  Establishing a tunnel between the VPN gateway and the external network, where the tunnel is used to transmit a VPN packet exchanged between the external network and the IPv6 network inside the VPN, and the addresses at both ends of the tunnel are respectively the IPv4 address of the external network. And an IPv4 address of the external interface provided by the VPN gateway, where the external network is an IPv4 external network or an IPv6 external network;

将需要传送的 VPN报文封装上 IPv4报头后, 通过所述隧道传送所述 VPN报文, 以在混合网络中 实现 VPN业务。  After the VPN packet to be transmitted is encapsulated in the IPv4 header, the VPN packet is transmitted through the tunnel to implement the VPN service in the hybrid network.

可以看出, 本发明实施例利用 IPv6 in IPv4隧道技术实现了在 IPv4和 IPv6混合网络中移动 VPN 业务的开展, 使得在由 IPv4网络向 IPv6演进的过程中, 仍然能够实现移动 VPN业务。 附图简要说明  It can be seen that the embodiment of the present invention implements the mobile VPN service in the IPv4 and IPv6 hybrid network by using the IPv6 in IPv4 tunneling technology, so that the mobile VPN service can still be implemented in the process of transitioning from the IPv4 network to the IPv6. BRIEF DESCRIPTION OF THE DRAWINGS

图 1为 IPv4环境下配置外部家乡代理的移动 VPN的结构;  Figure 1 shows the structure of a mobile VPN configured with an external home agent in an IPv4 environment;

图 2为数据包封装结构示意图;  2 is a schematic diagram of a data packet encapsulation structure;

图 3为 IPv4环境下配置 M0BIKE的移动 VPN的结构;  Figure 3 shows the structure of a mobile VPN configured with M0BIKE in an IPv4 environment;

图 4为本发明实施例提供的混合网络的移动 VPN的网络结构示意图;  4 is a schematic structural diagram of a network of a mobile VPN of a hybrid network according to an embodiment of the present invention;

图 5为图 3中的 DNS请求转发处理过程示意图;  FIG. 5 is a schematic diagram of a DNS request forwarding process in FIG. 3;

图 6为图 3中的 DNS应答转发处理过程示意图。 实施本发明的方式  FIG. 6 is a schematic diagram of the DNS response forwarding processing process in FIG. 3. Mode for carrying out the invention

随着网络通信技术的发展, 在 IPv6网络取代 IPv4网络的发展进程中, 由于现有 IPv4网络的广泛 应用, 使得以 "IPv6孤岛"和 " IPv4海洋"为基础的 IPv4-v6混合网络会在一段时期内长期存在。 本发明的实施例正是针对这种混合网络提供了一种 IPv4- v6混合网络下移动 VPN的网络结构和相 应的设备功能耍求, 以及移动节点在不同类型网络中接入 VPN的方式, 从而解决移动节点在不同类型 网络间切换时, 移动节点的 SA (安全联盟) 地址更新的问题。 With the development of network communication technology, in the development process of IPv6 network replacing IPv4 network, due to the extensive range of existing IPv4 networks Application, making the IPv4-v6 hybrid network based on "IPv6 island" and "IPv4 ocean" will exist for a long time. The embodiment of the present invention provides a hybrid network with a mobile network structure and corresponding device functions in an IPv4-v6 hybrid network, and a method for the mobile node to access the VPN in different types of networks, thereby Resolve an issue where the mobile node's SA (Security Association) address is updated when the mobile node switches between different types of networks.

本发明具体实施例是以 "IPv6孤岛", "IPv4海洋"的 ΙΡν4-ν6泡合网络为基本网络框架, 通过 引入 M0BIKE扩展协议解决移动节点的 SA地址更新问题; 并且利用 IPv6 in IPv4隧道技术结合域名解 析的方式实现移动节点在 IPv6网络与 IPv4网络中的 VPN网关进行通信,从而 ¾终实现移动节点位丁-多 种类型网络中均能够实现移动节点与 VPN内部节点的通信。  The specific embodiment of the present invention uses the "IPv6 island" and "IPv4 ocean" ΙΡν4-ν6 bubble network as the basic network framework, and solves the problem of updating the SA address of the mobile node by introducing the M0BIKE extension protocol; and adopts the IPv6 in IPv4 tunnel technology to combine The method of domain name resolution enables the mobile node to communicate with the VPN gateway in the IPv6 network and the IPv4 network, so that the mobile node can communicate with the internal node of the VPN in the mobile node-multiple types of networks.

也就是说, 本发明的实施例主要是釆用 IPv6 in IPv4隧道技术的思想, 配置了 DNS- ALG (域名服 务器-应用层网关) 等设备实现了移动节点位于 IPv6外部网络通过 IPv4网络查询 WN网关 IPv6地址, 并进行相应的通信。从而实现当移动节点位于 IPv6外部网络时, 仍可以通过 IPv4网络与 VPN网关的进 行通信, 进而可以实现 IPv4和 IPv6混合网络下移动 VPN服务。  That is to say, the embodiment of the present invention mainly adopts the idea of IPv6 in IPv4 tunneling technology, and configures a device such as a DNS-ALG (Domain Name Server-Application Layer Gateway) to implement a mobile node located in an IPv6 external network to query a WN gateway through an IPv4 network. IPv6 address, and communicate accordingly. Therefore, when the mobile node is located in the IPv6 external network, the IPv4 network can still communicate with the VPN gateway, thereby implementing the mobile VPN service under the hybrid network of IPv4 and IPv6.

具体一点讲, 在所述的混合网络中, 依据移动节点所在位置的不同, 具体可分为: 移动节点位 于 IPv6内部网络(即位于 VPN内部) 、 IPv4外部网络和 IPv6外部网络三种情况, 针对不同的情况需耍 采用不同的通信方式, 从而可以在混合网络中实现移动 VPN业务。  Specifically, in the hybrid network, depending on the location of the mobile node, the mobile node is located in the IPv6 internal network (that is, inside the VPN), the IPv4 external network, and the IPv6 external network. Different situations require different communication methods, so that mobile VPN services can be implemented in a hybrid network.

为区别不同情况下釆用的通信方式, 需要在移动节点的 IP地址发生变化时, 首先停止与其它节 点的通信, 并根据 IP地址类型判断当前所在的网络的类型; 之后, 通过移动 IP注册和 VPN地址杳询的 方式判断移动节点位于内部网络还是外部网络, 并根据情况建立 IPsec隧道或者更新原有 IPsec SA 的地址; 完成相应处理后, 再恢复之前的通信。  In order to distinguish the communication modes used in different situations, when the IP address of the mobile node changes, the communication with other nodes is first stopped, and the type of the current network is determined according to the IP address type; The method of querying the VPN address determines whether the mobile node is located in the internal network or the external network, and establishes an IPsec tunnel or updates the address of the original IPsec SA according to the situation; after completing the corresponding processing, the previous communication is resumed.

在实现本发明具体实施例的过程中, 具体需要在 IPv6外部网络边缘的 x-AR (外部接入路由器) 、 :: In the process of implementing the specific embodiment of the present invention, an x-AR (external access router) at the edge of the IPv6 external network is specifically required, ::

DNS- ALG和 DNS服务器中设置 IPv4和 IPv6双协议栈, 且在所述的 VPN网关中设置双协议栈; 同时, x- AR 和 VPN网关需要具有 IPv6 in IPv4隧道封装和解封装处理功能。 The IPv4 and IPv6 dual protocol stacks are set in the DNS-ALG and the DNS server, and the dual protocol stack is set in the VPN gateway. Meanwhile, the x-AR and the VPN gateway need to have the IPv6 in IPv4 tunnel encapsulation and decapsulation processing functions.

经过上述设置后,便可以针对不同的情况采用不同的通信处理方式以实现混合网络中的移动 VPN 业务。 以移动节点进入 IPv6外部网络为例, 相应的处理过程主要包括以下过程:  After the above settings, different communication processing modes can be adopted for different situations to implement the mobile VPN service in the hybrid network. Taking the mobile node as an external IPv6 network as an example, the corresponding process mainly includes the following processes:

( 1) 移动节点进入 IPv6外部网络后, 利用域名解析的方式间接查询 VPN网关的 IPv6地址; (1) After the mobile node enters the IPv6 external network, indirectly query the IPv6 address of the VPN gateway by means of domain name resolution;

(2 ) 移动节点发山 VPN网关的 IPv6 DNS请求, 经过 DNS- ALG转换成 IPv4 DNS请求, 再转发至 IPv4 网络中; (2) The IPv6 DNS request of the VPN node of the mobile node is converted into an IPv4 DNS request by the DNS-ALG, and then forwarded to the IPv4 network;

( 3)在 IPv4网络返回关于 VPN网关的 IPv4地址后, 首先发送至 DNS- ALG, 由 DNS- ALG给该 IPv4地 址加上特定的前缀构成 IPv6地址, 将此地址最终返回给移动节点。  (3) After the IPv4 network returns the IPv4 address of the VPN gateway, it first sends it to the DNS-ALG. The DNS-ALG adds a specific prefix to the IPv4 address to form an IPv6 address, and finally returns the address to the mobile node.

(4)移动节点根据返回的 VPN网关 IPv6地址构造数据包, 和 VPN网关进行通信; 其中, 移动节点 和 VPN网关通信的数据包, 均会经过 IPv6 in IPv4隧道封装与解封装, 以实现不同协议类型节点之间 的通信。  (4) The mobile node constructs a data packet according to the returned VPN gateway IPv6 address, and communicates with the VPN gateway; wherein, the data packets communicated by the mobile node and the VPN gateway are encapsulated and decapsulated by the IPv6 in IPv4 tunnel to implement different protocols. Communication between type nodes.

经过上述处理过程, 便可以在混合网络中实现移动 VPN业务的互通。  After the above processing, the interworking of the mobile VPN service can be implemented in the hybrid network.

本发明实施例提供了一种混合网络中实现移动 VPN的系统, 其包括外部网络、 IPv4网络、 VPN和 VPN网关, 所述的 VPN内部网络为 IPv6网络, 所述的 VPN网关提供的内部接口为 IPv6接口, 外部接口为 IPv4接口, 所述的外部网络包括 IPv4外部网络和 IPv6外部网络, 而且, 所述的系统还包括隧道建立 模块和报文封装传送模块, 其中: The embodiment of the present invention provides a system for implementing a mobile VPN in a hybrid network, which includes an external network, an IPv4 network, a VPN, and a VPN gateway. The VPN internal network is an IPv6 network, and the internal interface provided by the VPN gateway is An IPv6 interface, the external interface is an IPv4 interface, and the external network includes an IPv4 external network and an IPv6 external network, and the system further includes tunnel establishment. Module and message encapsulation transfer module, where:

所述的隧道建立模块, 用于在 VPN网关与外部网络之间建立可传输两网络之间交互的 VPN报文的 隧道, 且所述的隧道的两端地址分别为外部网络的 IPv4地址和 VPN网关提供的外部接口的 IPv4地址, 即通过该隧道进行 IPv4报文的传递;  The tunnel establishing module is configured to establish, between the VPN gateway and the external network, a tunnel that can transmit VPN packets exchanged between the two networks, and the addresses of the two ends of the tunnel are respectively an IPv4 address and a VPN of the external network. The IPv4 address of the external interface provided by the gateway, that is, the IPv4 packet is transmitted through the tunnel.

所述的报文封装传送模块,设置于所述隧道的两端,用于将待发送的 VPN报文封装上 IPv4报文头, 并通过所述的隧道发送给对端,从而使得无论对端为 IPv4网络还是 IPv6网络,均可以识别所述的 IPv4 报文, 以便于通信交互的正常进行。  The packet encapsulation and delivery module is configured at the two ends of the tunnel, and is configured to encapsulate the VPN packet to be sent into the IPv4 packet header, and send the packet to the peer end through the tunnel, so that the opposite end Whether the IPv4 network or the IPv6 network can identify the IPv4 packet, so that the communication interaction can be performed normally.

在该系统的实施例中, 为进一步实现移动 VPN技术方案, 所述的 IPv6外部网络具体可以通过以下 两种方案中的任意一种实现:  In an embodiment of the system, to further implement the mobile VPN technical solution, the IPv6 external network may be specifically implemented by using any one of the following two solutions:

(一) 第一种方案为, 所述的 IPv6外部网络还包括以下功能实体- (1) The first solution is that the IPv6 external network further includes the following functional entities -

DNS-ALG: 配置为 IPv4和 IPv6双协议栈, 用于在通过 IPv6外部网络开展 VPN业务过程中提供所述 的 VPN网关对应的 IPv6地址; The DNS-ALG is configured as an IPv4 and IPv6 dual protocol stack, and is configured to provide an IPv6 address corresponding to the VPN gateway in the process of performing a VPN service through an IPv6 external network.

IPv6网络中的 DNS: 配置其上级 DNS为所述的 DNS- ALG;  DNS in an IPv6 network: Configure its upper-level DNS as the described DNS-ALG;

外部接入路由器: 配置为 IPv4和 IPv6双协议栈, 用于实现将 IPv6报文封装上 IPv4报文头的功能, 同时, 用于解封装相应的报文。  External access routers: Configured as an IPv4 and IPv6 dual protocol stack, which is used to encapsulate IPv6 packets on IPv6 packets and decapsulate corresponding packets.

(二) 第二种方案为, 所述的 IPv6外部网络还可以包括以下功能实体:  (2) The second solution is that the IPv6 external network may further include the following functional entities:

DNS-ALG: 配置为 IPv4和 IPv6双协议桟, 用于在通过 IPv6外部网络开展 VPN业务过程中提供所述 的 VPN网关对应的 IPv6地址;  The DNS-ALG is configured to provide the IPv6 address corresponding to the VPN gateway in the process of performing the VPN service through the IPv6 external network.

IPv6网络中的 DNS: 在 DNS中配置其上级 DNS为所述的 DNS- ALG;  DNS in an IPv6 network: Configure its upper-level DNS in the DNS as the DNS-ALG;

NAT- PT实体: 用于与外部接入路由器之间进行通信, 并对经过该实体的报文进行相应的 IPv6地 址与 IPv4地址之间的转换;  NAT-PT entity: used for communication with an external access router, and performs conversion between the corresponding IPv6 address and the IPv4 address of the packet passing through the entity;

外部接入路由器: 用于将经过 NAT- PT实体转换后的报文发送给 VPN网关, 并接收 VPN网关发来的 报文。  The external access router is configured to send the packet converted by the NAT-PT entity to the VPN gateway, and receive the packet sent by the VPN gateway.

在该第二种方案中, 其与第一种方案的主要区别在于增加了 NAT- PT实体, 从而简化了外部接入 路由器的处理。  In this second scheme, the main difference from the first scheme is that the NAT-PT entity is added, thereby simplifying the processing of the external access router.

为便于对本发明的理解, 下面将结合附图以采用第一种方案实现 IPv6外部网络为例, 对所述系 统的具体实施例进行详细的说明。  In order to facilitate the understanding of the present invention, the specific embodiment of the system will be described in detail below by taking the first scheme to implement the IPv6 external network as an example.

本发明具体实施例提供的 IPv4-v6混合网络中实现移动 VPN的技术方案的组网结构如图 4所示。在 图 4中, VPN内部是 IPv6网络环境, 同时,在 VPN内部还存在着支持移动 IPv6的 Home Net和 Foreign Net; 网络中的外部网络是以 IPv4为主的互联网, 同时还存在着支持移动 IPv4的 External Net IPv4 ( IPv4 外部网络) 和支持移动 IPv6的 External Net IPv6 ( IPv6外部网络) 。 在 IPv6外部网络边缘设置了 DNS- ALG设备, 以便于移动节点在 IPv6外部网络可以通过域名査洵的方式获得 IPv4网络中的 VPN网关 地址。 在所述的 IPv6网络中, 还包括隧道建立模块和报文封装传送模块。  FIG. 4 shows a networking structure of a technical solution for implementing a mobile VPN in an IPv4-v6 hybrid network according to an embodiment of the present invention. In Figure 4, the VPN is internally an IPv6 network environment. At the same time, there are Home Net and Foreign Net supporting Mobile IPv6 inside the VPN. The external network in the network is IPv4-based Internet, and there is also support for Mobile IPv4. External Net IPv4 (External Net IPv4) and External Net IPv6 (IPv6 External Network) supporting Mobile IPv6. The DNS-ALG device is set on the edge of the IPv6 external network, so that the mobile node can obtain the VPN gateway address in the IPv4 network through the domain name query on the IPv6 external network. The IPv6 network further includes a tunnel establishment module and a packet encapsulation transmission module.

在图 4所示的网络系统中, 各组成设备的功能如下:  In the network system shown in Figure 4, the functions of each component device are as follows:

( 1 )丽(移动节点)  (1) Li (mobile node)

配置 IPv4- v6双协议栈, 支持标准的 MIPv4 (移动 IPv4) /ΜΙΡνθ (移动 IPv6) , 配置支持 M0BIKE 的 IPsec协议; Configure IPv4-v6 dual protocol stack, support standard MIPv4 (mobile IPv4) / ΜΙΡνθ (mobile IPv6), configuration support M0BIKE IPsec protocol;

(2) VPN网关  (2) VPN gateway

其连接设置于内部网络与外部网络之间的通路上, 分别提供有与内部网络及外部网络通信的接 口, 且提供的与外部网络的外部接口地址为 IPv4地址, 与内部网络的内部接口地址为 IPv6地址, 在 VPN网关上配置 IPv4- v6双协议栈, 同时, VPN网关具有 IPv6 in IPv4隧道 (利用 IPv4隧道传输 IPv6报 文的技术) 的封装与解封装功能, 即具有 IPv4报文处理单元, 用于进行 IPv4报文的封装或解封装处 理; 以及 IPv6报文处理单元, 用于进行 IPv6报文的封装或解封装处理; VPN网关还支持标准的 MIPv6 (移动 IPv6协议) , 配置支持 MOBIKE (IKEv2移动与多接口协议) 的 IPsec协议;  The connection is set on the path between the internal network and the external network, and provides an interface for communicating with the internal network and the external network respectively, and the external interface address provided with the external network is an IPv4 address, and the internal interface address of the internal network is An IPv6 address, an IPv4-v6 dual protocol stack is configured on the VPN gateway, and the VPN gateway has an IPv6 in IPv4 tunnel (the technology of transmitting IPv6 packets by using an IPv4 tunnel), and has an IPv4 packet processing unit. It is used to encapsulate or decapsulate IPv4 packets. The IPv6 packet processing unit is used to encapsulate or decapsulate IPv6 packets. The VPN gateway also supports standard MIPv6 (Mobile IPv6 protocol) and supports MOBIKE ( IPsec protocol for IKEv2 mobile and multi-interface protocol);

该 VPN网关还包括 IPv4地址分配单元, 用于为移动到 IPv4外部网络中的移动节点分配 VPN隧道 内部地址, 该地址为移动节点在家乡网络中的转交地址。  The VPN gateway further includes an IPv4 address allocation unit, configured to allocate a VPN tunnel internal address to the mobile node moving to the IPv4 external network, where the address is a care-of address of the mobile node in the home network.

( 3) DNS-ALG (域名服务器-应用层网关) 和 DNS (域名服务器)  (3) DNS-ALG (Domain Name Server - Application Layer Gateway) and DNS (Domain Name Server)

设置于 IPv6外部网络中,其中,所述 DNS- ALG配置 IPv4 v6双协议栈,即同时可以支持 IPv6和 IPv4 协议, 用于提供 VPN网关的 IPv4地址信息, 并将相应的 IPv4地址增加特定的前缀转换为相应的 IPv6 地址, 且作为 IPv6网络中的 DNS的上一级 DNS (当 IPv6网络中的 DNS无法进行域名解析时, 则将相应的 域名解析请求发送到该 DNS- ALG, 由该 DNS ALG进行处理); IPv6网络中的 DNS只配 SlPv6协议栈即可; It is configured in an IPv6 external network, where the DNS-ALG configures an IPv4 v6 dual protocol stack, that is, supports both IPv6 and IPv4 protocols, provides IPv4 address information of the VPN gateway, and adds a specific prefix to the corresponding IPv4 address. Converted to the corresponding IPv6 address, and acts as the upper-level DNS of the DNS in the IPv6 network. (When the DNS in the IPv6 network cannot perform domain name resolution, the corresponding domain name resolution request is sent to the DNS-ALG, and the DNS ALG Processing) The DNS in the IPv6 network can only be configured with the SlPv6 protocol stack;

(4) x-AR (外部接入路由器) (4) x-AR (external access router)

设置于 IPv6外部网络边缘, 配置 IPv4-v6双协议栈, 具有 IPv6 in IPv4隧道的封装与解封装功能。 在图 4所示的系统中, 在 VPN内部相应的 IP地址配置方式如下:  Configured on the IPv6 external network edge, the IPv4-v6 dual protocol stack is encapsulated and decapsulated. In the system shown in Figure 4, the corresponding IP address configuration in the VPN is as follows:

传统的 IPv4网络的 VPN内部配置的是私网地址, 只能在 VPN内部使用。 在 IPv6地址分类中, 站点 本地单播地址非常适合 VPN的应用, 因此, 本发明实施例中将 VPN内部网络配置 IPv6站点本地单播地 址。所述站点本地单播地址只能用于在 VPN网络内部传输数据, 站点内的路由器只能在站点内转发该 地址类型的数据包, 而不能将其转发到站点之外。 所述站点本地单播地址的结构可以为: 1111111011+38位的 "0" +16位的子网标识符 +64位的接口标识符。  The VPN of a traditional IPv4 network is internally configured with a private network address and can only be used inside the VPN. In the IPv6 address classification, the site local unicast address is very suitable for the application of the VPN. Therefore, in the embodiment of the present invention, the VPN internal network is configured with an IPv6 site local unicast address. The site local unicast address can only be used to transmit data inside the VPN network. The routers in the site can only forward the data packets of the address type within the site, but cannot forward them to the site. The structure of the site local unicast address may be: 1111111011 + 38 bits of "0" + 16 bit subnet identifier + 64 bit interface identifier.

基于上述图 4所示的系统,下面将对本发明具体实施例提供的移动节点的接入方式的具体实现进 行说明。  Based on the system shown in FIG. 4, a specific implementation of the access mode of the mobile node provided by the specific embodiment of the present invention will be described below.

在 IPv4- v6混合网络的移动 VPN中, 移动节点接入 VPN的方式有三种, 下面将分别对三种方式及相 应的开展 VPN业务的处理方式进行说明:  In the mobile VPN of the IPv4-v6 hybrid network, there are three ways for the mobile node to access the VPN. The following describes the three methods and the corresponding VPN service processing methods:

(一 ) 在 VPN内部网络为纯 IPv6的网络环境中, 处于 VPN内部的移动节点以标准的移动 IPv6与内 部家乡代理和通信节点进行通信;  (1) In a network environment where the VPN internal network is pure IPv6, the mobile node inside the VPN communicates with the internal home agent and the communication node by using standard mobile IPv6;

当移动节点在 VPN内部网络时, 相应的开展 VPN业务的应用实例为:  When the mobile node is in the VPN internal network, the corresponding application examples of the VPN service are:

将整个内部网络视为一个普通的 IPv6网络, 移动节点的移动性由移动 IPv6实现; 即在内部家乡 网络时, 移动节点通过 IPv6路由机制进行通信; 当移动节点移出家乡网络, 进入支持移动 IPv6的外 地网络时, 通过接入路由器获得移动 IPv6转交地址, 向家乡代理和通信节点进行注册, 完成绑定更 新, 从而实现在内部网络的移动通信。  The whole internal network is regarded as a common IPv6 network, and the mobility of the mobile node is implemented by mobile IPv6; that is, in the internal home network, the mobile node communicates through the IPv6 routing mechanism; when the mobile node moves out of the home network, enters the mobile IPv6-enabled network. In the case of the foreign network, the mobile IPv6 care-of address is obtained through the access router, and the home agent and the communication node are registered, and the binding update is completed, thereby implementing mobile communication on the internal network.

(二)在 IPv4外部网络中, 处于 VPN外部的移动节点支持移动 IPv4, 获得 IPv4转交地址, 通过获 得的转交地址与 VPN网关进行 IKE协商, 建立 IPsec隧道, 从而通过所述隧道实现与 VPN内部通信节点 ― 之间的通信; (2) In the IPv4 external network, the mobile node outside the VPN supports mobile IPv4, obtains the IPv4 care-of address, performs IKE negotiation with the VPN gateway through the obtained care-of address, and establishes an IPsec tunnel, thereby implementing internal communication with the VPN through the tunnel. node ― communication between

当移动节点移出 VPN内部网络, 进入一个支持移动 IPv4的 IPv4外部网络时, 相应的开展 VPN业务 的处理过程的实施例具体包括:  When the mobile node moves out of the VPN internal network and enters an IPv4 external network that supports mobile IPv4, the corresponding embodiments of the VPN service processing process specifically include:

进入 IPv4外部网络的移动节点会分配到一个 IPv4外地代理转交地址或 IPv4配 ϊ£转交地址。 在与 VPN网关完成身份鉴别之后, 移动节点开始与 VPN网关进行 IKE协商, 建立 IPsec隧道。 隧道两端的地 址分别为移动节点的转交地址和 VPN网关的外部接口的 IPv4地址。  A mobile node entering an IPv4 external network is assigned an IPv4 foreign agent care-of address or an IPv4 proxy care-of address. After the identity authentication is completed with the VPN gateway, the mobile node starts IKE negotiation with the VPN gateway to establish an IPsec tunnel. The addresses at both ends of the tunnel are the care-of address of the mobile node and the IPv4 address of the external interface of the VPN gateway.

在进行 IKE协商时, VPN网关给出一个 VPN- TIA (VPN隧道内部地址) , 并将该地址通告给移动节 点; 在移出内部网络后, 移动节点仍和 VPN内部家乡代理或通信节点保持一个移动 IPv6绑定缓存 , VPN- TIA是用来作为移动节点向内部家乡代理或通信节点注册的移动 IPv6转交地址。  During IKE negotiation, the VPN gateway gives a VPN-TAA (VPN tunnel internal address) and advertises the address to the mobile node; after moving out of the internal network, the mobile node still maintains a move with the VPN internal home agent or communication node. IPv6 binding cache, VPN-TIA is a mobile IPv6 care-of address used as a mobile node to register with an internal home agent or communication node.

也就是说, 移动节点并不是将自己在外部网络获得的转交地址作为向内部网络的家乡代理注册 的转交地址, 而是用 VPN-TIA作为移动节点的内部网络转交地址; 其目的是: 使得 VPN内部的家乡代 理和通信节点可以不受移动节点在外部网络的转交地址变化的影响, 减少注册更新等控制信息的频 繁发送, 也避免了移动节点获得 IPv4转交地址却要向移动 IPv6的内部家乡代理注册所带来的问题。  That is to say, the mobile node does not use the care-of address obtained by the external network as the care-of address registered with the home agent of the internal network, but uses the VPN-TIA as the internal network care-of address of the mobile node; its purpose is: to make the VPN The internal home agent and communication node can be affected by the change of the mobile node's care-of address in the external network, reducing the frequent transmission of control information such as registration updates, and avoiding the mobile node obtaining the IPv4 care-of address but moving to the internal home agent of the mobile IPv6. The problem caused by registration.

在 IPsec隧道建立之后, 移动节点将上层协议的数据包首先进行移动 IPv6封装, 源地址为 VPN-TIA, 目的地址为内部家乡代理或通信节点的地址; 之后对该数据包再进行 IPsec封装, 源地址 为移动节点的外部网络 IPv4转交地址, 目的地址为 VPN网关外部接口的 IPv4地址。  After the IPsec tunnel is established, the mobile node first performs the mobile IPv6 encapsulation of the data packet of the upper layer protocol, the source address is VPN-TIA, and the destination address is the address of the internal home agent or the communication node; then the data packet is further encapsulated by IPsec, the source The address is the external network IPv4 care-of address of the mobile node, and the destination address is the IPv4 address of the external interface of the VPN gateway.

数据包经过两次封装后的结构如表 1所示,其中: i HoA是移动节点在内部网络的家乡地址, x-CoA 为移动节点在外部网络获得的转交地址 , 地址前的 v4-v6标记表明地址类型。  The structure of the packet after two encapsulation is shown in Table 1, where: i HoA is the home address of the mobile node in the internal network, x-CoA is the care-of address obtained by the mobile node on the external network, and the v4-v6 mark in front of the address Indicates the address type.

表 1

Figure imgf000009_0001
Table 1
Figure imgf000009_0001

(三) 在 IPv6外部网络中, 处于 VPN外部的移动节点支持移动 IPv6, 获得 IPv6转交地址。 IPv6 外部网络的 x-AR和 IPv4网络中的 VPN网关利用 IPv6 in IPv4隧道封装技术, 使得在 IPv6外部网络的移 动节点与处在 IPv4网络中的 VPN网关进行通信; (3) In the IPv6 external network, the mobile node outside the VPN supports mobile IPv6 and obtains the IPv6 care-of address. The VPN gateway in the x-AR and IPv4 networks of the IPv6 external network utilizes the IPv6 in IPv4 tunnel encapsulation technology to enable the mobile node in the IPv6 external network to communicate with the VPN gateway in the IPv4 network;

移动节点位于 IPv6外部网络, 即位于 VPN外部情况下, 其与 VPN内部节点通信的处理过程如下: ( 1 )移动节点进入到一个支持移动 IPv6的外部网络时, 该网络中的接入路由器(即 X- AR)会为 其提供一个接入外部网络的无线接口, 即移动节点会获得相应的 IPv6转交地址, 以便于利用该 IPv6 转交地址开展网络通信;  The mobile node is located in the IPv6 external network, that is, in the case of the VPN external, the process of communicating with the VPN internal node is as follows: (1) When the mobile node enters an external network supporting mobile IPv6, the access router in the network (ie, X-AR) will provide a wireless interface to the external network, that is, the mobile node will obtain the corresponding IPv6 care-of address to facilitate network communication using the IPv6 care-of address;

(2) 移动节点获得相应的 IPv6转交地址后, 采用 IPv6 in IPv4隧道技术, 分别在 IPv6外部网络 的 x-AR和 IPv4网络的 VPN网关处对 IPv6的数据包进行 IPv4的封装和解封装,实现 IPv4主机与 IPv6主机 的互通;  (2) After obtaining the corresponding IPv6 care-of address, the mobile node uses the IPv6 in IPv4 tunneling technology to encapsulate and decapsulate IPv6 packets in the IPv6 external network's x-AR and IPv4 network VPN gateways respectively to implement IPv4. Interworking between the host and the IPv6 host;

需耍釆用 IPv6 in IPv4隧道技术的原因是: 在移动节点获得 IPv6转交地址后, 若与位于 IPv4网 络中的 VPN网关进行通信, 仍然会因为两端地址结构的不同, 导致无法处理与自己 IP版本不同的 IP 数据包, 即无法直接进行通信, 为此, 需要将 IPv6报文进行 IPv4封装, 以便于对端 VPN网关可以识别 接收到的报文。 The reason for using IPv6 in IPv4 tunneling technology is: After the mobile node obtains the IPv6 care-of address, if it communicates with the VPN gateway located in the IPv4 network, it will still be unable to process its own IP because of the different address structures at both ends. The IP packets of different versions cannot communicate directly. To this end, IPv6 packets need to be encapsulated in IPv4 so that the peer VPN gateway can identify them. Received message.

下面将对移动节点位于 VPN外部 (即 IPv6外部网络) 情况下, 其与 VPN内部节点通信的处理过程 的实施例进行说明。  In the following, an embodiment of a process of communicating with a VPN internal node in the case where the mobile node is located outside the VPN (i.e., an IPv6 external network) will be described.

在本发明提供的实施例中, IPv4主机和 IPv6主机建立通信的基础是通过域名进行关联。 即移动 节点无需了解需要通信的 VPN网关是 IPv4地址还是 IPv6地址, 而只需知道 VPN网关的 FQDN ( Fully Qualified Domain Name, 完全合乎耍求域名) 。 这样, 在域名解析后, 便可以获得 VPN网关的通信 地址, 并可以构造相应的数据包以实现相互之间的通信。  In the embodiment provided by the present invention, the basis for establishing communication between the IPv4 host and the IPv6 host is to associate by domain name. That is, the mobile node does not need to know whether the VPN gateway that needs to communicate is an IPv4 address or an IPv6 address, but only needs to know the FQDN (Full Qualified Domain Name) of the VPN gateway. In this way, after the domain name is resolved, the communication address of the VPN gateway can be obtained, and corresponding data packets can be constructed to implement communication with each other.

首先, 对通过 DNS (域名服务器) 进行 VPN网关域名解析的具体处理过程进行说明, 具体的过程 包括域名解析请求和域名解析响应两个处理阶段。  First, the specific processing procedure of the VPN gateway domain name resolution through the DNS (Domain Name Server) is described. The specific process includes two processing stages: the domain name resolution request and the domain name resolution response.

如图 5所示, 是 DNS请求转发处理过程示意图, 在相应的域名解析请求阶段, 主耍处理过 S包括: As shown in FIG. 5, it is a schematic diagram of a DNS request forwarding process. In the corresponding domain name resolution request phase, the main processing S includes:

( 1 ) 移动节点丽向本 IPv6站点内的 DNS服务器发送 DNS请求, 即向相应的 IPv6 DNS服务器发送 ( "AAAA" ) 的 DNS请求, 以请求解析目的主机的 FQDN, 获得 VPN网关的地址信息; (1) The mobile node sends a DNS request to the DNS server in the IPv6 site, that is, sends a DNS request ("AAAA") to the corresponding IPv6 DNS server to request to resolve the FQDN of the destination host to obtain the address information of the VPN gateway;

对于发起通信的 IPv6主机 (即移动节点 MN) 来说, 其并不知道通信对方是 IPv4主机或是 IPv6主 机, 移动节点只存在目的主机 (VPN网关) 的 FQDN, 例如, ww. vpngw. com, 因此, 需耍通过域名解 析请求获得 VPN网关的地址。  For the IPv6 host (ie, the mobile node MN) that initiates the communication, it does not know that the communication partner is an IPv4 host or an IPv6 host, and the mobile node only has the FQDN of the destination host (VPN gateway), for example, ww.vpngw.com, Therefore, it is necessary to obtain the address of the VPN gateway through the domain name resolution request.

(2 ) 移动节点顧的 DNS请求到达 IPv6外部网络的 DNS服务器后, 将被转发给 DNS- ALG;  (2) After the DNS request of the mobile node reaches the DNS server of the IPv6 external network, it will be forwarded to the DNS-ALG;

这是因为 IPv6站点的 DNS服务器收到移动节点的 DNS请求实际上是 IPv4网络中的 VPN网关的 FQDN, 所以该 DNS服务器不能解析该域名, 并会将该请求将被转发到上一级 DNS服务器; 在该 IPv6外部网络 中, DNS服务器中配置的上级 DNS服务器的地址为站内 DNS- ALG的地址, 因此, 移动节点 MN发送的 DNS 请求被 DNS服务器转发到了 DNS-ALG;  This is because the DNS server of the IPv6 site receives the DNS request of the mobile node, which is actually the FQDN of the VPN gateway in the IPv4 network, so the DNS server cannot resolve the domain name and will forward the request to the upper-level DNS server. In the IPv6 external network, the address of the upper-level DNS server configured in the DNS server is the address of the intra-site DNS-ALG, and therefore, the DNS request sent by the mobile node MN is forwarded by the DNS server to the DNS-ALG;

( 3 ) DNS- ALG中保存有 IPv4网络的 DNS服务器地址, 当其接收到 DNS服务器转发来的移动节点删 的 ( "AAAA" ) IPv6 DNS请求, DNS- ALG会根据存储的 DNS服务器列表确定 VPN网关的 DNS服务器地址, 由于内部网络的 VPN网关的外部接口为 IPv4接口, 对应的地址为 IPv4地址, 所述相应的 DNS服务器为 IPv4网络中的 DNS服务器, 因此, 需耍将此 IPv6 DNS请求转换成 IPv4 DNS请求 ( "A" ) , 并发往所 述的 IPv4网络的 DNS服务器;  (3) The DNS-ALG holds the DNS server address of the IPv4 network. When it receives the mobile node deleted ("AAAA") IPv6 DNS request forwarded by the DNS server, the DNS-ALG determines the VPN according to the stored DNS server list. The DNS server address of the gateway, because the external interface of the VPN gateway of the internal network is an IPv4 interface, the corresponding address is an IPv4 address, and the corresponding DNS server is a DNS server in the IPv4 network. Therefore, it is necessary to convert this IPv6 DNS request. An IPv4 DNS request ("A") and sent to the DNS server of the IPv4 network;

(4) 由于 DNS- ALG与 X- AR相连, 所以 DNS- ALG将该 IPv4 DNS请求先发往 x-AR, 再由 x- AR发往 IPv4 网络中。  (4) Since the DNS-ALG is connected to the X-AR, the DNS-ALG sends the IPv4 DNS request to the x-AR first, and then the x-AR sends it to the IPv4 network.

相应的域名解析响应阶段, 即 DNS应答转发处理过程如图 6所示, 在 IPv4网络中的 DNS服务器收到 该请求后, 返回一个 DNS应答, 应答消息中包含 VPN网关的 IPv4地址, 该应答消息将返回给 IPv6网络 中的移动节点, 具体的 DNS应答过程包括以下处理过程:  The corresponding domain name resolution response process, that is, the DNS response forwarding process is as shown in FIG. 6. After receiving the request, the DNS server in the IPv4 network returns a DNS response, and the response message includes the IPv4 address of the VPN gateway, and the response message It will be returned to the mobile node in the IPv6 network. The specific DNS response process includes the following processing:

( 1 ) IPv6网络中的 DNS-ALG收到来自 IPv4网络的 DNS服务器的 DNS应答, 其结果是 VPN网关的 IPv4 地址; DNS- ALG需要将该 VPN网关地址添加一个特定的地址前缀, 具有该前缀的数据包均会被路由到 x-AR;  (1) The DNS-ALG in the IPv6 network receives the DNS response from the DNS server of the IPv4 network, and the result is the IPv4 address of the VPN gateway; the DNS-ALG needs to add a specific address prefix to the VPN gateway address, with the prefix Packets are routed to x-AR;

所述前缀路由可预先在 IPv6网络的路由设备内配置并发布, 例如, 该前缀为 5ef0 : 3248 : : /64, 假设 VPN网关的 IPv4地址为 200. 0. 0. 1, 则 DNS-ALG将此前缀加 VPN网关的 IPv4地址, 构造为形如 5ef0 : 3248 : : 200. 0. 0. 1的 IPv6地址返回给 IPv6网络内的 DNS服务器; ( 2 ) IPv6网络中的 DNS服务器接收到 DNS- ALG返回的具有特定前缀的 IPv6地址后, 将此地址对应 移动节点的 DNS请求, 将相应的地址作为 VPN网关的地址写入缓存, 即在 IPv6网络中的 DNS上保存 VPN 网关的 IPv6格式的地址与其域名的对应关系信息; The prefix route can be configured and distributed in advance in the routing device of the IPv6 network. For example, the prefix is 5ef0: 3248 : : /64, and the IPv4 address of the VPN gateway is 200. 0. 0. 1, then the DNS-ALG will This prefix is added to the IPv4 address of the VPN gateway, and is configured as a DNS server in the form of 5ef0: 3248: : 200. 0. 0. 1 to the DNS server in the IPv6 network; (2) After receiving the IPv6 address with a specific prefix returned by the DNS-ALG, the DNS server in the IPv6 network corresponds to the DNS request of the mobile node, and writes the corresponding address as the address of the VPN gateway to the cache, that is, in IPv6. The correspondence between the IPv6 format address of the VPN gateway and its domain name is saved on the DNS in the network;

需耍说明的是: 经过一次对 VPN网关的 DNS解析后, 将不再 S复此过程, 之后与所述 VPN网关通过 域名进行通信的主机可直接在 IPv6网络的 DNS服务器内得到转换后的所述 VPN网关的地址, 且该地址 为 IPv6地址;  It should be noted that: After a DNS resolution of the VPN gateway, the process will not be repeated, and then the host communicating with the VPN gateway through the domain name can directly obtain the converted office in the DNS server of the IPv6 network. The address of the VPN gateway, and the address is an IPv6 address;

( 3) 将解析结果 (即所述具有特定前缀的 IPv6地址) 写入缓存后, DNS服务器还将特定地址前 缀与 VPN网关的 IPv4地址构成的 IPv6地址返回给移动节点丽, 这样, 移动节点便获得了开展移动 VPN 业务需要的 VPN网关的地址信息。  (3) After the parsing result (that is, the IPv6 address with the specific prefix) is written into the cache, the DNS server also returns the IPv6 address formed by the specific address prefix and the IPv4 address of the VPN gateway to the mobile node, so that the mobile node Obtained the address information of the VPN gateway required to carry out the mobile VPN service.

在移动节点 MN及所述的 DNS服务器获得了 VPN网关的地址信息之后, 则所述的移动 点便可以通 过数据包的转换和转发处理实现与 VPN内网中节点的通信, 相应的具体的通信过程包括:  After the mobile node MN and the DNS server obtain the address information of the VPN gateway, the mobile point can implement communication with the node in the VPN intranet through data packet conversion and forwarding processing, and corresponding specific communication. The process includes:

( 1)移动节点接收到 DNS服务器返回的 IPv6地址, 该地址是 VPN网关的 IPv4地址添加特定地址前 缀构造的 IPv6地址, 移动节点以此地址为目的地址构造 IPv6数据包。  (1) The mobile node receives the IPv6 address returned by the DNS server. The address is an IPv6 address of the VPN gateway's IPv4 address added with a specific address prefix. The mobile node constructs an IPv6 packet with this address as the destination address.

(2) 由于该目的地址的前缀路由已经在 IPv6网络内进行配置和发布, 凡具有该地址前缀的 IPv6 包均指向 X AR, 因此移动节点发送的 IPv6数据包被路由到 X-AR, 在此, 假定该特定地址前缀为 5ef0 : 3248 : : /64, VPN网关的 IPv4地址为 200. 0. 0. 1; (2) Since the prefix route of the destination address has been configured and advertised in the IPv6 network, the IPv6 packets with the address prefix are all directed to the X AR, so the IPv6 packets sent by the mobile node are routed to the X- AR. Assuming that the specific address prefix is 5ef0 : 3248 : : /64, and the IPv4 address of the VPN gateway is 200. 0. 0. 1;

( 3 ) X- AR接收到目的前缀为 5ef 0: 3248:: /64的 IPv6数据包, 识别出其前缀为 DNS- ALG发布的特 定前缀, 便会对该: TPv6数据包进行 IPv6 in IPv4隧道封装, 具体的封装方式为:  (3) The X-AR receives an IPv6 packet whose destination prefix is 5ef 0: 3248:: /64, and identifies the specific prefix whose prefix is DNS-ALG, and then performs IPv6 in IPv4 tunnel for the TPv6 packet. Package, the specific packaging method is:

X - AR从 IPv6数据包的目的地址项中提取出 VPN网关的 IPv4地址, 作为 IPv4隧道包头的目的地址, 将 X-AR的 IPv4地址作为 IPv4隧道包头的源地址, 新构造的 IPv4数据包结构如表 2所示, 即相应的经过 IPv4隧道封装的数据包结构如表 2所示: The X-AR extracts the IPv4 address of the VPN gateway from the destination address entry of the IPv6 packet as the destination address of the IPv4 tunnel header, and uses the IPv4 address of the X- AR as the source address of the IPv4 tunnel header, and the newly constructed IPv4 packet structure. As shown in Table 2, the corresponding packet structure encapsulated by IPv4 tunnel is shown in Table 2:

表 2  Table 2

IPv4包头 IPv6包头 IPv6有效数据 IPv4 header IPv6 header IPv6 valid data

(4) x-AR将封装完成的 IPv4数据包发送到 IPv4网络; (4) The x-AR sends the encapsulated IPv4 data packet to the IPv4 network;

(5) VPN网关收到的 IPv4数据包可能是来自 IPv4外部网络移动节点的数据包,也可能是来自 IPv6 外部网络的移动节点经 IPv4隧道封装的数据包; 为识别数据包来源, VPN网关需耍渎取 IPv4包头, 如 果发现下一包头为 IPv6地址,则确定该数据包来自 IPv6外部网络,并对其解封装,将解除封装的 IPv6 数据包交给其它模块进行下一步的处理, 后续的处理过程与普通 IPv6数据包的处理方式相同, 故不 再对其进行详细说明。  (5) The IPv4 data packet received by the VPN gateway may be a data packet from an IPv4 external network mobile node, or may be a data packet encapsulated by an IPv4 external network from a mobile node of the IPv6 external network; to identify the source of the data packet, the VPN gateway needs to If the next packet header is an IPv6 address, the packet is determined to be from the IPv6 external network and decapsulated. The unencapsulated IPv6 packet is forwarded to other modules for further processing. The processing is the same as that of ordinary IPv6 packets, so it will not be described in detail.

当处于 VPN内部的节点需耍向处于 IPv6外部网络的移动节点发送信息时, 则需耍在 VPN网关将需 耍发送给移动节点的 IPv6数据包封装上 IPv4包头,并通过所述的 x-AR与 VPN网关之间的隧道向移动节 点发送, 其中经过 VPN网关 IPv4隧道封装后的 IPv4数据包头的目的地址为 x- AR的 IPv4地址, 源地址为 VPN网关 IPv4地址。当 x-AR接收到 IPv4数据包,读取 IPv4包头,发现下一包头为 IPv6, 则对其解封装, 并将解除封装获得的 IPv6数据包转发给移动节点。具体的处理过程可以看作是由移动节点向 VPN网关 发送数据包的一个逆处理过程。 When a node that is inside a VPN needs to send information to a mobile node that is in an IPv6 external network, it needs to encapsulate the IPv4 header on the IPv6 packet that the VPN gateway needs to send to the mobile node, and pass the x-AR. The tunnel between the VPN gateway and the VPN gateway is sent to the mobile node. The destination address of the IPv4 packet header encapsulated by the VPN gateway IPv4 tunnel is the IPv4 address of the x-AR, and the source address is the VPN gateway IPv4 address. When the x-AR receives the IPv4 packet, reads the IPv4 header, and finds that the next packet is IPv6, decapsulates the IPv4 packet and forwards the decapsulated IPv6 packet to the mobile node. The specific process can be seen as a mobile node to a VPN gateway. An inverse process of sending a packet.

在上述处理过程中, 当移动节点处于 IPv6外部网络时, 若移动节点耍与 VPN内部节点通信, 则需 耍建立与 VPN网关之间的隧道, 即如何建立隧道保证 IPv6外部网络与 VPN内部的迎信是在混合网络中 实现 VPN通信的关键。 为此, 下面将对移动节点处于 IPv6外部网络情况下, 相应的 IPsec隧道的建立 及数据包的转发处理过程进行详细说明。  In the above process, when the mobile node is in the IPv6 external network, if the mobile node communicates with the VPN internal node, it needs to establish a tunnel with the VPN gateway, that is, how to establish a tunnel to ensure the IPv6 external network and the VPN internal Letters are the key to implementing VPN communications in a hybrid network. To this end, the following is a detailed description of the establishment of the corresponding IPsec tunnel and the forwarding process of the data packet when the mobile node is in the IPv6 external network.

通常移动节点与 VPN网关的通信支持 M0BIKE的 IKEv2协商, 建立 IPsec隧道, 然后数据包在 IPsec ESP ( IPsec封装安全载荷) 隧道模式封装后进行传输。 但是, 在本发明提供的实施例所述的应 ffl情 景下, 由于移动节点和 VPN网关位于不同类型的网络中, IKE协商的信令信息以及之后的 IPsec封装数 据包均会经过 IPv6 in IPv4隧道的封装和解封装, 因此, 对于 IPv6外部网络中的移动节点为与 VPN 内部节点通信, 则需耍建立相应的两端地址均为 IPv4地址的 IPsec隧道, 即支持 IPv6 in IPv4封装和 解封装的隧道, 通过该隧道进行 IPv6 in IPv4报文的封装传递。  Usually, the communication between the mobile node and the VPN gateway supports the IKEv2 negotiation of M0BIKE, establishes an IPsec tunnel, and then the data packet is transmitted in the IPsec ESP (IPsec Encapsulated Security Payload) tunnel mode encapsulation. However, in the scenario described in the embodiment of the present invention, since the mobile node and the VPN gateway are located in different types of networks, the signaling information of the IKE negotiation and the subsequent IPsec encapsulated data packets pass through the IPv6 in IPv4 tunnel. Encapsulation and decapsulation, therefore, for a mobile node in an IPv6 external network to communicate with a VPN internal node, it is necessary to establish an IPsec tunnel with an IPv4 address at both ends, that is, a tunnel supporting IPv6 in IPv4 encapsulation and decapsulation. The IPv6 in IPv4 packet is encapsulated and delivered through the tunnel.

在本发明的应用实例中,对于建立的隧道,移动节点 SA的 SPI (安全参数索引)目的地址项是 VPN 网关的 IPv6地址, 而 VPN网关 SA的 SPI目的地址项是移动节点的 IPv6地址, 在双方进行 IKE协商的过程 中, VPN网关同时也获得自己的 IPv6地址, 即相应的特定前缀再加上自己的 IPv4地址。  In the application example of the present invention, for the established tunnel, the SPI (Security Parameter Index) destination address entry of the mobile node SA is the IPv6 address of the VPN gateway, and the SPI destination address entry of the VPN gateway SA is the IPv6 address of the mobile node. During the IKE negotiation process, the VPN gateway also obtains its own IPv6 address, that is, the corresponding specific prefix plus its own IPv4 address.

在 IPsec隧道建立后, 则需要通过所述隧道进行数据包的交互传递, 下面将对相应的数据包的转 发处理过程进行说明。  After the IPsec tunnel is established, the data packet needs to be transmitted through the tunnel. The following describes the forwarding process of the corresponding data packet.

移动节点首先将上层协议的数据包进行移动 IPv6封装, 源地址为 VPN- TIA (VPN Tunnel Inner Address, VPN隧道内部地址), 目的地址为 VPN内部的节点(包括内部家乡代理或通信 '点)的地址。  The mobile node first performs the mobile IPv6 encapsulation of the data packet of the upper layer protocol. The source address is VPN-TIA (VPN Tunnel Inner Address), and the destination address is the node inside the VPN (including the internal home agent or communication 'point). address.

之后, 进行 IPsec封装, 源地址为移动节点的外部网络 IPv6转交地址, 目的地址为 VPN网关外部 接口 IPv6地址, 该地址是由 VPN网关 IPv4地址加特定前缀生成的。  After that, the IPsec encapsulation is performed, and the source address is the external network IPv6 care-of address of the mobile node, and the destination address is the IPv6 address of the external interface of the VPN gateway. The address is generated by the VPN gateway IPv4 address plus a specific prefix.

相应的数据包经过两次封装后 IPv6数据包的结构如表 3所示, 其中 i- HoA是移动节点在内部网络 的家乡地址, x-CoA为移动节点在外部网络获得的转交地址, VPN- GW是加上特定前缀的 IPv6地址。地 址前的 v4/v6标记表明地址类型。  The structure of the IPv6 packet after the corresponding packet is encapsulated twice is shown in Table 3. i-HoA is the home address of the mobile node in the internal network, and x-CoA is the care-of address obtained by the mobile node on the external network. VPN- GW is an IPv6 address with a specific prefix. The v4/v6 flag in front of the address indicates the address type.

表 3

Figure imgf000012_0001
由于该数据包目的地址的前缀路由已经在 IPv6网络内进行配置和发布, 凡具有该地址前缀的 IPv6包均指向 X- AR, 因此移动节点发送的 IPv6数据包被路由到 X - AR。 table 3
Figure imgf000012_0001
Since the prefix route of the destination address of the data packet has been configured and advertised in the IPv6 network, all IPv6 packets with the address prefix are directed to the X-AR, and the IPv6 data packet sent by the mobile node is routed to the X-AR.

X - AR识别出其前缀为 DNS- ALG发布的特定前缀,因此对该 IPv6数据包进行 IPv6 in IPv4隧道封装; 具体为: X- AR从 IPv6数据包的目的地址项中提取出 VPN网关的 IPv4地址, 作为 IPv4隧道包头的目的地 址,将 x-AR的 IPv4地址作为 IPv4隧道包头的源地址,经过 IPv4隧道封装的 IPv4数据包格式如表 4所示, 其中,在最外层的包头为 IPv4数据包头,原先整个 IPv6数据包作为 IPv有效载荷封装在 IPv4数据包中。 其中在最外层包头的 x-AR是接入路由器的 IPv4地址, VPN- GW是 VPN网关的 IPv4地址。  The X-AR identifies the IPv6 in IPv4 tunnel encapsulation of the IPv6 packet, and the X-AR extracts the IPv4 of the VPN gateway from the destination address entry of the IPv6 packet. Address, as the destination address of the IPv4 tunnel header, the IPv4 address of the x-AR is used as the source address of the IPv4 tunnel header. The IPv4 packet format encapsulated by the IPv4 tunnel is shown in Table 4, where the outermost header is IPv4. The packet header, the original entire IPv6 packet is encapsulated in the IPv4 packet as an IPv payload. The x-AR in the outermost packet header is the IPv4 address of the access router, and the VPN-GW is the IPv4 address of the VPN gateway.

表 4

Figure imgf000013_0001
经过隧道封装的 IPv4数据包转发由 x-AR转发至 IPv4网络中。 VPN网关接收到数据包后, 先解除 IPv4隧道封装; 再转交给 IPsec功能模块, 解除 IPsec封装, 转发给内部家乡代理或通信 点, 实现 移动节点和 WN内部节点的通信。 Table 4
Figure imgf000013_0001
The tunnel encapsulated IPv4 packet forwarding is forwarded by the x-AR to the IPv4 network. After receiving the data packet, the VPN gateway first decapsulates the IPv4 tunnel; then forwards it to the IPsec function module, releases the IPsec encapsulation, and forwards it to the internal home agent or communication point to implement communication between the mobile node and the WN internal node.

VPN内部节点向移动节点发送数据包的转发和转换完全可以看作是上述步骤的逆过程,故在这里 不再赘述。 本发明实施例在具体实现过程中, 当移动节点移动到 IPv6外部网络中时,其与 VPN内部节点之间 的通信的实现还可以釆用以下方案实现。  The forwarding and conversion of the data packets transmitted by the internal nodes of the VPN to the mobile node can be regarded as the reverse process of the above steps, and therefore will not be described here. In the specific implementation process, when the mobile node moves to the IPv6 external network, the implementation of the communication between the mobile node and the internal node of the VPN can also be implemented by the following scheme.

在 IPv4- v6混合网络中, 为实现位于 IPv6网络的主机 (移动节点) 和位于 IPv4网络的主机 (VPN 网关) 之间的通信, 参照前面描述的 IPv6外部网络的第二种实现方案可知, 除了采用 IPv6 in IPv4 隧道技术外, 还可以采用 NAT-PT (网络地址转换-协议转换) 技术实现。  In the IPv4-v6 hybrid network, in order to implement communication between the host (mobile node) located in the IPv6 network and the host (VPN gateway) located in the IPv4 network, refer to the second implementation scheme of the IPv6 external network described above, except In addition to the IPv6 in IPv4 tunneling technology, NAT-PT (Network Address Translation - Protocol Translation) technology can also be implemented.

即本发明的实施列还可以根据 NAT- PT的基本技术和思想,将其应用到 IPv4- v6混合网络中以实现 移动 VPN,进而提出了该结构下位于 IPv6网络中的移动节点与位于 IPv4网络中的 VPN网关的通信方案。  That is, the implementation of the present invention can also be applied to the IPv4-v6 hybrid network to implement the mobile VPN according to the basic technology and idea of the NAT-PT, and then the mobile node located in the IPv6 network and the IPv4 network under the structure are proposed. The communication scheme of the VPN gateway.

在该实施例中, 需要在 IPv6外部网络边缘增加配置相应的 NAT- PT实体, 即 NAT-PT设备, 具体可 以将 MT-PT和之前描述的 DNS- ALG结合为同一设备。  In this embodiment, the corresponding NAT-PT entity, that is, the NAT-PT device, needs to be configured on the edge of the IPv6 external network. Specifically, the MT-PT and the previously described DNS-ALG can be combined into the same device.

下面将对位于 IPv6外部网络中的移动节点与 IPv4网络中的 VPN网关通信的具体实现过程进行详 细的说明。  The specific implementation process of the communication between the mobile node located in the IPv6 external network and the VPN gateway in the IPv4 network will be described in detail below.

移动节点仍然利用域名查询的方法获得 VPN网关的 IPv6地址,具体查询过程在前面的叙述中已经 描述, 此处不再详述。 该 IPv6地址是 VPN网关 IPv4地址加上特定地址前缀。 移动节点以此地址为目的 地址构造数据包。  The mobile node still obtains the IPv6 address of the VPN gateway by using the domain name query method. The specific query process has been described in the foregoing description and will not be described in detail herein. The IPv6 address is the VPN gateway IPv4 address plus a specific address prefix. The mobile node constructs a packet with this address as the destination address.

具有该特定地址前缀的 IPv6数据包会被默认路由到 NAT- PT, MT-PT根据该特定地址前缀判断出 数据包是发给 IPv4网络中的主机, 因此对该 IPv6数据包进行协议转换。 NAT- PT将接收到的 IPv6包内 源地址 (移动节点的转交地址) 映射到一个 IPv4地址, 作为转换 IPv4包的源地址, 目的地址后 32位 作为转换 IPv4包的目的地址,对 IPv6包内各字段进行语法及语意转换(即 NAT- PT),转换完成的 IPv4 数据包目的地址即为 VPN网关的 IPv4地址;  The IPv6 packet with the specific address prefix is routed to the NAT-PT by default. The MT-PT determines that the packet is sent to the host in the IPv4 network according to the specific address prefix, and therefore performs protocol conversion on the IPv6 packet. The NAT-PT maps the received source address of the IPv6 packet (the care-of address of the mobile node) to an IPv4 address as the source address of the translated IPv4 packet, and the 32-bit address of the destination address is used as the destination address for converting the IPv4 packet to the IPv6 packet. Each field is grammatically and semantically converted (ie, NAT-PT), and the destination address of the converted IPv4 packet is the IPv4 address of the VPN gateway;

NAT- PT与 X- AR都是双协议栈设备, NAT- PT将转换完成的 IPv4数据包发送到 X-AR, 再由 x- AR将该 数据包发送到 IPv4网络。 Both NAT-PT and X-AR are dual-stack devices. NAT-PT sends the converted IPv4 packets to X- AR, which then sends the packets to the IPv4 network.

IPv4数据包转换成 IPv6数据包的过程是上述步骤的逆过程。 当 x-AR接收到 IPv4数据包, 先路由 至 NAT- PT, NAT- PT提取 IPv4包目的地址, 査找地址映射表, 找到与这个 IPv4目的地址相对应的 IPv6 地址作为 IPv6数据包的目的地址; 将 IPv4包的源地址添加特定前缀, 作为 IPv6包的源地址, 对 IPv4 包内各字段进行语法及语意转换, 构造 IPv6数据包, 最终转发给移动节点。  The process of converting an IPv4 packet into an IPv6 packet is the reverse of the above steps. When the x-AR receives the IPv4 data packet, it first routes to the NAT-PT, and the NAT-PT extracts the IPv4 packet destination address, searches the address mapping table, and finds the IPv6 address corresponding to the IPv4 destination address as the destination address of the IPv6 data packet; The source address of the IPv4 packet is added as a source address of the IPv4 packet, and the fields in the IPv4 packet are grammatically and semantically converted, and the IPv6 data packet is constructed and finally forwarded to the mobile node.

下面将对在设置有 NAT-PT实体情况下,为处于 IPv6外部网络中的移动节点为实现与 VPN内部通信 时, 需要进行的隧道的建立及数据包的转发处理过程进行详细的说明。 In the following, in the case where the NAT-PT entity is set, the mobile node in the IPv6 external network is internally communicated with the VPN. The process of establishing the tunnel and the process of forwarding the data packet are described in detail.

首先, 隧道的建立过程如下:  First, the tunnel establishment process is as follows:

同样, 移动节点与 VPN网关最初的通信是支持 M0BIKE的 IKEv2协商, 建立 IPsec隧道, 然后数据包 在 IPsec ESP隧道模式封装后进行传输。 由于 NAT- PT的存在, IKE协商的信令信息以及之后的 IPsec 封装数据包都会经过 IPv4 to IPv6或 IPv6 to IPv4的转换, 移动节点 SA的 SPI目的地址项是 VPN网关 的 IPv6地址, 而 VPN网关 SA的 SPI目的地址项是移动节点的 IPv4地址, 双方不知道通信对端是不同丁- 自己网络类型的主机。 这样并不影响双方隧道的建立和数据的传输, 还为移动节点在不同类型的外 部网络切换带来了方便: 无论移动节点处于 IPv4的外部网络还是 IPv6的外部网络, VPN网关始终认为 移动节点是处于 IPv4网络中的。  Similarly, the initial communication between the mobile node and the VPN gateway is to support M0BIKE IKEv2 negotiation, establish an IPsec tunnel, and then the data packet is transmitted after IPsec ESP tunnel mode encapsulation. Due to the existence of the NAT-PT, the signaling information of the IKE negotiation and the subsequent IPsec encapsulated data packets are converted by IPv4 to IPv6 or IPv6 to IPv4, and the SPI destination address entry of the mobile node SA is the IPv6 address of the VPN gateway, and the VPN gateway The SPI destination address entry of the SA is the IPv4 address of the mobile node, and the two parties do not know that the communication peer is a different host of its own network type. This does not affect the establishment of tunnels and data transmission between the two parties. It also brings convenience for mobile nodes to switch between different types of external networks: Regardless of whether the mobile node is in an IPv4 external network or an IPv6 external network, the VPN gateway always considers the mobile node to be In an IPv4 network.

之后, 利] ¾隧道进行数据包的转发的处理过程如下:  After that, the process of forwarding the data packet by the 3⁄4 tunnel is as follows:

在 IPsec隧道建立后, 移动节点将上层协议的数据包首先进行移动 IPv6封装, 源地址为 VPN- TIA, 目的地址为内部家乡代理或通信节点的地址; 之后进行 IPsec封装, 源地址为移动节点的外部网络 IPv6转交地址, 目的地址为 VPN网关外部接口 IPv6地址, 该地址是由 VPN网关 IPv4地址加特定前缀生 成的。 移动节点位于 IPv6外部网络两次封装后的 IPv6数据包结构如表 5所示, 其中 i-HoA是移动节点 在内部网络的家乡地址, x-CoA为移动节点在外部网络获得的转交地址, VPN-GW (VPN网关) 是加上 特定前缀的 IPv6地址。 地址前的 v4/v6标记表明地址类型。  After the IPsec tunnel is established, the mobile node first performs the mobile IPv6 encapsulation of the data packet of the upper layer protocol, the source address is VPN-TAA, and the destination address is the address of the internal home agent or the communication node; then the IPsec encapsulation is performed, and the source address is the mobile node. The external network IPv6 care-of address, the destination address is the IPv6 address of the VPN gateway external interface, which is generated by the VPN gateway IPv4 address plus a specific prefix. The IPv6 packet structure of the mobile node located in the IPv6 external network twice encapsulated is shown in Table 5, where i-HoA is the home address of the mobile node in the internal network, and x-CoA is the care-of address obtained by the mobile node on the external network. - GW (VPN Gateway) is an IPv6 address with a specific prefix. The v4/v6 tag in front of the address indicates the address type.

表 5

Figure imgf000014_0001
table 5
Figure imgf000014_0001

该数据包路由至 NAT- PT后, NAT-PT将接收到的 IPv6包内源地址 (移动节点的转交地址) 映射到 一个 IPv4地址, 作为转换 IPv4包的源地址, 目的地址后 32位作为转换 IPv4包的目的地址, 对 IPv6包 内各字段进行语法及语意转换, 构造目的地址为 VPN网关 IPv4地址的 IPv4数据包。 表 6为经过 NAT- PT 转换的 IPv4数据包格式,这时最外层的 IPsec包头已经转换为 IPv4地址。其中 x-CoA是移动节点由 IPv6 转交地址映射得到的 IPv4转交地址, VPN- GW是 VPN网关的 IPv4地址。  After the data packet is routed to the NAT-PT, the NAT-PT maps the received source address of the IPv6 packet (the care-of address of the mobile node) to an IPv4 address, which is used as the source address for converting the IPv4 packet, and the destination address is 32 bits as the conversion. The destination address of the IPv4 packet, grammatically and semantically converts the fields in the IPv6 packet, and constructs an IPv4 packet whose destination address is the IPv4 address of the VPN gateway. Table 6 shows the NAT-PT-converted IPv4 packet format, at which point the outermost IPsec header has been converted to an IPv4 address. The x-CoA is the IPv4 care-of address obtained by the mobile node from the IPv6 care-of address mapping, and the VPN-GW is the IPv4 address of the VPN gateway.

经过 NAT- PT转换后的 IPv4数据包的结构如表 6所示:  The structure of the IPv4 packet after NAT-PT conversion is shown in Table 6:

表 6

Figure imgf000014_0002
经过 NAT- PT转换的 IPv4数据包转发至 x-AR, 再由 x- AR转发至 IPv4网络中。 VPN网关接收到数据包 后, 解除 IPsec封装, 再转发给内部家乡代理或通信节点, 实现移动节点和 VPN内部节点的通信。 Table 6
Figure imgf000014_0002
The NAT-PT-converted IPv4 packets are forwarded to the x-AR, which is then forwarded by the x-AR to the IPv4 network. After receiving the data packet, the VPN gateway releases the IPsec encapsulation and forwards it to the internal home agent or communication node to implement communication between the mobile node and the VPN internal node.

VPN内部节点向移动节点发送数据包的转发和转换完全是上述步骤的逆过程, 在这里不再赘述。 在本发明实施例中, 移动节点的移动性决定了本发明的实施例在具体实现过程中还包括移动节点 在不同类型网络间的切换和 SA地址的更新的处理过程, 下面将对这一过程进行详细的说明。 IPv4- v6混合网络存在着支持移动 IPv4的 IPv4外部网络和支持移动 IPv6的 IPv6外部网络,异类网络 是指分别为 IPv4与 IPv6的网络, 同类网络是指同为 IPv4网络或同为 IPv6网络。 The forwarding and conversion of the data packets sent by the VPN internal node to the mobile node is completely the reverse process of the above steps, and will not be described here. In the embodiment of the present invention, the mobility of the mobile node determines the process of the handover of the mobile node between different types of networks and the update of the SA address in the specific implementation process of the embodiment of the present invention. Carry out detailed instructions. The IPv4-v6 hybrid network has an IPv4 external network supporting mobile IPv4 and an IPv6 external network supporting mobile IPv6. The heterogeneous network refers to the IPv4 and IPv6 networks respectively, and the similar network refers to the same IPv4 network or the same IPv6 network.

在移动节点利用 IPsec隧道接入 VPN后, 可能会在不同的网络之间移动。 本发明具体实施例中, 当 移动节点位于内部网络时, 则可以使用标准的移动 IPv6通信; 当移动节点从内部网络漫游至外部网络 时, 则需耍建立 IPsec隧道与 VPN内部节点进行通信; 在移动节点离幵现在的外部网络进入一个新的异 类或同类的外部网络后 , 能够通过 M0BIKE协议, 使用新获得的转交地址更新 SA地址, 保持原有的 IPsec 隧道, 继续和 VPN内部节点通信。  After the mobile node accesses the VPN using the IPsec tunnel, it may move between different networks. In a specific embodiment of the present invention, when the mobile node is located in the internal network, standard mobile IPv6 communication may be used; when the mobile node roams from the internal network to the external network, the IPsec tunnel needs to be established to communicate with the VPN internal node; After the mobile node enters a new heterogeneous or homogeneous external network from the current external network, it can update the SA address with the newly obtained care-of address through the M0BIKE protocol, maintain the original IPsec tunnel, and continue to communicate with the VPN internal node.

在移动节点的转交地址发生改变后, 为避免再次协商, 以利用原有的 IPsec隧道继续通信, 本发明 提供的实施例中需耍采用 M0BIKE协议实现 IPsec协议对节点移动性的支持,从而允许在移动节点转交地 址发生变化后通过 SA地址更新继续保持原有的 IPsec隧道进行通信。  After the handover address of the mobile node is changed, in order to avoid the renegotiation, the original IPsec tunnel is used to continue the communication. In the embodiment provided by the present invention, the M0BIKE protocol is used to implement the IPsec protocol to support the mobility of the node, thereby allowing After the mobile node care-of address changes, the original IPsec tunnel continues to be communicated through the SA address update.

为清楚说明该实施例中的这一技术要点, 下面首先对现有的 M0BIKE协议进行介绍。  To clearly illustrate this technical point in this embodiment, the following describes the existing M0BIKE protocol.

M0BIKE, 是基于 IKEv2的扩展协议, 有效支持了 IPsec隧道通信两端的移动性。 M0BIKE允许隧道两 端的节点在保持 IKE SA和 IPsec SA的情况下更新其 IP地址, 也就是说在隧道两端的节点 IP地址改变后 仍可以保持原有的 IPsec隧道, 无需重新进行协商。 M0BIKE协议的一个重耍应用场景就是 IPsec VPN的 移动节点在外部网络改变其转交地址后仍与 VPN网关保持原有的 IPsec隧道。  M0BIKE, an extension protocol based on IKEv2, effectively supports mobility at both ends of IPsec tunnel communication. M0BIKE allows the nodes at both ends of the tunnel to update their IP addresses while maintaining the IKE SA and IPsec SA. That is, the original IPsec tunnel can be maintained after the IP addresses of the nodes at both ends of the tunnel are changed. A key application scenario of the M0BIKE protocol is that the IPsec VPN mobile node still maintains the original IPsec tunnel with the VPN gateway after the external network changes its care-of address.

M0BIKE支持通信的双方具有多个地址, 并且由 IKE— SA (因特网密钥交换-安全联盟)的发起者决定 使用的隧道的端地址对。 在更新 IPsec SA地址的时, 也是由 IKE— SA的发起者来发出更新地址请求。 M0BIKE这样的设置非常适合移动 VPN的应用场景。 在移动 VPN中, 往往是移动节点在外部网络时向 VPN 网关发起 IKE协商, 建立 IPsec隧道。在移动节点转交地址发生改变后, 由移动节点发起更新地址请求,. 开始更新 IKE SA和 IPsec SAs ( IPsec安全联盟组) 中移动节点的地址。  The M0BIKE support communication has multiple addresses on both sides, and the initiator address of the IKE-SA (Internet Key Exchange-Security Association) determines the end address pair of the tunnel to be used. When the IPsec SA address is updated, the update address request is also issued by the initiator of the IKE-SA. The setting of M0BIKE is very suitable for the application scenario of mobile VPN. In a mobile VPN, it is often the case that the mobile node initiates an IKE negotiation to the VPN gateway when the external network is in the external network, and establishes an IPsec tunnel. After the mobile node care-of address changes, the mobile node initiates an update address request, and begins to update the address of the mobile node in the IKE SA and IPsec SAs (IPsec SA).

由于 M0BIKE是 IKEv2的扩展协议, 因此, 其实现均为在 IKEv2的协商交换中完成的。 M0BIKE定义了 一些新的通告载荷, 在 IKEv2的三种交换类型 (IKE—SA交换, IPsec SA交换以及信息交换) 的协商交换 过程中使用所述新的通告载荷实现 M0BIKE支持的功能。  Since M0BIKE is an extended protocol of IKEv2, its implementation is completed in the negotiation exchange of IKEv2. M0BIKE defines some new advertising payloads, which are used to implement M0BIKE support in the negotiation exchange of IKEv2's three switching types (IKE-SA switching, IPsec SA switching, and information exchange).

如果希望在建立好的 IPsec隧道中支持 M0BIKE协议, 首先耍在 IKE— SA初始化的时候, 在 IKEJIUTH ( IKE初始化的认证交换)交换中加入 MOBIKE— SUPPORTED (支持 M0BIKE)通告载荷, 表明节点双方均支 持 M0BIKE协议。  If you want to support the M0BIKE protocol in the established IPsec tunnel, firstly, when the IKE-SA is initialized, add the MOBIKE-SUPPORTED (support M0BIKE) advertisement payload to the IKEJIUTH (IKE-initiated authentication exchange) exchange, indicating that both nodes support M0BIKE protocol.

M0BIKE协议支持通信两端的实体同时拥有多个地址, 发起方和响应方可以在 IKE JVUTH交换 (即 IKEv2初始化交换的后两条消息) 中加入 ADDITI0NAL_IPv4— ADDRESS (加入 IPv4地址) 或 ADDITIONAL— IPv6— ADDRESS (加入 IPv6地址) 通告载荷。  The M0BIKE protocol supports entities at both ends of the communication to have multiple addresses at the same time. The initiator and the responder can add ADDITI0NAL_IPv4_ADDRESS (adding IPv4 address) or ADDITIONAL-IPv6-ADDRESS in the IKE JVUTH exchange (that is, the last two messages exchanged by IKEv2). (Join the IPv6 address) Announce the payload.

在实现 M0BIKE协议时, 相应的 IPsec SAs的地址的更新过程如下:  When the M0BIKE protocol is implemented, the update process of the corresponding IPsec SAs address is as follows:

在 M0BIKE中, IKE_SA的发起方决定 IPsec SAs中使用的地址。 也就是说, 响应方只有在收到来自发 起方显性的 UPDATE— SA— ADDRESSES (更新 SA地址) 请求后, 才更新 IPsec SAs的 IP地址。 当发起方确定 要更新地址后, 更新 IKE— SA和 IPsec SAs中的 IP地址, 在 IKE— SA中设置 "pending— update (绑定更新) " 标记; 如果有发送至响应方但还未收到应答的 IKEv2请求, 使用更新后的 IP地址重新传输该请求; 当 window size允许时, 发送一个包含 UPDATE— SA— ADDRESSES通告载荷的消息交换 if?求, 并且清除 "pending— update"标记; 如果在等待消息交换应答的期间地址乂发生了改变, 就再次从第一步开始 并忽略返回的应答消息。 In M0BIKE, the initiator of IKE_SA determines the address used in IPsec SAs. That is, the responder updates the IP address of the IPsec SAs only after receiving the UPDATE_SA_ADDRESSES request from the initiator. After the initiator determines that the address is to be updated, update the IP address in IKE-SA and IPsec SAs, set the "pending-update" flag in IKE-SA; if it is sent to the responder but has not received it yet Responding to the IKEv2 request, retransmitting the request with the updated IP address; when the window size allows, sending a message exchange if request containing the UPDATE_SA_ADDRESSES notification payload, and clearing the "pending_update"flag; Waiting for the message exchange response period address 乂 has changed, it starts again from the first step The returned response message is ignored.

在处理包含 UPDATE— SA— ADDRESSES的消息交换请求时 , 相应的响应方具体需耍进行如下处理: When processing a message exchange request containing UPDATE_SA_ADDRESSES, the corresponding responder needs to handle the following:

1、 由于若响应方使用大于 1的 window size, 有可能接收的请求次序颠倒, 因此, 需耍检 ¾是否收 到过比该消息还新的 UPDATE— SA_ADDRESSES请求如果有, 仅回复一个应答, 不进行其它动作; 1. Since the responder uses a window size greater than 1, it is possible that the order of the received request is reversed. Therefore, it is necessary to check whether the UPDATE has been received more than the new_SA_ADDRESSES request. If there is, only one response is replied. Perform other actions;

2、 根据本地策略检查 IP包头的源地址和目的地址是否可接受, 如果不可, 返冋一个应答包含 2. Check whether the source address and destination address of the IP header are acceptable according to the local policy. If not, return a response.

UNACCEPTABLE— ADDRESS通告载荷, 表明不可接受; UNACCEPTABLE—ADDRESS advertises the payload, indicating unacceptable;

3、 使用发起方发送的 IP包头中的 IP地址来更新 IKE— SA中的 IP地址;  3. Update the IP address in the IKE-SA by using the IP address in the IP header sent by the initiator;

4、 回复一个信息交换应答表明已经更新完毕;  4. Replying to an information exchange response indicates that the information has been updated;

当发起方收到应答后, 则需耍进行了相应处理过程如下:  When the initiator receives the response, it needs to perform the corresponding processing as follows:

1、 如果在该应答到来之前 IP地址又发生了改变, 不对该应答作任何处理, 发送一个新的 1. If the IP address changes again before the response arrives, do not process the response, send a new one.

UPDATE— SA—ADDRESSESi 求; UPDATE—SA—ADDRESSESi seeking;

2、 如果应答包含 UNACCEPTABLE— ADDRESSES通告载荷, 发起方可以选取其他的地址再重新交换, 或 继续使用现在的地址, 或断开连接。  2. If the response contains a UNACCEPTABLE_ADDRESSES notification payload, the initiator can choose another address and re-exchange, or continue to use the current address, or disconnect.

在 MOBIKE协议中, 还包括返回路由可达性检査 (Return Routabi lity Check) 功能, 具体为: 无 论发起方还是响应方, 都可以有选择的来证实使用现在的地址对方是否能够收到数据包。 返回路由可 达性检査可在更新 IPsec SAs之前或之后, 或是在正常连接期间实行。 在默认情况下, 完成 IPsec SAs 的更新之后需要进行返回路由可达性检查。 一方发起一个 IKE信息交换请求, 包含着一个 C00kie2通告 载荷; 另一方在收到该信息交换请求后, 发送信息交换应答, 复制收到的 c0okie2通告载荷并包含在信 息交换应答中;发起方收到信息交换应答后,检査收到的 cookie2通告载荷是否与自己发送的完全相同, 从而完成返回路由可达性检查。 In the MOBIKE protocol, the Return Routabiity Check function is also included, which is: Whether the initiator or the responder can selectively confirm whether the other party can receive the data packet by using the current address. . The return route reachability check can be performed before or after updating the IPsec SAs, or during a normal connection. By default, a return route reachability check is required after the IPsec SAs update is completed. One party initiates an IKE information exchange request, which contains a C00 kie2 advertisement payload; the other party sends an information exchange response after receiving the information exchange request, copies the received c 0 okie2 advertisement payload and is included in the information exchange response; After receiving the information exchange response, the party checks whether the received cookie2 advertisement payload is exactly the same as that sent by itself, thus completing the return route reachability check.

介绍了 MOBIKE协议后, 下面将对移动节点的网络切换和 SA地址更新过程进行描述。  After the MOBIKE protocol is introduced, the following describes the process of network switching and SA address update for mobile nodes.

移动节点在外部网络的切换可以分为两种情况:  The switching of mobile nodes on the external network can be divided into two situations:

同类网络间的切换, 所述的同类网络间的切换是指移动节点从一个 IPv4外部网络漫游至另一个 IPv4外部网络, 或从一个 IPv6外部网络漫游至另一个 IPv6外部网络;  For the switching between similar networks, the switching between the similar networks refers to the mobile node roaming from one IPv4 external network to another IPv4 external network, or roaming from one IPv6 external network to another IPv6 external network;

异类网络间的切换, 所述的异类网络间的切换是指移动节点从一个 IPv4外部网络漫游至一个 IPv6 外部网络, 或从一个 IPv6外部网络漫游至一个 IPv4外部网络。  Switching between heterogeneous networks, the heterogeneous network switching refers to the mobile node roaming from an IPv4 external network to an IPv6 external network, or roaming from an IPv6 external network to an IPv4 external network.

另外, 移动节点从 IPv6内部网络漫游至外部网络可分为: 移动到 IPv4外部网络和移动 IPv6外部网 络两种情况。  In addition, the mobile node roaming from the IPv6 internal network to the external network can be divided into two cases: moving to the IPv4 external network and the mobile IPv6 external network.

下面分别就各种情况下移动节点的配置和 SA地址更新进行说明。  The following describes the configuration of the mobile node and the update of the SA address in each case.

(一) 移动节点位于内部网络  (1) The mobile node is located in the internal network

移动节点位于内部网络, 如果不在家乡网络中, 通过标准的移动 IPv6与 VPN内部家乡代理和通信节 点进行通信。 位于内部网络中的移动节点在移动过程中, 当 IP地址发生了变化时, 则需耍立即停止与 VPN内部其它节点的通信, 且包括:  The mobile node is located on the internal network. If it is not in the home network, it communicates with the VPN internal home agent and communication node through standard mobile IPv6. When the mobile node located in the internal network moves, when the IP address changes, it needs to immediately stop communication with other nodes in the VPN, and includes:

( 1 )如果获得了 IPv4转交地址, 则确定移动节点此时位于一个 IPv4外部网络中, 开始使用该 IPv4 转交地址与 VPN网关进行支持 MOBIKE的 IKE协商, 建立 IPsec隧道; 移动节点使用 VPN网关生成的 VPN- TIA 作为内部 MIPv6转交地址通过 IPsec隧道向 i-HA (内部家乡代理) 发送注册请求, 在收到注册应答后通 过建立的 IPsec隧道与内部网络节点通信; (1) If the IPv4 care-of address is obtained, it is determined that the mobile node is located in an IPv4 external network, and the IPv4 care-of address is used to perform IKE negotiation with the VPN gateway to support MOBIKE, and an IPsec tunnel is established; the mobile node generates the VPN gateway. The VPN-TIA sends a registration request to the i-HA (internal home agent) through the IPsec tunnel as the internal MIPv6 care-of address, and passes the registration response. The established IPsec tunnel communicates with the internal network node;

(2 ) 如果移动节点获得了 IPv6转交地址, 利用域名解析的方式间接査询 VPN网关的 IPv6地址, 具 体查询过程前面已经描述, 此处不再描述; 同时, 移动节点还需耍向 VPN内部家乡代理发送一个标准的 移动 IPv6注册请求, 移动节点根据是否收到相应的移动 IPv6注册应答进行相应的通信处理, 具体包括: 如果移动节点收到对应所述的移动 IPv6注册请求的移动 IPv6注册应答, 则确定移动节点 EI前所在 的网络仍娃 VPN内部网络, 这样, 在完成注册更新后, 移动节点可以使用新的 IPv6转交地址与 VPN内部 节点通信;  (2) If the mobile node obtains the IPv6 care-of address, the domain name is used to indirectly query the IPv6 address of the VPN gateway. The specific query process has been described above and will not be described here. At the same time, the mobile node needs to play the VPN internal hometown. The proxy sends a standard mobile IPv6 registration request, and the mobile node performs corresponding communication processing according to whether the corresponding mobile IPv6 registration response is received, specifically: if the mobile node receives the mobile IPv6 registration response corresponding to the mobile IPv6 registration request, Then, it is determined that the network where the mobile node EI is located is still in the VPN internal network, so that after completing the registration update, the mobile node can communicate with the VPN internal node by using the new IPv6 care-of address;

如果没有收到对应所述的移动 IPv6注册请求的移动 IPv6注册应答 ,并且查询 VPN网关的 IPv6地址成 功, 此时移动节点应当是位于一个 IPv6外部网络, 使用新的 IPv6地址与 VPN网关进行支持 M0BIKE的 IKE 协商, 建立 IPsec隧道; 此时, 具体的建立 IPsecP遂道的过程为: 移动节点使用 VPN网关生成的 VPN- TIA 作为内部移动 IPv6转交地址, 通过 IPsec隧道向内部家乡代理发送注册请求, 在收到注册应答后通过建 立的 IPsec隧道与内部网络节点通信。  If the mobile IPv6 registration response corresponding to the mobile IPv6 registration request is not received, and the IPv6 address of the VPN gateway is successfully queried, the mobile node should be located in an IPv6 external network, and use the new IPv6 address and the VPN gateway to support M0BIKE. The IKE negotiation establishes an IPsec tunnel. At this time, the specific process of establishing an IPsecP tunnel is as follows: The mobile node uses the VPN-TIA generated by the VPN gateway as the internal mobile IPv6 care-of address, and sends a registration request to the internal home agent through the IPsec tunnel. After receiving the registration response, it communicates with the internal network node through the established IPsec tunnel.

(二) 移动节点位于外部网络  (2) The mobile node is located in the external network

移动节点在外部网络时, 建立了 IPsec隧道, 通过 IPsec隧道与 VPN内部节点进行通信。移动节点位 于 IPv4外部网络和位于 IPv6外部网络所采取的配置不尽相同, 相比之下, 移动节点位下 IPv6外部网络 需耍进行 IPv6 in IPv4隧道封装, 更为复杂。  When the mobile node is on the external network, an IPsec tunnel is established to communicate with the internal nodes of the VPN through the IPsec tunnel. The configuration of the mobile node in the IPv4 external network and the IPv6 external network is different. In contrast, the IPv6 external network in the mobile node needs to be encapsulated in IPv6 in IPv4 tunnel, which is more complicated.

下面分别就移动节点在 IPv4外部网络的漫游和在 IPv6外部网络的漫游分别进行说明。  The following describes the mobile node roaming on the IPv4 external network and the roaming on the IPv6 external network respectively.

1、 移动节点位于 IPv4外部网络  1. The mobile node is located in the IPv4 external network.

移动节点位于 IPv4外部网络时, 通过获得的 IPv4转交地址作为隧道本端的地址, 与 VPN网关进行支 持 M0BIKE的 IKE协商, 建立 IPsec隧道, 通过 IPsec隧道与 VPN内部节点进行通信。 移动节点在 IPv4外部 网络中移动, IP地址发生变化时, 则立即停止与 VPN内部节点的通信, 且包括:  When the mobile node is located on the IPv4 external network, the IPv4 care-of address is used as the local address of the tunnel, and the VPN gateway supports the IKE negotiation of M0BIKE to establish an IPsec tunnel and communicate with the VPN internal node through the IPsec tunnel. When the mobile node moves in the IPv4 external network and the IP address changes, the communication with the internal node of the VPN is immediately stopped, and includes:

( 1 ) 如果获得了 IPv4转交地址, 说明移动节点进入了另一个 IPv4外部网络, 开始初始化 M0BIKE, 进行 SA地址更新, 更新后 SA的端点地址为移动节点新的 IPv4转交地址和 VPN网关的 IPv4地址;  (1) If the IPv4 care-of address is obtained, the mobile node enters another IPv4 external network, starts to initialize M0BIKE, and performs SA address update. The updated endpoint address of the SA is the new IPv4 care-of address of the mobile node and the IPv4 address of the VPN gateway. ;

(2)如果移动节点获得了 IPv6转交地址, 利用域名解析的方式间接査询 VPN网关的 IPv6地址; 同 时, 移动节点还需要向 VPN内部家乡代理发送一个标准的移动 IPv6注册请求; 移动节点根据是否返回相 应的注册应答进行相应的通信处理, 具体包括:  (2) If the mobile node obtains the IPv6 care-of address, the domain name resolution method is used to indirectly query the IPv6 address of the VPN gateway; at the same time, the mobile node also needs to send a standard mobile IPv6 registration request to the VPN internal home agent; Return the corresponding registration response for corresponding communication processing, including:

如果移动节点收到所述的移动 IPv6注册请求对应的移动 IPv6注册应答, 则确定移动节点现在进入 了 VPN内部网络, 在完成注册更新后, 移动节点可以使用新的 IPv6转交地址与 VPN|Aj部节点通信; 如果没有收到所述的移动 IPv6注册请求对应的 MIPv6 (移动 IPv6 ) 注册应答, 并且杏询 VPN网关的 IPv6地址成功, 此时移动节点位于一个 IPv6外部网络, 开始初始化 M0BIKE, 进行 SA地址更新, 更新后 SA端点地址为移动节点新获得的 IPv6转交地址和 VPN网关的 IPv6地址; 在完成 IKE SA和 iPsec SAs地址 更新后, 移动节点继续通过 IPsec隧道与 VPN内部节点通信。  If the mobile node receives the mobile IPv6 registration response corresponding to the mobile IPv6 registration request, it is determined that the mobile node now enters the VPN internal network, and after completing the registration update, the mobile node can use the new IPv6 care-of address and the VPN|Aj department. Node communication; if the MIPv6 (Mobile IPv6) registration response corresponding to the mobile IPv6 registration request is not received, and the IPv6 address of the VPN gateway is successful, the mobile node is located in an IPv6 external network, and the M0BIKE is initialized, and the SA is started. The address update, the updated SA endpoint address is the newly obtained IPv6 care-of address of the mobile node and the IPv6 address of the VPN gateway; after completing the IKE SA and iPsec SAs address update, the mobile node continues to communicate with the VPN internal node through the IPsec tunnel.

针对所述 SA地址需耍说明的是: 由于移动节点从 IPv4外部网络移动至 IPv6外部网络, 移动节点的 目的地址和源地址 (也就是 SA的端点地址) 都发生改变, 移动节点将它们更新为 IPv6地址; 对于 VPN 网关, 是在收到 UPDATE— SA— ADDRESSES (更新安全联盟地址)通告载荷后根据工 P包的地址进行更新, 因 此 VPN网关认为 SA的端点地址发生了变化, 将更新为移动节点和 VPN网关的 IPv6地址。 2、 移动节点位于 IPv6外部网络 The SA address needs to be explained: Since the mobile node moves from the IPv4 external network to the IPv6 external network, the destination address and the source address of the mobile node (that is, the endpoint address of the SA) are changed, and the mobile node updates them to IPv6 address; for the VPN gateway, after receiving the UPDATE-SA-ADDRESSES (Update Security Association Address) notification payload, it is updated according to the address of the worker P packet. Therefore, the VPN gateway considers that the endpoint address of the SA has changed and will be updated to mobile. The IPv6 address of the node and VPN gateway. 2. The mobile node is located in the IPv6 external network.

移动节点位于 IPv6外部网络时,获得 IPv6转交地址,通过域名解析方式查询到 VPN网关的 IPv6地址。 接着发起支持 M0BIKE的 IKE协商, 建立 IPsec隧道。 通过 IPsec隧道与 VPN内部节点进行通信。 移动节点 在 IPv6外部网络中移动, IP地址发生变化时, 则立即停止与 VPN内部节点的通信, 且包括:  When the mobile node is located on the IPv6 external network, obtain the IPv6 care-of address and query the IPv6 address of the VPN gateway through domain name resolution. Then initiate IKE negotiation that supports M0BIKE and establish an IPsec tunnel. Communicate with the internal nodes of the VPN through the IPsec tunnel. When the mobile node moves in the IPv6 external network and the IP address changes, it immediately stops communication with the internal node of the VPN, and includes:

( 1 ) 如果获得了 IPv4转交地址, 说明移动节点进入了另一个 IPv4外部网络, 开始初始化 M0BIKE, 进行 SA地址更新, 更新后 SA的端点地址为移动节点新的 IPv4转交地址和 VPN网关的 IPv4地址;  (1) If the IPv4 care-of address is obtained, the mobile node enters another IPv4 external network, starts to initialize M0BIKE, and performs SA address update. The updated endpoint address of the SA is the new IPv4 care-of address of the mobile node and the IPv4 address of the VPN gateway. ;

(2) 如果移动节点获得了 IPv6转交地址, 利用域名解析的方式间接査询 VPN网关的 IPv6地址; 同 时向 VPN内部家乡代理发送一个标准的移动 IPv6注册请求;移动节点根据是否返回注册应答的情况进行 相应的通信处理, 具体包括:  (2) If the mobile node obtains the IPv6 care-of address, the domain name resolution method is used to indirectly query the IPv6 address of the VPN gateway; at the same time, a standard mobile IPv6 registration request is sent to the VPN internal home agent; and the mobile node returns the registration response according to whether it is returned. Corresponding communication processing, including:

如果移动节点收到所述的移动 IPv6注册请求对应的移动 IPv6注册应答, 则确定移动节点现在进入 了 VPN内部网络, 在完成注册更新后, 移动节点能够使用新的 IPv6转交地址与 VPN内部节点通信; 如果没有收到所述的移动 IPv6注册请求对应的 MIPv6注册应答,并且査询 VPN网关的 IPv6地址成功, 此时移动节点位于一个 IPv6外部网络, 开始初始化 M0BIKE, 进行 SA地址更新, 更新后的 SA端点地址为 移动节点新获得的 IPv6转交地址和 VPN网关的 IPv6地址; 在完成 IKE SA和 IPsec SAs地址更新后, 移动 节点继续通过 IPsec隧道与 VPN内部节点通信。  If the mobile node receives the mobile IPv6 registration response corresponding to the mobile IPv6 registration request, it is determined that the mobile node now enters the VPN internal network, and after completing the registration update, the mobile node can communicate with the VPN internal node by using the new IPv6 care-of address. If the MIPv6 registration response corresponding to the mobile IPv6 registration request is not received, and the IPv6 address of the VPN gateway is successfully queried, the mobile node is located in an IPv6 external network, and the M0BIKE is initialized, and the SA address is updated, and the updated The SA endpoint address is the newly obtained IPv6 care-of address of the mobile node and the IPv6 address of the VPN gateway. After completing the IKE SA and IPsec SAs address update, the mobile node continues to communicate with the VPN internal node through the IPsec tunnel.

在进行 SA地址更新的过程中需要考虑相应的安全性问题, 具体为: 在更新 SA地址时, 可能会受到 一些来自网络中第三方的安全威胁。 M0BIKE协议在考虑安全因素的情况下设计了两种保障机制: 第一, 返回路由可达性检査 ( "return routability" check) 可以用来检杏双方节点提供的地址 的可达性, 这避免了大量的通信流量传入第三方;  During the process of updating the SA address, you need to consider the security issue. Specifically, when you update the SA address, you may receive some security threats from third parties on the network. The M0BIKE protocol has designed two guarantee mechanisms in consideration of security factors: First, the return routability check ("return routability" check) can be used to check the reachability of addresses provided by both nodes of the apricot, which avoids A large amount of communication traffic is passed to third parties;

第二, NAT禁止 (NAT prohibi tion) 使得 IP地址不能被任何 NAT, IPv4/v6转换, 或其它类似设备 修改。  Second, NAT prohibition makes IP addresses unmodified by any NAT, IPv4/v6, or other similar device.

这一特性主要使用在管理员已经知道两节点之间不存在任何 NAT设备,所以任何对数据包的修改都 认为是一种攻击。  This feature is mainly used when the administrator already knows that there are no NAT devices between the two nodes, so any modification to the packet is considered an attack.

在该实施例中, 在每次 SA地址更新之后, 还未恢复数据流的通信之前, 加入返回路由可达性检査, 确保更新后的地址是安全可路由的。 在移动节点进入 IPv4外部网络或是 IPv6外部网络中, 认为移动节 点和 VPN网关之间不存在任何必要的 NAT设备, 因此, 可以使用 NAT禁止来保护数据包不被修改。  In this embodiment, a return route reachability check is added before each SA address update, before the communication of the data stream has been resumed, ensuring that the updated address is securely routable. In the case where the mobile node enters the IPv4 external network or the IPv6 external network, it is considered that there is no necessary NAT device between the mobile node and the VPN gateway. Therefore, NAT prohibition can be used to protect the data packet from being modified.

综上所述, 本发明提供的实施例利用 M0BIKE协议更新 SA的地址项, 配合 VPN网关指派给移动节点 VPN- TIA地址的方法, 成功解决了现有技术中提及的两个问题。并提出在 IPv4向 IPv6过渡时期, 采用 IPv4为骨干网络的 IPv4- v6混合环境下, 移动节点实现接入 VPN服务, 以及保持正常通信前提下网络 间切换。  In summary, the embodiment provided by the present invention successfully solves the two problems mentioned in the prior art by using the M0BIKE protocol to update the address item of the SA and the method assigned by the VPN gateway to the VPN node of the mobile node. It is proposed that in the IPv4 to IPv6 transition period, the IPv4 is used as the backbone network in the IPv4-v6 hybrid environment, the mobile node implements access to the VPN service, and maintains the normal communication under the premise of switching between networks.

而且, 在应用本发明具体实施例的过程中, 基于现有的通信网络可以不引入任何新的设备, 且不 需耍升级任何硬件, 只需对相应设备的软件进行改进即可, 因此, 整个配置操作过程简单、 易行。  Moreover, in the process of applying the specific embodiment of the present invention, no new device can be introduced based on the existing communication network, and no hardware needs to be upgraded, and only the software of the corresponding device can be improved, therefore, the whole The configuration process is simple and easy.

以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围并不局限于此, 任何熟悉本技 术领域的技术人员在本发明具体实施例揭露的技术范围内, 可轻易想到的变化或替换, 都应涵盖在本 发明的保护范围之内。 因此, 本发明保护范围应该以权利要求保护范围为准。  The above is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of it within the technical scope disclosed by the specific embodiments of the present invention. Changes or substitutions are intended to be included within the scope of the invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims

权利要求 Rights request 1、 一种 VPN网关, 其特征在于, 包括 IPv4报文处理单元、 IPv4接口、 IPv6报文处理单元及 IPv6 接口, 其中, 所述 IPv4接口用于与 IPv4网络进行 IPv4报文的交互, 所述的 IPv4报文处理单元用于进 行 IPv4报文的封装或解封装处理; 所述 IPv6接口用于与 IPv6网络进行 IPv6报文的交互, 所述的 IPv6 报文处理单元用于进行 IPv6报文的封装或解封装处理。  A VPN gateway, comprising: an IPv4 packet processing unit, an IPv4 interface, an IPv6 packet processing unit, and an IPv6 interface, wherein the IPv4 interface is configured to perform an IPv4 packet interaction with an IPv4 network, The IPv4 packet processing unit is configured to perform the encapsulation or decapsulation processing of the IPv4 packet; the IPv6 interface is configured to exchange the IPv6 packet with the IPv6 network, and the IPv6 packet processing unit is configured to perform the IPv6 packet. Encapsulation or decapsulation processing. 2、 根据权利要求 1所述的 VPN网关, 其特征在于, 还包括 IPv4地址分配单元, 用于为移动到 IPv4 外部网络中的移动节点分配 VPN隧道内部地址, 该地址为移动节点在家乡网络中的转交地址。  2. The VPN gateway according to claim 1, further comprising an IPv4 address allocation unit, configured to allocate a VPN tunnel internal address to the mobile node moving to the IPv4 external network, where the address is a mobile node in the home network. The care-of address. 3、 一种 IPv6网络系统, 其特征在于, 该系统可穿越 IPv4网络并通过 VPN网关与 VPN内部的 IPv6 网络通信, 所述 VPN网关提供的内部接口为 IPv6接口, 外部接口为 IPv4接口, 该系统还包括:  An IPv6 network system, wherein the system can traverse an IPv4 network and communicate with an IPv6 network inside the VPN through a VPN gateway. The internal interface provided by the VPN gateway is an IPv6 interface, and the external interface is an IPv4 interface. Also includes: 隧道建立模块: 用于在 VPN网关与外部网络之间建立可传输两网络之间交互的 VPN报文的隧道, 且所述的隧道的两端地址分别为外部网络的 IPv4地址和 VPN网关提供的外部接口的 IPv4地址;  The tunnel establishment module is configured to establish a tunnel between the VPN gateway and the external network, which can transmit the VPN packets exchanged between the two networks, and the addresses of the two ends of the tunnel are respectively provided by the IPv4 address of the external network and the VPN gateway. IPv4 address of the external interface; 报文封装传送模块: 设置于所述隧道的两端, 用于将待发送的 VPN报文封装上 IPv4报文头, 并通 过所述的隧道发送给对端。  The packet encapsulation and delivery module is configured to be configured to be configured to be configured to send the VPN packet to be sent to the peer end by using the tunnel. 4、 根据权利耍求 3所述的系统, 其特征在于, 该系统还包括:  4. The system of claim 3, wherein the system further comprises: 域名服务器应用层网关 DNS-ALG:配置为 IPv4和 IPv6双协议栈,用于在通过 IPv6外部网络开展 V 业务过程中提供所述的 VPN网关对应的 IPv6地址;  Domain name server application layer gateway DNS-ALG: configured as an IPv4 and IPv6 dual protocol stack, configured to provide an IPv6 address corresponding to the VPN gateway in the process of performing a V service through an IPv6 external network; IPv6网络中的域名服务器 DNS: 配置其上级 DNS为所述 DNS-ALG;  DNS server in the IPv6 network DNS: Configure its upper-level DNS as the DNS-ALG; 外部接入路由器: 配置为 IPv4和 IPv6双协议栈, 用于实现将 IPv6报文封装上 IPv4报文头的,功能, 同时, 用于解封装相应的报文。  External access router: Configured as an IPv4 and IPv6 dual protocol stack, it is used to encapsulate IPv6 packets on IPv6 packets. It is also used to decapsulate corresponding packets. 5、 根据权利要求 3所述的系统, 其特征在于, 该系统还包括:  5. The system of claim 3, wherein the system further comprises: DNS-ALG: 配置为 IPv4和 IPv6双协议栈 , 用于提供所述的 VPN网关对应的 IPv6地址;  DNS-ALG: configured as an IPv4 and IPv6 dual protocol stack, configured to provide an IPv6 address corresponding to the VPN gateway. IP v6网络中的 DNS: 在 DNS中配置其上级 DNS为所述的 DNS- ALG;  DNS in the IP v6 network: Configure its upper-level DNS in the DNS as the described DNS-ALG; NAT-PT实体: 用于与外部接入路由器之间进行通信, 并对经过该实体的报文进行相应的 IPv6地 址与 IPv4地址之间的转换;  NAT-PT entity: used for communication with an external access router, and performs conversion between the corresponding IPv6 address and the IPv4 address of the packet passing through the entity; 外部接入路由器: 用于将经过 MT- PT实体转换后的报文发送给 VPN网关, 并接收 VPN网关发来的 报文。  The external access router is configured to send the packet converted by the MT-PT entity to the VPN gateway, and receive the packet sent by the VPN gateway. 6、 一种混合网络中实现移动 VPN的系统, 其特征在于, 包括外部网络、 IPv4网络、 VPN和 VPN网 关, 所述的 VPN内部网络为 IPv6网络, 所述的 VPN网关提供的内部接口为 IPv6接口, 外部接口为 IPv4 接口, 所述的外部网络包括 IPv4外部网络和 IPv6外部网络, 所述的系统还包括:  A system for implementing a mobile VPN in a hybrid network, comprising: an external network, an IPv4 network, a VPN, and a VPN gateway, wherein the VPN internal network is an IPv6 network, and the internal interface provided by the VPN gateway is IPv6. The external interface is an IPv4 interface, and the external network includes an IPv4 external network and an IPv6 external network, and the system further includes: 隧道建立模块: 用于在 VPN网关与外部网络之间建立可传输两网络之间交互的 VPN报文的隧道, 且所述的隧道的两端地址分别为外部网络的 IPv4地址和 VPN网关提供的外部接口的 IPv4地址;  The tunnel establishment module is configured to establish a tunnel between the VPN gateway and the external network, which can transmit the VPN packets exchanged between the two networks, and the addresses of the two ends of the tunnel are respectively provided by the IPv4 address of the external network and the VPN gateway. IPv4 address of the external interface; 报文封装传送模块: 设置于所述隧道的两端, 用于将待发送的 VPN报文封装上 IPv4报文头, 并通 过所述的隧道发送给对端。  The packet encapsulation and delivery module is configured to be configured to be configured to be configured to send the VPN packet to be sent to the peer end by using the tunnel. 7、根据权利要求 6所述的混合网络中实现移动 VPN的系统, 其特征在于, 在 IPv6外部网络中, 所 述系统还包括:  The system for implementing a mobile VPN in a hybrid network according to claim 6, wherein in the IPv6 external network, the system further comprises: DNS-ALG: 配置为 IPv4和 IPv6双协议桟, 用于在通过 IPv6外部网络开展 VPN业务过程中提供所述 的 VPN网关对应的 IPv6地址; IPv6网络中的 DNS: 配置其上级 DNS为所述的 DNS- ALG; DNS-ALG: configured as an IPv4 and IPv6 dual protocol, configured to provide an IPv6 address corresponding to the VPN gateway in a process of performing a VPN service through an IPv6 external network; DNS in an IPv6 network: configure its upper-level DNS as the described DNS-ALG; 外部接入路由器: 配置为 IPv4和 IPv6双协议栈, 用于实现将 IPv6报文封装上 IPv4报文头的功能, 同时, 用于解封装相应的报文。  External access routers: Configured as an IPv4 and IPv6 dual protocol stack, which is used to encapsulate IPv6 packets on IPv6 packets and decapsulate corresponding packets. 8、 根据权利耍求 6所述的混合网络中实现移动 VPN的系统, 其特征在于, 在 IPv6外部网络中, 所 5 述的系统还包括- 8. A system for implementing a mobile VPN in a hybrid network according to claim 6, wherein in the IPv6 external network, the system further includes - DNS-ALG: 配置为 IPv4和 IPv6双协议栈, 用于提供所述的 VPN网关对应的 IPv6地址; DNS-ALG: configured as an IPv4 and IPv6 dual protocol stack, configured to provide an IPv6 address corresponding to the VPN gateway. IPv6网络中的 DNS: 在 DNS中配 g其上级 DNS为所述的 DNS- ALG;  DNS in the IPv6 network: In the DNS, the upper-level DNS is the DNS-ALG; NAT-PT实体: 用于与外部接入路由器之间进行通信, 并对经过该实体的报文进行相应的 IPv6地 址与 IPv4地址之间的转换;  NAT-PT entity: used for communication with an external access router, and performs conversion between the corresponding IPv6 address and the IPv4 address of the packet passing through the entity; ) 0 外部接入路由器: 用于将经过 NAT- PT实体转换后的报文发送给 VPN网关, 并接收 VPN网关发来的 报文。  0 External access router: It is used to send the packets converted by the NAT-PT entity to the VPN gateway and receive the packets sent by the VPN gateway. 9、 一种混合网络中实现移动 VPN的方法, 其特征在于, 该方法应用于包括 IPv4网络和移动虚拟 专用网 VPN内部的 IPv6网络的混合网络中, 且在所述的混合网络中设 iSVPN的 VPN网关 , 所述的 VPN网 关提供有 IPv6地址的内部接口和 IPv4地址的外部接口, 该方法包括:  A method for implementing a mobile VPN in a hybrid network, the method is applied to a hybrid network including an IPv4 network and an IPv6 network inside a mobile virtual private network VPN, and the iSVPN is set in the hybrid network. The VPN gateway, the VPN gateway provides an internal interface with an IPv6 address and an external interface of an IPv4 address, and the method includes: 15 在所述的 VPN网关与外部网络之间建立隧道, 所述隧道用于传输外部网络与 VPN内部的 IPv6网络 之间交互的 VPN报文, 且所述隧道两端地址分别为外部网络的 IPv4地址和 VPN网关提供的外部接口的 IPv4地址, 所述的外部网络为 IPv4外部网络或 IPv6外部网络;  And establishing a tunnel between the VPN gateway and the external network, where the tunnel is used to transmit a VPN packet exchanged between the external network and the IPv6 network in the VPN, and the addresses of the two ends of the tunnel are respectively the IPv4 of the external network. The address and the IPv4 address of the external interface provided by the VPN gateway, where the external network is an IPv4 external network or an IPv6 external network; 将需耍传送的 VPN报文封装上 IPv4报头后, 通过所述隧道传送所述 VPN报文, 以在混合网络中实 现 VPN业务。 After the VPN packet to be transmitted is encapsulated in the IPv4 header, the VPN packet is transmitted through the tunnel to implement the VPN service in the hybrid network. 0 10、 根据权利要求 9所述的混合网络中实现移动 VPN的方法, 其特征在于, 若移动节点位置 IPv6 外部网络中, 则所述的方法还包括获取 VPN网关的地址的处理, 具体包括:  The method for implementing the mobile VPN in the hybrid network according to claim 9, wherein if the mobile node is located in the IPv6 external network, the method further includes: acquiring the address of the VPN gateway, specifically: 所述移动节点向所在的 IPv6网络中的 DNS发起 VPN网关的 DNS请求,所述的请求到达 IPv6网络中的 DNS后, 将被转发到 IPv6网络中设置的域名服务器应用层网关 DNS- ALG;  The mobile node initiates a DNS request of the VPN gateway to the DNS in the IPv6 network, and the request arrives at the DNS in the IPv6 network, and is forwarded to the domain name server application layer gateway DNS-ALG set in the IPv6 network; DNS - ALG根据其保存的 DNS服务器信息确定用于解析 VPN网关的 IPv4地址的 DNS, 并将所述的 DNS 5 请求转换为 IPv4格式的 DNS请求发送给确定的所述 DNS;  DNS-ALG determines, according to its saved DNS server information, a DNS for resolving the IPv4 address of the VPN gateway, and translates the DNS 5 request into an IPv4 format DNS request and sends the DNS request to the determined DNS; 在 DNS- ALG接收到用于解析 VPN网关的 IPv4地址的 DNS返回的 DNS应答消息后,保存 VPN网关的 IPv4 地址信息,并将该 IPv4地址增加前缀转换为 IPv6格式的 IPv6地址发送给移动节点,移动节点将该 IPv6 地址作为 VPN网关的地址信息。  After the DNS-ALG receives the DNS response message returned by the DNS for resolving the IPv4 address of the VPN gateway, the IPv4 address information of the VPN gateway is saved, and the IPv4 address-added prefix is converted into an IPv6 format IPv6 address and sent to the mobile node. The mobile node uses the IPv6 address as the address information of the VPN gateway. 11、 根据权利要求 9或 10所述的混合网络中实现移动 VPN的方法, 其特征在于, 所述的隧道为支0 持因特网密钥交换移动与多接口协议 M0BIKE的 IPsec隧道, 所述的建立隧道的处理过程具体包括: 当移动节点移动到 IPv6外部网络中后,在所述的 VPN网关与位于 IPv6外部网络中的获得转交地址 的移动节点之间建立 IPsec隧道之后, VPN网关与 IPv6外部网络中的接入路由器建立用于传输 IPv6报 文的 IPv6 in IPv4隧道, 该隧道将 IPv6报文封装于 IPv4报文中, 隧道两端地址分别为 IPv6外部网络 接入路由器的 IPv4地址和 VPN网关外部接口的 IPv4地址; The method for implementing a mobile VPN in a hybrid network according to claim 9 or 10, wherein the tunnel is an IPsec tunnel with an Internet Key Exchange Mobile and a Multi-Interface Protocol M0BIKE, and the establishment is performed. The process of the tunnel specifically includes: after the mobile node moves into the IPv6 external network, after establishing an IPsec tunnel between the VPN gateway and the mobile node located in the IPv6 external network to obtain the care-of address, the VPN gateway and the IPv6 external network The access router in the middle establishes an IPv6 in IPv4 tunnel for transmitting IPv6 packets. The tunnel encapsulates IPv6 packets in IPv4 packets. The addresses at both ends of the tunnel are respectively the IPv4 address of the IPv6 external network access router and the outside of the VPN gateway. IPv4 address of the interface; 5 或者, 5 or, 当移动节点移动到 IPv4外部网络中后, 获得 IPv4网络的转交地址, 移动节点与 VPN网关之间进行 协商建立所述的 IPsec隧道, 隧道的两端的地址分别为所述转交地址和 VPN网关的 IPv4地址。 After the mobile node moves to the IPv4 external network, obtains the care-of address of the IPv4 network, and the mobile node negotiates with the VPN gateway to establish the IPsec tunnel. The addresses of the two ends of the tunnel are respectively the care-of address and the IPv4 of the VPN gateway. address. 12、 根据权利耍求 11所述的混合网络中实现移动 VPN的方法, 其特征在于, 所述的传送所述 VPN 报文的处理过程包括: The method for implementing the mobile VPN in the hybrid network according to claim 11 is characterized in that: the process of transmitting the VPN packet includes: 位于 IPv6外部网络中的移动节点构造所述的 VPN网关对应的 IPv6地址的报文,并发送给 IPv6网络 的外部接入路由器;  The mobile node located in the IPv6 external network constructs the IPv6 address corresponding to the VPN gateway and sends the packet to the external access router of the IPv6 network. 所述的外部接入路由器收到来自移动节点的 IPv6报文, 为该报文添加 IPv4报文头, 报文头中 Φ 载的是 VPN网关的 IPv4地址, 并通过所述的隧道发送给所述的 VPN网关;  The external access router receives an IPv6 packet from the mobile node, and adds an IPv4 packet header to the packet. The Φ of the packet header is the IPv4 address of the VPN gateway, and is sent to the tunnel through the tunnel. VPN gateway VPN网关解析接收到的报文, 对该 IPv4报文解封装还原为 IPv6报文, 并继续传递所述 IPv6报文。 The VPN gateway parses the received packet, decapsulates the IPv4 packet into an IPv6 packet, and continues to deliver the IPv6 packet. 13、 根据权利耍求 11所述的混合网络中实现移动 VPN的方法, 其特征在于, 所述的传送所述 VPN 报文的处理过程包括: The method for implementing the mobile VPN in the hybrid network according to claim 11 is characterized in that: the process of transmitting the VPN packet includes: 位于 IPv6外部网络中的移动节点构造所述的 VPN网关对应的 IPv6地址的报文,并发送给网络地址 转换-协议转换 NAT- PT实体;  The mobile node located in the IPv6 external network constructs the packet of the IPv6 address corresponding to the VPN gateway, and sends the packet to the network address translation-protocol-switching NAT-PT entity; 所述的 MT-PT将所述的 IPv6报文中的 IPv6地址转换为 IPv4地址, 并发送给外部接入路由器, 由 所述外部接入路由器通过所述的隧道将该报文发送给所述的 VPN网关;  Transmitting, by the MT-PT, the IPv6 address in the IPv6 packet to an IPv4 address, and sending the packet to the external access router, where the external access router sends the packet to the VPN gateway; VPN网关解析接收到的报文, 并继续传递所述报文。  The VPN gateway parses the received packet and continues to deliver the packet. 14、根据权利耍求 11所述的混合网络中实现移动 VPN的方法, 其特征在于, 若所述的移动节点位 于 IPv4外部网络中, 则所述的 VPN网关还包括为移动节点确定一个 VPN隧道内部地址, 作为移动点向 VPN内部注册的移动 IPv6转交地址。  14. The method for implementing a mobile VPN in a hybrid network according to claim 11, wherein if the mobile node is located in an IPv4 external network, the VPN gateway further includes determining a VPN tunnel for the mobile node. The internal address, which is the mobile IPv6 care-of address registered to the VPN as a mobile point. 15、根据权利耍求 14所述的混合网络中实现移动 VPN的方法, 其特征在于, 若所述的移动节点位 于 IPv4外部网络中, 则所述的传送所述 VPN报文的处理过程包括:  The method for implementing a mobile VPN in a hybrid network according to claim 14, wherein if the mobile node is located in an IPv4 external network, the process of transmitting the VPN packet includes: 处于 IPv4网络中的移动节点将数据包进行移动 IPv6封装, , 相应的源地址采用所述的 VPN隧道内: 部地址, 目的地址釆用 VPN内部的节点的地址;  The mobile node in the IPv4 network performs the mobile IPv6 encapsulation of the data packet, and the corresponding source address is in the VPN tunnel: the department address, and the destination address uses the address of the node inside the VPN; 对进行移动 IPv6封装后的数据包根据建立的隧道进行 IPsec封装, 并通过建立的隧道向所述的 VPN网关发送封装有 IPv4报头的 VPN业务报文。  The data packet encapsulated by the mobile IPv6 is encapsulated in an IPsec encapsulation according to the established tunnel, and the VPN service packet encapsulated with the IPv4 header is sent to the VPN gateway through the established tunnel. 16、 根据权利要求 15所述的混合网络中实现移动 VPN的方法, 其特征在于, 所述的移动节点对数 据包进行移动 IPv6封装过程中。  The method for implementing a mobile VPN in a hybrid network according to claim 15, wherein the mobile node performs a mobile IPv6 encapsulation process on the data packet. 17、 根据权利要求 9、 10或 11所述的混合网络中实现移动 VPN的方法, 其特征在丁-, 当位于 VPN 内部网络中的移动节点在移动过程中 IP地址发生变化时, 则停止与 VPN内部其它节点的通信, 且所述 的方法还包括:  17. The method for implementing a mobile VPN in a hybrid network according to claim 9, 10 or 11, wherein the mobile node in the VPN internal network stops when the IP address changes during the mobile process. Communication of other nodes in the VPN, and the method further includes: 若移动节点获得 IPv4转交地址,则使用所述 IPv4转交地址与 VPN网关进行支持 M0BIKE的 IKE协商, 建立 IPsec隧道; 移动节点使用 VPN网关提供的内部 IPv6转交地址通过所述燧道向内部家乡代理发起 注册, 并在收到注册应用答后通过所述隧道与 VPN网络节点通信;  If the mobile node obtains the IPv4 care-of address, the IPv4 care-of address is used to perform IKE negotiation with the VPN gateway to support M0BIKE, and an IPsec tunnel is established; the mobile node uses the internal IPv6 care-of address provided by the VPN gateway to initiate the internal home agent through the ramp. Registering, and communicating with the VPN network node through the tunnel after receiving the registration application answer; 或者,  Or, 若移动节点获得 IPv6转交地址, 则利用域名解析的方式间接査询 VPN网关的 IPv6地址, 之后, 移 动节点向 VPN内部家乡代理发送一个标准的移动 IPv6注册请求; 当接收到 IPv6注册应答时, 确定移动 节点位于 VPN内部, 移动节点使用新的 IPv6转交地址与 VPN内部节点通信。  If the mobile node obtains the IPv6 care-of address, the IPv6 address of the VPN gateway is indirectly queried by means of domain name resolution. Then, the mobile node sends a standard mobile IPv6 registration request to the VPN internal home agent; when receiving the IPv6 registration response, it is determined. The mobile node is located inside the VPN, and the mobile node communicates with the VPN internal node using the new IPv6 care-of address. 18、 根据权利要求 17所述的混合网络中实现移动 VPN的方法, 其特征在于, 若移动节点获得 IPv6 转交地址, 则所述的方法还包括: 若移动节点未收到所述的移动 IPv6注册应答, 且查询 VPN网关的 IPv6地址成功, 确定移动节点位 于 VPN外部的 IPv6网络中, 则使用新的 IPv6地址与 VPN网关进行支持 M0BIKE的 IKE协商, 建立 IPsec隧 道; 移动节点使用 VPN网关提供的内部 IPv6转交地址, 通过 IPsec隧道向内部家乡代理发送注册请求, 在收到注册应答后通过建立的 IPsec隧道与内部网络节点通信。 The method for implementing a mobile VPN in a hybrid network according to claim 17, wherein if the mobile node obtains an IPv6 care-of address, the method further includes: If the mobile node does not receive the mobile IPv6 registration response, and the IPv6 address of the VPN gateway is successfully determined, and the mobile node is determined to be located in the IPv6 network outside the VPN, the new IPv6 address is used to support the IKE negotiation of the M0BIKE with the VPN gateway. Establishing an IPsec tunnel; the mobile node uses the internal IPv6 care-of address provided by the VPN gateway to send a registration request to the internal home agent through the IPsec tunnel, and communicates with the internal network node through the established IPsec tunnel after receiving the registration response. 19、根据权利耍求 9、 10或 11所述的混合网络中实现移动 VPN的方法,其特征在于,当原处于 IPv4 外部网络中的移动节点在移动过程中 IP地址发生变化时, 则停止与 VPN内部节点的通信, 且所述的方 法还包括:  19. A method for implementing a mobile VPN in a hybrid network according to claim 9, 10 or 11, characterized in that, when a mobile node originally in an IPv4 external network changes its IP address during the move, it stops Communication of internal nodes of the VPN, and the method further includes: 若移动节点获得 IPv4转交地址, 确定移动节点移动至另一个 IPv4外部网络中, 则开始初始化 M0BIKE, 并进行 SA地址更新, 更新后 SA的端点地址为移动节点新的 IPv4转交地址和 VPN网关的 IPv4 地址, 移动节点继续通过所述隧道与 VPN内部节点通信;  If the mobile node obtains the IPv4 care-of address and determines that the mobile node moves to another IPv4 external network, it starts to initialize the M0BIKE and performs the SA address update. The updated endpoint address of the SA is the new IPv4 care-of address of the mobile node and the IPv4 of the VPN gateway. Address, the mobile node continues to communicate with the VPN internal node through the tunnel; 或者,  Or, 若移动节点获得 IPv6转交地址, 则利用域名解析的方式间接查询 VPN网关的 IPv6地址; 之后, 移 动节点向 VPN内部家乡代理发送一个标准的移动 IPv6注册请求, 并在收到移动 IPv6注册应答后, 确定 移动节点移动至 VPN内部网络中, 使用新的 IPv6转交地址与 VPN内部节点通信。  If the mobile node obtains the IPv6 care-of address, the domain name is used to indirectly query the IPv6 address of the VPN gateway; after that, the mobile node sends a standard mobile IPv6 registration request to the VPN internal home agent, and after receiving the mobile IPv6 registration response, Make sure the mobile node moves to the VPN internal network and communicates with the VPN internal node using the new IPv6 care-of address. 20、 根据权利要求 19所述的混合网络中实现移动 VPN的方法, 其特征在于, 若移动节点获得 IPv6 转交地址, 则所述的方法还包括:  The method for implementing a mobile VPN in a hybrid network according to claim 19, wherein, if the mobile node obtains an IPv6 care-of address, the method further includes: 若移动节点未收到所述的移动 IPv6注册应答, 并且査询 VPN网关的 IPv6地址成功, 确定移动节点 移动至 IPv6外部网络中, 则开始初始化 M0BIKE, 进行 SA地址更新, 更新后 SA端点地址为移动节点新 获得的 IPv6转交地址和 VPN网关的 IPv6地址, 移动节点继续通过所述隧道与 VPN内部节点通信。  If the mobile node does not receive the mobile IPv6 registration response, and queries the VPN gateway's IPv6 address successfully, and determines that the mobile node moves to the IPv6 external network, the M0BIKE is initialized, and the SA address is updated, and the updated SA endpoint address is The newly obtained IPv6 care-of address of the mobile node and the IPv6 address of the VPN gateway, the mobile node continues to communicate with the VPN internal node through the tunnel. 21、根据权利要求 9、 10或 11所述的混合网络中实现移动 VPN的方法, 其特征在于, 当原处于 IPv6 外部网络中的移动节点在移动过程中 IP地址发生变化时, 则停止与 VPN内部节点的通信, 且所述的方' 法还包括:  A method for implementing a mobile VPN in a hybrid network according to claim 9, 10 or 11, characterized in that, when a mobile node originally in an IPv6 external network changes its IP address during the move, the VPN is stopped. Communication of internal nodes, and the method described further includes: 若移动节点获得 IPv4转交地址, 确定移动节点移动至 IPv4外部网络中, 则开始初始化 M0BIKE, 进行 SA地址更新, 更新后 SA的端点地址为移动节点新的 IPv4转交地址和 VPN网关的 IPv4地址, 移动节 点继续通过所述隧道与 VPN内部节点通信;  If the mobile node obtains the IPv4 care-of address and determines that the mobile node moves to the IPv4 external network, it starts to initialize the M0BIKE and performs the SA address update. After the update, the endpoint address of the SA is the new IPv4 care-of address of the mobile node and the IPv4 address of the VPN gateway. The node continues to communicate with the VPN internal node through the tunnel; 或者,  Or, 若移动节点获得 IPv6转交地址, 则利用域名解析的方式间接查询 VPN网关的 IPv6地址; 之后, 移 动节点向 VPN内部家乡代理发送一个标准的移动 IPv6注册请求, 并在收到相应的移动 IPv6注册应答 后, 确定移动节点移动至 VPN内部网络中, 移动节点使用新的 IPv6转交地址与 VPN内部节点通信。  If the mobile node obtains the IPv6 care-of address, the domain name is used to indirectly query the IPv6 address of the VPN gateway; after that, the mobile node sends a standard Mobile IPv6 registration request to the VPN internal home agent, and receives the corresponding Mobile IPv6 registration response. After that, it is determined that the mobile node moves to the VPN internal network, and the mobile node communicates with the VPN internal node by using the new IPv6 care-of address. 22、根据权利耍求 21所述的混合网络中实现移动 VPN的方法, 其特征在于, 若移动节点获得工 Pv6 转交地址, 则所述的方法还包括:  The method for implementing a mobile VPN in a hybrid network according to claim 21, wherein if the mobile node obtains a Pv6 care-of address, the method further includes: 若移动节点未收到对应的移动 IPv6注册应答, 并且査询 VPN网关的 IPv6地址成功, 确定移动节点 移动至另一个 IPv6外部网络中, 则开始初始化 M0BIKE, 进行 SA地址更新, 更新后的 SA端点地址为移 动节点新获得的 IPv6转交地址和 VPN网关的 IPv6地址, 移动节点继续通过所述隧道与 VPN内部节点通 信。  If the mobile node does not receive the corresponding Mobile IPv6 registration response, and queries the VPN gateway's IPv6 address successfully, and determines that the mobile node moves to another IPv6 external network, it starts to initialize the M0BIKE, performs SA address update, and updates the SA endpoint. The address is the newly obtained IPv6 care-of address of the mobile node and the IPv6 address of the VPN gateway, and the mobile node continues to communicate with the VPN internal node through the tunnel.
PCT/CN2007/000446 2006-03-24 2007-02-08 A vpn gateway and an ipv6 network system and a system for realizing mobile vpn in hybrid network and the method Ceased WO2007109963A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2006100584520A CN101043411B (en) 2006-03-24 2006-03-24 Method and system for implementing mobile VPN in hybrid network
CN200610058452.0 2006-03-24

Publications (1)

Publication Number Publication Date
WO2007109963A1 true WO2007109963A1 (en) 2007-10-04

Family

ID=38540796

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2007/000446 Ceased WO2007109963A1 (en) 2006-03-24 2007-02-08 A vpn gateway and an ipv6 network system and a system for realizing mobile vpn in hybrid network and the method

Country Status (2)

Country Link
CN (1) CN101043411B (en)
WO (1) WO2007109963A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102469063A (en) * 2010-11-03 2012-05-23 中兴通讯股份有限公司 Routing protocol security alliance management method, device and system
CN103475646A (en) * 2013-08-23 2013-12-25 天津汉柏汉安信息技术有限公司 Method for preventing hostile ESP (electronic stability program) message attack
CN112437467A (en) * 2020-10-23 2021-03-02 中国人民解放军61062部队 Ad hoc network tunnel communication method without home agent
CN113438108A (en) * 2021-06-22 2021-09-24 京信网络系统股份有限公司 Communication acceleration method, device, base station and computer readable storage medium
CN115309503A (en) * 2022-07-27 2022-11-08 北京金山云网络技术有限公司 Virtual machine live migration method and device, electronic equipment and storage medium
CN116107229A (en) * 2023-03-02 2023-05-12 常熟理工学院 IoT smart home monitoring method, system and remote terminal based on ZigBee

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4623177B2 (en) 2008-09-17 2011-02-02 富士ゼロックス株式会社 Information processing system
CN101399838B (en) * 2008-10-29 2012-01-25 成都市华为赛门铁克科技有限公司 Method, apparatus and system for processing packet
CN102104634B (en) * 2009-12-17 2013-08-07 华为技术有限公司 Method for communicating between LISP site and non-LISP site and apparatus and system thereof
US10079917B2 (en) 2010-04-26 2018-09-18 Nokia Technologies Oy Method and apparatus for synthesized address detection
CN102347993B (en) * 2010-07-28 2014-03-26 中国移动通信集团公司 Network communication method and equipment
CN102469449B (en) * 2010-11-15 2016-03-30 上海贝尔股份有限公司 Routing optimization method in an IPv6 low-consumption wireless territory net
US20130282901A1 (en) * 2010-12-11 2013-10-24 Sergei MOURAVYOV Computer network node discovery
WO2013034100A2 (en) * 2011-09-08 2013-03-14 北京智慧风云科技有限公司 Communications system and method for terminals based on different network protocols
CN103001844A (en) * 2011-09-09 2013-03-27 华耀(中国)科技有限公司 IPv6 network system and its data transmission method
CN102904814B (en) * 2012-10-19 2015-09-16 福建星网锐捷网络有限公司 Data transmission method, source PE, object PE and data transmission system
CN104348821B (en) * 2013-08-08 2018-04-27 联想(北京)有限公司 Manage the method, apparatus and system of IPv4/IPv6 business
CN105681249B (en) * 2014-11-17 2019-09-13 中国移动通信集团公司 A network access method and network conversion device
CN104601577A (en) * 2015-01-16 2015-05-06 网神信息技术(北京)股份有限公司 VPN switching protocol based method and device
CN105025004B (en) * 2015-07-16 2018-01-02 东南大学 A kind of double stack IPSec VPN devices
CN105530159B (en) * 2016-01-19 2018-12-18 武汉烽火网络有限责任公司 A kind of method and system realizing the VPN across IPv6 and IPv4 and exchanging visits
CN109067933B (en) * 2018-07-25 2021-12-24 赛尔网络有限公司 Tunnel-based IPv4 and IPv6 network communication system and method
CN108986440B (en) * 2018-09-27 2020-07-17 深圳友讯达科技股份有限公司 Multi-network fusion meter reading system and address allocation method of meter reading system
CN110086702B (en) * 2019-04-04 2021-09-21 杭州迪普科技股份有限公司 Message forwarding method and device, electronic equipment and machine-readable storage medium
CN115567484B (en) * 2021-06-30 2024-11-26 中国电信股份有限公司 Data forwarding method, network side edge router and network system
CN115296988B (en) * 2022-10-09 2023-03-21 中国电子科技集团公司第三十研究所 Method for realizing IPSec gateway dynamic networking

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1376351A (en) * 1999-09-24 2002-10-23 英国电讯有限公司 Packet network interfacing
WO2004082192A2 (en) * 2003-03-10 2004-09-23 Cisco Technology, Inc ARRANGEMENT FOR TRAVERSING AN IPv4 NETWORK BY IPv6 MOBILE ROUTERS
JP2005086256A (en) * 2003-09-04 2005-03-31 Kddi Corp Tunnel gateway device
CN1711739A (en) * 2002-11-13 2005-12-21 汤姆森许可贸易公司 Method and device for supporting a 6to4 tunneling protocol across a network address translation mechanism
CN1710877A (en) * 2004-06-16 2005-12-21 华为技术有限公司 System and method for realizing virtual special network of hybrid backbond network of hybrid station
CN1848802A (en) * 2005-11-25 2006-10-18 清华大学 Method for realizing IPv6 high performance interconnection based on P2P on IPv4

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1376351A (en) * 1999-09-24 2002-10-23 英国电讯有限公司 Packet network interfacing
CN1711739A (en) * 2002-11-13 2005-12-21 汤姆森许可贸易公司 Method and device for supporting a 6to4 tunneling protocol across a network address translation mechanism
WO2004082192A2 (en) * 2003-03-10 2004-09-23 Cisco Technology, Inc ARRANGEMENT FOR TRAVERSING AN IPv4 NETWORK BY IPv6 MOBILE ROUTERS
JP2005086256A (en) * 2003-09-04 2005-03-31 Kddi Corp Tunnel gateway device
CN1710877A (en) * 2004-06-16 2005-12-21 华为技术有限公司 System and method for realizing virtual special network of hybrid backbond network of hybrid station
CN1848802A (en) * 2005-11-25 2006-10-18 清华大学 Method for realizing IPv6 high performance interconnection based on P2P on IPv4

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102469063A (en) * 2010-11-03 2012-05-23 中兴通讯股份有限公司 Routing protocol security alliance management method, device and system
CN103475646A (en) * 2013-08-23 2013-12-25 天津汉柏汉安信息技术有限公司 Method for preventing hostile ESP (electronic stability program) message attack
CN112437467A (en) * 2020-10-23 2021-03-02 中国人民解放军61062部队 Ad hoc network tunnel communication method without home agent
CN113438108A (en) * 2021-06-22 2021-09-24 京信网络系统股份有限公司 Communication acceleration method, device, base station and computer readable storage medium
CN115309503A (en) * 2022-07-27 2022-11-08 北京金山云网络技术有限公司 Virtual machine live migration method and device, electronic equipment and storage medium
CN116107229A (en) * 2023-03-02 2023-05-12 常熟理工学院 IoT smart home monitoring method, system and remote terminal based on ZigBee

Also Published As

Publication number Publication date
CN101043411A (en) 2007-09-26
CN101043411B (en) 2012-05-23

Similar Documents

Publication Publication Date Title
WO2007109963A1 (en) A vpn gateway and an ipv6 network system and a system for realizing mobile vpn in hybrid network and the method
CN1778077B (en) Method for inter-subnet mobility on campus network
EP2466985B1 (en) Network based on identity identifier and location separation
US8873578B2 (en) Method and apparatus for use in a communications network
US7639686B2 (en) Access network clusterhead for providing local mobility management of a roaming IPv4 node
US20070053334A1 (en) Packet forwarding apparatus for connecting mobile terminal to ISP network
CN101019381B (en) Maintains the confidentiality of unique local addresses assigned to IPv6 nodes in a given site during access to the WAN
WO2003085847A2 (en) Methods and apparatus for supporting session registration messaging
JP2011515945A (en) Method and apparatus for communicating data packets between local networks
CN1741523B (en) A Key Exchange Protocol Method for Realizing Host Mobility and Multi-Home Function
JP5147995B2 (en) Host identity protocol server address configuration
WO2007112645A1 (en) A method and system for implementing a mobile virtual private network
US20120271965A1 (en) Provisioning mobility services to legacy terminals
KR101901341B1 (en) Method and apparatus for supporting mobility of user equipment
WO2011032462A1 (en) Method for data transmission and receiving, system and router thereof
WO2011032447A1 (en) Method, system and communication terminal for implementing inter-communication between new network and internet
WO2007022683A1 (en) A method for realizing the communication between mobile ipv6 node and ipv4 communication partner
KR100737140B1 (en) Internet protocol virtual private network service processing apparatus and method in mobile communication
CN1870633B (en) Method for supporting mobile IPv4 through dual-stack mobile IPv6 nodes
WO2007143955A1 (en) An apparatus and method for implementing a dual stack mobile node to roam into an ipv4 network
CN100512172C (en) Method for, realizing self adaption extension domain management entity mechanism Flexible IP network technology system
CN103385011B (en) Method and device for mobility management in wireless communication system
Nguyen et al. State of the art of mobility protocols

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 07702316

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 07702316

Country of ref document: EP

Kind code of ref document: A1