[go: up one dir, main page]

CN1582051A - Method for realizing network layer switching in mobile IP - Google Patents

Method for realizing network layer switching in mobile IP Download PDF

Info

Publication number
CN1582051A
CN1582051A CN 200410042316 CN200410042316A CN1582051A CN 1582051 A CN1582051 A CN 1582051A CN 200410042316 CN200410042316 CN 200410042316 CN 200410042316 A CN200410042316 A CN 200410042316A CN 1582051 A CN1582051 A CN 1582051A
Authority
CN
China
Prior art keywords
mobile node
base station
network
address
link
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.)
Granted
Application number
CN 200410042316
Other languages
Chinese (zh)
Other versions
CN1301035C (en
Inventor
夏寅贲
田霖
张大伟
李未
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beihang University
Original Assignee
Beihang University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beihang University filed Critical Beihang University
Priority to CNB2004100423163A priority Critical patent/CN1301035C/en
Publication of CN1582051A publication Critical patent/CN1582051A/en
Application granted granted Critical
Publication of CN1301035C publication Critical patent/CN1301035C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

本发明公开了一种移动IP中实现网络层切换的方法,关键在于,在移动节点与其当前所属基站之间建立用于通信的双链路,该方法包括以下步骤:a.网络层确定需要进行切换后,断开所建立的双链路中的一条,在当前移动节点与要切换到的目标基站之间建立一条新的链路连接;b.移动节点通过新建的链路向家乡代理进行注册,并进行网络层切换;c.注册完成后,断开当前移动节点与原基站之间的另一条链路连接,并在当前移动节点与要切换到的目标基站之间建立链路连接。采用该方法能够保证在移动节点切换过程中通讯不中断,从而提高了切换速度,降低了切换过程中的丢包率。

Figure 200410042316

The invention discloses a method for realizing network layer switching in mobile IP. The key point is to establish a dual link for communication between a mobile node and its current base station. The method includes the following steps: a. After handover, disconnect one of the established dual links, and establish a new link connection between the current mobile node and the target base station to be handed over to; b. The mobile node registers with the home agent through the newly created link , and perform a network layer handover; c. After the registration is completed, disconnect another link connection between the current mobile node and the original base station, and establish a link connection between the current mobile node and the target base station to be handed over to. Adopting the method can ensure that the communication is not interrupted during the switching process of the mobile node, thereby increasing the switching speed and reducing the packet loss rate during the switching process.

Figure 200410042316

Description

移动IP中实现网络层切换的方法The Method of Realizing Network Layer Handover in Mobile IP

技术领域technical field

本发明涉及移动IP切换技术,特别是指一种在移动IP中实现网络层切换的方法。The invention relates to mobile IP switching technology, in particular to a method for realizing network layer switching in mobile IP.

背景技术Background technique

随着因特网(Internet)的迅猛普及、便携设备的大量使用、无线通信设备的快速发展、以及人们对网络依赖性的增加,移动用户都希望能以一种更加灵活的方式随时随地的访问企业网络资源和Internet资源,也就是说,用户产生了对主机移动性的需求,希望主机在改变其所处位置时无需中断已有的通信连接。为此,因特网工程任务组(IETF)定义了移动IP(Mobile IP),移动IP是一个支持主机移动的网络层解决方案,其主要思路是:在不更改现有网络路由方式和其它固定主机软硬件的基础上,提供一种位置跟踪和IP数据报文转发机制,当某主机移动时,发向该主机的IP数据报文可以安全转发到该主机当前的位置。With the rapid popularization of the Internet, the extensive use of portable devices, the rapid development of wireless communication devices, and the increase in people's dependence on the network, mobile users hope to access the corporate network anytime, anywhere in a more flexible way. Resources and Internet resources, that is to say, the user has a demand for the mobility of the host, hoping that the host does not need to interrupt the existing communication connection when changing its location. For this reason, the Internet Engineering Task Force (IETF) has defined Mobile IP (Mobile IP). Mobile IP is a network layer solution that supports host mobility. On the basis of hardware, it provides a location tracking and IP data message forwarding mechanism. When a host moves, the IP data message sent to the host can be safely forwarded to the current location of the host.

移动IP是一种在全球Internet上提供移动功能的方案,使移动节点(MN)在切换链路时仍可保持正在进行的通信。移动IP所提供的IP路由机制,使移动节点能以一个永久的IP地址连接到任何链路上。Mobile IP is a scheme that provides mobile functions on the global Internet, so that mobile nodes (MN) can still maintain ongoing communication when switching links. The IP routing mechanism provided by mobile IP enables mobile nodes to connect to any link with a permanent IP address.

移动IP技术的推出,使移动用户在跨网络移动和漫游中,实现了不用修改计算机原来的IP地址仍可继续使用原网络中一切资源的要求,它对用户屏蔽了移动中IP接入网络变化所带来的影响。简单的说,移动IP就是实现了移动用户在网络中的平滑移动与漫游功能。The introduction of mobile IP technology enables mobile users to continue to use all resources in the original network without modifying the original IP address of the computer during cross-network movement and roaming. It shields users from changes in IP access networks during movement the impact. Simply put, Mobile IP is to realize the smooth movement and roaming functions of mobile users in the network.

图1为移动IP中各实体组成的基本网络拓扑结构图,图中所示的移动节点10是指一个移动的计算机或路由器,也可称为移动主机(MH),该移动节点10移动后仍能用原来的IP地址进行通信;图中所示的通信对端(CN)11为与移动节点10通信的计算机,也可称为通信对端主机(CH)。参见图1所示,针对移动节点10而言,移动节点10的归属网络称为家乡网络(HN),移动节点10处于漫游状态时所在的网络称为外地网络(FN),图1中包含两个外地网络。分配给移动节点10的永久IP地址称为家乡地址(HomeAddress),该地址不随节点位置的变化而变化;在家乡网络中,移动节点10家乡网络的链路称为家乡链路(HL);运行在移动节点10家乡网络上的路由器称为家乡代理(HA,HomeAgent)12,负责保存移动节点当前的位置信息,同时还负责截获发送给移动节点的报文,并将报文以隧道方式转发至移动节点当前的位置。在外地网络中,移动节点10所在的外地网络的链路称为外地链路(FL);运行在外地网络上的路由器称为外地代理(FA),是移动节点在外地网络中发送报文的缺省路由器,有时也提供隧道解封装服务,图1中包含分别属于外地网络1和外地网络2的外部代理13和外部代理14。Fig. 1 is the basic network topological structure figure that each entity is formed in the mobile IP, and the mobile node 10 shown in the figure refers to a mobile computer or router, also can be referred to as mobile host (MH), this mobile node 10 still remains after moving. The original IP address can be used for communication; the correspondent (CN) 11 shown in the figure is a computer communicating with the mobile node 10, and can also be called a correspondent host (CH). 1, for the mobile node 10, the home network of the mobile node 10 is called a home network (HN), and the network where the mobile node 10 is in a roaming state is called a foreign network (FN). foreign network. The permanent IP address assigned to mobile node 10 is called home address (HomeAddress), and this address does not change with the change of node position; In the home network, the link of mobile node 10 home network is called home link (HL); The router on the home network of the mobile node 10 is called a home agent (HA, HomeAgent) 12, which is responsible for saving the current location information of the mobile node, and is also responsible for intercepting the message sent to the mobile node, and forwarding the message to the The current location of the mobile node. In the foreign network, the link of the foreign network where the mobile node 10 is located is called a foreign link (FL); the router running on the foreign network is called a foreign agent (FA), which is the agent for the mobile node to send messages in the foreign network. The default router also provides tunnel decapsulation service sometimes, and Fig. 1 includes foreign agent 13 and foreign agent 14 belonging to foreign network 1 and foreign network 2 respectively.

仍以图1为例,当移动节点10从家乡网络漫游到外地网络1或从外地网络1漫游到外地网络2时,移动节点10就会发生网络切换,通常的切换过程是:移动节点10根据当前检测到的信息发现自身进入新的网络后,移动节点10会通过接收外地代理发送的代理广播消息、或通过动态主机配置协议(DHCP)等方式获得一个转交地址,以此转交地址标识移动节点10当前所处的位置。该转交地址可以是外地代理转交地址,即外地代理的IP地址;也可以是配置转交地址,即外地网络上分配的一个IP地址。获得转交地址后,移动节点10再通过外地代理提供的路由转发功能向自己的家乡代理进行注册,通知家乡代理自己当前的转交地址。也就是说,每当移动节点的位置发生变化时,都要重新向家乡代理进行注册,更新其位置信息,以使家乡代理能随时获知移动节点当前的位置信息。Still taking Figure 1 as an example, when the mobile node 10 roams from the home network to the foreign network 1 or from the foreign network 1 to the foreign network 2, the mobile node 10 will undergo network handover, and the usual handover process is: the mobile node 10 according to After the currently detected information finds that it has entered a new network, the mobile node 10 will obtain a care-of address by receiving the agent broadcast message sent by the foreign agent, or by means of Dynamic Host Configuration Protocol (DHCP), and identify the mobile node with this care-of address 10 Current location. The care-of address may be a foreign agent care-of address, that is, the IP address of the foreign agent; it may also be a configured care-of address, that is, an IP address allocated on the foreign network. After obtaining the care-of address, the mobile node 10 registers with its home agent through the routing and forwarding function provided by the foreign agent, and notifies the home agent of its current care-of address. That is to say, whenever the location of the mobile node changes, it must re-register with the home agent and update its location information, so that the home agent can know the current location information of the mobile node at any time.

由于移动IP是网络层解决方案,上面所述的切换过程全部是在网络层进行的,但实际上,移动节点漫游过程中在不同网络之间的切换主要发生在两个层面上:一是低层物理网络上的切换,包括物理层和链路层上的处理;另一个是在网络层上根据移动IP协议进行注册、重新配置路由等一系列操作。在标准移动IP协议中,只有当移动节点在低层的切换完成,即断开与原网络的连接后,才开始进行网络层的切换,如此,会使通讯中断,造成丢包。并且,如果通讯中断时间过长,会对实时性要求较高的应用产生影响,使得漫游对上层应用不透明,影响移动IP的使用效果。Since Mobile IP is a solution at the network layer, the above-mentioned handover process is all carried out at the network layer, but in fact, the handover between different networks during the roaming process of the mobile node mainly occurs at two levels: one is the lower layer The handover on the physical network includes the processing on the physical layer and the link layer; the other is a series of operations such as registration and reconfiguration of routes on the network layer according to the Mobile IP protocol. In the standard mobile IP protocol, only when the mobile node has completed the handover at the lower layer, that is, after disconnecting from the original network, does the handover at the network layer begin, which will interrupt the communication and cause packet loss. Moreover, if the communication interruption time is too long, it will affect applications with high real-time requirements, making roaming opaque to upper-layer applications and affecting the use effect of mobile IP.

要想解决切换时延对应用所产生的影响,就需要实现无缝切换。所谓无缝切换包括两个方面:快速切换与平滑切换。其中,快速切换的目的是减少或消除移动节点建立新通信路径的延迟;平滑切换的目的是减少数据包的丢失率。In order to solve the impact of handover delay on applications, it is necessary to realize seamless handover. The so-called seamless switching includes two aspects: fast switching and smooth switching. Among them, the purpose of fast handover is to reduce or eliminate the delay in establishing a new communication path for the mobile node; the purpose of smooth handover is to reduce the loss rate of data packets.

目前,针对快速切换和平滑切换,业界分别提出了很多不同的解决方案:At present, the industry has proposed many different solutions for fast switching and smooth switching:

在解决快速切换问题上,主要思想是:将家乡代理的功能分布化,实施本地注册,减少注册时间。主要包括两类方式:层次移动管理和基于特定主机路由的移动管理,其中,层次移动管理的方式包括:MIP-RR、IDMP等解决方案;基于特定主机路由的移动管理的方式包括:蜂窝IP、HAWAII等解决方案。上述方式都是把无线接入网划分为一个个的无线域,在无线域内实现注册的本地化。两种方式的不同就在于:无线域内分组传输的协议,前一种方式使用常规的移动IP协议,后一种方式使用基于特定主机路由的协议。In solving the fast switching problem, the main idea is to distribute the functions of the home agent, implement local registration, and reduce the registration time. It mainly includes two types of methods: hierarchical mobility management and mobility management based on specific host routing. Among them, the hierarchical mobility management methods include: MIP-RR, IDMP and other solutions; the mobility management methods based on specific host routing include: cellular IP, HAWAII and other solutions. In the above methods, the wireless access network is divided into individual wireless domains, and localization of registration is realized in the wireless domains. The difference between the two methods lies in: the protocol for packet transmission in the wireless domain, the former method uses the conventional mobile IP protocol, and the latter method uses the protocol based on specific host routing.

在平滑切换方面,需要分组缓存转发机制,分为单播转发和组播转发。单播转发是指:当前基站代理即外地代理在切换过程中缓存分组数据报文,在切换后转发给新的基站代理,但新旧基站代理之间的分组转发可能需要较长的时间;而组播转发则采用组播协议转发缓存的分组数据报文,例如每个移动节点有一个组播地址,当移动节点向新基站代理注册时,该新基站代理要求相邻的基站代理加入组播组,预先缓存分组,但该方案存在组播地址冲突和邻居需要手工配置的问题,如果采用域外部代理(DFA)给移动节点分配组播地址的方式来解决组播地址冲突的问题,但同样存在缺乏智能的邻居发现机制和组播状态的开销问题。In terms of smooth switching, a packet buffer forwarding mechanism is required, which is divided into unicast forwarding and multicast forwarding. Unicast forwarding means: the current base station agent, that is, the foreign agent, caches packet data packets during the handover process and forwards them to the new base station agent after handover, but the packet forwarding between the old and new base station agents may take a long time; Multicast forwarding uses the multicast protocol to forward the cached packet data packets. For example, each mobile node has a multicast address. When the mobile node registers with the new base station agent, the new base station agent requires the adjacent base station agent to join the multicast group. , to pre-cache packets, but this solution has problems of multicast address conflicts and neighbors needing to be manually configured. If a domain foreign agent (DFA) is used to assign multicast addresses to mobile nodes to solve the problem of multicast address conflicts, Lack of intelligent neighbor discovery mechanism and overhead of multicast state.

另外,上述方案中无论是实现快速切换还是实现平滑切换,都是局限于网络层的解决方案,虽然是力求缩短网络层切换的延迟时间,但实际上网络层切换的这段时间只是毫秒级的,而通讯中断过程是秒级的,如果单纯缩短网络层的切换时间对提高整个切换速度的影响并不明显。因此,又有一些研究机构提出将链路层和网络层相结合,利用链路层来触发网络层进行预注册,使得在二层切换完成的同时也完成三层切换,从而实现快速切换。这种方案主要有:Ericsson提出的一个Internet草案--“移动IPv4中的快速切换”。该方案的主要思想是:当移动节点处于交叠区域时提前注册,利用原有的链路向新的外地代理进行注册。但由于该方案的实现还是基于单链路,三层切换和二层切换之间的时间配合就很重要,如果在完成网络层切换前原链路已经断开,那么,依然会引起通讯的中断,造成丢包。In addition, in the above schemes, whether it is to achieve fast switching or smooth switching, it is a solution limited to the network layer. Although it is trying to shorten the delay time of network layer switching, in fact, the time of network layer switching is only milliseconds. , and the communication interruption process is at the second level, if simply shortening the switching time of the network layer, the impact on improving the overall switching speed is not obvious. Therefore, some research institutes propose to combine the link layer and the network layer, and use the link layer to trigger the network layer to perform pre-registration, so that the layer-3 handover is also completed when the layer-2 handover is completed, thereby realizing fast handover. This kind of scheme mainly includes: An Internet draft proposed by Ericsson - "Fast Switching in Mobile IPv4". The main idea of this scheme is: when the mobile node is in the overlapping area, register in advance, and use the original link to register with the new foreign agent. However, since the implementation of this solution is still based on a single link, the time coordination between the Layer 3 handover and the Layer 2 handover is very important. If the original link is disconnected before the network layer handover is completed, the communication will still be interrupted. causing packet loss.

发明内容Contents of the invention

有鉴于此,本发明的主要目的在于提供一种移动IP中实现网络层切换的方法,能够保证在移动节点切换过程中通讯不中断,从而提高了切换速度,降低了切换过程中的丢包率。In view of this, the main purpose of the present invention is to provide a method for implementing network layer handover in Mobile IP, which can ensure that the communication is not interrupted during the handover process of the mobile node, thereby improving the handover speed and reducing the packet loss rate in the handover process .

为达到上述目的,本发明的技术方案是这样实现的:In order to achieve the above object, technical solution of the present invention is achieved in that way:

一种移动IP中实现网络层切换的方法,在移动节点与其当前所属基站之间建立用于通信的双链路,该方法包括以下步骤:A method for implementing network layer handover in a mobile IP, establishing a dual link for communication between a mobile node and its current base station, the method comprising the following steps:

a.网络层确定需要进行切换后,断开所建立的双链路中的一条,在当前移动节点与要切换到的目标基站之间建立一条新的链路连接;a. After the network layer determines that handover is required, disconnect one of the established dual links, and establish a new link connection between the current mobile node and the target base station to be handed over to;

b.移动节点通过步骤a中新建的链路向家乡代理进行注册,并进行网络层切换;b. The mobile node registers with the home agent through the newly created link in step a, and performs network layer handover;

c.注册完成后,断开当前移动节点与原基站之间的另一条链路连接,并在当前移动节点与要切换到的目标基站之间建立链路连接。c. After the registration is completed, disconnect another link connection between the current mobile node and the original base station, and establish a link connection between the current mobile node and the target base station to be handed over to.

上述方案中,当移动节点从家乡网络切换到外地网络时,步骤b具体包括:In the above solution, when the mobile node switches from the home network to the foreign network, step b specifically includes:

b11.移动节点通过与目标基站之间建立的链路连接获得新的转交地址;b11. The mobile node obtains a new care-of address through the link connection established with the target base station;

b12.移动节点建立隧道,通过新建的链路向家乡代理发送注册请求;b12. The mobile node establishes a tunnel, and sends a registration request to the home agent through the newly established link;

b13.家乡代理收到注册请求后,建立通向该转交地址的隧道,发送注册应答,并发送代理地址解析协议ARP消息;b13. After receiving the registration request, the home agent establishes a tunnel leading to the care-of address, sends a registration response, and sends an agent address resolution protocol ARP message;

则步骤c所述注册完成为:移动节点收到家乡代理发来的注册应答。Then the completion of the registration in step c is: the mobile node receives the registration response sent by the home agent.

当移动节点从一个外地网络切换到另一外地网络时,步骤b具体包括:When the mobile node switches from one foreign network to another foreign network, step b specifically includes:

b21.移动节点通过与目标基站之间建立的链路连接获得新的转交地址;b21. The mobile node obtains a new care-of address through the link connection established with the target base station;

b22.移动节点获取转交地址后建立隧道,通过新建立的链路向家乡代理发送注册请求,且该注册请求中携带有保留原转交地址的指示;b22. The mobile node establishes a tunnel after obtaining the care-of address, and sends a registration request to the home agent through the newly established link, and the registration request carries an instruction to retain the original care-of address;

b23.家乡代理收到新的注册请求后保留原转交地址,同时存储注册请求中携带的新转交地址,并向移动节点发送注册应答;b23. After receiving the new registration request, the home agent retains the original care-of address, stores the new care-of address carried in the registration request, and sends a registration response to the mobile node;

b24.移动节点收到注册应答后,从移动节点与原基站之间保留的链路上发送取消注册请求;b24. After the mobile node receives the registration response, it sends a deregistration request from the link reserved between the mobile node and the original base station;

b25.家乡代理收到取消注册请求后,删除原转交地址,并向移动节点发送注册应答;b25. After receiving the deregistration request, the home agent deletes the original care-of address and sends a registration response to the mobile node;

则步骤c所述注册完成为:移动节点收到家乡代理删除原转交地址后发来的注册应答。Then the completion of the registration in step c is: the mobile node receives the registration response sent by the home agent after deleting the original care-of address.

当移动节点从外地网络切换回家乡网络时,步骤b具体包括:When the mobile node switches back to the home network from the foreign network, step b specifically includes:

b31.移动节点在家乡网络中发送免费ARP消息,并向家乡代理发送取消注册请求;b31. The mobile node sends a gratuitous ARP message in the home network, and sends a deregistration request to the home agent;

b32.家乡代理收到取消注册请求后,删除移动节点的转交地址和隧道,并向移动节点返回注册应答;b32. After receiving the deregistration request, the home agent deletes the care-of address and tunnel of the mobile node, and returns a registration response to the mobile node;

则步骤c所述注册完成为:移动节点收到家乡代理发来的注册应答后,删除与外地代理之间建立的隧道。Then the completion of the registration in step c is as follows: the mobile node deletes the tunnel established with the foreign agent after receiving the registration response sent by the home agent.

对于上述方案,在切换过程中,移动节点收到从不同链路发送过来的重复数据后,根据现有协议过滤一份重复数据。For the above solution, during the handover process, after receiving duplicate data sent from different links, the mobile node filters a piece of duplicate data according to the existing protocol.

上述方案中,移动节点切换前或切换完成后,移动节点与当前基站所建立的两条链路处于同一网络中,且公用一个转交地址。In the above solution, before the handover of the mobile node or after the handover is completed, the two links established by the mobile node and the current base station are in the same network and share a care-of address.

对于上述方案,该方法还包括:预先选定要检测的触发参数,并设置相应的触发条件;则执行步骤a之前,该方法还进一步包括:当前移动节点检测当前发现的所有基站的选定触发参数的信息;判断所检测到的触发参数信息是否满足设定的触发条件,如果满足,则再判断当前满足触发条件的的基站是否属于自身当前所在子网,如果不属于,则触发网络层切换;如果不满足触发条件或属于当前所在子网,则继续检测。For the above solution, the method also includes: pre-selecting the trigger parameters to be detected, and setting corresponding trigger conditions; before performing step a, the method further includes: the current mobile node detects the selected trigger parameters of all base stations currently discovered Parameter information; judge whether the detected trigger parameter information meets the set trigger condition, if so, then judge whether the base station that currently satisfies the trigger condition belongs to its current subnet, if not, trigger network layer handover ; If the trigger condition is not met or it belongs to the current subnet, continue detection.

那么,该方法进一步包括:当前移动节点获取并存储当前所处子网的所有基站信息,并实时获取当前所发现的所有基站的基站信息;则所述判断是否属于当前子网为:当前移动节点将满足触发条件的基站的基站信息与自身存储的所有基站的基站信息进行匹配,如果均不匹配,则满足触发条件的基站不属于当前移动节点当前所在子网,否则属于当前移动节点当前所在子网。Then, the method further includes: the current mobile node obtains and stores all the base station information of the subnet where it is currently located, and obtains the base station information of all the currently discovered base stations in real time; The base station information of the base station that satisfies the trigger condition is matched with the base station information of all base stations stored by itself. If none of them match, the base station that meets the trigger condition does not belong to the current subnet of the current mobile node, otherwise it belongs to the current subnet of the current mobile node .

上述方案中,所述选定的触发参数为接收信号强度、或为信噪比。所述基站信息为基站标识ID、或为基站所属子网的服务集标识SSID。In the above solution, the selected trigger parameter is received signal strength or signal-to-noise ratio. The base station information is the base station identification ID, or the service set identification SSID of the subnet to which the base station belongs.

本发明所提供的一种移动IP中实现网络层切换的方法,具有以下的优点和特点:The method for realizing network layer switching in a kind of mobile IP provided by the present invention has following advantages and characteristics:

1)本发明在移动IP切换中引入了双链路的概念,即:移动节点同时保持两条无线链路的通讯,在切换过程中一条链路用于建立新连接,同时另一条链路用于保持原连接,维持数据通讯,如此,就可以保证切换过程中通讯不中断,从而降低了丢包率。1) The present invention introduces the concept of dual links in mobile IP handover, that is: the mobile node maintains the communication of two wireless links simultaneously, and in the handover process, one link is used to establish a new connection, while the other link uses In order to maintain the original connection and maintain data communication, it can ensure that the communication is not interrupted during the switching process, thereby reducing the packet loss rate.

2)在本发明中,当移动节点处于非切换阶段时,并行使用两条链路,如此,能够充分利用硬件资源,提高带宽,并达到负载均衡的目的。2) In the present invention, when the mobile node is in the non-handover stage, two links are used in parallel, so that hardware resources can be fully utilized, bandwidth can be increased, and the purpose of load balancing can be achieved.

3)在本发明中,当移动节点进入可能切换的重叠网络覆盖区域时,在原有网络仍可使用的情况下判断是否需要进行网络层切换,如需要则将一条链路用于与新网络建立连接,从而在原有网络不可用之前,实现原网络和新网络两个网络的同时接入,从根本上提高切换速度,并有效减少丢包,是移动IP中实现无缝切换的一种有效方式。3) In the present invention, when the mobile node enters the overlapping network coverage area that may be handed over, it is judged whether it is necessary to perform network layer handover when the original network is still available, and if necessary, a link is used to establish a link with the new network Connection, so as to realize the simultaneous access of the original network and the new network before the original network is unavailable, fundamentally improve the switching speed, and effectively reduce packet loss, which is an effective way to achieve seamless switching in mobile IP .

4)本发明是对标准移动IP协议的扩展,仅对现有处理稍加改动,与标准移动IP系统完全兼容,因此,实现简单方便,且易于在现有的移动IP系统上进行功能扩展。4) The present invention is an extension to the standard mobile IP protocol, only slightly changes the existing processing, and is fully compatible with the standard mobile IP system, therefore, it is simple and convenient to realize, and is easy to carry out function expansion on the existing mobile IP system.

附图说明Description of drawings

图1为移动IP中各实体组成的基本网络拓扑结构图;Fig. 1 is the basic network topology structure chart that each entity in the mobile IP is formed;

图2为本发明实现的处理流程图;Fig. 2 is the processing flowchart that the present invention realizes;

图3为本发明中移动节点从家乡网络移动到外地网络的切换过程示意图;Fig. 3 is a schematic diagram of the handover process of the mobile node moving from the home network to the foreign network in the present invention;

图4为本发明中移动节点在两个外地网络间移动的切换过程示意图;FIG. 4 is a schematic diagram of a handover process in which a mobile node moves between two foreign networks in the present invention;

图5为本发明中移动节点从外地网络返回家乡网络的切换过程示意图;Fig. 5 is a schematic diagram of the handover process of the mobile node returning to the home network from the foreign network in the present invention;

图6为本发明中双链路与上层应用之间的关系示意图;FIG. 6 is a schematic diagram of the relationship between dual links and upper-layer applications in the present invention;

图7为本发明一具体实施例的网络拓扑结构图。FIG. 7 is a network topology diagram of a specific embodiment of the present invention.

具体实施方式Detailed ways

本发明的核心思想是:为每个移动节点建立双链路,在移动节点处于非切换状态时,移动节点利用所建立的双链路并行进行通讯;当移动节点处于切换状态时,仅断开双链路中的一条,也就是,利用一条链路保持原连接,同时利用另一条链路建立新连接,当新链路网络层切换完成后,再将保持原连接的链路断开,同样建立一条新连接。The core idea of the present invention is: establish dual links for each mobile node, when the mobile node is in the non-handover state, the mobile node uses the established dual links to communicate in parallel; when the mobile node is in the handover state, only disconnect One of the dual links, that is, use one link to maintain the original connection, and use the other link to establish a new connection. After the network layer switching of the new link is completed, the link that maintains the original connection is disconnected. Create a new connection.

每个移动节点都包括两种状态:一种是移动节点处于切换过程中的状态;另一种是移动节点在切换前或切换后处于正常通讯的状态。Each mobile node includes two states: one is the state that the mobile node is in the process of handover; the other is the state that the mobile node is in normal communication before or after the handover.

本发明实现的前提是:在移动节点与其当前所属基站之间建立用于通信的双链路。The premise of the present invention is that a dual link for communication is established between the mobile node and the base station to which it currently belongs.

基于此前提,本发明中移动节点利用双链路实现网络切换的过程如图2所示,包括以下步骤:Based on this premise, in the present invention, the process in which the mobile node utilizes dual links to realize network switching is shown in Figure 2, including the following steps:

步骤201:当移动节点网络层判断需要进行切换时,系统释放第一条链路当前的连接,即断开双链路中任意一条链路的原有连接,由第二条链路承担当前网络的全部通信,第一条链路则用于与新无线子网中的基站建立连接。Step 201: When the network layer of the mobile node judges that handover is required, the system releases the current connection of the first link, that is, disconnects the original connection of any link in the dual link, and the second link assumes the current network All communication of the , the first link is used to establish a connection with the base station in the new wireless subnet.

步骤202:底层即物理层和链路层的连接建立完成后,移动节点进行网络层切换并通过新建的链路向家乡代理进行注册。即通过新的外地代理与家乡代理间进行注册,包括:首先,移动节点要从新的外地代理处获取新的转交地址,然后向家乡代理进行注册,将新的转交地址发送给家乡代理;家乡代理在收到新转交地址的注册后,并不马上把原转交地址删除,而是保持两个注册绑定,将发送到移动节点的每一个数据报文通过隧道送到移动节点的每个转交地址。此种情况下,移动节点会通过双链路收到重复的数据,那么,移动节点就根据现有协议中对重复数据的处理方式过滤一份重复数据。Step 202: After the bottom layer, that is, the connection between the physical layer and the link layer is established, the mobile node performs network layer handover and registers with the home agent through the newly established link. That is to register between the new foreign agent and the home agent, including: first, the mobile node needs to obtain a new care-of address from the new foreign agent, then register with the home agent, and send the new care-of address to the home agent; After receiving the registration of the new care-of address, the original care-of address is not deleted immediately, but the two registrations are kept bound, and each data packet sent to the mobile node is sent to each care-of address of the mobile node through the tunnel . In this case, the mobile node will receive duplicate data through the dual link, then the mobile node will filter a piece of duplicate data according to the processing method for duplicate data in the existing protocol.

步骤203:在新的链路稳定形成后,系统释放第二条链路的原有连接,并将第二条链路与新的无线子网中的基站以及移动节点当前的外地代理建立连接,至此恢复正常的通信过程。Step 203: After the new link is stably formed, the system releases the original connection of the second link, and establishes a connection between the second link and the base station in the new wireless subnet and the current foreign agent of the mobile node, At this point, the normal communication process is restored.

移动节点的切换可分为三种情况:移动节点从家乡网络移动到外地网络、移动节点在不同外地网络之间移动、移动节点从外地网络回到家乡网络。The handover of the mobile node can be divided into three situations: the mobile node moves from the home network to the foreign network, the mobile node moves between different foreign networks, and the mobile node returns to the home network from the foreign network.

移动节点在离开家乡网络进行切换时,切换过程中采用一条链路注册,另一条链路通信的方式。如图3所示,链路30为保持原有连接继续进行通信的链路,链路31为断开原有连接与外地代理之间建立新连接进行注册的链路。移动节点从家乡网络移动到外地网络时的切换过程包括以下步骤:When the mobile node leaves the home network for handover, it uses one link to register and another link to communicate during the handover process. As shown in FIG. 3 , link 30 is a link for maintaining the original connection to continue communication, and link 31 is a link for disconnecting the original connection and establishing a new connection with the foreign agent for registration. The handover process when the mobile node moves from the home network to the foreign network includes the following steps:

a1.当移动节点移出家乡网络,进入一个外地网络时,该移动节点将自身建立的两条链路中的任意一条链路接入外地网络,当新的连接建立起来后,移动节点通过此连接获得新网络中的转交地址,比如:利用链路31获取转交地址。a1. When the mobile node moves out of the home network and enters a foreign network, the mobile node connects any one of the two links established by itself to the foreign network. When a new connection is established, the mobile node passes this connection Obtain the care-of address in the new network, for example: use the link 31 to obtain the care-of address.

b1.移动节点与外地代理之间建立隧道,通过新建的链路向家乡代理发送注册请求,即:移动节点经由链路31、路径32、33、34向家乡代理进行注册。b1. A tunnel is established between the mobile node and the foreign agent, and a registration request is sent to the home agent through the newly established link, that is, the mobile node registers with the home agent via links 31, paths 32, 33, and 34.

c1.家乡代理收到注册请求后,建立起通向此转交地址的隧道,发送注册应答,并发送代理地址解析协议(ARP)消息。这里,发送ARP消息的目的是说明该移动节点已离开家乡网络,所有发向该移动节点的数据报文会由家乡代理接收后转发。c1. After receiving the registration request, the home agent establishes a tunnel leading to the care-of address, sends a registration response, and sends an Agent Address Resolution Protocol (ARP) message. Here, the purpose of sending the ARP message is to indicate that the mobile node has left the home network, and all data packets sent to the mobile node will be received and forwarded by the home agent.

d1.移动节点收到家乡代理发来的注册应答后,说明新连接已经稳定形成,则将家乡网络中保持原有连接的另一链路也断开,重新接入外地网络中,完成切换。d1. After the mobile node receives the registration response from the home agent, indicating that the new connection has been formed stably, it disconnects the other link that maintains the original connection in the home network, reconnects to the foreign network, and completes the handover.

移动节点在离开一个外地网络进入另一个外地网络时,切换过程中家乡代理采用多重绑定的方式,即:为该移动节点同时存储两个转交地址,同时绑定两条路由。参见图4所示,移动节点在不同外地网络之间移动时的切换过程包括以下步骤:When the mobile node leaves a foreign network and enters another foreign network, the home agent adopts multiple binding methods during the handover process, that is, it stores two care-of addresses for the mobile node and binds two routes at the same time. Referring to Fig. 4, the handover process when the mobile node moves between different foreign networks includes the following steps:

a2.移动节点从外地网络1漫游到外地网络2时,将与外地网络1建立的两条链路中的一条链路断开,接入外地网络2中,当新的连接建立起来以后,移动节点通过此连接获得新网络中的转交地址。a2. When the mobile node roams from foreign network 1 to foreign network 2, it disconnects one of the two links established with foreign network 1 and connects to foreign network 2. After a new connection is established, the mobile node The node obtains the care-of address in the new network through this connection.

b2.移动节点获取转交地址后建立隧道,通过新建立的链路向家乡代理发送注册请求。需要注意的是:此时注册请求需要设置“S”位。标准移动IP协议中所规定的注册请求消息格式如表一所示,其中,S比特位表示同时的绑定信息,如果S置位,就说明移动节点要求家乡代理保留其以前的绑定信息。 0 1   2     3 类型(Type) S  B  D  M  G  R  T  X   生命周期(Lifetime) 家乡地址(Home Address) 家乡代理(Home Agent) 转交地址(Care-of Address) 描述(Identification) 扩展域(Extensions)...... b2. The mobile node establishes a tunnel after obtaining the care-of address, and sends a registration request to the home agent through the newly established link. It should be noted that: at this time, the registration request needs to set the "S" bit. The format of the registration request message stipulated in the standard mobile IP protocol is shown in Table 1, wherein, the S bit represents the binding information at the same time, if S is set, it means that the mobile node requires the home agent to retain its previous binding information. 0 1 2 3 type S B D. m G R T x Lifetime Home Address Home Agent Care-of Address Description Extensions...

                            表一 Table I

c2.由于移动节点在家乡代理上已经注册过一个转交地址,家乡代理收到新的注册请求后并不删除原转交地址,而只是再添加一个,并发送注册应答给移动节点。此后,家乡代理将所收到的、发送给该移动节点的每一个数据报文均通过隧道送到移动节点的每个转交地址。c2. Since the mobile node has already registered a care-of address on the home agent, the home agent does not delete the original care-of address after receiving a new registration request, but just adds another one, and sends a registration response to the mobile node. Thereafter, the home agent sends each data packet received and sent to the mobile node to each care-of address of the mobile node through the tunnel.

d2.移动节点收到注册应答后,从原链路上发送取消注册请求消息。d2. After receiving the registration response, the mobile node sends a deregistration request message from the original link.

e2.家乡代理收到取消注册请求,删除原配置转交地址,并发送注册应答。此后,家乡代理就只向新的转交地址转发数据。e2. The home agent receives the deregistration request, deletes the original configured care-of address, and sends a registration response. Thereafter, the home agent forwards data only to the new care-of address.

f2.移动节点收到注册应答,将与外地网络1中保持原有连接的另一链路也断开,重新接入外地网络中,完成切换。f2. After receiving the registration response, the mobile node also disconnects the other link that maintains the original connection with the foreign network 1, reconnects to the foreign network, and completes the handover.

移动节点从外地网络返回家乡网络时,切换过程采用一条链路注册,另一条链路继续通过外地网络进行通信的方式。如图5所示,移动节点从外地网络回到家乡网络时的切换过程包括以下步骤:When the mobile node returns to the home network from the foreign network, the handover process adopts a link registration, and the other link continues to communicate through the foreign network. As shown in Figure 5, the handover process when the mobile node returns to the home network from the foreign network includes the following steps:

a3.移动节点从外地网络返回家乡网络时,将与外地网络建立的两条链路中的一条链路断开,接入家乡网络中,当新的连接建立起来以后,移动节点在家乡网络中发送免费ARP消息,并向家乡代理发送取消注册请求。a3. When the mobile node returns to the home network from the foreign network, it disconnects one of the two links established with the foreign network and connects to the home network. When the new connection is established, the mobile node is in the home network Send a gratuitous ARP message and send a deregistration request to the home agent.

这里,发送ARP消息的目的是通知该移动节点已回到家乡网络。Here, the purpose of sending the ARP message is to inform the mobile node that it has returned to the home network.

b3.家乡代理收到取消注册请求后,删除移动节点的转交地址和隧道,并向移动节点返回注册应答。b3. After receiving the deregistration request, the home agent deletes the care-of address and tunnel of the mobile node, and returns a registration response to the mobile node.

c3.移动节点收到家乡代理发来的注册应答后,删除与外地代理之间建立的隧道,并将外地网络中保持原有连接的另一链路也断开,重新接入家乡网络中,完成切换。c3. After the mobile node receives the registration response sent by the home agent, it deletes the tunnel established with the foreign agent, and disconnects the other link that maintains the original connection in the foreign network, and reconnects to the home network. Complete the switch.

在图3、图4、图5中,虚线表示单向隧道,实线表示注册消息,点划线表示正常的通信数据,实线上的矩形表示隧道。In FIG. 3 , FIG. 4 , and FIG. 5 , dotted lines represent one-way tunnels, solid lines represent registration messages, dotted lines represent normal communication data, and rectangles on solid lines represent tunnels.

移动节点切换前或切换完成后,如果该移动节点处于外地网络中,家乡代理就只绑定当前移动节点所在网络的转交地址,因此,将所有发送到该移动节点的数据报文全部转发到该转交地址上。此时,移动节点建立的两条链路均在同一个子网中,公用一个转交地址。虽然有两条链路,可以通过一个虚拟链路层,使其共同使用一个IP地址进行通讯,从而上层应用并不能意识到双链路的存在。如图6所示,在实际应用中,移动节点的两条链路可以分别通过两块网卡实现,在移动节点的上层应用看来移动节点只有一个IP地址,但它发送的数据报却是通过两条链路来传输的。具体利用哪条链路进行发送时,可以根据链路的忙闲状况进行选择,比如:需要选择时,先判断两条链路的忙闲情况,利用其中负载轻的链路进行发送,从而既能提高带宽,又能实现负载均衡。Before the handover of the mobile node or after the handover is completed, if the mobile node is in a foreign network, the home agent only binds the care-of address of the network where the mobile node is located, so all data packets sent to the mobile node are forwarded to the on the care-of address. At this time, the two links established by the mobile node are in the same subnet and share a care-of address. Although there are two links, a virtual link layer can be used to make them use one IP address for communication, so that the upper layer application cannot realize the existence of dual links. As shown in Figure 6, in practical applications, the two links of the mobile node can be implemented through two network cards respectively. From the perspective of the upper layer application of the mobile node, the mobile node has only one IP address, but the datagram it sends is through transmitted over two links. When using which link to send, you can choose according to the busy or idle status of the link. For example, when you need to choose, first judge the busy or idle status of the two links, and use the link with the light load to send, so that both It can improve bandwidth and realize load balancing.

以上双链路切换过程中,新链路的建立需要在原有链路仍可使用的情况下进行,因此可以结合本申请人的另一专利申请中提出的一种触发网络层切换的方法,触发双链路中新链路的建立。该方法的主要思想是:当前移动节点检测当前发现的所有基站的选定触发参数的信息,并实时获取当前所发现的所有基站的基站信息,并且,当前移动节点还获取并存储当前所处子网的所有基站信息;然后,当前移动节点判断所检测到的触发参数信息是否满足设定的触发条件,如果满足,再根据基站信息判断当前满足触发条件的的基站是否属于自身当前所在子网,如果不属于,则触发网络层切换;如果不满足触发条件或属于当前所在子网,则继续检测。即:将满足触发条件的基站的基站信息与自身存储的所有基站的基站信息进行匹配,如果均不匹配,则满足触发条件的基站不属于当前移动节点当前所在子网,触发网络层切换;否则,属于当前移动节点当前所在子网,继续检测。In the above dual-link switching process, the establishment of the new link needs to be carried out while the original link is still available. Therefore, a method for triggering network layer switching proposed in another patent application of the applicant can be combined to trigger Establishment of a new link in a dual link. The main idea of this method is: the current mobile node detects the information of the selected trigger parameters of all the currently discovered base stations, and obtains the base station information of all the currently discovered base stations in real time, and the current mobile node also obtains and stores the current subnet information of all base stations; then, the current mobile node judges whether the detected trigger parameter information satisfies the set trigger condition, and if so, judges according to the base station information whether the base station currently satisfying the trigger condition belongs to its current subnet, if If it does not belong, trigger network layer switching; if it does not meet the trigger condition or belongs to the current subnet, continue detection. That is: match the base station information of the base station that satisfies the trigger condition with the base station information of all base stations stored by itself, if none of them match, the base station that meets the trigger condition does not belong to the subnet where the current mobile node is currently located, and triggers a network layer handover; otherwise , belongs to the subnet where the current mobile node is currently located, and continues to detect.

其中,所述物理层信道信息包括当前所连接到的基站的ID、可用的基本服务集列表、接收到的信号强度、信噪比等,可从中任选一种作为触发参数;触发条件是指预先设定所选定触发参数对应的阈值;基站信息是指能唯一标识每个基站的信息,比如:基站ID、基站所属子网的SSID等等。移动节点可利用现有消息中的已有信息,如基站所属子网的SSID获取当前所处网络的所有基站信息;或利用现有消息中的可扩展字段携带所需基站信息,如利用注册消息的扩展域携带所有基站ID。Wherein, the physical layer channel information includes the ID of the currently connected base station, the list of available basic service sets, the received signal strength, the signal-to-noise ratio, etc., and one of them can be selected as a trigger parameter; the trigger condition refers to The threshold corresponding to the selected trigger parameter is set in advance; base station information refers to information that can uniquely identify each base station, such as: base station ID, SSID of the subnet to which the base station belongs, and so on. The mobile node can use the existing information in the existing message, such as the SSID of the subnet to which the base station belongs to obtain all the base station information of the current network; or use the extensible field in the existing message to carry the required base station information, such as using the registration message The extension field carries all base station IDs.

下面参照图7并结合一个具体实施例,来详细说明建立双链路与低层主动触发网络层切换相结合的切换过程,图7为移动节点70所处移动IP系统的网络拓扑结构图。如图7所示,该移动IP系统为一个采用802.11协议的无线局域网,该无线局域网包括三个子网:家乡网络、外地网络1和外地网络2。三个子网之间通过路由器相连,每个子网中包括一个代理,即:家乡代理、外地代理1和外地代理2。每个子网又分别包括两个基站,即接入点AP1~AP6,图7中的六个虚圆分别表示AP1~AP6的覆盖区域。其中,接入点AP1和AP2属于家乡网络,接入点AP3和AP4属于外地网络1,接入点AP5和AP6属于外地网络2。图7中的点划线表示移动节点70的移动轨迹,可以看出,移动节点70从家乡网络出发,先漫游到外地网络1,再由外地网络1漫游到外地网络2,最后由外地网络2回到家乡。该移动过程包括三种切换:从家乡网络到外地网络的切换、在两个外地网络之间的切换、以及从外地网络回到家乡网络的切换。Referring to FIG. 7 and in conjunction with a specific embodiment, the handover process of establishing dual link and lower layer active triggering of network layer handover will be described in detail. FIG. 7 is a network topology diagram of the mobile IP system where the mobile node 70 is located. As shown in Figure 7, the mobile IP system is a wireless local area network using the 802.11 protocol, and the wireless local area network includes three subnets: home network, foreign network 1 and foreign network 2. The three subnets are connected by a router, and each subnet includes an agent, namely: home agent, foreign agent 1 and foreign agent 2. Each subnet includes two base stations, ie, access points AP1-AP6. The six dashed circles in FIG. 7 represent the coverage areas of AP1-AP6 respectively. Wherein, the access points AP1 and AP2 belong to the home network, the access points AP3 and AP4 belong to the foreign network 1 , and the access points AP5 and AP6 belong to the foreign network 2 . The dotted line in Fig. 7 represents the moving track of the mobile node 70. It can be seen that the mobile node 70 starts from the home network, first roams to the foreign network 1, then roams from the foreign network 1 to the foreign network 2, and finally roams from the foreign network 2 back home. The moving process includes three handovers: handover from home network to foreign network, handover between two foreign networks, and handover from foreign network back to home network.

在本实施例中,移动节点70选用两块802.11的无线网卡模拟双链路,且网络层切换由低层根据所检测的物理信道信息主动触发。In this embodiment, the mobile node 70 selects two 802.11 wireless network cards to simulate dual links, and the network layer switching is actively triggered by the lower layer according to the detected physical channel information.

移动节点70开始位于家乡网络,当移动节点70移动到AP2和AP3的重叠覆盖区71时,二层触发启动,通知网络层移动节点70将从家乡网络移动到外地网络1,触发网络层开始切换。此时,移动节点70将与AP2之间建立的两条链路中的一条链路连接断开,与AP3建立连接;而另一条链路仍然保持与AP2的连接。当移动节点70与AP3的链路建立起来以后,移动节点70通过此连接获得外地网络1中的转交地址1;并根据转交地址1建立隧道,通过与AP3的链路向家乡代理发送注册请求。The mobile node 70 is initially located in the home network, and when the mobile node 70 moves to the overlapping coverage area 71 of AP2 and AP3, the second-layer trigger starts to notify the network layer that the mobile node 70 will move from the home network to the foreign network 1, triggering the network layer to start handover . At this time, the mobile node 70 disconnects one of the two links established with AP2, and establishes a connection with AP3; while the other link remains connected with AP2. After the link between the mobile node 70 and AP3 is established, the mobile node 70 obtains the care-of address 1 in the foreign network 1 through this connection; and establishes a tunnel according to the care-of address 1, and sends a registration request to the home agent through the link with AP3.

家乡代理收到注册请求后建立起通向转交地址1的隧道,并向移动节点70发送注册应答,同时发送代理ARP消息;移动节点70收到注册应答后,将与AP2之间保持的链路也断开,将该链路接入AP3,作为移动节点70与AP3之间的第二条链路,如此,即完成了从家乡网络到外地网络1的整个切换过程。After the home agent receives the registration request, it sets up a tunnel leading to the care-of address 1, and sends a registration response to the mobile node 70, and sends a proxy ARP message at the same time; It is also disconnected, and the link is connected to AP3 as the second link between the mobile node 70 and AP3. In this way, the entire handover process from the home network to the foreign network 1 is completed.

以信噪比作为触发参数且基站信息为AP的MAC地址为例,所述二层触发启动的具体过程是:移动节点70进入家乡网络与外地网络1的交界部分,即从AP2移入AP3时,随着离AP3的距离变近,移动节点70会发现AP3的信噪比已满足设定的触发条件,即达到预先设定的信噪比阈值;此时,移动节点70再搜索并获取AP3的MAC地址,将AP3的MAC地址与自身当前保存的当前子网中所有AP的MAC地址比较,发现AP3的MAC地址与自身当前保存的所有AP均不匹配,因此,可以确定AP3属于新的子网,则移动节点70就主动触发网络层的切换。Taking the signal-to-noise ratio as the trigger parameter and the base station information as the MAC address of the AP as an example, the specific process of the two-layer trigger start is: when the mobile node 70 enters the junction of the home network and the foreign network 1, that is, when moving from AP2 to AP3, As the distance from AP3 gets closer, the mobile node 70 will find that the SNR of AP3 has met the set trigger condition, that is, the preset SNR threshold; at this time, the mobile node 70 searches and obtains the AP3 MAC address, compare the MAC address of AP3 with the MAC addresses of all APs in the current subnet currently saved by itself, and find that the MAC address of AP3 does not match all the APs currently saved by itself, so it can be determined that AP3 belongs to the new subnet , then the mobile node 70 actively triggers the handover of the network layer.

当移动节点70沿移动轨迹移动到AP4和AP6的重叠覆盖区72时,二层触发启动,通知网络层移动节点70即将进入了新的外地网络,触发网络层开始切换。移动节点70将与AP4之间建立的两条链路中的一条链路连接断开,与AP6建立连接,但仍然保持一条链路与AP4连接;并且,移动节点70通过与AP6建立连接获得外地网络2中的转交地址2。移动节点70建立隧道,通过与AP6的链路向家乡代理发送注册请求,此时注册请求需要设置“S”位。When the mobile node 70 moves to the overlapping coverage area 72 of AP4 and AP6 along the moving track, the layer 2 trigger starts, notifies the network layer that the mobile node 70 is about to enter a new foreign network, and triggers the network layer to start switching. Mobile node 70 disconnects a link connection in the two links established between AP4, and establishes connection with AP6, but still maintains a link and connects with AP4; Care-of address 2 in network 2. The mobile node 70 establishes a tunnel, and sends a registration request to the home agent through the link with AP6. At this time, the registration request needs to set the "S" bit.

虽然移动节点70在家乡代理上已经注册过一个转交地址1,但家乡代理收到携带有设置了S位的新注册请求后,并不删除转交地址1,而是将转交地址2添加到绑定表中,并向移动节点70发送注册应答。此后,家乡代理将发送到移动节点70的每个数据报文均通过隧道送到转交地址1、转交地址2这两个转交地址上。移动节点70收到注册应答后,通过与AP4之间的链路向家乡代理发送取消注册请求。家乡代理收到取消注册请求后,删除转交地址1,并向移动节点70返回注册应答,表示转交地址1已删除。此后,家乡代理就只向转交地址2转发数据了。移动节点70在收到注册应答后,将与AP4之间的链路断开,并将该链路接入AP6中,作为移动节点70与AP6之间的第二条链路,至此完成从外地网络1到外地网络2的整个切换过程。Although the mobile node 70 has registered a care-of address 1 on the home agent, the home agent does not delete the care-of address 1 after receiving a new registration request with the S bit set, but adds the care-of address 2 to the binding table, and send a Registration Reply to the mobile node 70. Thereafter, the home agent sends each data packet sent to the mobile node 70 to the two care-of addresses 1 and 2 through the tunnel. After receiving the registration response, the mobile node 70 sends a deregistration request to the home agent through the link with AP4. After receiving the deregistration request, the home agent deletes the care-of address 1, and returns a registration response to the mobile node 70, indicating that the care-of address 1 has been deleted. After that, the home agent only forwards data to care-of address 2. After receiving the registration response, the mobile node 70 disconnects the link with AP4, and inserts the link into AP6 as the second link between the mobile node 70 and AP6. The entire switching process from network 1 to foreign network 2.

当移动节点70沿移动轨迹移动到AP5和AP2的重叠覆盖区73时,二层触发启动,通知网络层移动节点70将从外地网络2回到家乡网络,触发网络层开始切换。此时,移动节点70将与AP5之间建立的两条链路中的一条链路连接断开,与AP2建立连接,而与AP6的另一条链路连接仍然保持。当与AP2的链路建立起来以后,移动节点70通过与AP2建立的连接在家乡网络中发送免费ARP消息,说明自己已经回到家乡,并发送取消注册请求。家乡代理收到取消注册请求后,删除移动节点70的转交地址2和隧道,并向移动节点70发送注册应答。移动节点70收到注册应答后,删除隧道,并将与AP5保持的链路连接也断开,接入家乡网络的AP2上,作为移动节点70与AP2之间的第二条链路,至此完成从外地网络2回到家乡网络的整个切换过程。When the mobile node 70 moves to the overlapping coverage area 73 of AP5 and AP2 along the moving track, the layer 2 trigger starts, notifies the network layer that the mobile node 70 will return to the home network from the foreign network 2, and triggers the network layer to start switching. At this time, the mobile node 70 disconnects one of the two links established with AP5, establishes a connection with AP2, and maintains the other link connection with AP6. After the link with AP2 is established, the mobile node 70 sends a free ARP message in the home network through the connection established with AP2, indicating that it has returned to its hometown, and sends a deregistration request. After receiving the deregistration request, the home agent deletes the care-of address 2 and the tunnel of the mobile node 70, and sends a registration response to the mobile node 70. After the mobile node 70 receives the registration response, it deletes the tunnel, disconnects the link connection with AP5, and connects to AP2 on the home network as the second link between the mobile node 70 and AP2. The entire switching process from the foreign network 2 back to the home network.

本实施例将网络层切换提前于低层切换进行的方案与建立双链路的方案相结合,不仅大大缩短了网络层切换时间,从根本上提高了切换速度;而且,对于各种切换情况,都能在整个切换过程中保证通信不中断,避免了丢包。In this embodiment, the scheme that the network layer switching is performed ahead of the low layer switching is combined with the scheme of establishing a dual link, which not only greatly shortens the network layer switching time, but fundamentally improves the switching speed; moreover, for various switching situations, all It can ensure uninterrupted communication during the whole switching process and avoid packet loss.

以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention.

Claims (10)

1、一种移动IP中实现网络层切换的方法,其特征在于,在移动节点与其当前所属基站之间建立用于通信的双链路,该方法包括以下步骤:1. A method for realizing network layer handover in a mobile IP, characterized in that, a dual link for communication is set up between a mobile node and its current affiliated base station, the method may further comprise the steps: a.网络层确定需要进行切换后,断开所建立的双链路中的一条,在当前移动节点与要切换到的目标基站之间建立一条新的链路连接;a. After the network layer determines that handover is required, disconnect one of the established dual links, and establish a new link connection between the current mobile node and the target base station to be handed over to; b.移动节点通过步骤a中新建的链路向家乡代理进行注册,并进行网络层切换;b. The mobile node registers with the home agent through the newly created link in step a, and performs network layer handover; c.注册完成后,断开当前移动节点与原基站之间的另一条链路连接,并在当前移动节点与要切换到的目标基站之间建立链路连接。c. After the registration is completed, disconnect another link connection between the current mobile node and the original base station, and establish a link connection between the current mobile node and the target base station to be handed over to. 2、根据权利要求1所述的方法,其特征在于,移动节点从家乡网络切换到外地网络时,步骤b具体包括:2. The method according to claim 1, wherein when the mobile node switches from the home network to a foreign network, step b specifically includes: b11.移动节点通过与目标基站之间建立的链路连接获得新的转交地址;b11. The mobile node obtains a new care-of address through the link connection established with the target base station; b12.移动节点建立隧道,通过新建的链路向家乡代理发送注册请求;b12. The mobile node establishes a tunnel, and sends a registration request to the home agent through the newly established link; b13.家乡代理收到注册请求后,建立通向该转交地址的隧道,发送注册应答,并发送代理地址解析协议ARP消息;b13. After receiving the registration request, the home agent establishes a tunnel leading to the care-of address, sends a registration response, and sends an agent address resolution protocol ARP message; 则步骤c所述注册完成为:移动节点收到家乡代理发来的注册应答。Then the completion of the registration in step c is: the mobile node receives the registration response sent by the home agent. 3、根据权利要求1所述的方法,其特征在于,移动节点从一个外地网络切换到另一外地网络时,步骤b具体包括:3. The method according to claim 1, wherein when the mobile node switches from one foreign network to another foreign network, step b specifically includes: b21.移动节点通过与目标基站之间建立的链路连接获得新的转交地址;b21. The mobile node obtains a new care-of address through the link connection established with the target base station; b22.移动节点获取转交地址后建立隧道,通过新建立的链路向家乡代理发送注册请求,且该注册请求中携带有保留原转交地址的指示;b22. The mobile node establishes a tunnel after obtaining the care-of address, and sends a registration request to the home agent through the newly established link, and the registration request carries an instruction to retain the original care-of address; b23.家乡代理收到新的注册请求后保留原转交地址,同时存储注册请求中携带的新转交地址,并向移动节点发送注册应答;b23. After receiving the new registration request, the home agent retains the original care-of address, stores the new care-of address carried in the registration request, and sends a registration response to the mobile node; b24.移动节点收到注册应答后,从移动节点与原基站之间保留的链路上发送取消注册请求;b24. After the mobile node receives the registration response, it sends a deregistration request from the link reserved between the mobile node and the original base station; b25.家乡代理收到取消注册请求后,删除原转交地址,并向移动节点发送注册应答;b25. After receiving the deregistration request, the home agent deletes the original care-of address and sends a registration response to the mobile node; 则步骤c所述注册完成为:移动节点收到家乡代理删除原转交地址后发来的注册应答。Then the completion of the registration in step c is: the mobile node receives the registration response sent by the home agent after deleting the original care-of address. 4、根据权利要求1所述的方法,其特征在于,移动节点从外地网络切换回家乡网络时,步骤b具体包括:4. The method according to claim 1, wherein when the mobile node switches from a foreign network to a home network, step b specifically includes: b31.移动节点在家乡网络中发送免费ARP消息,并向家乡代理发送取消注册请求;b31. The mobile node sends a gratuitous ARP message in the home network, and sends a deregistration request to the home agent; b32.家乡代理收到取消注册请求后,删除移动节点的转交地址和隧道,并向移动节点返回注册应答;b32. After receiving the deregistration request, the home agent deletes the care-of address and tunnel of the mobile node, and returns a registration response to the mobile node; 则步骤c所述注册完成为:移动节点收到家乡代理发来的注册应答后,删除与外地代理之间建立的隧道。Then the completion of the registration in step c is as follows: the mobile node deletes the tunnel established with the foreign agent after receiving the registration response sent by the home agent. 5、根据权利要求1至4任一项所述的方法,其特征在于,在切换过程中,移动节点收到从不同链路发送过来的重复数据后,根据现有协议过滤一份重复数据。5. The method according to any one of claims 1 to 4, characterized in that, during the handover process, after receiving duplicate data sent from different links, the mobile node filters a copy of duplicate data according to an existing protocol. 6、根据权利要求1所述的方法,其特征在于,移动节点切换前或切换完成后,移动节点与当前基站所建立的两条链路处于同一网络中,且公用一个转交地址。6. The method according to claim 1, wherein before or after the handover of the mobile node, the two links established by the mobile node and the current base station are in the same network and share a care-of address. 7、根据权利要求1至4任一项所述的方法,其特征在于,该方法还包括:预先选定要检测的触发参数,并设置相应的触发条件;则执行步骤a之前,该方法还进一步包括:7. The method according to any one of claims 1 to 4, characterized in that the method further comprises: pre-selecting the trigger parameters to be detected, and setting corresponding trigger conditions; before performing step a, the method also Further includes: 当前移动节点检测当前发现的所有基站的选定触发参数的信息;判断所检测到的触发参数信息是否满足设定的触发条件,如果满足,则再判断当前满足触发条件的的基站是否属于自身当前所在子网,如果不属于,则触发网络层切换;如果不满足触发条件或属于当前所在子网,则继续检测。The current mobile node detects the selected trigger parameter information of all base stations currently discovered; judges whether the detected trigger parameter information satisfies the set trigger condition, and if so, then judges whether the base station that currently satisfies the trigger condition belongs to its current If it does not belong to the subnet it belongs to, it will trigger network layer switching; if it does not meet the trigger conditions or it belongs to the current subnet, it will continue to detect. 8、根据权利要求7所述的方法,其特征在于,该方法进一步包括:当前移动节点获取并存储当前所处子网的所有基站信息,并实时获取当前所发现的所有基站的基站信息;8. The method according to claim 7, further comprising: the current mobile node obtains and stores all base station information of the subnet where it is currently located, and obtains the base station information of all currently discovered base stations in real time; 则所述判断是否属于当前子网为:当前移动节点将满足触发条件的基站的基站信息与自身存储的所有基站的基站信息进行匹配,如果均不匹配,则满足触发条件的基站不属于当前移动节点当前所在子网,否则属于当前移动节点当前所在子网。Then the judgment whether it belongs to the current subnet is as follows: the current mobile node matches the base station information of the base station satisfying the trigger condition with the base station information of all base stations stored in itself, if none of them match, the base station satisfying the trigger condition does not belong to the current mobile node. The subnet where the node is currently located, otherwise it belongs to the subnet where the current mobile node is currently located. 9、根据权利要求7所述的方法,其特征在于,所述选定的触发参数为接收信号强度、或为信噪比。9. The method according to claim 7, wherein the selected trigger parameter is received signal strength or signal-to-noise ratio. 10、根据权利要求8所述的方法,其特征在于,所述基站信息为基站标识ID、或为基站所属子网的服务集标识SSID。10. The method according to claim 8, wherein the base station information is a base station identification ID or an SSID of a subnet to which the base station belongs.
CNB2004100423163A 2004-05-17 2004-05-17 Method for realizing network layer switching in mobile IP Expired - Fee Related CN1301035C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100423163A CN1301035C (en) 2004-05-17 2004-05-17 Method for realizing network layer switching in mobile IP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100423163A CN1301035C (en) 2004-05-17 2004-05-17 Method for realizing network layer switching in mobile IP

Publications (2)

Publication Number Publication Date
CN1582051A true CN1582051A (en) 2005-02-16
CN1301035C CN1301035C (en) 2007-02-14

Family

ID=34582141

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100423163A Expired - Fee Related CN1301035C (en) 2004-05-17 2004-05-17 Method for realizing network layer switching in mobile IP

Country Status (1)

Country Link
CN (1) CN1301035C (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100593929C (en) * 2007-08-21 2010-03-10 中国科学院计算技术研究所 A Mobile Handoff Method in Wireless Packet Network
CN101610553B (en) * 2008-06-17 2011-04-27 福建工程学院 A fast switching method for multiple wireless modules
WO2018059299A1 (en) * 2016-09-29 2018-04-05 中兴通讯股份有限公司 Method, device and system for cell handover, and computer storage medium
CN115278793A (en) * 2022-07-05 2022-11-01 李丽芳 Multi-network switching method for 5G equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FI108832B (en) * 1999-03-09 2002-03-28 Nokia Corp IP routing optimization in an access network
US6771623B2 (en) * 2000-12-01 2004-08-03 Telefonaktiebolaget Lm Ericsson (Publ) Method for ensuring reliable mobile IP service
KR100425325B1 (en) * 2002-04-13 2004-03-30 삼성전자주식회사 Method for managing IP using NAT in mobile network and apparatus thereof

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100593929C (en) * 2007-08-21 2010-03-10 中国科学院计算技术研究所 A Mobile Handoff Method in Wireless Packet Network
CN101610553B (en) * 2008-06-17 2011-04-27 福建工程学院 A fast switching method for multiple wireless modules
WO2018059299A1 (en) * 2016-09-29 2018-04-05 中兴通讯股份有限公司 Method, device and system for cell handover, and computer storage medium
CN115278793A (en) * 2022-07-05 2022-11-01 李丽芳 Multi-network switching method for 5G equipment

Also Published As

Publication number Publication date
CN1301035C (en) 2007-02-14

Similar Documents

Publication Publication Date Title
Al-Surmi et al. Mobility management for IP-based next generation mobile networks: Review, challenge and perspective
CN1305328C (en) System and method for reverse handover in mobile mesh ad-hoc networks
JP2009530932A (en) Seamless transmission of data to mobile nodes during fast handover in mobile communication systems
CN1596023A (en) Method for implementing seamless switching between mobile nodes in mobile IP
CN1623300A (en) System and method for supporting mobility of mobile node using regional anchor point in future internet
CN101068213B (en) Handover method, multicast joining method and access router in proxy mobile IP
CN100349432C (en) Tunnel based mobile IPv6 quick switching method
CN102905247B (en) Urban vehicle-mounted network moving switching method based on IPv6 (Internet Protocol Version 6)
Eardley et al. A framework for the evaluation of IP mobility protocols
CN1324924C (en) Method for realizing mobile node switching in mobile IP
CN103476084B (en) What a kind of wireless sensor network route based on cross-layer communicated realizes method
CN101548566B (en) Method and system for managing address prefix information associated with handovers in a network
CN1301033C (en) Cellular network and wireless local area network loose-coupling mobile communication network
CN1980252A (en) Address-conflict detection realizing method and address conflict detection agent apparatus
CN101005444B (en) Method and device for quick switching
CN101043350A (en) Mobile multicasting method for multiple interfaces
CN102045796B (en) Mobile network system and mobile management method thereof
CN1477884A (en) Hierarchical mobile data packet communication network and communication method thereof
CN1582051A (en) Method for realizing network layer switching in mobile IP
CN1846360A (en) System and method for providing mobile internet protocol terminal handover in wireless network
Sen Mobility and handoff management in wireless networks
CN1291580C (en) Method of realizing seamless switching based on mobile node of mobile IP
CN1592445A (en) Method for selecting transfer address by multi-mode mobile terminal based on IPV6 Technology
CN101047617B (en) Method and device of mobile multicast switchover
CN102077520B (en) A method of registering with a home agent of a mobile node and foreign agent group

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

Granted publication date: 20070214

Termination date: 20160517

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