CN101043411B - Method and system for realizing mobile VPN in hybrid network - Google Patents
Method and system for realizing mobile VPN in hybrid network Download PDFInfo
- Publication number
- CN101043411B CN101043411B CN2006100584520A CN200610058452A CN101043411B CN 101043411 B CN101043411 B CN 101043411B CN 2006100584520 A CN2006100584520 A CN 2006100584520A CN 200610058452 A CN200610058452 A CN 200610058452A CN 101043411 B CN101043411 B CN 101043411B
- Authority
- CN
- China
- 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.)
- Expired - Fee Related
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/02—Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
- H04L63/0272—Virtual private networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/03—Protecting confidentiality, e.g. by encryption
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W80/00—Wireless network protocols or protocol adaptations to wireless operation
- H04W80/04—Network layer protocols, e.g. mobile IP [Internet Protocol]
- H04W80/045—Network layer protocols, e.g. mobile IP [Internet Protocol] involving different protocol versions, e.g. MIPv4 and MIPv6
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)
- Data Exchanges In Wide-Area Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域 technical field
本发明涉及网络通信技术领域,尤其涉及一种实现移动VPN的技术。The invention relates to the technical field of network communication, in particular to a technology for realizing mobile VPN.
背景技术 Background technique
移动VPN(虚拟专用网)是传统VPN与移动技术相结合的新型VPN解决方案。支持VPN内部的MN(移动节点)在外部网络通过与VPN网关建立隧道与VPN内部节点保持通信。IPsecVPN(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 technology. The MN (Mobile Node) inside the VPN supports communication with the VPN internal nodes by establishing a tunnel with the VPN gateway on the external network. IPsec VPN (IP Network Security Protocol VPN) adopts IPsec (IP Network Security Protocol) as the security guarantee of tunnel technology to realize VPN, so as to provide good security for the communication nodes at both ends of the tunnel in the IP network, thereby ensuring the security of VPN services sex. IPsec VPN combined with standard mobile IPv4 protocol provides the basic framework of 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 will be the following two main 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, the foreign agent is configured by the administrator of other networks and usually does not support IPSec, which will cause the mobile node to fail Register with the i-HA (internal home agent) located in the VPN;
(2)如果移动节点在外部网络获得配置转交地址,虽然可以通过与VPN网关建立IPSec隧道向VPN内部的家乡代理完成注册,但是移动节点每更改一次配置转交地址就要与VPN网关重新协商建立IPSec隧道,在节点频繁移动的情况下,增加了网络切换的延迟,降低了节点的移动性。(2) If the mobile node obtains the configured care-of address in the external network, although it can establish an IPSec tunnel with the VPN gateway to complete the registration with the home agent inside the VPN, but every time the mobile node changes the configured care-of address, it must re-negotiate with the VPN gateway to establish IPSec Tunnels increase the delay of network switching and reduce the mobility of nodes when nodes move frequently.
目前针对上述问题提供的一种解决方案为:在IPv4环境下,在VPN网关之外设置x-HA(外部家乡代理),移动节点首先向外部家乡代理注册,之后通过外部家乡代理与VPN网关建立IPsec隧道,实现向VPN内部家乡代理完成注册,从而解决了所述的两个问题。A solution currently provided for the above problems is: in an IPv4 environment, set x-HA (external home agent) outside the VPN gateway, the mobile node first registers with the external home agent, and then establishes The IPsec tunnel realizes registration with the home agent inside the VPN, thereby solving the two problems mentioned above.
相应的网络结构如图1所示,x-HA表示在外部网络设置的家乡代理,在Internet(因特网)中存在着支持移动IPv4的外部网络(External Net);同时,在VPN内部也存在着支持移动IPv4的家乡网络(Home Net)和外地网络(Foreign Net)。The corresponding network structure is shown in Figure 1. x-HA represents the home agent set up in the external network. In the Internet (Internet), there is an external network (External Net) that supports mobile IPv4; at the same time, there is also a support network in the VPN. Mobile IPv4 home network (Home Net) and foreign network (Foreign Net).
在移动节点移动到外部网络时,获得转交地址后,首先向外部家乡代理注册并获得x-HoA(外部家乡地址)。之后利用外部家乡地址与VPN网关进行IKE(因特网密钥交换)协商建立IPsec隧道,通过IPsec隧道向VPN内部的家乡代理注册。之后,移动节点就可以与VPN内部网络节点进行通信。When the mobile node moves to the external network, after obtaining the care-of address, it first registers with the external home agent and obtains x-HoA (external home address). Then use the external home address to negotiate with the VPN gateway through IKE (Internet Key Exchange) to establish an IPsec tunnel, and register with the VPN internal home agent through the IPsec tunnel. After that, the mobile node can communicate with the VPN internal network nodes.
下面将以移动节点位于配置x-FA(外地代理)的外部网络为例,说明移动节点的注册流程以及数据包的封装方式。Taking the mobile node located in an external network configured with x-FA (foreign agent) as an example, the registration process of the mobile node and the encapsulation method of the data packet will be described below.
当移动节点进入配置外部家乡代理的外部网络后,获得外地代理转交地址;同时,移动节点还需要向外部家乡代理和内部家乡代理发送标准的移动IPv4注册请求;After the mobile node enters the external network configured with the external home agent, it obtains the foreign agent care-of address; 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. According to the response message, the mobile node obtains the x-HoA assigned by the external home agent and serves as the care-of address of the mobile node in the external network. ;
移动节点使用获得的x-HoA作为IKE协商和IPsec隧道的端点地址,与VPN网关建立隧道;The mobile node uses the obtained x-HoA as the endpoint address of the IKE negotiation and IPsec tunnel, and establishes a tunnel with the VPN gateway;
在与VPN网关协商过程中,VPN网关指派给移动节点一个VPN-TIA(VPN隧道内部地址);移动节点将VPN-TIA作为向内部家乡代理注册的转交地址,封装在IPsec隧道内向内部家乡代理进行注册;In the process of negotiating with the VPN gateway, the VPN gateway assigns a VPN-TIA (VPN tunnel internal address) to the mobile node; the mobile node uses the VPN-TIA as the care-of address registered with the internal home agent, and encapsulates it in the IPsec tunnel to the internal home agent. register;
在注册完成后,移动节点和VPN内部的通信节点就可进行通信。通信的数据包经过三次封装,具体的封装结果如图2所示,其中最外层的x-MIP表示是移动节点到外部家乡代理的移动IPv4封装,中间层是从x-HA到VPN网关的IPsec封装,最内层i-MIP是VPN内部移动IPv4封装。通过图2可以看出,移动节点在配置外地代理的外部网络中可以完成向VPN内部的家乡代理的注册,当移动节点的转交地址发生变化时,也不会影响IPsec隧道的维持。因此,这一实现方案有效解决了所述的两个问题。After the registration is completed, the mobile node can communicate with the communication node inside the VPN. The communication data packets are encapsulated three times, and the specific encapsulation results are shown in Figure 2. The outermost x-MIP represents the mobile IPv4 encapsulation from the mobile node to the external home agent, and the middle layer is from x-HA to the VPN gateway. IPsec encapsulation, the innermost layer i-MIP is mobile IPv4 encapsulation inside the VPN. It can be seen from Figure 2 that the mobile node can complete the registration with the home agent inside the VPN in the external network where the foreign agent is configured. When the care-of address of the mobile node changes, it will not affect the maintenance of the IPsec tunnel. Therefore, this implementation effectively solves the two problems mentioned.
然而,由于上述实现方案中引入了外部家乡代理,使得VPN网络结构更加复杂,提高了维护成本;同时,引入外部家乡代理也带来一些新的问题,如外部家乡代理的位置选取问题,以及外部家乡代理受信问题等。However, due to the introduction of the external home agent in the above implementation scheme, the VPN network structure is more complex 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 of the external home agent, and the external Home agent trust issues, etc.
目前,提供的另一种解决上述两个问题实现方案为:在IPv4环境下,使用支持MOBIKE(IKEv2移动与多接口协议)协议的IPsec作为移动节点与VPN网关的隧道技术,在解决所述的两个问题。At present, another solution to the above two problems is provided as follows: in an IPv4 environment, use IPsec that supports the MOBIKE (IKEv2 Mobility and Multi-Interface Protocol) protocol as the tunneling technology between the mobile node and the VPN gateway. Two questions.
所述的MOBIKE是基于IKEv2的扩展协议,有效支持了IPsec隧道通信两端的移动性。在移动节点开始与VPN网关协商建立IPsec隧道时,会先后生成IKE SA和IPsec SAs。MOBIKE协议允许隧道两端的节点在保持IKE SA和IPsec SAs的情况下更新其IP地址,也就是说在隧道两端的节点地址改变后仍可以保持原有的IPsec隧道进行通信,无须重新协商。The MOBIKE is an extended 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, IKE SA and IPsec SAs will be generated successively. The MOBIKE protocol allows nodes at both ends of the tunnel to update their IP addresses while maintaining IKE SA and IPsec SAs. That is to say, after the addresses of nodes at both ends of the tunnel change, they can still maintain the original IPsec tunnel for communication 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 an external network (External Net) supporting mobile IPv4 in the Internet; at the same time, there are also a home network (Home Net) and a foreign network (Home Net) supporting mobile IPv4 in the VPN internal network. Foreign Net).
移动节点位于VPN内部的外地网络时,使用标准的移动IPv4与VPN内部的家乡代理和通信节点进行通信。当移动节点离开VPN内部网络,进入一个外部网络时,需要与VPN网关进行IKE协商,建立支持MOBIKE的IPsec隧道。同时在VPN内部,移动节点和家乡代理仍保持一个有效的移动IPv4绑定缓存,移动节点使用由VPN网关指派给它的VPN-TIA作为VPN内部网络的配置转交地址,向内部家乡代理注册。When the mobile node is located in the foreign network inside the VPN, it uses standard mobile IPv4 to communicate with the home agent and the communication node inside the VPN. When the mobile node leaves the VPN internal network and enters an external network, it needs to conduct IKE negotiation with the VPN gateway to establish an IPsec tunnel supporting MOBIKE. At the same time, inside the VPN, the mobile node and the home agent still maintain an effective mobile IPv4 binding cache, and the mobile node uses the VPN-TIA assigned to it by the VPN gateway as the configured 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 a change of location, it obtains a new mobile IPv4 care-of address. At this moment, the mobile node starts to use the MOBIKE protocol to update the IP addresses of the IKE SA and IPsec SAs of the end point, and notify the VPN gateway to update the IP addresses of the corresponding SAs. After completing the SA address update, use the original IPsec tunnel to continue communication.
可以看出,该方案提出了纯IPv4网络环境下使用MOBIKE解决所述的两个问题。但是,由于因特网的发展方向是IPv6,且在IPv6取代IPv4的进程中,“IPv6孤岛”和“IPv4海洋”的混合网络必然会长期存在,因此,还需要解决在混合网络中存在的相应问题。然而,现有的技术方案还无法解决包括IPv4和IPv6的混合网络下移动VPN的应用问题。It can be seen that this solution proposes to use MOBIKE in a pure IPv4 network environment to solve the two problems mentioned above. However, since the development direction of the Internet is IPv6, and in the process of IPv6 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 mixed network including IPv4 and IPv6.
发明内容 Contents of the invention
本发明的目的是提供一种混合网络中实现移动VPN的方法及系统,从而可以解决相应的IPv4和IPv6混合网络下的移动VPN的应用问题,使得在现有的网络场景中,基于IPv6网络开展VPN业务成为可能。The purpose of the present invention is to provide a method and system for implementing mobile VPN in a mixed network, so as to solve the application problem of mobile VPN under the corresponding IPv4 and IPv6 mixed network, so that in the existing network scene, based on the IPv6 network to carry out VPN business becomes possible.
本发明的目的是通过以下技术方案实现的:The purpose of the present invention is achieved through the following technical solutions:
本发明提供了一种混合网络中实现移动VPN的方法,该方法应用于包括IPv4网络和VPN内部的IPv6网络的混合网络中,且在所述的混合网络中设置移动虚拟专用网VPN的VPN网关,所述的VPN网关提供有IPv6地址的内部接口和IPv4地址的外部接口,该方法包括:The invention provides a method for realizing mobile VPN in a hybrid network, the method is applied in a hybrid network including an IPv4 network and an IPv6 network inside a VPN, and a VPN gateway of a mobile virtual private network VPN is set in the hybrid network , the VPN gateway provides an internal interface with an IPv6 address and an external interface with an IPv4 address, the method comprising:
A、在所述的VPN网关与外部网络之间建立用于传输外部网络与VPN内部的IPv6网络之间交互的VPN报文的隧道,所述的隧道两端地址分别为外部网络的IPv4地址和VPN网关提供的外部接口的IPv4地址;A. Establish a tunnel between the VPN gateway and the external network for transmitting VPN packets exchanged between the external network and the IPv6 network inside the VPN, and the addresses at both ends of the tunnel are the IPv4 address and the IPv4 address of the external network respectively The IPv4 address of the external interface provided by the VPN gateway;
B、将需要传送的VPN报文封装上IPv4报头后通过所述隧道传送,在混合网络中实现VPN业务的交互。B. Encapsulate the VPN message to be transmitted with an IPv4 header and transmit it through the tunnel, so as to realize the interaction of VPN services in the hybrid network.
所述的外部网络为:IPv4外部网络或IPv6外部网络。The external network is: IPv4 external network or IPv6 external network.
所述的步骤A包括:Described step A comprises:
A1、在所述的VPN网关与位于IPv6外部网络中的获得转交地址的移动节点之间建立IPsec隧道之后,VPN网关与IPv6外部网络中的接入路由器建立用于传输IPv6报文的IPv6inIPv4隧道,该隧道将IPv6报文封装于IPv4报文中,隧道两端地址分别为IPv6外部网络接入路由器的IPv4地址和VPN网关外部接口的IPv4地址;A1. After the IPsec tunnel is established between the VPN gateway and the mobile node that obtains the care-of address in the IPv6 external network, the VPN gateway and the access router in the IPv6 external network establish an IPv6inIPv4 tunnel for transmitting IPv6 messages, The tunnel encapsulates the IPv6 message in the IPv4 message, and the addresses at both ends of the tunnel are the IPv4 address of the access router of the IPv6 external network and the IPv4 address of the external interface of the VPN gateway;
或者,or,
A2、在所述的VPN网关与位于IPv4外部网络中的获得转交地址的移动节点之间建立IPsec协议隧道。A2. An IPsec protocol tunnel is established between the VPN gateway and the mobile node that obtains the care-of address in the IPv4 external network.
所述的IPsec协议隧道为:支持因特网密钥交换移动与多接口协议MOBIKE的IPsec隧道。The IPsec protocol tunnel is an IPsec tunnel supporting Internet key exchange mobility and multi-interface protocol MOBIKE.
所述的步骤A1包括:Described step A1 comprises:
A11、移动到IPv6外部网络中的移动节点根据在IPv6网络中保存的用于解析VPN网关的IPv4地址的域名服务器DNS的地址信息发起DNS请求;A11, the mobile node moving to the IPv6 external network initiates a DNS request according to the address information of the domain name server DNS for resolving the IPv4 address of the VPN gateway stored in the IPv6 network;
A12、所述的DNS收到所述的DNS请求后,向移动节点返回DNS应答消息,所述应答消息中包括VPN网关的IPv4地址信息;A12. After the DNS receives the DNS request, it returns a DNS response message to the mobile node, and the response message includes the IPv4 address information of the VPN gateway;
A13、所述移动节点及IPv6网络获取VPN网关的IPv4地址信息。A13. The mobile node and the IPv6 network obtain the IPv4 address information of the VPN gateway.
所述的步骤A11包括:Described step A11 comprises:
所述移动节点向所在的IPv6网络中的DNS发起VPN网关的DNS请求,所述的请求到达IPv6网络中的DNS后,将被转发到IPv6网络中设置的域名服务器应用层网关DNS-ALG;The mobile node initiates the DNS request of the VPN gateway to the DNS in the IPv6 network where it is located, and after the request reaches the DNS in the IPv6 network, it will be forwarded to the domain name server application layer gateway DNS-ALG set in the IPv6 network;
DNS-ALG根据其保存的DNS服务器信息确定用于解析VPN网关的IPv4地址的DNS,并将所述的DNS请求转换为IPv4格式的DNS请求发送给确定的所述DNS。The DNS-ALG determines the DNS for resolving the IPv4 address of the VPN gateway according to the saved DNS server information, and converts the DNS request into an IPv4 DNS request and sends it to the determined DNS.
所述的步骤A13包括:Described step A13 comprises:
在DNS-ALG接收到返回的DNS应答消息后,保存VPN网关的IPv4地址信息,并将该IPv4地址增加前缀转换为IPv6格式的IPv6地址发送给移动节点,移动节点将该IPv6地址作为VPN网关的地址信息。After the DNS-ALG receives the returned DNS response message, it saves the IPv4 address information of the VPN gateway, and adds a prefix to the IPv4 address and converts it into an IPv6 address in IPv6 format and sends it to the mobile node, and the mobile node uses the IPv6 address as the VPN gateway. Address information.
所述的步骤B包括:Described step B comprises:
B1、位于IPv6外部网络中的移动节点构造所述的VPN网关对应的IPv6地址的报文,并发送给IPv6网络的外部接入路由器;B1, the mobile node located in the IPv6 external network constructs the message corresponding to the IPv6 address of the VPN gateway, and sends it to the external access router of the IPv6 network;
B2、所述的外部接入路由器收到来自移动节点的IPv6报文,为该报文添加IPv4报文头,报文头中承载的是VPN网关的IPv4地址,并通过所述的隧道发送给所述的VPN网关;B2, the external access router receives the IPv6 message from the mobile node, adds an IPv4 message header to the message, and what bears the weight of in the message header is the IPv4 address of the VPN gateway, and sends it to said VPN gateway;
B3、VPN网关解析接收到的报文,对该IPv4报文解封装还原为IPv6报文,并继续传递所述IPv6报文。B3. The VPN gateway parses the received message, decapsulates the IPv4 message and restores it to an IPv6 message, and continues to transmit the IPv6 message.
所述的步骤B包括:Described step B comprises:
B4、位于IPv6外部网络中的移动节点构造所述的VPN网关对应的IPv6地址的报文,并发送给网络地址转换-协议转换NAT-PT实体;B4, the mobile node located in the IPv6 external network constructs the message corresponding to the IPv6 address of the VPN gateway, and sends it to the network address translation-protocol translation NAT-PT entity;
B5、所述的NAT-PT将所述的IPv6报文中的IPv6地址转换为IPv4地址,并发送给外部接入路由器,由所述外部接入路由器通过所述的隧道将该报文发送给所述的VPN网关;B5. The NAT-PT converts the IPv6 address in the IPv6 message into an IPv4 address, and sends it to the external access router, which sends the message to the external access router through the tunnel said VPN gateway;
B6、VPN网关解析接收到的报文,并继续传递所述报文。B6. The VPN gateway parses the received message, and continues to transmit the message.
所述的步骤A2包括:Described step A2 comprises:
A21、当移动节点移动到IPv4外部网络中后,获得IPv4网络的转交地址;A21. After the mobile node moves to the IPv4 external network, obtain the care-of address of the IPv4 network;
A22、移动节点与VPN网关之间进行协商建立所述的IPsec隧道,隧道的两端的地址分别为所述转交地址和VPN网关的IPv4地址。A22. The mobile node negotiates with the VPN gateway to establish the IPsec tunnel, and addresses at both ends of the tunnel are the care-of address and the IPv4 address of the VPN gateway respectively.
所述的步骤A22包括:Described step A22 comprises:
在移动节点与VPN网关之间进行因特网密钥交换IKE协商过程中,VPN网关将为移动节点确定一个VPN隧道内部地址,作为移动点向VPN内部注册的移动IPv6转交地址。During the IKE negotiation process of Internet key exchange between the mobile node and the VPN gateway, the VPN gateway will determine a VPN tunnel internal address for the mobile node as the mobile IPv6 care-of address registered by the mobile point to the VPN interior.
所述的步骤B包括:Described step B comprises:
处于IPv4网络中的移动节点将数据包首先进行移动IPv6封装,之后,再根据建立的隧道进行IPsec封装,并通过建立的隧道向所述的VPN网关发送封装有IPv4报头的VPN业务报文。The mobile node in the IPv4 network first performs mobile IPv6 encapsulation on the data packet, and then performs IPsec encapsulation according to the established tunnel, and sends the VPN service message encapsulated with the IPv4 header to the VPN gateway through the established tunnel.
所述的步骤B中还包括:Also include in the described step B:
移动节点将数据包进行移动IPv6封装时,相应的源地址为所述的VPN隧道内部地址,目的地址为VPN内部的节点的地址。When the mobile node performs mobile IPv6 encapsulation on the data packet, the corresponding source address is the internal address of the VPN tunnel, and the destination address is the address of the node inside the VPN.
当位于VPN内部网络中的移动节点在移动过程中IP地址发生变化时,则立即停止与VPN内部其它节点的通信,且所述的方法还包括:When the IP address of the mobile node located in the VPN internal network changes during the moving process, immediately stop communicating with other nodes within the VPN, and the method also includes:
C1、若移动节点获得IPv4转交地址,则使用所述IPv4转交地址与VPN网关进行支持MOBIKE的IKE协商,建立IPsec隧道;移动节点使用VPN网关提供的内部IPv6转交地址通过所述隧道向内部家乡代理发起注册,并在收到注册应用答后通过所述隧道与VPN网络节点通信;C1. If the mobile node obtains an IPv4 care-of address, then use the IPv4 care-of address to perform IKE negotiation supporting MOBIKE with the VPN gateway, and establish an IPsec tunnel; the mobile node uses the internal IPv6 care-of address provided by the VPN gateway to the internal home agent through the tunnel Initiate registration, and communicate with the VPN network node through the tunnel after receiving the registration application answer;
或者,or,
C2、若移动节点获得IPv6转交地址,则利用域名解析的方式间接查询VPN网关的IPv6地址,之后,移动节点向VPN内部家乡代理发送一个标准的移动IPv6注册请求;当接收到IPv6注册应答时,确定移动节点位于VPN内部,移动节点使用新的IPv6转交地址与VPN内部节点通信。C2. If the mobile node obtains the IPv6 care-of address, it uses domain name resolution to indirectly inquire about 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; when receiving the IPv6 registration response, It is determined that the mobile node is located inside the VPN, and the mobile node uses the new IPv6 care-of address to communicate with the VPN internal node.
所述的步骤C2还包括:The step C2 also includes:
若移动节点未收到所述的移动IPv6注册应答,且查询VPN网关的IPv6地址成功,确定移动节点位于VPN外部的IPv6网络中,则使用新的IPv6地址与VPN网关进行支持MOBIKE的IKE协商,建立IPsec隧道;移动节点使用VPN网关提供的内部IPv6转交地址,通过IPsec隧道向内部家乡代理发送注册请求,在收到注册应答后通过建立的IPsec隧道与内部网络节点通信。If the mobile node does not receive the mobile IPv6 registration response, and the IPv6 address of the VPN gateway is successfully inquired, and it is determined that the mobile node is located in the IPv6 network outside the VPN, then the new IPv6 address is used to negotiate with the VPN gateway for IKE that supports MOBIKE, Establish 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.
当原处于IPv4外部网络中的移动节点在移动过程中IP地址发生变化时,则停止与VPN内部节点的通信,且所述的方法还包括:When the IP address of the mobile node that was originally in the IPv4 external network changes during the moving process, the communication with the VPN internal node is stopped, and the method also includes:
D1、若移动节点获得IPv4转交地址,确定移动节点移动至另一个IPv4外部网络中,则开始初始化MOBIKE,并进行SA地址更新,更新后SA的端点地址为移动节点新的IPv4转交地址和VPN网关的IPv4地址,移动节点继续通过所述隧道与VPN内部节点通信;D1. If the mobile node obtains the IPv4 care-of address and determines that the mobile node moves to another IPv4 external network, then initialize MOBIKE and update the SA address. After the update, the endpoint address of SA is the new IPv4 care-of address and VPN gateway of the mobile node IPv4 address, the mobile node continues to communicate with the VPN internal node through the tunnel;
或者,or,
D2、若移动节点获得IPv6转交地址,则利用域名解析的方式间接查询VPN网关的IPv6地址;之后,移动节点向VPN内部家乡代理发送一个标准的移动IPv6注册请求,并在收到移动IPv6注册应答后,确定移动节点移动至VPN内部网络中,使用新的IPv6转交地址与VPN内部节点通信。D2. If the mobile node obtains the IPv6 care-of address, it uses domain name resolution 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 mobile IPv6 registration response Afterwards, it is determined that the mobile node moves to the VPN internal network, and uses the new IPv6 care-of address to communicate with the VPN internal node.
所述的步骤D2还包括:Described step D2 also includes:
若移动节点未收到所述的移动IPv6注册应答,并且查询VPN网关的IPv6地址成功,确定移动节点移动至IPv6外部网络中,则开始初始化MOBIKE,进行SA地址更新,更新后SA端点地址为移动节点新获得的IPv6转交地址和VPN网关的IPv6地址,移动节点继续通过所述隧道与VPN内部节点通信。If the mobile node does not receive the mobile IPv6 registration response, and the query of the IPv6 address of the VPN gateway is successful, and it is determined that the mobile node has moved to the IPv6 external network, it will start to initialize MOBIKE and update the SA address. After the update, the SA endpoint address is mobile The node newly obtains the IPv6 care-of address and the IPv6 address of the VPN gateway, and the mobile node continues to communicate with the VPN internal node through the tunnel.
当原处于IPv6外部网络中的移动节点在移动过程中IP地址发生变化时,则停止与VPN内部节点的通信,且所述的方法还包括:When the IP address of the mobile node in the IPv6 external network changes during the movement process, the communication with the VPN internal node is stopped, and the method also includes:
E1、若移动节点获得IPv4转交地址,确定移动节点移动至IPv4外部网络中,则开始初始化MOBIKE,进行SA地址更新,更新后SA的端点地址为移动节点新的IPv4转交地址和VPN网关的IPv4地址,移动节点继续通过所述隧道与VPN内部节点通信;E1. If the mobile node obtains the IPv4 care-of address and determines that the mobile node moves to the IPv4 external network, then initialize MOBIKE and update the SA address. After the update, the endpoint address of SA is the new IPv4 care-of address of the mobile node and the IPv4 address of the VPN gateway , the mobile node continues to communicate with the VPN internal node through the tunnel;
或者,or,
E2、若移动节点获得IPv6转交地址,则利用域名解析的方式间接查询VPN网关的IPv6地址;之后,移动节点向VPN内部家乡代理发送一个标准的移动IPv6注册请求,并在收到相应的移动IPv6注册应答后,确定移动节点移动至VPN内部网络中,移动节点使用新的IPv6转交地址与VPN内部节点通信。E2. If the mobile node obtains the IPv6 care-of address, it uses domain name resolution 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 After the registration response, it is determined that the mobile node moves to the VPN internal network, and the mobile node uses the new IPv6 care-of address to communicate with the VPN internal node.
所述的步骤E2还包括:Described step E2 also includes:
若移动节点未收到对应的移动IPv6注册应答,并且查询VPN网关的IPv6地址成功,确定移动节点移动至另一个IPv6外部网络中,则开始初始化MOBIKE,进行SA地址更新,更新后的SA端点地址为移动节点新获得的IPv6转交地址和VPN网关的IPv6地址,移动节点继续通过所述隧道与VPN内部节点通信。If the mobile node does not receive the corresponding mobile IPv6 registration response, and the IPv6 address of the VPN gateway is successfully inquired, and it is determined that the mobile node has moved to another IPv6 external network, it will start to initialize MOBIKE, update the SA address, and update the SA endpoint address For 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.
本发明还提供了一种混合网络中实现移动VPN的系统,包括IPv4外部网络、IPv6外部网络和VPN网关,所述的VPN内部网络为IPv6网络,所述的VPN网关提供的内部接口为IPv6接口,外部接口为IPv4接口,所述的系统还包括:The present invention also provides a system for realizing mobile VPN in a hybrid network, including an IPv4 external network, an IPv6 external network 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 system also includes:
隧道建立模块:用于在所述的VPN网关与外部网络之间建立用于传输两网络之间交互的VPN报文的隧道,且所述的隧道的两端地址分别为外部网络的IPv4地址和VPN网关提供的外部接口的IPv4地址;Tunnel establishment module: used to establish a tunnel between the VPN gateway and the external network for transmitting VPN packets exchanged between the two networks, and the addresses at both ends of the tunnel are the IPv4 address and the IPv4 address of the external network respectively. The IPv4 address of the external interface provided by the VPN gateway;
报文封装传送模块:设置于所述隧道的两端,用于将待发送的VPN报文封装上IPv4报文头,并通过所述的隧道发送给对端。Message encapsulation transmission module: installed at both ends of the tunnel, used to encapsulate the VPN message to be sent with an IPv4 header, and send it to the opposite end through the tunnel.
在IPv6外部网络中,所述系统还包括:In the IPv6 external network, the system also includes:
DNS-ALG:配置为IPv4和IPv6双协议栈,用于在通过IPv6外部网络开展VPN业务过程中提供所述的VPN网关对应的IPv6地址;DNS-ALG: configured as an IPv4 and IPv6 dual protocol stack, used to provide the IPv6 address corresponding to the VPN gateway during the VPN service process through the IPv6 external network;
IPv6网络中的DNS:配置为IPv4和IPv6双协议栈,其配置上级DNS为所述的DNS-ALG;DNS in IPv6 network: configured as IPv4 and IPv6 dual protocol stack, and its upper-level DNS is configured as the DNS-ALG;
外部接入路由器:配置为IPv4和IPv6双协议栈,用于实现将IPv6报文封装上IPv4报文头的功能,同时,用于解封装相应的报文。External access router: configured as IPv4 and IPv6 dual protocol stacks, used to implement the function of encapsulating IPv6 packets with IPv4 headers, and at the same time, used to decapsulate corresponding packets.
在IPv6外部网络中,所述的系统还包括:In the IPv6 external network, the system also includes:
DNS-ALG:配置为IPv4和IPv6双协议栈,用于提供所述的VPN网关对应的IPv6地址;DNS-ALG: configured as an IPv4 and IPv6 dual protocol stack, used to provide the IPv6 address corresponding to the VPN gateway;
IPv6网络中的DNS:在DNS中配置其上级DNS为所述的DNS-ALG;DNS in IPv6 network: configure its upper-level DNS in DNS as the DNS-ALG mentioned;
NAT-PT实体:用于与外部接入路由器之间进行通信,并对经过该实体的报文进行相应的IPv6地址与IPv4地址之间的转换;NAT-PT entity: used to communicate with external access routers, and convert corresponding IPv6 addresses and IPv4 addresses for packets passing through this entity;
外部接入路由器:用于将经过NAT-PT实体转换后的报文发送给VPN网关,并接收VPN网关发来的报文。External access router: used to send the packets converted by the NAT-PT entity to the VPN gateway, and receive packets from the VPN gateway.
由上述本发明提供的技术方案可以看出,本发明利用IPv6in IPv4隧道技术实现了在IPv4和IPv6混合网络中移动VPN业务的开展,使得在由IPv4网络向IPv6演进的过程中,仍然能够实现移动VPN业务。As can be seen from the technical solution provided by the present invention above, the present invention utilizes the IPv6inIPv4 tunnel technology to realize the development of mobile VPN services in the IPv4 and IPv6 hybrid network, so that the mobile VPN can still be realized in the process of evolution from the IPv4 network to IPv6. business.
本发明还利用MOBIKE协议更新SA的地址项,配合VPN网关指派给移动节点VPN-TIA地址的方法,成功解决了背景技术中描述的两个问题。并提出了在IPv4向IPv6过渡时期,以IPv4为骨干网络的IPv4-v6混合环境下,移动节点实现接入VPN服务,以及保持正常通信前提下网络间切换的完整解决方案。The present invention also utilizes the MOBIKE protocol to update the address item of the SA, cooperates with the method that the VPN gateway assigns the VPN-TIA address to the mobile node, and successfully solves the two problems described in the background technology. In the transition period from IPv4 to IPv6, under the IPv4-v6 mixed environment with IPv4 as the backbone network, a complete solution for mobile nodes to realize access to VPN services and to switch between networks under the premise of maintaining normal communication is proposed.
本发明在具体实现过程中,基于现有的通信网络可不引入任何新的设备,且不需要升级任何硬件,只需对相应设备的软件进行改进,因此,整个配置操作过程简单、易行。In the specific implementation process of the present invention, based on the existing communication network, no new equipment needs to be introduced, and no hardware needs to be upgraded, and only the software of the corresponding equipment needs to be improved. Therefore, the entire configuration operation process is simple and easy.
附图说明 Description of drawings
图1为IPv4环境下配置外部家乡代理的移动VPN的结构;Fig. 1 configures the structure of the mobile VPN of the external home agent under the IPv4 environment;
图2为IPv4环境下配置MOBIKE的移动VPN的结构;Fig. 2 configures the structure of the mobile VPN of MOBIKE under the IPv4 environment;
图3为本发明提供的混合网络的移动VPN的具体实现网络结构;Fig. 3 is the concrete realization network structure of the mobile VPN of hybrid network provided by the present invention;
图4为图3中的DNS请求转发处理;Fig. 4 is DNS request forwarding processing in Fig. 3;
图5为图3中的DNS应答转发处理;Fig. 5 is DNS response forwarding processing in Fig. 3;
图6为本发明所述的方法的处理流程示意图。Fig. 6 is a schematic diagram of the processing flow of the method of the present invention.
具体实施方式 Detailed ways
随着网络通信技术的发展,在IPv6网络取代IPv4网络的发展进程中,由于现有IPv4网络的广泛应用,使得以“IPv6孤岛”和“IPv4海洋”为基础的IPv4-v6混合网络会在一段时期内长期存在。With the development of network communication technology, in the development process of IPv6 network replacing IPv4 network, due to the wide application of existing IPv4 network, the IPv4-v6 hybrid network based on "IPv6 island" and "IPv4 ocean" will be in a period of time. long-term existence.
本发明的主要目的是提供一种IPv4-v6混合网络下移动VPN的网络结构和相应的设备功能要求,以及移动节点在不同类型网络中接入VPN的方式,从而解决移动节点在不同类型网络间切换时,移动节点的SA地址更新的问题。The main purpose of the present invention is to provide a network structure of mobile VPN under the mixed network of IPv4-v6 and corresponding equipment functional requirements, as well as the mode for mobile nodes to access VPN in different types of networks, thereby solving the problem of mobile nodes between different types of networks. When switching, the SA address of the mobile node is updated.
本发明是以“IPv6孤岛”,“IPv4海洋”的IPv4-v6混合网络为基本网络框架,通过引入MOBIKE扩展协议解决移动节点的SA地址更新问题;并且利用IPv6in IPv4隧道技术结合域名解析的方式实现移动节点在IPv6网络与IPv4网络中的VPN网关进行通信,从而最终实现移动节点位于多种类型网络中均能够实现移动节点与VPN内部节点的通信。The present invention takes "IPv6 isolated island" and "IPv4 ocean" IPv4-v6 hybrid network as the basic network framework, and solves the problem of updating the SA address of mobile nodes by introducing the MOBIKE extension protocol; The mobile node communicates with the VPN gateway in the IPv4 network in the IPv6 network, so that the communication between the mobile node and the VPN internal node can be realized even if the mobile node is located in various types of networks.
也就是说,本发明主要是采用IPv6in IPv4隧道技术的思想,配置了DNS-ALG(域名服务器-应用层网关)等设备实现了移动节点位于IPv6外部网络通过IPv4网络查询VPN网关IPv6地址,并进行相应的通信。从而实现当移动节点位于IPv6外部网络时,仍可以通过IPv4网络与VPN网关的进行通信,进而可以实现IPv4和IPv6混合网络下移动VPN服务。That is to say, the present invention mainly adopts the idea of IPv6in IPv4 tunneling technology, configures equipment such as DNS-ALG (domain name server-application layer gateway) to realize that the mobile node is located in the IPv6 external network and queries the VPN gateway IPv6 address through the IPv4 network, and performs Corresponding Communications. Therefore, when the mobile node is located in the IPv6 external network, it can still communicate with the VPN gateway through the IPv4 network, and then the mobile VPN service under the mixed network of IPv4 and IPv6 can be realized.
具体一点讲,在所述的混合网络中,依据移动节点所在位置的不同,具体可分为:移动节点位于IPv6内部网络(即位于VPN内部)、IPv4外部网络和IPv6外部网络三种情况,针对不同的情况需要采用不同的通信方式,从而可以在混合网络中实现移动VPN业务。Specifically, in the hybrid network, according to the location of the mobile node, it can be specifically divided into three situations: the mobile node is located in the IPv6 internal network (that is, located 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 mixed networks.
为区别不同情况下采用的通信方式,需要在移动节点的IP地址发生变化时,首先停止与其它节点的通信,并根据IP地址类型判断当前所在的网络的类型;之后,通过移动IP注册和VPN地址查询的方式判断移动节点位于内部网络还是外部网络,并根据情况或者建立IPsec隧道,或者更新原有IPsec SA的地址;完成相应处理后,再恢复之前的通信。In order to distinguish the communication methods used in different situations, when the IP address of the mobile node changes, first stop the communication with other nodes, and judge the type of the current network according to the type of IP address; after that, register through the mobile IP and VPN The way of address query determines whether the mobile node is located in the internal network or the external network, and according to the situation, either establish an IPsec tunnel, or update the address of the original IPsec SA; after completing the corresponding processing, resume the previous communication.
在实现本发明的过程中,具体需要在IPv6外部网络边缘的x-AR(外部接入路由器)、DNS-ALG和DNS服务器中设置IPv4和IPv6双协议栈,且在所述的VPN网关设置双协议栈;同时,x-AR和VPN网关具有IPv6in IPv4隧道封装和解封装处理功能。In the process of realizing the present invention, it is specifically necessary to set IPv4 and IPv6 dual protocol stacks in x-AR (external access router), DNS-ALG and DNS server on the edge of the IPv6 external network, and to set dual protocol stacks at the VPN gateway. Protocol stack; at the same time, x-AR and VPN gateway have IPv6in IPv4 tunnel encapsulation and decapsulation processing functions.
经过上述设置后,便可以针对不同的情况采用不同的通信处理方式以实现混合网络中的移动VPN业务。以移动节点进入IPv6外部网络为例,相应的处理过程主要包括以下过程:After the above settings, different communication processing methods can be adopted for different situations to realize the mobile VPN service in the hybrid network. Taking the mobile node entering the IPv6 external network as an example, the corresponding processing mainly includes the following processes:
(1)移动节点进行IPv6外部网络后,利用域名解析的方式间接查询VPN网关的IPv6地址;(1) After the mobile node is connected to the IPv6 external network, the IPv6 address of the VPN gateway is indirectly inquired by means of domain name resolution;
(2)移动节点发出VPN网关的IPv6DNS请求,经过DNS-ALG转换成IPv4DNS请求,再转发至IPv4网络中;(2) The mobile node sends out the IPv6DNS request of the VPN gateway, converts it into an IPv4DNS request through DNS-ALG, and forwards it to the IPv4 network;
(3)在IPv4网络返回关于VPN网关的IPv4地址后,首先发送至DNS-ALG,由DNS-ALG给该IPv4地址加上特定的前缀构成IPv6地址,将此地址最终返回给移动节点。(3) After the IPv4 network returns the IPv4 address about the VPN gateway, it is first sent to the DNS-ALG, and the DNS-ALG adds a specific prefix to the IPv4 address to form an IPv6 address, and finally returns this address to the mobile node.
(4)移动节点根据返回的VPN网关IPv6地址构造数据包,和VPN网关进行通信;其中,移动节点和VPN网关通信的数据包,均会经过IPv6in 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 between the mobile node and the VPN gateway will be encapsulated and decapsulated through the IPv6in IPv4 tunnel to implement different protocol types Communication between nodes.
经过上述处理过程,便可以在混合网络中实现移动VPN业务的互通。After the above processing process, the interworking of the mobile VPN service can be realized in the hybrid network.
为便于对本发明的理解,下面将结合附图对本发明的具体实现方式进行详细的说明。In order to facilitate the understanding of the present invention, the specific implementation of the present invention will be described in detail below in conjunction with the accompanying drawings.
本发明提供的IPv4-v6混合网络中实现移动VPN的技术方案的组网结构如图4所示。在图4中,VPN内部是IPv6网络环境,同时,在VPN内部还存在着支持移动IPv6的家乡网络(Home Net)和外地网络(Foreign Net);网络中的外部网络是以IPv4为主的互联网,同时还存在着支持移动IPv4的IPv4外部网络(External Net IPv4)和支持移动IPv6的IPv6外部网络(External Net IPv6)。在IPv6外部网络边缘设置了DNS-ALG设备,用于实现移动节点在IPv6外部网络是可以通过域名查询的方式获得IPv4网络中的VPN网关地址。The networking structure of the technical solution for implementing the mobile VPN in the IPv4-v6 hybrid network provided by the present invention is shown in FIG. 4 . In Figure 4, the inside of the VPN is an IPv6 network environment, and at the same time, there are also a home network (Home Net) and a foreign network (Foreign Net) that support mobile IPv6 inside the VPN; the external network in the network is the Internet based on IPv4 , and there are also IPv4 external networks (External Net IPv4) supporting Mobile IPv4 and IPv6 external networks (External Net IPv6) supporting Mobile IPv6. A DNS-ALG device is set at the edge of the IPv6 external network to realize that the mobile node can obtain the VPN gateway address in the IPv4 network through domain name query on the IPv6 external network.
在图4所示的网络系统中,各组成设备的功能如下:In the network system shown in Figure 4, the functions of each component device are as follows:
(1)MN(移动节点)(1) MN (Mobile Node)
配置IPv4-v6双协议栈,支持标准的MIPv4(移动IPv4)/MIPv6(移动IPv6),配置支持MOBIKE的IPsec协议;Configure IPv4-v6 dual protocol stack, support standard MIPv4 (Mobile IPv4)/MIPv6 (Mobile IPv6), and configure IPsec protocol that supports MOBIKE;
(2)VPN网关(2) VPN gateway
其与外部网络的外部接口地址为IPv4地址,与内部网络的内部接口地址为IPv6地址,在VPN网关上配置IPv4-v6双协议栈,同时,VPN网关具有IPv6in IPv4隧道(利用IPv4隧道传输IPv6报文的技术)的封装与解封装功能,支持标准的MIPv6(移动IPv6协议),配置支持MOBIKE(IKEv2移动与多接口协议)的IPsec协议;The address of the external interface with the external network is an IPv4 address, and the address of the internal interface with the internal network is an IPv6 address. The IPv4-v6 dual protocol stack is configured on the VPN gateway. At the same time, the VPN gateway has an IPv6in IPv4 tunnel (use IPv4 tunnel to transmit IPv6 packets Text technology) encapsulation and decapsulation function, support standard MIPv6 (Mobile IPv6 protocol), configuration support MOBIKE (IKEv2 mobile and multi-interface protocol) IPsec protocol;
(3)DNS-ALG(域名服务器-应用层网关)和DNS(域名服务器)(3) DNS-ALG (Domain Name Server-Application Layer Gateway) and DNS (Domain Name Server)
其中,DNS-ALG配置IPv4-v6双协议栈,即同时可以支持IPv6和IPv4协议,用于提供VPN网关的IPv4地址信息,并将相应的IPv4地址增加特定的前缀转换为相应的IPv6地址,且作为IPv6网络中的DNS的上一级DNS;IPv6网络中的DNS只配置IPv6协议栈就可以了;Among them, DNS-ALG configures IPv4-v6 dual protocol stack, that is, it can support IPv6 and IPv4 protocols at the same time, and is used to provide IPv4 address information of the VPN gateway, and add a specific prefix to the corresponding IPv4 address to convert it into a corresponding IPv6 address, and As the upper-level DNS of the DNS in the IPv6 network; the DNS in the IPv6 network only needs to configure the IPv6 protocol stack;
4、x-AR(外部接入路由器)4. x-AR (External Access Router)
配置IPv4-v6双协议栈,具有IPv6in IPv4隧道的封装与解封装功能。Configure IPv4-v6 dual protocol stack, with encapsulation and decapsulation functions of IPv6in IPv4 tunnel.
在图4所示的系统中,在VPN内部相应的IP地址配置方式如下:In the system shown in Figure 4, the corresponding IP address configuration within the VPN is as follows:
传统的IPv4网络的VPN内部配置的是私网地址,只能在VPN内部使用。在IPv6地址分类中,站点本地单播地址非常适合VPN的应用,因此,本发明将VPN内部网络配置IPv6站点本地单播地址。所述站点本地单播地址只能用于在VPN网络内部传输数据,站点内的路由器只能在站点内转发该地址类型的数据包,而不能将其转发到站点外去。所述站点本地单播地址的结构可以为:1111111011+38位的“0”+16位的子网标识符+64位的接口标识符。Traditional IPv4 networks are configured with private network addresses inside the VPN, which can only be used inside the VPN. In IPv6 address classification, the site-local unicast address is very suitable for VPN application, so the present invention configures the VPN internal network with the IPv6 site-local unicast address. The site-local unicast address can only be used to transmit data within the VPN network, and the router in the site can only forward data packets of this address type within the site, but cannot forward them outside the site. The structure of the site local unicast address may be: 1111111011+38-bit "0"+16-bit subnet identifier+64-bit interface identifier.
基于上述图4所示的系统,下面将对本发明提供的移动节点的接入方式的具体实现进行说明。Based on the above-mentioned system shown in FIG. 4 , the specific implementation of the access mode of the mobile node provided by 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 will describe the three ways and the corresponding processing methods for developing VPN services:
(一)在VPN内部网络为纯IPv6的网络环境中,处于VPN内部的移动节点以标准的移动IPv6与内部家乡代理和通信节点进行通信;(1) In the 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 with standard mobile IPv6;
当移动节点在VPN内部网络时,相应的开展VPN业务的方式为:When the mobile node is in the VPN internal network, the corresponding way to carry out VPN services is as follows:
将整个内部网络视为一个普通的IPv6网络,移动节点的移动性由移动IPv6实现;即在内部家乡网络时,移动节点通过IPv6路由机制进行通信;当移动节点移出家乡网络,进入支持移动IPv6的外地网络时,通过接入路由器获得移动IPv6转交地址,向家乡代理和通信节点进行注册,完成绑定更新,从而实现在内部网络的移动通信。The entire internal network is regarded as an ordinary IPv6 network, and the mobility of the mobile node is realized by mobile IPv6; that is, when the mobile node 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, it enters the mobile IPv6 In the foreign network, obtain the mobile IPv6 care-of address through the access router, register with the home agent and the communication node, and complete the binding update, so as to realize the mobile communication in 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 an IPv4 care-of address, performs IKE negotiation with the VPN gateway through the obtained care-of address, and establishes an IPsec tunnel, thereby realizing internal communication with the VPN through the tunnel communication between nodes;
当移动节点移出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 process for developing VPN services specifically includes:
移动节点会分配到一个IPv4外地代理转交地址或IPv4配置转交地址。在与VPN网关完成身份鉴别之后,移动节点开始与VPN网关进行IKE协商,建立IPsec隧道。隧道两端的地址分别为移动节点的转交地址和VPN网关的外部接口的IPv4地址。The mobile node will be assigned an IPv4 foreign agent care-of address or an IPv4 configuration care-of address. After completing identity authentication 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 respectively.
在进行IKE协商的时候,VPN网关给出一个VPN-TIA(VPN隧道内部地址),并将该地址通告给移动节点;在移出内部网络后,移动节点仍和VPN内部家乡代理或通信节点保持一个移动IPv6绑定缓存,VPN-TIA是用来作为移动节点向内部家乡代理或通信节点注册的移动IPv6转交地址。During IKE negotiation, the VPN gateway gives a VPN-TIA (VPN tunnel internal address), and notifies the address to the mobile node; after moving out of the internal network, the mobile node still maintains the same address as the home agent or communication node inside the VPN. Mobile IPv6 binding cache, VPN-TIA is used as the mobile IPv6 care-of address registered by the mobile node with the internal home agent or correspondent node.
也就是说,移动节点并不是将自己在外部网络获得的转交地址作为向内部网络的家乡代理注册的转交地址,而是用VPN-TIA作为移动节点的内部网络转交地址;其目的是:使得VPN内部的家乡代理和通信节点可以不受移动节点在外部网络的转交地址变化的影响,减少注册更新等控制信息的频繁发送,也避免了移动节点获得IPv4转交地址却要向移动IPv6的内部家乡代理注册所带来的问题。That is to say, the mobile node does not use the care-of address obtained by itself in the external network as the care-of address registered with the home agent of the internal network, but uses 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 not be affected by the change of the care-of address of the mobile node in the external network, which reduces the frequent sending of control information such as registration updates, and also avoids the need for the mobile node to obtain the IPv4 care-of address from the mobile IPv6 internal home agent. problems with registration.
在IPsec隧道建立之后,移动节点将上层协议的数据包首先进行移动IPv6封装,源地址为VPN-TIA,目的地址为内部家乡代理或通信节点的地址;之后进行IPsec封装,源地址为移动节点的外部网络IPv4转交地址,目的地址为VPN网关外部接口的IPv4地址。After the IPsec tunnel is established, the mobile node first performs mobile IPv6 encapsulation on 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 IPsec encapsulation is performed, and the source address is the mobile node's The IPv4 care-of address of the external network, 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 data packet after two encapsulations 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 in the external network, v4-v6 before the address The flag indicates the type of address.
表1Table 1
(三)在IPv6外部网络中,处于VPN外部的移动节点支持移动IPv6,获得IPv6转交地址。IPv6外部网络的x-AR和IPv4网络中的VPN网关利用IPv6in IPv4隧道封装技术,使得在IPv6外部网络的移动节点与处在IPv4网络中的VPN网关进行通信;(3) In the IPv6 external network, the mobile node outside the VPN supports mobile IPv6 and obtains an IPv6 care-of address. The x-AR of the IPv6 external network and the VPN gateway in the IPv4 network use the IPv6in 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内部节点通信的处理过程如下:When the mobile node is located on the IPv6 external network, that is, when the mobile node is located outside the VPN, the communication process between the mobile node and the VPN internal node is as follows:
(1)移动节点进入到一个支持移动IPv6的外部网络时,该网络中的接入路由器(即x-AR)会为其提供一个接入外部网络的无线接口,即移动节点会获得相应的IPv6转交地址,以便于开展网络通信;(1) When the mobile node enters an external network that supports mobile IPv6, the access router (x-AR) in the network will provide it with a wireless interface to access the external network, that is, the mobile node will obtain the corresponding IPv6 care-of address to facilitate network communications;
(2)移动节点获得相应的IPv6转交地址后,采用IPv6in IPv4隧道技术,分别在IPv6外部网络的x-AR和IPv4网络的VPN网关处对IPv6的数据包进行IPv4的封装和解封装,实现IPv4主机与IPv6主机的互通;(2) After the mobile node obtains the corresponding IPv6 care-of address, it adopts the IPv6in IPv4 tunnel technology to perform IPv4 encapsulation and decapsulation on the IPv6 data packets at the x-AR of the IPv6 external network and the VPN gateway of the IPv4 network respectively, so as to realize the IPv4 host Intercommunication with IPv6 hosts;
需要采用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 handle the IP version different from its own due to the different address structures at both ends. For this reason, IPv6 packets need to be encapsulated in IPv4, so that the peer VPN gateway can identify the received packets.
下面将对移动节点位于VPN外部情况下,其与VPN内部节点通信的处理过程的具体实现进行说明。The specific implementation of the process of communicating with a VPN internal node when the mobile node is located outside the VPN will be described below.
本发明在具体实现过程中,IPv4主机和IPv6主机建立通信的基础是通过域名进行关联。即移动节点无需了解需要通信的VPN网关是IPv4地址还是IPv6地址,而只需知道VPN网关的FQDN(Fully Qualified Domain Name,完全合乎要求域名)。这样,在域名解析后,便可以获得VPN网关的通信地址,并可以构造相应的数据包以实现相互之间的通信。In the specific implementation process of the present invention, the basis for establishing communication between an IPv4 host and an IPv6 host is to associate through a 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 (Fully Qualified Domain Name, fully 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 realize mutual communication.
首先,对通过DNS(域名服务器)进行VPN网关域名解析的具体处理过程进行说明,具体的过程包括域名解析请求和域名解析响应两个处理阶段。Firstly, the specific processing process of VPN gateway domain name resolution through DNS (Domain Name Server) is described, and the specific process includes two processing stages of domain name resolution request and domain name resolution response.
在相应的域名解析请求阶段,如图5所示,主要处理过程包括:In the corresponding domain name resolution request stage, as shown in Figure 5, the main processing process includes:
(1)移动节点向本IPv6站点内的DNS服务器发送DNS请求,即向相应的IPv6DNS服务器发送(“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 the resolution of the FQDN of the destination host and obtain the address information of the VPN gateway;
对于发起通信的IPv6主机移动节点来说,并不知道通信对方是IPv4主机或是IPv6主机,移动节点只存在目的主机(VPN网关)的FQDN,例如,www.vpngw.com,因此,需要通过域名解析请求获得VPN网关的地址。For the IPv6 host mobile node that initiates communication, it does not know whether the communication partner is an IPv4 host or an IPv6 host. The mobile node only has the FQDN of the destination host (VPN gateway), for example, www.vpngw.com. Therefore, it needs to pass the domain name Parse the request to obtain the address of the VPN gateway.
(2)移动节点的DNS请求到达DNS服务器后,将被转发给DNS-ALG;(2) After the DNS request of the mobile node reaches the DNS server, it will be forwarded to the DNS-ALG;
这是因为IPv6站点的DNS服务器收到移动节点的DNS请求实际上是IPv4网络中的VPN网关的FQDN,所以该DNS服务器不能解析该域名,并会将该请求将被转发到上一级DNS服务器;在该IPv6外部网络中,DNS服务器中配置的上级DNS服务器的地址为站内DNS-ALG的地址,因此,移动节点发送的DNS请求被DNS服务器转发到了DNS-ALG;This is because the DNS server of the IPv6 site receives the DNS request of the mobile node 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 this IPv6 external network, the address of the upper-level DNS server configured in the DNS server is the address of the DNS-ALG in the station, so the DNS request sent by the mobile node is forwarded to the DNS-ALG by the DNS server;
(3)DNS-ALG中保存有IPv4网络的DNS服务器地址,当其接收到DNS服务器转发来的移动节点的(“AAAA”)IPv6DNS请求,DNS-ALG会根据存储的DNS服务器列表确定VPN网关的DNS服务器地址,由于VPN网关的外部接口为IPv4接口,对应的地址为IPv4地址,所述相应的DNS服务器为IPv4网络中的DNS服务器,因此,需要将此IPv6DNS请求转换成IPv4DNS请求(“A”),并发往所述的IPv4网络的DNS服务器;(3) The DNS server address of the IPv4 network is stored in the DNS-ALG. When it receives the IPv6 DNS request of the mobile node ("AAAA") forwarded by the DNS server, the DNS-ALG will determine the VPN gateway address according to the stored DNS server list. DNS server address, since the external interface of the VPN gateway 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, this IPv6DNS request needs to be converted into an IPv4DNS request (“A” ), and sent to the DNS server of the IPv4 network;
(4)由于DNS-ALG与x-AR相连,所以DNS-ALG将该IPv4DNS请求先发往x-AR,再由x-AR发往IPv4网络中。(4) Since the DNS-ALG is connected to the x-AR, the DNS-ALG sends the IPv4DNS 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 stage, that is, the DNS response process is shown in Figure 6. After the DNS server in the IPv4 network receives the request, it returns a DNS response. The response message contains the IPv4 address of the VPN gateway, and the response message will return For a mobile node in an IPv6 network, the specific DNS response process includes the following processes:
(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 in 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 All data packets will be routed to x-AR;
所述前缀路由可预先在IPv6网络的路由设备内配置并发布,例如,该前缀为5efO:3248::/64,假设VPN网关的IPv4地址为200.0.0.1,则DNS-ALG将此前缀加VPN网关的IPv4地址,构造为形如5efO:3248::200.0.0.1的IPv6地址返回给IPv6网络内的DNS服务器;The prefix route can be pre-configured and released in the routing device of the IPv6 network. For example, the prefix is 5ef0:3248::/64, assuming that the IPv4 address of the VPN gateway is 200.0.0.1, then DNS-ALG adds the VPN to this prefix The IPv4 address of the gateway is structured as an IPv6 address of the form 5efO:3248::200.0.0.1 and returns to the DNS server in the IPv6 network;
(2)IPv6网络中的DNS服务器接收到DNS-ALG返回的具有特定前缀的IPv6地址后,将此地址对应移动节点的DNS请求,将相应的地址作为VPN网关的地址写入缓存,即在IPv6网络中的DNS上保存VPN网关的IPv6格式的地址与其域名的对应关系信息;(2) After the DNS server in the IPv6 network receives the IPv6 address with a specific prefix returned by the DNS-ALG, it corresponds the address to the DNS request of the mobile node, and writes the corresponding address into the cache as the address of the VPN gateway, that is, in IPv6 The DNS in the network saves the corresponding relationship information between the address of the VPN gateway in IPv6 format and its domain name;
需要说明的是:经过一次对VPN网关的DNS解析后,将不再重复此过程,之后与VPN网关通过域名进行通信的主机可直接在IPv6网络的DNS服务器内得到转换后的VPN网关的地址,该地址为IPv6地址;It should be noted that after a DNS resolution of the VPN gateway, this process will not be repeated, and the host that communicates with the VPN gateway through the domain name can directly obtain the converted address of the VPN gateway in the DNS server of the IPv6 network. The address is an IPv6 address;
(3)将解析结果(即所述具有特定前缀的IPv6地址)写入缓存后,DNS服务器还将特定地址前缀与VPN网关的IPv4地址构成的IPv6地址返回给移动节点,这样,移动节点便获得了开展移动VPN业务需要的VPN网关的地址信息。(3) After the resolution 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 can obtain The address information of the VPN gateway required to carry out the mobile VPN service.
在移动节点及所述的DNS服务器获得了VPN网关的地址信息之后,则所述的移动节点便可以通过数据包的转换和转发处理实现与VPN内网中节点的通信,相应的具体的通信过程包括:After the mobile node and the DNS server have obtained the address information of the VPN gateway, the mobile node can communicate with the nodes in the VPN intranet through the conversion and forwarding of data packets, and the corresponding specific communication process include:
(1)移动节点接收到DNS服务器返回的IPv6地址,该地址是VPN网关的IPv4地址添加特定地址前缀构造的IPv6地址,移动节点以此地址为目的地址构造IPv6数据包。(1) The mobile node receives the IPv6 address returned by the DNS server, which is the IPv6 address constructed by adding a specific address prefix to the IPv4 address of the VPN gateway, and the mobile node constructs an IPv6 packet with this address as the destination address.
(2)由于该目的地址的前缀路由已经在IPv6网络内进行配置和发布,凡具有该地址前缀的IPv6包均指向x-AR,因此移动节点发送的IPv6数据包被路由到x-AR,在此,假定该特定地址前缀为5efO:3248::/64,VPN网关的IPv4地址为200.0.0.1;(2) Since the prefix route of the destination address has been configured and published in the IPv6 network, all IPv6 packets with the address prefix point to the x-AR, so the IPv6 data packet sent by the mobile node is routed to the x-AR. Therefore, assuming that the specific address prefix is 5efO:3248::/64, the IPv4 address of the VPN gateway is 200.0.0.1;
(3)x-AR接收到目的前缀为5efO:3248::/64的IPv6数据包,识别出其前缀为DNS-ALG发布的特定前缀,便会对该IPv6数据包进行IPv6in IPv4隧道封装,具体的封装方式为:(3) x-AR receives the IPv6 data packet whose destination prefix is 5efO:3248::/64, recognizes that its prefix is a specific prefix released by DNS-ALG, and then performs IPv6in IPv4 tunnel encapsulation on the IPv6 data packet, specifically The 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 item of the IPv6 data packet as the destination address of the IPv4 tunnel header, uses the x-AR IPv4 address as the source address of the IPv4 tunnel header, and the newly constructed IPv4 data packet structure As shown in Table 2, that is, the structure of the corresponding packet encapsulated by the IPv4 tunnel is shown in Table 2:
表2Table 2
(4)x-AR将封装完成的IPv4数据包发送到IPv4网络;(4) 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 a mobile node in an IPv4 external network, or a data packet encapsulated by an IPv4 tunnel from a mobile node in an IPv6 external network; in order to identify the source of the data packet, the VPN gateway needs Read the IPv4 packet header, if the next packet header is found to be an IPv6 address, then determine that the data packet comes from the IPv6 external network, and decapsulate it, and hand over the decapsulated IPv6 data packet to other modules for the next step of processing, subsequent processing The process is the same as that of ordinary IPv6 data 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 the node inside the VPN needs to send information to the mobile node in the IPv6 external network, the IPv6 data packet that needs to be sent to the mobile node needs to be encapsulated with an IPv4 header at the VPN gateway, and through the x-AR and the VPN gateway The tunnel between them is sent to the mobile node, wherein 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 data packet, reads the IPv4 packet header, and finds that the next packet header is IPv6, it decapsulates it, and forwards the IPv6 data packet obtained by decapsulating to the mobile node. The specific processing process can be regarded as an inverse processing process of sending data packets from the mobile node to the VPN gateway.
在上述处理过程中,当移动节点处于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 wants to communicate with the VPN internal node, it needs to establish a tunnel with the VPN gateway, that is, how to establish a tunnel to ensure that the communication between the IPv6 external network and the VPN internal The key to enabling VPN communication in a hybrid network. For this reason, the establishment of the corresponding IPsec tunnel and the forwarding process of the data packet will be described in detail below when the mobile node is in the IPv6 external network.
在现有技术中,移动节点与VPN网关的通信支持MOBIKE的IKEv2协商,建立IPsec隧道,然后数据包在IPsec ESP(IPsec封装安全载荷)隧道模式封装后进行传输。但是,在本发明所述的应用情景下,由于移动节点和VPN网关位于不同类型的网络中,IKE协商的信令信息以及之后的IPsec封装数据包均会经过IPv6in IPv4隧道的封装和解封装,因此,对于IPv6外部网络中的移动节点为与VPN内部节点通信,则需要建立相应的两端地址均为IPv4地址的IPsec隧道,即支持IPv6in IPv4封装和解封装的隧道,通过该隧道进行IPv6inIPv4报文的封装传递。In the prior art, the communication between the mobile node and the VPN gateway supports the IKEv2 negotiation of MOBIKE to establish an IPsec tunnel, and then the data packets are transmitted after being encapsulated in IPsec ESP (IPsec Encapsulating Security Payload) tunnel mode. However, under the application scenario of the present invention, since the mobile node and the VPN gateway are located in different types of networks, the signaling information negotiated by IKE and the subsequent IPsec encapsulated data packets will be encapsulated and decapsulated through the IPv6in IPv4 tunnel, so , for the mobile node in the IPv6 external network to communicate with the internal node of the VPN, it is necessary to establish a corresponding IPsec tunnel whose addresses at both ends are IPv4 addresses, that is, a tunnel that supports IPv6in IPv4 encapsulation and decapsulation, through which IPv6inIPv4 packets are transmitted Package delivery.
本发明中,建立的隧道中,移动节点SA的SPI(安全参数索引)目的地址项是VPN网关的IPv6地址,而VPN网关SA的SPI目的地址项是移动节点的IPv6地址,在双方进行IKE协商的过程中,VPN网关同时也获得自己的IPv6地址,即相应的特定前缀再加上自己的IPv4地址。In the present invention, in the established tunnel, the SPI (Security Parameter Index) destination address item of the mobile node SA is the IPv6 address of the VPN gateway, and the SPI destination address item of the VPN gateway SA is the IPv6 address of the mobile node, and the IKE negotiation is carried out at both sides During the 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, data packets need to be transmitted interactively through the tunnel, and the forwarding process of the corresponding data packets will be described below.
移动节点首先将上层协议的数据包进行移动IPv6封装,源地址为VPN-TIA(VPNTunnel Inner Address,VPN隧道内部地址),目的地址为VPN内部的节点(包括内部家乡代理或通信节点)的地址。The mobile node first performs mobile IPv6 encapsulation on the data packet of the upper layer protocol, the source address is VPN-TIA (VPNTunnel Inner Address, VPN tunnel internal address), and the destination address is the address of the node inside the VPN (including the internal home agent or communication node).
之后,进行IPsec封装,源地址为移动节点的外部网络IPv6转交地址,目的地址为VPN网关外部接口IPv6地址,该地址是由VPN网关IPv4地址加特定前缀生成的。Afterwards, IPsec encapsulation is performed, the source address is the external network IPv6 care-of address of the mobile node, and the destination address is the VPN gateway external interface IPv6 address, which is generated by adding a specific prefix to the VPN gateway IPv4 address.
相应的数据包经过两次封装后IPv6数据包的结构如表3所示,其中i-HoA是移动节点在内部网络的家乡地址,x-CoA为移动节点在外部网络获得的转交地址,VPN-GW是加上特定前缀的IPv6地址。地址前的v4/v6标记表明地址类型。The structure of the IPv6 data packet after the corresponding data packet is encapsulated twice is shown in Table 3, 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 in the external network, and VPN-HoA is the home address of the mobile node in the external network. GW is an IPv6 address with a specific prefix. The v4/v6 flag preceding the address indicates the address type.
表3table 3
由于该数据包目的地址的前缀路由已经在IPv6网络内进行配置和发布,凡具有该地址前缀的IPv6包均指向x-AR,因此移动节点发送的IPv6数据包被路由到x-AR。Since the prefix route of the destination address of the data packet has been configured and published in the IPv6 network, all IPv6 packets with the address prefix point to the x-AR, so the IPv6 data packet sent by the mobile node is routed to the x-AR.
x-AR识别出其前缀为DNS-ALG发布的特定前缀,因此对该IPv6数据包进行IPv6inIPv4隧道封装;具体为:x-AR从IPv6数据包的目的地址项中提取出VPN网关的IPv4地址,作为IPv4隧道包头的目的地址,将x-AR的IPv4地址作为IPv4隧道包头的源地址,经过IPv4隧道封装的IPv4数据包格式如表4所示,其中,在最外层的包头为IPv4数据包头,原先整个IPv6数据包作为IPv有效载荷封装在IPv4数据包中。其中在最外层包头的x-AR是接入路由器的IPv4地址,VPN-GW是VPN网关的IPv4地址。x-AR recognizes that its prefix is a specific prefix released by DNS-ALG, so it performs IPv6inIPv4 tunnel encapsulation on the IPv6 data packet; specifically: x-AR extracts the IPv4 address of the VPN gateway from the destination address item of the IPv6 data packet, 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, and the format of the IPv4 data packet encapsulated by the IPv4 tunnel is shown in Table 4, where the outermost header is the IPv4 data packet header , the original entire IPv6 data packet is encapsulated in an IPv4 data 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.
表4Table 4
经过隧道封装的IPv4数据包转发由x-AR转发至IPv4网络中。VPN网关接收到数据包后,先解除IPv4隧道封装;再转交给IPsec功能模块,解除IPsec封装,转发给内部家乡代理或通信节点,实现移动节点和VPN内部节点的通信。The tunnel-encapsulated IPv4 data packets are forwarded by the x-AR to the IPv4 network. After the VPN gateway receives the data packet, it first removes the IPv4 tunnel encapsulation; then transfers it to the IPsec function module, removes the IPsec encapsulation, and forwards it to the internal home agent or communication node to realize the communication between the mobile node and the VPN internal node.
VPN内部节点向移动节点发送数据包的转发和转换完全可以看作是上述步骤的逆过程,故在这里不再赘述。The forwarding and conversion of the data packet sent by the VPN internal node to the mobile node can be regarded as the reverse process of the above steps, so it will not be repeated here.
本发明在具体实现过程中,当移动节点移动到IPv6外部网络中时,其与VPN内部节点之间的通信的实现还可以采用以下方案实现。In the specific implementation process of the present invention, when the mobile node moves to the IPv6 external network, the communication between the mobile node and the VPN internal node can also be realized by the following scheme.
在IPv4-v6混合网络中,为实现位于IPv6网络的主机(移动节点)和位于IPv4网络的主机(VPN网关)之间的通信,除了采用IPv6in IPv4隧道技术外,还可以采用NAT-PT(网络地址转换-协议转换)技术实现。In the IPv4-v6 hybrid network, in order to realize the communication between the host (mobile node) located in the IPv6 network and the host (VPN gateway) located in the IPv4 network, in addition to the IPv6in IPv4 tunnel technology, NAT-PT (network Address conversion-protocol conversion) technology implementation.
即本发明还根据NAT-PT的基本技术和思想,将其应用到IPv4-v6混合网络中以实现移动VPN,进而提出了该结构下位于IPv6网络中的移动节点与位于IPv4网络中的VPN网关的通信方案。That is to say, the present invention also applies it to the IPv4-v6 hybrid network to realize mobile VPN according to the basic technology and thought of NAT-PT, and then proposes a mobile node located in the IPv6 network and a VPN gateway located in the IPv4 network under this structure. communication plan.
在IPv6外部网络边缘需要配置NAT-PT实体,即NAT-PT设备,在本发明中具体可以将NAT-PT和DNS-ALG结合为同一设备。A NAT-PT entity, that is, a NAT-PT device, needs to be configured on the edge of the IPv6 external network. Specifically, in the present invention, the NAT-PT and the DNS-ALG can be combined into one device.
下面将对位于IPv6外部网络中的移动节点与IPv4网络中的VPN网关通信的具体实现过程进行详细的说明。The specific realization process of the communication between the mobile node 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 uses the domain name query method to obtain the IPv6 address of the VPN gateway. The specific query process has been described in the previous description and will not be described in detail here. The IPv6 address is the VPN gateway IPv4 address plus a specific address prefix. The mobile node constructs a data packet with this address as the destination address.
具有该特定地址前缀的IPv6数据包会被默认路由到NAT-PT,NAT-PT根据该特定地址前缀判断出数据包是发给IPv4网络中的主机,因此对该IPv6数据包进行协议转换。NAT-PT将接收到的IPv6包内源地址(移动节点的转交地址)映射到一个IPv4地址,作为转换IPv4包的源地址,目的地址后32位作为转换IPv4包的目的地址,对IPv6包内各字段进行语法及语意转换(即NAT-PT),转换完成的IPv4数据包目的地址即为VPN网关的IPv4地址;The IPv6 data packet with the specific address prefix will be routed to NAT-PT by default, and NAT-PT judges that the data packet is sent to the host in the IPv4 network according to the specific address prefix, so the protocol conversion is performed on the IPv6 data packet. NAT-PT maps the source address (the care-of address of the mobile node) in the received IPv6 packet to an IPv4 address as the source address of the converted IPv4 packet, and the last 32 bits of the destination address are used as the destination address of the converted IPv4 packet. The syntax and semantics of each field are converted (ie NAT-PT), and the destination address of the converted IPv4 data 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 protocol stack devices. NAT-PT sends the converted IPv4 data packet to x-AR, and then x-AR sends the data packet 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 IPv4 data packets into IPv6 data packets is the reverse process of the above steps. When x-AR receives an IPv4 data packet, it first routes to NAT-PT, and NAT-PT extracts the destination address of the IPv4 packet, 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; Add a specific prefix to the source address of the IPv4 packet as the source address of the IPv6 packet, convert the syntax and semantics of each field in the IPv4 packet, construct an IPv6 data packet, and finally forward it to the mobile node.
下面将对在设置有NAT-PT实体情况下,为处于IPv6外部网络中的移动节点为实现与VPN内部通信时,需要进行的隧道的建立及数据包的转发处理过程进行详细的说明。In the following, when the NAT-PT entity is set, the establishment of the tunnel and the forwarding process of the data packet required for the mobile node in the IPv6 external network to realize internal communication with the VPN will be described in detail.
首先,隧道的建立过程如下:First, the tunnel establishment process is as follows:
同样,移动节点与VPN网关最初的通信是支持MOBIKE的IKEv2协商,建立IPsec隧道,然后数据包在IPsec ESP隧道模式封装后进行传输。由于NAT-PT的存在,IKE协商的信令信息以及之后的IPsec封装数据包都会经过IPv4to IPv6或IPv6to 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 MOBIKE's IKEv2 negotiation to establish an IPsec tunnel, and then the data packets are transmitted after being encapsulated in IPsec ESP tunnel mode. Due to the existence of NAT-PT, the signaling information negotiated by IKE and the subsequent IPsec encapsulated data packets will be converted from IPv4 to IPv6 or IPv6 to IPv4. The SPI destination address item of the mobile node SA is the IPv6 address of the VPN gateway, and the VPN gateway SA’s The SPI destination address item is the IPv4 address of the mobile node, and the two parties do not know that the communication peer is a host different from their own network type. This does not affect the establishment of tunnels and data transmission between the two parties, and it also brings convenience for the mobile node to switch between different types of external networks: no matter whether the mobile node is in an IPv4 external network or an IPv6 external network, the VPN gateway always thinks that the mobile node is an external network. on an IPv4 network.
之后,利用隧道进行数据包的转发的处理过程如下:Afterwards, the process of forwarding data packets using the 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 mobile IPv6 encapsulation on 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 communication node; then IPsec encapsulation is performed, and the source address is the mobile node's The IPv6 care-of address of the external network, the destination address is the IPv6 address of the external interface of the VPN gateway, which is generated by adding a specific prefix to the IPv4 address of the VPN gateway. The IPv6 packet structure of the mobile node located in the IPv6 external network after two encapsulations is shown in Table 5, 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 in the external network, VPN - GW (VPN Gateway) is an IPv6 address with a specific prefix. The v4/v6 flag preceding the address indicates the address type.
表5table 5
该数据包路由至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 NAT-PT, NAT-PT maps the source address (the care-of address of the mobile node) in the received IPv6 packet to an IPv4 address as the source address for converting the IPv4 packet, and the last 32 bits of the destination address as the conversion The destination address of the IPv4 packet performs syntax and semantic conversion on each field in the IPv6 packet, and constructs an IPv4 data packet whose destination address is the IPv4 address of the VPN gateway. Table 6 shows the format of the IPv4 data packet converted by NAT-PT. At this time, the outermost IPsec packet header has been converted into an IPv4 address. Wherein, x-CoA is the IPv4 care-of address obtained by the mobile node from the IPv6 care-of address mapping, and 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:
表6Table 6
经过NAT-PT转换的IPv4数据包转发至x-AR,再由x-AR转发至IPv4网络中。VPN网关接收到数据包后,解除IPsec封装,再转发给内部家乡代理或通信节点,实现移动节点和VPN内部节点的通信。The IPv4 data packet transformed by NAT-PT is forwarded to x-AR, and then forwarded to the IPv4 network by x-AR. After the VPN gateway receives the data packet, it removes the IPsec encapsulation and forwards it to the internal home agent or communication node to realize the communication between the mobile node and the VPN internal node.
VPN内部节点向移动节点发送数据包的转发和转换完全是上述步骤的逆过程,在这里不再赘述。The forwarding and conversion of the data packet sent by the VPN internal node to the mobile node is completely the reverse process of the above steps, which will not be repeated here.
在本发明中,移动节点的移动性决定了本发明在具体实现过程中还包括移动节点在不同类型网络间的切换和SA地址的更新的处理过程,下面将对这一过程进行详细的说明。In the present invention, the mobility of the mobile node determines that the specific implementation process of the present invention also includes the processing process of switching the mobile node between different types of networks and updating the SA address, which will be described in detail below.
IPv4-v6混合网络存在着支持移动IPv4的IPv4外部网络和支持移动IPv6的IPv6外部网络,异类网络是指分别为IPv4与IPv6的网络,同类网络是指同为IPv4网络或同为IPv6网络。The IPv4-v6 hybrid network has an IPv4 external network that supports mobile IPv4 and an IPv6 external network that supports mobile IPv6. Heterogeneous networks refer to networks that are IPv4 and IPv6 respectively, and homogeneous networks refer to networks that are both IPv4 or both IPv6.
在移动节点利用IPsec隧道接入VPN后,可能会在不同的网络之间移动。本发明中,当移动节点位于内部网络时,则可以使用标准的移动IPv6通信;当移动节点从内部网络漫游至外部网络时,则需要建立IPsec隧道与VPN内部节点进行通信;在移动节点离开现在的外部网络进入一个新的异类或同类的外部网络后,能够通过MOBIKE协议,使用新获得的转交地址更新SA地址,保持原有的IPsec隧道,继续和VPN内部节点的通信。After the mobile node accesses the VPN through the IPsec tunnel, it may move between different networks. In the present invention, when the mobile node is located in the internal network, standard mobile IPv6 communication can be used; when the mobile node roams from the internal network to the external network, it is necessary to establish an IPsec tunnel to communicate with the VPN internal node; when the mobile node leaves the current After the external network enters a new heterogeneous or similar external network, it can use the newly obtained care-of address to update the SA address through the MOBIKE protocol, maintain the original IPsec tunnel, and continue to communicate with VPN internal nodes.
在移动节点的转交地址发生改变后,为避免再次协商,以利用原有的IPsec隧道继续通信,本发明中需要采用MOBIKE协议实现IPsec协议对节点移动性的支持,从而允许在移动节点转交地址发生变化后通过SA地址更新继续保持原有的IPsec隧道进行通信。After the care-of address of the mobile node changes, in order to avoid renegotiation, to utilize the original IPsec tunnel to continue communication, need to adopt MOBIKE agreement among the present invention to realize the support of IPsec agreement to node mobility, thereby allow to occur in the mobile node care-of address After the change, continue to maintain the original IPsec tunnel for communication through the SA address update.
为清楚说明本发明中的这一技术要点,下面首先对现有的MOBIKE协议进行介绍。In order to clearly illustrate this technical point in the present invention, the existing MOBIKE protocol is firstly introduced below.
MOBIKE,是基于IKEv2的扩展协议,有效支持了IPsec隧道通信两端的移动性。MOBIKE允许隧道两端的节点在保持IKE SA和IPsec SA的情况下更新其IP地址,也就是说在隧道两端的节点IP地址改变后仍可以保持原有的IPsec隧道,无需重新进行协商。MOBIKE协议的一个重要应用场景就是IPsec VPN的移动节点在外部网络改变其转交地址后仍与VPN网关保持原有的IPsec隧道。MOBIKE is an extended protocol based on IKEv2, which effectively supports the mobility of both ends of the IPsec tunnel communication. MOBIKE allows the nodes at both ends of the tunnel to update their IP addresses while maintaining the IKE SA and IPsec SA. That is to say, after the IP addresses of the nodes at both ends of the tunnel change, they can still maintain the original IPsec tunnel without renegotiation. An important application scenario of the MOBIKE protocol is that the mobile node of the IPsec VPN still maintains the original IPsec tunnel with the VPN gateway after the external network changes its care-of address.
MOBIKE支持通信的双方具有多个地址,并且由IKE_SA(因特网密钥交换-安全联盟)的发起者决定使用的隧道的端地址对。在更新IPsec SA地址的时,也是由IKE_SA的发起者来发出更新地址请求。MOBIKE这样的设置非常适合移动VPN的应用场景。在移动VPN中,往往是移动节点在外部网络时向VPN网关发起IKE协商,建立IPsec隧道。在移动节点转交地址发生改变后,由移动节点发起更新地址请求,开始更新IKE SA和IPsec SAs(IPsec安全联盟组)中移动节点的地址。MOBIKE supports multiple addresses for both sides of the communication, and the initiator of IKE_SA (Internet Key Exchange-Security Association) decides to use the end address pair of the tunnel. When updating the IPsec SA address, the initiator of IKE_SA also issues an address update request. Settings like MOBIKE are very suitable for mobile VPN application scenarios. In a mobile VPN, the mobile node usually initiates IKE negotiation to the VPN gateway when it is in the external network to establish an IPsec tunnel. After the mobile node's care-of address changes, the mobile node initiates an address update request to update the address of the mobile node in IKE SA and IPsec SAs (IPsec security association group).
由于MOBIKE是IKEv2的扩展协议,因此,其实现均为在IKEv2的协商交换中完成的。MOBIKE定义了一些新的通告载荷,在IKEv2的三种交换类型(IKE_SA交换,IPsec SA交换以及信息交换)的协商交换过程中使用所述新的通告载荷实现MOBIKE支持的功能。Since MOBIKE is an extended protocol of IKEv2, its realization is completed in the negotiation exchange of IKEv2. MOBIKE defines some new notification loads, and uses the new notification loads to realize the functions supported by MOBIKE during the negotiation and exchange process of the three exchange types (IKE_SA exchange, IPsec SA exchange and information exchange) of IKEv2.
如果希望在建立好的IPsec隧道中支持MOBIKE协议,首先要在IKE_SA初始化的时候,在IKE_AUTH(IKE初始化的认证交换)交换中加入MOBIKE_SUPPORTED(支持MOBIKE)通告载荷,表明节点双方均支持MOBIKE协议。If you want to support the MOBIKE protocol in the established IPsec tunnel, you must first add the MOBIKE_SUPPORTED (support MOBIKE) notification load in the IKE_AUTH (IKE initialization authentication exchange) exchange when IKE_SA is initialized, indicating that both nodes support the MOBIKE protocol.
MOBIKE协议支持通信两端的实体同时拥有多个地址,发起方和响应方可以在IKE_AUTH交换(即IKEv2初始化交换的后两条消息)中加入ADDITIONAL_IPv4_ADDRESS(加入IPv4地址)或ADDITIONAL_IPv6_ADDRESS(加入IPv6地址)通告载荷。The MOBIKE protocol supports entities at both ends of the communication to have multiple addresses at the same time. The initiator and responder can add ADDITIONAL_IPv4_ADDRESS (add IPv4 address) or ADDITIONAL_IPv6_ADDRESS (add IPv6 address) notification payload to the IKE_AUTH exchange (that is, the last two messages of IKEv2 initialization exchange) .
在实现MOBIKE协议时,相应的IPsec SAs的地址的更新过程如下:When implementing the MOBIKE protocol, the update process of the addresses of the corresponding IPsec SAs is as follows:
在MOBIKE中,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通告载荷的消息交换请求,并且清除“pending_update”标记;如果在等待消息交换应答的期间地址又发生了改变,就再次从第一步开始并忽略返回的应答消息。In MOBIKE, the originator of the IKE_SA determines the addresses used in the IPsec SAs. That is, the responder only updates the IP addresses of IPsec SAs after receiving an explicit UPDATE_SA_ADDRESSES (update SA address) request from the initiator. When the initiator determines to update the address, update the IP address in IKE_SA and IPsec SAs, and set the "pending_update (binding update)" flag in IKE_SA; if there is an IKEv2 request sent to the responder but has not received a response, use The updated IP address retransmits the request; when the window size allows, send a message exchange request containing the UPDATE_SA_ADDRESSES notification payload, and clear the "pending_update" flag; if the address changes again while waiting for the message exchange response, it again Start with the first step and ignore the reply message returned.
在处理包含UPDATE_SA_ADDRESSES的消息交换请求时,相应的响应方具体需要进行如下的处理过程:When processing a message exchange request containing UPDATE_SA_ADDRESSES, the corresponding responder needs to perform the following processing:
1、由于若响应方使用大于1的wi ndow si ze,有可能接收的请求次序颠倒,因此,需要检查是否收到过比该消息还新的UPDATE_SA_ADDRESSES请求如果有,仅回复一个应答,不进行其它动作;1. If the responder uses a window size greater than 1, the order of the received requests may be reversed. Therefore, it is necessary to check whether an UPDATE_SA_ADDRESSES request newer than this message has been received. action;
2、根据本地策略检查IP包头的源地址和目的地址是否可接受,如果不可,返回一个应答包含UNACCEPTABLE_ADDRESS通告载荷,表明不可接受;2. Check whether the source address and destination address of the IP packet header are acceptable according to the local policy. If not, return a response containing the UNACCEPTABLE_ADDRESS notification payload, indicating that it is unacceptable;
3、使用发起方发送的IP包头中的IP地址来更新IKE_SA中的IP地址;3. Use the IP address in the IP packet header sent by the initiator to update the IP address in IKE_SA;
4、回复一个信息交换应答表明已经更新完毕;4. Reply an information exchange response indicating that the update has been completed;
当发起方收到应答后,则需要进行了相应处理过程如下:When the initiator receives the response, it needs to carry out corresponding processing as follows:
1、如果在该应答到来之前IP地址又发生了改变,不对该应答作任何处理,发送一个新的UPDATE_SA_ADDRESSES请求;1. If the IP address changes before the response arrives, do not process the response and send a new UPDATE_SA_ADDRESSES request;
2、如果应答包含UNACCEPTABLE_ADDRESSES通告载荷,发起方可以选取其他的地址再重新交换,或继续使用现在的地址,或断开连接。2. If the response contains an UNACCEPTABLE_ADDRESSES notification payload, the initiator can select another address and re-exchange, or continue to use the current address, or disconnect.
在MOBIKE协议中,还包括返回路由可达性检查(Return Routability Check)功能,具体为:无论发起方还是响应方,都可以有选择的来证实使用现在的地址对方是否能够收到数据包。返回路由可达性检查可在更新IPsec SAs之前或之后,或是在正常连接期间实行。在默认情况下,完成IPsec SAs的更新之后需要进行返回路由可达性检查。一方发起一个IKE信息交换请求,包含着一个cookie2通告载荷;另一方在收到该信息交换请求后,发送信息交换应答,复制收到的cookie2通告载荷并包含在信息交换应答中;发起方收到信息交换应答后,检查收到的cookie2通告载荷是否与自己发送的完全相同,从而完成返回路由可达性检查。In the MOBIKE protocol, it also includes the function of return routing reachability check (Return Routability Check), specifically: both the initiator and the responder can selectively verify whether the other party can receive the data packet using the current address. Return route reachability checks can be performed before or after updating IPsec SAs, or during normal connections. By default, a return route reachability check is required after updating IPsec SAs. One party initiates an IKE information exchange request, which contains a cookie2 advertisement payload; the other party sends an information exchange response after receiving the information exchange request, copies the received cookie2 advertisement payload and includes it in the information exchange response; the initiator receives After the information exchange response, check whether the received cookie2 advertisement payload is exactly the same as the one sent by itself, so as to complete the return route reachability check.
介绍了MOBIKE协议后,下面将对移动节点的网络切换和SA地址更新过程进行描述。After introducing the MOBIKE protocol, the network switching and SA address updating process of the mobile node will be described below.
移动节点在外部网络的切换可以分为两种情况:The handover of the mobile node in the external network can be divided into two situations:
同类网络间的切换,所述的同类网络间的切换是指移动节点从一个IPv4外部网络漫游至另一个IPv4外部网络,或从一个IPv6外部网络漫游至另一个IPv6外部网络;Handover between similar networks, the said handover between similar networks refers to roaming of the mobile node 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外部网络。The handover between heterogeneous networks refers to the roaming of the mobile node from an IPv4 external network to an IPv6 external network, or from an IPv6 external network to an IPv4 external network.
另外,移动节点从IPv6内部网络漫游至外部网络可分为:移动到IPv4外部网络和移动IPv6外部网络两种情况。In addition, roaming of a mobile node from an IPv6 internal network to an external network can be divided into two cases: moving to an IPv4 external network and moving to an IPv6 external network.
下面分别就各种情况下移动节点的配置和SA地址更新进行说明。The following describes the configuration of the mobile node and the update of the SA address in various situations.
(一)移动节点位于内部网络(1) The mobile node is located in the internal network
移动节点位于内部网络,如果不在家乡网络中,通过标准的移动IPv6与VPN内部家乡代理和通信节点进行通信。位于内部网络中的移动节点在移动过程中,当IP地址发生了变化时,则需要进行的处理包括:The mobile node is located in the internal network. If it is not in the home network, it communicates with the home agent and the communication node inside the VPN through standard mobile IPv6. During the moving process of the mobile node in the internal network, when the IP address changes, the processing that needs to be performed includes:
(1)立即停止与VPN内部其它节点的通信,如果获得了IPv4转交地址,则确定移动节点此时位于一个IPv4外部网络中,开始使用该IPv4转交地址与VPN网关进行支持MOBIKE的IKE协商,建立IPsec隧道;(1) Immediately stop communication with other nodes inside the VPN, if the IPv4 care-of address is obtained, then determine that the mobile node is located in an IPv4 external network at this time, start using the IPv4 care-of address to carry out IKE negotiation supporting MOBIKE with the VPN gateway, and establish IPsec tunnel;
(2)移动节点使用VPN网关生成的VPN-TIA作为内部MIPv6转交地址通过IPsec隧道向i-HA(内部家乡代理)发送注册请求,在收到注册应答后通过建立的IPsec隧道与内部网络节点通信;(2) The mobile node uses the VPN-TIA generated by the VPN gateway as the internal MIPv6 care-of address to send a registration request to the i-HA (internal home agent) through the IPsec tunnel, and communicates with the internal network node through the established IPsec tunnel after receiving the registration response ;
(3)如果移动节点获得了IPv6转交地址,利用域名解析的方式间接查询VPN网关的IPv6地址,具体查询过程前面已经描述,此处不再描述;(3) If the mobile node obtains the IPv6 care-of address, it uses domain name resolution to indirectly query the IPv6 address of the VPN gateway. The specific query process has been described above and will not be described here;
(4)在执行步骤(3)的同时,移动节点还需要向VPN内部家乡代理发送一个标准的移动IPv6注册请求;(4) While performing step (3), the mobile node also needs to send a standard mobile IPv6 registration request to the home agent inside the VPN;
(5)移动节点根据是否收到相应的移动IPv6注册应答进行相应的通信处理;(5) The mobile node performs corresponding communication processing according to whether it receives the corresponding mobile IPv6 registration response;
(51)如果移动节点收到对应步骤(4)中的移动IPv6注册请求的移动IPv6注册应答,则确定移动节点目前所在的网络仍是VPN内部网络,这样,在完成注册更新后,移动节点可以使用新的IPv6转交地址与VPN内部节点通信;(51) If the mobile node receives the mobile IPv6 registration response of the mobile IPv6 registration request in the corresponding step (4), then it is determined that the current network of the mobile node is still the VPN internal network, and like this, after completing the registration update, the mobile node can Use the new IPv6 care-of address to communicate with VPN internal nodes;
(52)如果没有收到对应步骤(4)中的移动IPv6注册请求的移动IPv6注册应答,并且查询VPN网关的IPv6地址成功,此时移动节点应当是位于一个IPv6外部网络,使用新的IPv6地址与VPN网关进行支持MOBIKE的IKE协商,建立IPsec隧道;(52) If the mobile IPv6 registration response of the mobile IPv6 registration request in the corresponding step (4) is not received, and the IPv6 address of the VPN gateway is inquired successfully, the mobile node should be located in an IPv6 external network and use a new IPv6 address Carry out IKE negotiation supporting MOBIKE with the VPN gateway to establish an IPsec tunnel;
在步骤(52)中,具体的建立IPsec隧道的过程为:移动节点使用VPN网关生成的VPN-TIA作为内部移动IPv6转交地址,通过IPsec隧道向内部家乡代理发送注册请求,在收到注册应答后通过建立的IPsec隧道与内部网络节点通信。In step (52), the specific process of establishing an IPsec tunnel is: the mobile node uses the VPN-TIA generated by the VPN gateway as the internal mobile IPv6 care-of address, sends a registration request to the internal home agent through the IPsec tunnel, and after receiving the registration response Communicate with internal network nodes through the established IPsec tunnel.
(二)移动节点位于外部网络(2) The mobile node is located in the external network
移动节点在外部网络时,建立了IPsec隧道,通过IPsec隧道与VPN内部节点进行通信。移动节点位于IPv4外部网络和位于IPv6外部网络所采取的配置不尽相同,相比之下,移动节点位于IPv6外部网络需要进行IPv6in IPv4隧道封装,更为复杂。When the mobile node is in the external network, it establishes an IPsec tunnel, and communicates with the VPN internal node through the IPsec tunnel. The configuration of the mobile node in the IPv4 external network is different from that in the IPv6 external network. In contrast, the mobile node in the IPv6 external network needs to perform IPv6in IPv4 tunnel encapsulation, which is more complicated.
下面分别就移动节点在IPv4外部网络的漫游和在IPv6外部网络的漫游分别进行说明。The roaming of the mobile node on the IPv4 external network and the roaming on the IPv6 external network will be described separately below.
1、移动节点位于IPv4外部网络1. The mobile node is located in the IPv4 external network
移动节点位于IPv4外部网络时,通过获得的IPv4转交地址作为隧道本端的地址,与VPN网关进行支持MOBIKE的IKE协商,建立IPsec隧道,通过IPsec隧道与VPN内部节点进行通信。移动节点在IPv4外部网络中移动,IP地址发生变化时,需要进行的处理包括:When the mobile node is located in the IPv4 external network, the obtained IPv4 care-of address is used as the address of the local end of the tunnel, and the IKE negotiation supporting MOBIKE is performed with the VPN gateway 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 processing that needs to be performed includes:
(1)立即停止与VPN内部节点的通信,如果获得了IPv4转交地址,说明移动节点进入了另一个IPv4外部网络,开始初始化MOBIKE,进行SA地址更新,更新后SA的端点地址为移动节点新的IPv4转交地址和VPN网关的IPv4地址;(1) Immediately stop the communication with the VPN internal node. If the IPv4 care-of address is obtained, it means that the mobile node has entered another IPv4 external network, and starts to initialize MOBIKE to update the SA address. After the update, the endpoint address of SA is the new mobile node IPv4 care-of address and IPv4 address of the VPN gateway;
(2)如果移动节点获得了IPv6转交地址,利用域名解析的方式间接查询VPN网关的IPv6地址;(2) If the mobile node has obtained the IPv6 care-of address, use domain name resolution to indirectly query the IPv6 address of the VPN gateway;
(3)在执行步骤(2)的同时,移动节点还需要向VPN内部家乡代理发送一个标准的移动IPv6注册请求;(3) While performing step (2), the mobile node also needs to send a standard mobile IPv6 registration request to the home agent inside the VPN;
(4)移动节点根据是否返回相应的注册应答进行相应的通信处理;(4) The mobile node performs corresponding communication processing according to whether the corresponding registration response is returned;
(41)如果移动节点收到对应步骤(3)中的移动IPv6注册请求对应的移动IPv6注册应答,则确定移动节点现在进入了VPN内部网络,在完成注册更新后,移动节点可以使用新的IPv6转交地址与VPN内部节点通信;(41) If the mobile node receives the mobile IPv6 registration response corresponding to the mobile IPv6 registration request in the corresponding step (3), it is determined that the mobile node has entered the VPN internal network now, and after completing the registration update, the mobile node can use the new IPv6 The care-of address communicates with VPN internal nodes;
(42)如果没有收到对应步骤(3)中的移动IPv6注册请求对应的MIPv6(移动IPv6)注册应答,并且查询VPN网关的IPv6地址成功,此时移动节点位于一个IPv6外部网络,开始初始化MOBIKE,进行SA地址更新,更新后SA端点地址为移动节点新获得的IPv6转交地址和VPN网关的IPv6地址;(42) If the MIPv6 (mobile IPv6) registration response corresponding to the mobile IPv6 registration request in the corresponding step (3) is not received, and the IPv6 address of the VPN gateway is inquired successfully, the mobile node is located in an IPv6 external network at this time, and starts to initialize MOBIKE , update the SA address, the updated SA endpoint address is the IPv6 care-of address newly obtained by the mobile node and the IPv6 address of the VPN gateway;
在执行步骤(42)完成IKE SA和IPsec SAs地址更新后,移动节点继续通过IPsec隧道与VPN内部节点通信。After executing step (42) to complete the IKE SA and IPsec SAs address update, the mobile node continues to communicate with the VPN interior node through the IPsec tunnel.
针对所述SA地址需要说明的是:由于移动节点从IPv4外部网络移动至IPv6外部网络,移动节点的目的地址和源地址(也就是SA的端点地址)都发生改变,移动节点将它们更新为IPv6地址;对于VPN网关,是在收到UPDATE_SA_ADDRESSES(更新安全联盟地址)通告载荷后根据IP包的地址进行更新,因此VPN网关认为SA的端点地址发生了变化,将更新为移动节点和VPN网关的IPv6地址。What needs to be explained for the SA address is: since the mobile node moves from the IPv4 external network to the IPv6 external network, the destination address and source address of the mobile node (that is, the endpoint address of SA) have changed, and the mobile node updates them to IPv6 Address; for the VPN gateway, it is updated according to the address of the IP packet after receiving the UPDATE_SA_ADDRESSES (updated security association address) notification load, so the VPN gateway thinks that the endpoint address of the SA has changed, and will update it to the IPv6 of the mobile node and the VPN gateway address.
2、移动节点位于IPv6外部网络2. The mobile node is located in the IPv6 external network
移动节点位于IPv6外部网络时,获得IPv6转交地址,通过域名解析方式查询到VPN网关的IPv6地址。接着发起支持MOBIKE的IKE协商,建立IPsec隧道。通过IPsec隧道与VPN内部节点进行通信。移动节点在IPv6外部网络中移动,IP地址发生变化时,需要进行的处理包括:When the mobile node is located in the IPv6 external network, it obtains the IPv6 care-of address, and queries the IPv6 address of the VPN gateway through domain name resolution. Then initiate IKE negotiation supporting MOBIKE to establish an IPsec tunnel. Communicate with VPN internal nodes through IPsec tunnels. When the mobile node moves in the IPv6 external network and the IP address changes, the processing that needs to be performed includes:
(1)立即停止与VPN内部节点的通信,如果获得了IPv4转交地址,说明移动节点进入了另一个IPv4外部网络,开始初始化MOBIKE,进行SA地址更新,更新后SA的端点地址为移动节点新的IPv4转交地址和VPN网关的IPv4地址;(1) Immediately stop the communication with the VPN internal node. If the IPv4 care-of address is obtained, it means that the mobile node has entered another IPv4 external network, and starts to initialize MOBIKE to update the SA address. After the update, the endpoint address of SA is the new mobile node IPv4 care-of address and IPv4 address of the VPN gateway;
(2)如果移动节点获得了IPv6转交地址,利用域名解析的方式间接查询VPN网关的IPv6地址;(2) If the mobile node has obtained the IPv6 care-of address, use domain name resolution to indirectly query the IPv6 address of the VPN gateway;
(3)与步骤(2)同时向VPN内部家乡代理发送一个标准的移动IPv6注册请求;(3) send a standard mobile IPv6 registration request to the VPN internal home agent simultaneously with step (2);
(4)移动节点根据是否返回注册应答的情况进行相应的通信处理;(4) The mobile node performs corresponding communication processing according to whether the registration response is returned;
(41)如果移动节点收到对应步骤(3)中的移动IPv6注册请求对应的移动IPv6注册应答,则确定移动节点现在进入了VPN内部网络,在完成注册更新后,移动节点能够使用新的IPv6转交地址与VPN内部节点通信;(41) If the mobile node receives the mobile IPv6 registration response corresponding to the mobile IPv6 registration request in the corresponding step (3), it is determined that the mobile node has entered the VPN internal network now, and after completing the registration update, the mobile node can use the new IPv6 The care-of address communicates with VPN internal nodes;
(42)如果没有收到对应步骤(3)中的移动IPv6注册请求对应的MIPv6注册应答,并且查询VPN网关的IPv6地址成功,此时移动节点位于一个IPv6外部网络,开始初始化MOBIKE,进行SA地址更新,更新后的SA端点地址为移动节点新获得的IPv6转交地址和VPN网关的IPv6地址;(42) If the MIPv6 registration response corresponding to the mobile IPv6 registration request in the corresponding step (3) is not received, and the IPv6 address of the VPN gateway is successfully inquired, the mobile node is located in an IPv6 external network, and the MOBIKE is initialized to perform the SA address Update, the updated SA endpoint address is the IPv6 care-of address newly obtained by the mobile node and the IPv6 address of the VPN gateway;
在执行所述步骤(42)完成IKE SA和IPsec SAs地址更新后,移动节点继续通过IPsec隧道与VPN内部节点通信。After performing said step (42) to complete 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地址时,可能会受到一些来自网络中第三方的安全威胁。MOBIKE协议在考虑安全因素的情况下设计了两种保障机制:In the present invention, corresponding security issues need to be considered in the process of updating the SA address, specifically: when updating the SA address, some security threats from third parties in the network may be encountered. The MOBIKE protocol has designed two guarantee mechanisms in consideration of security factors:
第一,返回路由可达性检查(“return routability”check)可以用来检查双方节点提供的地址的可达性,这避免了大量的通信流量传入第三方;First, the return routing reachability check ("return routability" check) can be used to check the reachability of the addresses provided by both nodes, which avoids a large amount of communication traffic from being transmitted to the third party;
第二,NAT禁止(NAT prohibition)使得IP地址不能被任何NAT,IPv4/v6转换,或其它类似设备修改。Second, NAT prohibition (NAT prohibition) makes the IP address cannot be modified by any NAT, IPv4/v6 translation, or other similar devices.
这一特性主要使用在管理员已经知道两节点之间不存在任何NAT设备,所以任何对数据包的修改都认为是一种攻击。This feature is mainly used when the administrator already knows that there is no NAT device between the two nodes, so any modification of the data packet is considered an attack.
在本发明中,在每次SA地址更新之后,还未恢复数据流的通信之前,加入返回路由可达性检查,确保更新后的地址是安全可路由的。在移动节点进入IPv4外部网络或是IPv6外部网络中,认为移动节点和VPN网关之间不存在任何必要的NAT设备,因此,可以使用NAT禁止来保护数据包不被修改。In the present invention, after each update of the SA address, before the communication of the data flow is resumed, a return route reachability check is added to ensure that the updated address is safe and routable. When 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.
综上所述,本发明利用MOBIKE协议更新SA的地址项,配合VPN网关指派给移动节点VPN-TIA地址的方法,成功解决了现有技术中提及的两个问题。并提出在IPv4向IPv6过渡时期,采用IPv4为骨干网络的IPv4-v6混合环境下,移动节点实现接入VPN服务,以及保持正常通信前提下网络间切换。To sum up, the present invention uses the MOBIKE protocol to update the address item of the SA, cooperates with the method of assigning the VPN-TIA address to the mobile node by the VPN gateway, and successfully solves the two problems mentioned in the prior art. It is also proposed that during the transition period from IPv4 to IPv6, under the IPv4-v6 mixed environment using IPv4 as the backbone network, mobile nodes can access VPN services and switch between networks under the premise of maintaining normal communication.
以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明保护范围应该以权利要求保护范围为准。The above is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of changes or modifications within the technical scope disclosed in the present invention. Replacement should be covered within the protection scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of claims.
Claims (19)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2006100584520A CN101043411B (en) | 2006-03-24 | 2006-03-24 | Method and system for realizing mobile VPN in hybrid network |
PCT/CN2007/000446 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 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2006100584520A CN101043411B (en) | 2006-03-24 | 2006-03-24 | Method and system for realizing mobile VPN in hybrid network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101043411A CN101043411A (en) | 2007-09-26 |
CN101043411B true CN101043411B (en) | 2012-05-23 |
Family
ID=38540796
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2006100584520A Expired - Fee Related CN101043411B (en) | 2006-03-24 | 2006-03-24 | Method and system for realizing mobile VPN in hybrid network |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN101043411B (en) |
WO (1) | WO2007109963A1 (en) |
Families Citing this family (26)
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 |
WO2011135405A1 (en) | 2010-04-26 | 2011-11-03 | Nokia Corporation | Method and apparatus for synthesized address detection |
CN102347993B (en) * | 2010-07-28 | 2014-03-26 | 中国移动通信集团公司 | Network communication method and equipment |
CN102469063B (en) * | 2010-11-03 | 2016-03-30 | 中兴通讯股份有限公司 | Routing protocol security alliance management method, Apparatus and system |
CN102469449B (en) * | 2010-11-15 | 2016-03-30 | 上海贝尔股份有限公司 | Routing optimization method in an IPv6 low-consumption wireless territory net |
EP2649766A4 (en) * | 2010-12-11 | 2014-06-04 | Hewlett Packard Development Co | SEARCH FOR COMPUTER NETWORK N UDS |
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 |
CN103475646A (en) * | 2013-08-23 | 2013-12-25 | 天津汉柏汉安信息技术有限公司 | Method for preventing hostile ESP (electronic stability program) message attack |
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 |
CN112437467A (en) * | 2020-10-23 | 2021-03-02 | 中国人民解放军61062部队 | Ad hoc network tunnel communication method without home agent |
CN113438108B (en) * | 2021-06-22 | 2022-11-29 | 京信网络系统股份有限公司 | Communication acceleration method, device, base station and computer readable storage medium |
CN115567484B (en) * | 2021-06-30 | 2024-11-26 | 中国电信股份有限公司 | Data forwarding method, network side edge router and network system |
CN115309503B (en) * | 2022-07-27 | 2025-10-03 | 北京金山云网络技术有限公司 | Virtual machine hot migration method and device, electronic device and storage medium |
CN115296988B (en) * | 2022-10-09 | 2023-03-21 | 中国电子科技集团公司第三十研究所 | Method for realizing IPSec gateway dynamic networking |
CN116107229A (en) * | 2023-03-02 | 2023-05-12 | 常熟理工学院 | ZigBee-based intelligent home monitoring method, system and remote terminal for Internet of things |
Citations (4)
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 |
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 implementing hybrid site hybrid backbone network virtual private network |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005086256A (en) * | 2003-09-04 | 2005-03-31 | Kddi Corp | Tunnel gateway device |
CN100413289C (en) * | 2005-11-25 | 2008-08-20 | 清华大学 | The Method of Realizing IPv6 High Performance Interconnection Based on P2P on IPv4 |
-
2006
- 2006-03-24 CN CN2006100584520A patent/CN101043411B/en not_active Expired - Fee Related
-
2007
- 2007-02-08 WO PCT/CN2007/000446 patent/WO2007109963A1/en active Application Filing
Patent Citations (4)
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 |
CN1710877A (en) * | 2004-06-16 | 2005-12-21 | 华为技术有限公司 | System and method for implementing hybrid site hybrid backbone network virtual private network |
Non-Patent Citations (1)
Title |
---|
JP特开2005-86256A 2005.05.31 |
Also Published As
Publication number | Publication date |
---|---|
CN101043411A (en) | 2007-09-26 |
WO2007109963A1 (en) | 2007-10-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101043411B (en) | Method and system for realizing mobile VPN in hybrid network | |
EP2466985B1 (en) | Network based on identity identifier and location separation | |
AU2004244296B2 (en) | Arrangement for traversing an IPv4 network by IPv6 mobile nodes | |
JP4527721B2 (en) | Apparatus and method for improving remote LAN connectivity using tunneling | |
CN1778077B (en) | Method for inter-subnet mobility on campus network | |
KR101785760B1 (en) | Method and network element for enhancing ds-lite with private ipv4 reachability | |
JP2011515945A (en) | Method and apparatus for communicating data packets between local networks | |
CN102025658B (en) | Method and system for realizing intercommunication between identity network and internet | |
CN102025600B (en) | Method, system and router for transmitting and receiving data | |
KR20140099598A (en) | Method for providing service of mobile vpn | |
WO2007022683A1 (en) | A method for realizing the communication between mobile ipv6 node and ipv4 communication partner | |
WO2011032447A1 (en) | Method, system and communication terminal for implementing inter-communication between new network and internet | |
WO2011032449A1 (en) | Method and system for implementing network intercommunication | |
JP6386166B2 (en) | Translation method and apparatus between IPv4 and IPv6 | |
CN101005698A (en) | Method and system for optimizing route in moving IPv6 | |
JP3709816B2 (en) | Mobile IP route control method | |
JP2000224233A (en) | Mobile communication system | |
CN1984066B (en) | Apparatus and method for realizing roaming of nodes in internet protocol version 4 network | |
US20090147759A1 (en) | Method and apparatus for supporting mobility of node using layer 2/layer 3 addresses | |
WO2016078235A1 (en) | Network translation realization method and apparatus for transiting to ipv6 on the basis of pant | |
CN1870633B (en) | Method for supporting mobile IPv4 through dual-stack mobile IPv6 nodes | |
TWI395446B (en) | Cross-layer address mapping method for proxy mobile internet protocal | |
Tsao | Enhanced GTP: an efficient packet tunneling protocol for General Packet Radio Service | |
KR20040063830A (en) | Mobile communication system and method capable of allowing shortest communications path | |
CN100505754C (en) | A Method for Realizing Dynamic 4-in-6 Tunnel Establishment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20120523 Termination date: 20160324 |