CN1324924C - Method for realizing mobile node switching in mobile IP - Google Patents
Method for realizing mobile node switching in mobile IP Download PDFInfo
- Publication number
- CN1324924C CN1324924C CNB2004100423159A CN200410042315A CN1324924C CN 1324924 C CN1324924 C CN 1324924C CN B2004100423159 A CNB2004100423159 A CN B2004100423159A CN 200410042315 A CN200410042315 A CN 200410042315A CN 1324924 C CN1324924 C CN 1324924C
- Authority
- CN
- China
- Prior art keywords
- mobile node
- network
- base station
- current
- address
- 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
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
本发明公开了一种移动IP中移动节点实现切换的方法,关键是:移动节点将当前所检测的选定物理层信道信息与设定的触发条件进行比较,并判断满足触发条件的基站是否属于移动节点当前所在的子网,以确定是否触发网络层切换,如果要触发,则向网络层发送切换指示。并且,为每个移动节点建立双链路,在网络层收到切换指示后,仅断开当前已建立的双链路中的一条,建立新连接;然后,移动节点利用新建的连接向家乡网络注册并进行网络层切换;注册完成后,再断开另一条链路,同样建立一条移动节点与新子网之间的新连接。该方法不仅能使低层主动准确地触发网络层启动切换,提高切换速度;而且,能保证在切换过程中通讯不中断,降低切换过程中的丢包率。
The invention discloses a method for handover of a mobile node in mobile IP. The key is: the mobile node compares the currently detected selected physical layer channel information with the set trigger condition, and judges whether the base station meeting the trigger condition belongs to the mobile network. The subnet where the node is currently located to determine whether to trigger a network layer handover, and if so, send a handover instruction to the network layer. And, establish a dual link for each mobile node, after the network layer receives the switching instruction, only disconnect one of the currently established dual links, and establish a new connection; then, the mobile node uses the newly established connection to the home network Register and switch over the network layer; after the registration is completed, disconnect another link, and also establish a new connection between the mobile node and the new subnet. The method can not only enable the lower layer to actively and accurately trigger the network layer to start switching, and improve the switching speed; moreover, it can ensure that the communication is not interrupted during the switching process, and the packet loss rate during the switching process can be reduced.
Description
技术领域technical field
本发明涉及移动IP切换技术,特别是指一种在移动IP中移动节点实现切换的方法。The invention relates to mobile IP switching technology, in particular to a method for realizing switching of mobile nodes 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地址称为家乡地址(Home Address),该地址不随节点位置的变化而变化;在家乡网络中,移动节点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 (Home Address), 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 running on the home network of the mobile node 10 is called the 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 in a tunnel mode to 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.
当移动节点A从家乡网络漫游到外地网络或从外地网络1漫游到外地网络2时,根据标准的移动IP协议,移动节点A的切换过程包括以下步骤:When the mobile node A roams from the home network to the foreign network or roams from the foreign network 1 to the foreign network 2, according to the standard mobile IP protocol, the handover process of the mobile node A includes the following steps:
a.当移动节点A发现自己进入新的网络后,先断开原有的链路连接,与新网络的基站和代理建立新的链路连接;然后移动节点A从外地代理获取一个转交地址,该转交地址可以是从代理广播消息中获取的外地代理转交地址,或是根据某种配置规程获得的配置转交地址,下面以外地代理转交地址为例。a. After mobile node A discovers that he has entered a new network, it first disconnects the original link connection, and establishes a new link connection with the base station and agent of the new network; then mobile node A obtains a care-of address from the foreign agent, The care-of-address may be a foreign-agent care-of-address obtained from an agent broadcast message, or a configured care-of-address obtained according to a certain configuration procedure. The following foreign agent care-of-address is taken as an example.
b.移动节点A向当前的外地代理发送注册请求消息,该请求消息中含有获得的转交地址,外地代理对注册请求消息作有效性检查,如果检查通过,则外地代理将移动节点A发送的注册请求转发给移动节点A的家乡代理;如果检查不通过,则外地代理直接向移动节点A回送注册应答消息,指示注册失败,结束当前流程。b. The mobile node A sends a registration request message to the current foreign agent, which contains the obtained care-of address, and the foreign agent checks the validity of the registration request message. The request is forwarded to the home agent of mobile node A; if the check fails, the foreign agent directly returns a registration response message to mobile node A, indicating that the registration failed, and the current process ends.
c.移动节点A的家乡代理收到注册请求消息后,进行有效性检查,如果消息有效,则家乡代理将移动节点A的家乡地址和转交地址绑定,并回送注册应答消息,指示注册成功,并开始准备作为隧道入口封装发送给移动节点A的报文;如果消息无效,则回送注册应答消息,指示注册失败。c. After the home agent of mobile node A receives the registration request message, it performs a validity check. If the message is valid, the home agent binds the home address of mobile node A with the care-of address, and returns a registration response message, indicating that the registration is successful. And start to prepare the packet sent to the mobile node A as the tunnel entry encapsulation; if the message is invalid, then send back a registration response message indicating that the registration failed.
d.外地代理收到注册应答消息后再做有效性检查,如果检查通过,则外地代理更新访问移动节点列表,将注册应答消息转发给移动节点A,并开始准备作为隧道出口拆封发送给移动节点A的报文;如果检查未通过,则外地代理转发注册应答消息给移动节点A,指示注册失败。d. After the foreign agent receives the registration response message, it will perform a validity check. If the check is passed, the foreign agent will update the list of visited mobile nodes, forward the registration response message to mobile node A, and start preparing to unpack and send it to the mobile node as the tunnel exit message from node A; if the check fails, the foreign agent forwards the registration response message to mobile node A, indicating that the registration failed.
e.移动节点A收到注册应答消息后,如果注册成功,则开始正常工作;否则,可以根据错误信息调整后重新发起注册请求。e. After the mobile node A receives the registration response message, if the registration is successful, it starts to work normally; otherwise, it can re-initiate the registration request after adjusting according to the error information.
经过上述切换过程后,所有向移动节点A发送的报文均被路由到移动节点A的家乡网络,由家乡代理截获该报文后,将移动节点A注册的转交地址作为隧道出口,自身的IP地址作为隧道入口,对报文封装后发送。外地代理收到报文并拆封后,检查自身的访问移动节点列表,如果移动节点A存在于列表中,则根据转交地址将报文转交给移动节点A。After the above handover process, all messages sent to mobile node A are routed to the home network of mobile node A. After the home agent intercepts the message, it uses the care-of address registered by mobile node A as the tunnel exit, and its The address is used as the tunnel entrance, and the packet is encapsulated and sent. After the foreign agent receives the message and unpacks it, it checks its own visiting mobile node list, and if the mobile node A exists in the list, it forwards the message to the mobile node A according to the care-of address.
从上述切换过程可以看出,只有当移动节点在低层的切换完成后,才开始网络层切换。更明确地说就是,只有在物理层和链路层断开了原有网络连接、建立了新连接后才能进行网络层切换,而在网络层切换前原来的连接已经断掉,但网络层并不能察觉,因此,这种切换过程必然会使通讯中断、造成切换时延和整体通信恢复的周期延长,进而导致丢包。并且,如果通讯中断时间过长,会对实时性要求较高的应用产生影响,使得漫游对上层应用不透明,影响移动IP的使用效果。It can be seen from the above handover process that only after the handover of the mobile node in the lower layer is completed, the network layer handover starts. More specifically, the network layer switching can only be performed after the physical layer and the link layer disconnect the original network connection and establish a new connection. Before the network layer switching, the original connection has been broken, but the network layer does not Therefore, this switching process will inevitably interrupt communication, cause switching delay and prolong the cycle of overall communication recovery, and then lead to 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.
为缩短切换时延、减少丢包,业界分别提出了很多不同的解决方案。主要包括:实现快速切换的方案,例如蜂窝IP等;实现平滑切换的方案,例如分组缓存转发机制;还有将二层和三层切换相结合的方法。但在上述方案中,无论是实现快速切换还是实现平滑切换,均局限于对网络层切换的处理过程的改进,不能彻底解决低层切换完毕才能进行网络层切换的问题,因此单纯缩短网络层的切换时间对提高整个切换速度的影响并不明显。In order to shorten the handover delay and reduce packet loss, the industry has proposed many different solutions. It mainly includes: a scheme to realize fast switching, such as cellular IP, etc.; a scheme to realize smooth switching, such as a packet buffering and forwarding mechanism; and a method combining Layer 2 and
故此,又有一些研究机构提出将链路层和网络层切换相结合,利用链路层来触发网络层进行预注册,使得在二层切换完成的同时也完成三层切换,从而实现快速切换。这种方案主要有:Ericsson提出的一个Internet草案--“移动IPv4中的快速切换”。该方案的主要思想是:当移动节点处于交叠区域时提前注册,利用原有的链路向新的外地代理进行注册。但由于该方案的实现还是基于单链路,三层切换和二层切换之间的时间配合就很重要,如果在完成网络层切换前原链路已经断开,那么,依然会引起通讯的中断,造成丢包。Therefore, some research institutes propose to combine the link layer and the network layer handover, and use the link layer to trigger the network layer to perform pre-registration, so that the
发明内容Contents of the invention
有鉴于此,本发明的主要目的在于提供一种在移动IP中移动节点实现切换的方法,不仅能使低层主动准确地触发网络层启动切换,提高切换速度;而且,能保证在切换过程中通讯不中断,降低切换过程中的丢包率。In view of this, the main purpose of the present invention is to provide a kind of method that mobile node realizes handover in Mobile IP, not only can make lower layer trigger network layer to start handover actively and accurately, improve handover speed; Interruption, reducing the packet loss rate during switching.
为达到上述目的,本发明的技术方案是这样实现的:In order to achieve the above object, technical solution of the present invention is achieved in that way:
一种移动IP中移动节点实现切换的方法,关键在于,为每个移动节点建立两条与当前子网进行通信的链路连接,该方法还包括以下步骤:A kind of method that mobile node realizes switching in mobile IP, the key is, set up two link connections that carry out communication with current subnet for each mobile node, and this method also includes the following steps:
a.当前移动节点检测当前发现的所有基站的选定物理层信道信息;a. The current mobile node detects the selected physical layer channel information of all currently discovered base stations;
b.判断所检测到的选定物理层信道信息是否满足设定的触发条件,如果不满足,则返回步骤a;如果满足,则再判断当前满足触发条件的基站是否属于所述移动节点当前所在子网,如果不属于,则向网络层发送切换指示;否则返回步骤a;b. Judging whether the detected selected physical layer channel information satisfies the set trigger condition, if not, then return to step a; if yes, then judge whether the base station that currently satisfies the trigger condition belongs to the current location of the mobile node Subnet, if it does not belong to, send a switching instruction to the network layer; otherwise return to step a;
c.网络层收到切换指示后,断开当前移动节点与原子网基站之间已建立的两条链路中的一条,并在当前移动节点与要切换到的目标基站之间建立一条新的链路连接;c. After the network layer receives the handover instruction, it disconnects one of the two links established between the current mobile node and the base station of the atomic network, and establishes a new link between the current mobile node and the target base station to be handed over to link connection;
d.当前移动节点通过步骤c中新建的链路向家乡代理进行注册,并进行网络层切换;d. The current mobile node registers with the home agent through the newly created link in step c, and performs network layer handover;
e.注册完成后,断开当前移动节点与原子网基站之间的另一条链路连接,并在当前移动节点与要切换到的目标基站之间建立另一条新的链路连接。e. After the registration is completed, disconnect another link connection between the current mobile node and the base station of the atomic network, and establish another new link connection between the current mobile node and the target base station to be handed over to.
该方法进一步包括:当前移动节点获取并存储当前所处子网的所有基站信息,并实时获取当前所发现的所有基站的基站信息;则步骤b中所述判断当前满足触发条件的基站是否属于所述移动节点当前所在子网为:当前移动节点将当前满足触发条件的基站的基站信息与自身存储的所有基站的基站信息进行匹配,如果均不匹配,则满足触发条件的基站不属于当前移动节点当前所在子网,否则属于当前移动节点当前所在子网。The method further includes: the current mobile node obtains and stores all the base station information of the current subnet, and obtains the base station information of all the currently discovered base stations in real time; The current subnet of the mobile node is: the current mobile node matches the base station information of the base station that currently satisfies the trigger condition with the base station information of all base stations stored in itself. If they do not match, the base station that meets the trigger condition does not belong to the current mobile node. Otherwise, it belongs to the subnet where the current mobile node is currently located.
上述方案中,移动节点从家乡网络切换到外地网络时,步骤d所述进行网络层切换具体包括:In the above scheme, when the mobile node switches from the home network to the foreign network, the network layer switching described in step d specifically includes:
d11.移动节点通过与目标基站之间建立的链路连接获得新的转交地址;d11. The mobile node obtains a new care-of address through the link connection established with the target base station;
d12.移动节点建立隧道,通过新建的链路向家乡代理发送注册请求;d12. The mobile node establishes a tunnel, and sends a registration request to the home agent through the newly established link;
d13.家乡代理收到注册请求后,建立通向该转交地址的隧道,发送注册应答,并发送代理地址解析协议ARP消息;d13. 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;
则步骤e所述注册完成为:移动节点收到家乡代理发来的注册应答。Then the completion of the registration described in step e is: the mobile node receives the registration response sent by the home agent.
移动节点从一个外地网络切换到另一外地网络时,步骤d所述进行网络层切换具体包括:When the mobile node is handed over from a foreign network to another foreign network, the network layer handover described in step d specifically includes:
d21.移动节点通过与目标基站之间建立的链路连接获得新的转交地址;d21. The mobile node obtains a new care-of address through the link connection established with the target base station;
d22.移动节点获取转交地址后建立隧道,通过新建立的链路向家乡代理发送注册请求,且该注册请求中携带有保留原转交地址的指示;d22. 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;
d23.家乡代理收到新的注册请求后保留原转交地址,同时存储注册请求中携带的新转交地址,并向移动节点发送注册应答;d23. 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;
d24.移动节点收到注册应答后,从移动节点与原基站之间保留的链路上发送取消注册请求;d24. After receiving the registration response, the mobile node sends a deregistration request from the link reserved between the mobile node and the original base station;
d25.家乡代理收到取消注册请求后,删除原转交地址,并向移动节点发送注册应答;d25. After receiving the deregistration request, the home agent deletes the original care-of address and sends a registration response to the mobile node;
则步骤e所述注册完成为:移动节点收到家乡代理删除原转交地址后发来的注册应答。Then the completion of the registration in step e is: the mobile node receives the registration response sent by the home agent after deleting the original care-of address.
移动节点从外地网络切换回家乡网络时,步骤d所述进行网络层切换具体包括:When the mobile node switches back to the home network from the foreign network, the network layer switching described in step d specifically includes:
d31.移动节点在家乡网络中发送免费ARP消息,并向家乡代理发送取消注册请求;d31. The mobile node sends a gratuitous ARP message in the home network, and sends a deregistration request to the home agent;
d32.家乡代理收到取消注册请求后,删除移动节点的转交地址和隧道,并向移动节点返回注册应答;d32. 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;
则步骤e所述注册完成为:移动节点收到家乡代理发来的注册应答后,删除与外地代理之间建立的隧道。Then the completion of the registration in step e is as follows: the mobile node deletes the tunnel established with the foreign agent after receiving the registration response sent by the home agent.
上述方案中,在切换过程中,移动节点收到从不同链路发送过来的重复数据后,根据现有协议过滤一份重复数据。In 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.
上述方案中,所设定的触发条件引起的触发时间提前于物理层自动切换的时间。所述设定的触发条件为预先设置的选定要检测的物理层信道信息的阈值。所述选定物理层信道信息为接收信号强度、或为信噪比。In the above solution, the trigger time caused by the set trigger condition is earlier than the time of automatic switching of the physical layer. The set trigger condition is a preset threshold value of the selected physical layer channel information to be detected. The selected physical layer channel information is received signal strength or signal-to-noise ratio.
上述方案中,所述基站信息为基站标识ID、或为基站所属子网的服务集标识SSID、或基站的MAC地址。那么,所述移动节点获取当前所处子网的所有基站信息具体包括:移动节点向当前所处子网的代理发送注册请求消息,所述注册请求信息携带有请求获取所述当前所处子网的所有基站信息的指示;收到所述注册请求的代理向发起注册请求的移动节点返回携带有所述当前所处子网的所有基站信息的注册应答消息。其中,所述请求获取当前所处子网的所有基站信息的指示放置于注册请求消息的扩展域中;所述当前所处子网的所有基站信息放置于注册应答消息的扩展域中。In the above solution, the base station information is the base station ID, or the SSID of the subnet to which the base station belongs, or the MAC address of the base station. Then, the obtaining of all base station information of the current subnet by the mobile node specifically includes: the mobile node sends a registration request message to an agent of the current subnet, and the registration request information carries a request to obtain all base stations of the current subnet Indication of information: the agent receiving the registration request returns a registration response message carrying information of all base stations of the current subnet to the mobile node that initiates the registration request. Wherein, the indication of requesting to acquire information of all base stations of the current subnet is placed in the extension field of the registration request message; the information of all base stations of the current subnet is placed in the extension field of the registration response message.
本发明所提供的在移动IP中移动节点实现切换的方法,具有以下的优点和特点:1)本发明利用检测到的物理层信道的相关信息作为网络层切换的触发条件,将网络层切换提前于低层切换进行,能够缩短网络层切换判断的时间,从根本上提高切换速度,且有效减少丢包。The method that mobile node realizes switching in Mobile IP provided by the present invention has the following advantages and characteristics: 1) the present invention utilizes the relevant information of the physical layer channel that detects as the triggering condition of network layer switching, and network layer switching is ahead of schedule Low-level switching can shorten the time for network layer switching judgment, fundamentally improve switching speed, and effectively reduce packet loss.
2)本发明在移动IP切换中引入了双链路的概念,即:每个移动节点同时保持两条无线链路的通讯,当移动节点进入可能切换的重叠网络覆盖区域时,在原有网络仍可使用的情况下判断是否需要进行网络层切换,如需要则将一条链路用于与新网络建立连接,而另一条链路用于保持与原网络的连接,从而在原有网络不可用之前,实现原网络和新网络两个网络的同时接入,如此,就可以保证切换过程中通讯不中断,从而降低了丢包率。2) The present invention introduces the concept of dual links in the mobile IP handover, that is: each mobile node maintains the communication of two wireless links simultaneously, when the mobile node enters the overlapping network coverage area that may be handed over, in the original network still When it is available, it is judged whether a network layer switch is required. If necessary, one link is used to establish a connection with the new network, and the other link is used to maintain the connection with the original network, so that before the original network is unavailable, Realize the simultaneous access of the original network and the new network, so that the communication can be guaranteed to be uninterrupted during the switching process, thereby reducing the packet loss rate.
3)本发明将利用物理层信道信息触发网络层切换与建立双链路技术同时结合使用,从根本上提高切换速度,并有效减少丢包,是移动IP中实现无缝切换的一种有效方式。3) The present invention combines the use of physical layer channel information to trigger network layer switching and the establishment of dual-link technology at the same time, fundamentally improving the switching speed and effectively reducing packet loss. It is an effective way to realize seamless switching in mobile IP .
4)本发明中的移动节点利用物理层信道信息作为触发条件时,根据当前无线子网内所有基站的信息,判断自身是否在不同子网之间切换,如此,不仅提高了切换判断的准确度,而且避免了由于低层切换信息频繁触发而造成网络层的盲目切换。4) When the mobile node in the present invention utilizes the physical layer channel information as a trigger condition, it judges whether itself switches between different subnets according to the information of all base stations in the current wireless subnet, so that not only improves the accuracy of handover judgment , and avoid blind switching of the network layer due to frequent triggering of low-level switching information.
5)在本发明中,当移动节点处于非切换阶段时,可并行使用两条链路,如此,能够充分利用硬件资源,提高带宽,并达到负载均衡的目的。5) In the present invention, when the mobile node is in the non-handover stage, two links can be used in parallel, so that hardware resources can be fully utilized, bandwidth can be increased, and the purpose of load balancing can be achieved.
6)本发明是对标准移动IP协议的扩展,仅对现有处理稍加改动,与标准移动IP系统完全兼容,因此,实现简单方便,且易于在现有的移动IP系统上进行功能扩展。6) 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 triggering timing of physical layer channel information when the mobile node is handed over as defined in the present invention;
图4为本发明中移动节点从家乡网络移动到外地网络的切换过程示意图;Fig. 4 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;
图5为本发明中移动节点在两个外地网络间移动的切换过程示意图;FIG. 5 is a schematic diagram of a handover process in which a mobile node moves between two foreign networks in the present invention;
图6为本发明中移动节点从外地网络返回家乡网络的切换过程示意图;6 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;
图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: the mobile node uses the relevant information of the physical layer channel as a trigger condition, and combines the base station information of the current network to judge whether it needs to trigger the network layer handover. Moreover, a dual link is established for each mobile node, and 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 the One, that is, use one link to maintain the original connection, and use another link to establish a new connection at the same time. New connections between subnet base stations.
本发明实现的前提是:预先选定一个物理层信道信息作为触发参数,并针对选定的物理层信道信息设置好触发条件,这里,选定物理层信道信息是从移动节点判断是否需要进行物理层切换所用的物理层参数信息中选取;并且,在移动节点与其当前所处子网基站之间建立用于通信的双链路。基于此,本发明的实现过程参见图2所示,包括以下步骤:The premise that the present invention realizes is: select a physical layer channel information in advance as a trigger parameter, and set trigger conditions for the selected physical layer channel information, here, the selected physical layer channel information is to judge from the mobile node whether to perform physical Select from the physical layer parameter information used for layer handover; and establish a dual link for communication between the mobile node and the base station of the subnet where the mobile node is currently located. Based on this, the realization process of the present invention is referring to shown in Figure 2, comprises the following steps:
步骤201:移动节点实时检测当前所发现的所有基站的选定物理层信道信息。Step 201: the mobile node detects in real time the selected physical layer channel information of all currently discovered base stations.
其中,所述物理层信道信息为移动节点判断是否进行物理层切换所用的物理层参数信息,包括当前所连接到的基站的ID、可用的基本服务集列表、接收到的信号强度、信噪比等;可从上述参数信息中任选一种作为选定物理层信道信息,通常可选择接收信号强度、或信噪比。比如:以信噪比作为选定物理层信道信息,移动节点就实时检测当前所发现的所有基站信号的信噪比情况。Wherein, the physical layer channel information is the physical layer parameter information used by the mobile node to judge whether to perform physical layer handover, including the ID of the base station to which it is currently connected, the list of available basic service sets, the received signal strength, and the signal-to-noise ratio etc.; any one of the above parameter information can be selected as the selected physical layer channel information, usually the received signal strength or signal-to-noise ratio can be selected. For example, using the signal-to-noise ratio as the channel information of the selected physical layer, the mobile node detects the signal-to-noise ratios of all base station signals currently discovered in real time.
步骤202:移动节点判断所检测到的选定物理层信道信息是否满足设定的触发条件,如果满足,则执行步骤203;否则,返回步骤201。Step 202: the mobile node judges whether the detected selected physical layer channel information satisfies the set trigger condition, if so, executes step 203; otherwise, returns to step 201.
这里,所述的触发条件可以是预先设置的选定物理层信道信息的阈值,比如:选定信噪比为选定物理层信道信息,触发条件为设置信噪比阈值为SIR1,那么,如果移动节点当前的信噪比值大于SIR1,就是满足触发条件。所设置的触发条件必须保证利用本触发条件而引起的触发时间提前于链路层自动切换的时间,如图3所示,时刻32为现有技术中网络层进行切换的起始时刻,时刻31为本发明中设置的网络层切换的触发时刻。Here, the trigger condition may be a preset threshold of selected physical layer channel information, such as: the selected signal-to-noise ratio is the selected physical layer channel information, and the trigger condition is to set the signal-to-noise ratio threshold as SIR1, then, if The trigger condition is met if the current SNR value of the mobile node is greater than SIR1. The set trigger condition must ensure that the trigger time caused by using this trigger condition is ahead of the time of link layer automatic switching, as shown in Figure 3,
步骤203~204:移动节点判断满足触发条件的基站是否属于新的子网,如果不属于,则返回步骤201,如果属于,则向网络层发送切换指示。Steps 203-204: the mobile node judges whether the base station meeting the trigger condition belongs to the new subnet, if not, returns to step 201, and if so, sends a handover instruction to the network layer.
这里,移动节点可以通过比较基站信息来判定满足触发条件的基站是否属于自身当前所在子网。这种情况下,在步骤201中,移动节点还要同时获取当前所发现的所有基站的基站信息;并且,移动节点还要定时搜索,获取并存储当前所在子网的所有基站信息。其中,所述基站信息是指能标识每个基站子网归属的信息,即当前基站属于哪个子网的标识信息,比如:基站ID、基站所属子网的服务集标识(SSID)等等。所述定时搜索的时间周期可根据实际情况任意设定,比如:根据移动节点的移动速率设定;如果时间周期设置为零,则进行实时搜索。Here, the mobile node can determine whether the base station meeting the trigger condition belongs to the subnet where it is currently located by comparing the base station information. In this case, in step 201, the mobile node also obtains base station information of all currently discovered base stations at the same time; moreover, the mobile node also needs to periodically search, obtain and store all base station information of the subnet it is currently in. Wherein, the base station information refers to information that can identify the subnet to which each base station belongs, that is, identification information of which subnet the current base station belongs to, such as: base station ID, service set identifier (SSID) of the subnet to which the base station belongs, and the like. The time period of the regular search can be set arbitrarily according to the actual situation, for example: set according to the moving speed of the mobile node; if the time period is set to zero, real-time search will be performed.
那么,所述判断就是:移动节点将当前所有满足触发条件的基站的基站信息与自身存储的当前所在子网内的所有基站信息进行匹配,如果能匹配上,则说明满足触发条件的基站均不属于新的子网,那么就返回步骤201,如果均不匹配,则说明有满足触发条件的基站属于新的子网,那么就主动触发网络层切换,即:向网络层发送切换指示。Then, the judgment is: the mobile node matches the base station information of all base stations satisfying the trigger condition with the information of all base stations in the current subnet stored by the mobile node. If they can match, it means that none of the base stations satisfying the trigger condition Belong to the new subnet, then return to step 201, if they do not match, it means that there is a base station that meets the trigger condition and belongs to the new subnet, then the network layer handover is actively triggered, that is, a handover instruction is sent to the network layer.
之所以要进一步判断满足触发条件的基站是否属于新的子网,即:之所以要同时结合基站信息来判断是否进行网络层切换是因为:如果仅依靠选定的物理层信道信息进行触发,有可能只完成同一子网内不同基站间的切换,也就是说,如果仅根据此触发条件触发网络层的切换,可能会导致很多无谓的切换,严重影响网络性能,消耗系统资源。因此,要在本步骤中确定出现的是新无线子网的基站,才启动网络层切换,否则就不进行网络层切换,如此可减少不必要的切换。The reason for further judging whether the base station that satisfies the trigger condition belongs to the new subnet, that is, the reason why it is necessary to combine the information of the base station to determine whether to perform network layer switching is because: if only relying on the selected physical layer channel information for triggering, there is It may only complete the handover between different base stations in the same subnet. That is to say, if the handover of the network layer is only triggered according to this trigger condition, it may cause many unnecessary handovers, which seriously affects network performance and consumes system resources. Therefore, it is determined in this step that the base station of the new wireless subnet appears before starting the network layer handover, otherwise the network layer handover will not be performed, thus reducing unnecessary handover.
移动节点获得基站信息可以有很多方式,常用的两种方式是:There are many ways for a mobile node to obtain base station information, and the two commonly used ways are:
a)由于标准移动IP协议对注册消息的定义留有扩展域,如表一、表二所示,表一为注册请求消息的消息格式,表二为注册应答消息的消息格式,因此,外地代理与移动节点之间关于基站信息的传递可以利用注册消息的扩展域。
表一
表二 Table II
这种情况下,移动节点获取当前网络内基站信息的过程是:移动节点向当前所在网络的代理发送注册请求消息,该注册请求中携带有请求传递当前网络内所有基站信息的指示,所述指示放置在注册请求消息的扩展域中;移动节点当前所在网络的代理收到注册请求后,向移动节点回送携带有当前网络内所有基站信息的注册应答消息,同样,所有基站信息也放置在注册应答消息的扩展域中。In this case, the process for the mobile node to obtain the base station information in the current network is: the mobile node sends a registration request message to the agent of the current network, and the registration request carries an indication of requesting to transfer the information of all base stations in the current network. Placed in the extension field of the registration request message; after the agent of the network where the mobile node is currently located receives the registration request, it sends back a registration response message carrying information of all base stations in the current network to the mobile node. Similarly, all base station information is also placed in the registration response in the extension field of the message.
那么,注册消息的具体扩展方法是:在注册请求消息的扩展域中添加一项,并为该项设定一个特定值,代表移动节点请求外地代理传递本子网内基站的信息,比如:设定一个类型项,并将类型值定义为39,如表三所示。当然,如果某移动节点处于家乡网络,同样可以向家乡代理发送携带有特定类型值的注册请求。
表三Table 3
相应地,在注册应答消息的扩展域中添加一项,用于携带当前子网所有基站的信息,如表四所示。
表四Table 4
表四中,类型表示该注册应答消息中携带有基站信息,类型值与注册请求消息中的类型值相同,比如:类型值为39;数量表示本子网内基站的个数;字节数表示一个基站信息所需占用的字节数,表四中假定为四个字节;基站1至基站n的标志信息为基站信息,可以是基站的ID、MAC地址等,只要是能唯一标识某个基站的信息都可以。In Table 4, the type indicates that the registration response message carries base station information, and the type value is the same as that in the registration request message, for example: the type value is 39; the quantity indicates the number of base stations in the subnet; the number of bytes indicates a The number of bytes required for base station information is assumed to be four bytes in Table 4; the logo information of base station 1 to base station n is base station information, which can be the ID, MAC address, etc. of the base station, as long as it can uniquely identify a certain base station information is available.
为防止当前所处网络内的基站数量发生变化,例如:关闭一个基站、新增加一个基站等情况,除外地代理定时更新以外,移动节点还可以定时请求外地代理传递当前子网内所有基站的信息。由于标准移动IP协议中的注册请求也是要定时发送的,因此可以直接利用定时的注册请求来定时请求基站信息。In order to prevent the number of base stations in the current network from changing, for example: shutting down a base station, adding a new base station, etc., in addition to the regular update of the foreign agent, the mobile node can also periodically request the foreign agent to transmit the information of all base stations in the current subnet . Since the registration request in the standard mobile IP protocol is also sent periodically, the timing registration request can be directly used to request base station information regularly.
移动节点一旦进入新的外地网络,原外地网络的基站信息就将被新外地网络的信息所代替。但对于家乡网络的基站信息,移动节点必须一直保存,因为对于网络层来说,回到家乡的处理与在不同外地网络之间切换是有区别的。Once the mobile node enters a new foreign network, the base station information of the original foreign network will be replaced by the information of the new foreign network. But for the base station information of the home network, the mobile node must keep it all the time, because for the network layer, there is a difference between returning home and switching between different foreign networks.
b)为相邻无线网络配置不同的SSID,例如:如果网络1与网络2相邻,则配置网络1的SSID为Ssid1,网络2的SSID为Ssid2。移动节点在与基站的交互过程中,从基站下发的消息中提取其所属子网的SSID。b) Configure different SSIDs for adjacent wireless networks, for example: if network 1 is adjacent to network 2, configure the SSID of network 1 as Ssid1 and the SSID of network 2 as Ssid2. During the interaction process with the base station, the mobile node extracts the SSID of the subnet it belongs to from the message delivered by the base station.
当然,在实际应用中,移动节点获取基站信息的方式不仅限于上述两种。Of course, in practical applications, the manners for the mobile node to acquire base station information are not limited to the above two methods.
步骤205:网络层收到低层发来的切换指示后,系统释放一条链路当前的连接,即断开双链路中任意一条链路的原有连接,由另一条链路承担当前子网的全部通信,而断开的一条链路用于建立与新无线子网中基站的连接。Step 205: After the network layer receives the switching instruction from the lower layer, the system releases the current connection of a link, that is, disconnects the original connection of any link in the dual link, and the other link assumes the responsibility of the current subnet. All communications, while the broken link is used to establish a connection with the base station in the new wireless subnet.
步骤206:与新基站的连接建立完成后,移动节点通过新建立的连接向家乡代理进行注册,并进行网络层切换。具体地说,移动节点建立与新子网中代理之间的连接,并向家乡代理进行注册。这里,如果移动节点是进入新的外地网络,那么,新子网中的代理就是新的外地代理,如果移动节点是回到家乡网络,那么,新子网中的代理就是家乡代理。Step 206: After the connection with the new base station is established, the mobile node registers with the home agent through the newly established connection, and performs network layer handover. Specifically, the mobile node establishes a connection with the agent in the new subnet and registers with the home agent. Here, if the mobile node enters a new foreign network, then the agent in the new subnet is the new foreign agent; if the mobile node returns to the home network, then the agent in the new subnet is the home agent.
以进入新的外地网络为例,移动节点与新外地代理建立连接后,再通过新的外地代理与家乡代理间进行注册,注册过程包括:首先,移动节点要从新的外地代理处获取新的转交地址,然后向家乡代理进行注册,将新的转交地址发送给家乡代理;家乡代理在收到新转交地址的注册后,并不马上把原转交地址删除,而是保持两个注册绑定,将发送到移动节点的每一个数据报文通过隧道送到移动节点的每个转交地址。此种情况下,移动节点会通过双链路收到重复的数据,那么,移动节点就根据现有协议中对重复数据的处理方式过滤一份重复数据。Taking entering a new foreign network as an example, after the mobile node establishes a connection with the new foreign agent, it registers with the home agent through the new foreign agent. The registration process includes: first, the mobile node obtains a new handover from the new foreign agent. address, and then register with the home agent, and send the new care-of address to the home agent; after the home agent receives the registration of the new care-of address, it does not immediately delete the original care-of address, but keeps the two registrations bound, and will Every 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.
步骤207:在新的链路稳定形成、移动节点的注册完成后,系统释放另一条链路的原有连接,并在移动节点与新的无线子网基站之间、以及移动节点与新无线子网的代理之间建立另一条链路连接,之后恢复正常的通信过程。Step 207: After the new link is formed stably and the registration of the mobile node is completed, the system releases the original connection of the other link, and connects between the mobile node and the base station of the new wireless subnet, and between the mobile node and the new wireless subnet Another link connection is established between the agents of the network, and then the normal communication process is resumed.
移动节点的切换可分为三种情况:移动节点从家乡网络移动到外地网络、移动节点在不同外地网络之间移动、移动节点从外地网络回到家乡网络。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.
移动节点在离开家乡网络进行切换时,切换过程中采用一条链路注册,另一条链路通信的方式。如图4所示,链路40为保持原有连接继续进行通信的链路,链路41为断开原有连接与外地代理之间建立新连接进行注册的链路。移动节点从家乡网络移动到外地网络时的切换过程包括以下步骤: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. 4 , link 40 is a link for maintaining the original connection to continue communication, and link 41 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.当移动节点移出家乡网络,进入一个外地网络时,该移动节点将自身建立的两条链路中的任意一条链路接入外地网络,当新的连接建立起来后,移动节点通过此连接获得新网络中的转交地址,比如:利用链路41获取转交地址。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
b1.移动节点与外地代理之间建立隧道,通过新建的链路向家乡代理发送注册请求,即:移动节点经由链路41、路径42、43、44向家乡代理进行注册。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 through
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.
移动节点在离开一个外地网络进入另一个外地网络时,切换过程中家乡代理采用多重绑定的方式,即:为该移动节点同时存储两个转交地址,同时绑定两条路由。参见图5所示,移动节点在不同外地网络之间移动时的切换过程包括以下步骤: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. 5, 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置位,就说明移动节点要求家乡代理保留其以前的绑定信息。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.
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.
移动节点从外地网络返回家乡网络时,切换过程采用一条链路注册,另一条链路继续通过外地网络进行通信的方式。如图6所示,移动节点从外地网络回到家乡网络时的切换过程包括以下步骤: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 6, 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.
在图4、图5、图6中,虚线表示单向隧道,实线表示注册消息,点划线表示正常的通信数据,实线上的矩形表示隧道。In FIG. 4 , FIG. 5 , and FIG. 6 , 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地址进行通讯,从而上层应用并不能意识到双链路的存在。在实际应用中,移动节点的两条链路可以分别通过两块网卡实现,在移动节点的上层应用看来移动节点只有一个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. In practical applications, the two links of the mobile node can be realized 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 transmitted through two links. of. 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.
下面参照图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,该移动过程包括三种切换:从家乡网络到外地网络的切换、在两个外地网络之间的切换、以及从外地网络回到家乡网络的切换。Referring to FIG. 7 and in conjunction with specific embodiments, the handover process of establishing a dual link and actively triggering network layer handover at the lower layer 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 trajectory of the mobile node 70. It can be seen that the mobile node 70 starts from the home network, roams to the foreign network 1 first, and then roams from the foreign network 1 to the foreign network 2. The moving process includes three steps. Types of handover: 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地址比较,此时,移动节点70自身保存的是AP1和AP2的MAC地址,所以,发现AP3的MAC地址与自身当前保存的所有AP的MAC地址均不匹配,则可以确定AP3属于新的子网,于是移动节点70就主动触发网络层的切换。Taking the signal-to-noise ratio as the selected physical layer channel information 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: the mobile node 70 enters the junction of the home network and the foreign network 1, that is, from the AP2 When moving into AP3, as the distance from AP3 gets closer, mobile node 70 will find that the signal-to-noise ratio of AP3 has met the set trigger condition, that is, reaches the preset signal-to-noise ratio threshold; at the same time, mobile node 70 searches and obtains The MAC address of AP3 compares the MAC address of AP3 with the MAC addresses of all APs in the current subnet that it currently saves. At this time, what the mobile node 70 itself saves is the MAC addresses of AP1 and AP2, so find the MAC address of AP3 If it does not match the MAC addresses of all the APs currently saved by itself, it can be determined that AP3 belongs to a new subnet, so the mobile node 70 actively triggers a network layer handover.
当移动节点70沿移动轨迹移动到AP4和AP6的重叠覆盖区72时,二层触发启动,通知网络层移动节点70即将进入了新的外地网络,触发网络层开始切换。移动节点70将与AP4之间建立的两条链路中的一条链路连接断开,与AP6建立连接,但仍然保持一条链路与AP4连接;并且,移动节点70通过与AP6建立连接获得外地网络2中的转交地址2。移动节点70建立隧道,通过与AP6的链路向家乡代理发送注册请求,此时注册请求需要设置“S”位。这里,如果以信噪比作为选定物理层信道信息且基站信息为AP的MAC地址的话,所述二层触发启动的具体过程与移动节点70向AP3切换是类似的。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. Here, if the signal-to-noise ratio is used as the selected physical layer channel information and the base station information is the MAC address of the AP, the specific process of the two-layer trigger start is similar to the handover from the mobile node 70 to AP3.
虽然移动节点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的另一条链路连接仍然保持。这里,如果以信噪比作为选定物理层信道信息且基站信息为AP的MAC地址的话,所述二层触发启动的具体过程与移动节点70向AP3切换是类似的。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. Here, if the signal-to-noise ratio is used as the selected physical layer channel information and the base station information is the MAC address of the AP, the specific process of the two-layer trigger start is similar to the handover from the mobile node 70 to AP3.
当与AP2的链路建立起来以后,移动节点70通过与AP2建立的连接在家乡网络中发送免费ARP消息,说明自己已经回到家乡,并发送取消注册请求。家乡代理收到取消注册请求后,删除移动节点70的转交地址2和隧道,并向移动节点70发送注册应答。移动节点70收到注册应答后,删除隧道,并将与AP5保持的链路连接也断开,接入家乡网络的AP2上,作为移动节点70与AP2之间的第二条链路,至此完成从外地网络2回到家乡网络的整个切换过程。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.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。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 (13)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2004100423159A CN1324924C (en) | 2004-05-17 | 2004-05-17 | Method for realizing mobile node switching in mobile IP |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2004100423159A CN1324924C (en) | 2004-05-17 | 2004-05-17 | Method for realizing mobile node switching in mobile IP |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1582050A CN1582050A (en) | 2005-02-16 |
| CN1324924C true CN1324924C (en) | 2007-07-04 |
Family
ID=34582140
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CNB2004100423159A Expired - Fee Related CN1324924C (en) | 2004-05-17 | 2004-05-17 | Method for realizing mobile node switching in mobile IP |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN1324924C (en) |
Families Citing this family (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100581286C (en) | 2005-10-19 | 2010-01-13 | 华为技术有限公司 | Method and system for implementing mobile internet protocol de-registration of mobile user equipment |
| CN100456742C (en) * | 2006-04-30 | 2009-01-28 | 国家数字交换系统工程技术研究中心 | Mobile Internet protocol route processing method and system and router |
| US7990925B2 (en) * | 2007-05-30 | 2011-08-02 | Qualcomm Incorporated | Method and apparatus for communication handoff |
| CN101345696B (en) * | 2007-07-12 | 2011-03-16 | 中国科学院声学研究所 | Fast switching method for proxy mobile IP |
| US20090141683A1 (en) * | 2007-11-30 | 2009-06-04 | Edward Grinshpun | Method of best effort handoff to maintain radio bearer and mip session continuity for multi-mode mobile units |
| US9066309B2 (en) | 2008-09-23 | 2015-06-23 | Qualcomm Incorporated | Method and apparatus for reducing successive pre-registration attempts by access terminals |
| CN101931938B (en) * | 2009-06-26 | 2013-09-25 | 华为技术有限公司 | Method, device and system for forwarding data in inter-network switching |
| CN108900248B (en) * | 2018-06-27 | 2019-10-11 | 中国联合网络通信集团有限公司 | Method and device for allocating access points in a visible light wireless communication system |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1349322A1 (en) * | 2002-03-29 | 2003-10-01 | Fujitsu Limited | Method, apparatus, and medium for migration across link technologies |
-
2004
- 2004-05-17 CN CNB2004100423159A patent/CN1324924C/en not_active Expired - Fee Related
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1349322A1 (en) * | 2002-03-29 | 2003-10-01 | Fujitsu Limited | Method, apparatus, and medium for migration across link technologies |
Non-Patent Citations (5)
| Title |
|---|
| IP Mobility Support C. Perkins,第2-4节,Network Working Group 1996 * |
| Mobility Support in IPv6 David B. Johnson,Charles Perkins,全文,IETF Mobile IP Working Group 2000 * |
| 一个具有链路层支持的快速Mobile IP切换算法 熊焰 郭亮 顾乃杰 苗付友 华蓓,小型微型计算机系统,第24卷第6期 2003 * |
| 一个具有链路层支持的快速Mobile IP切换算法 熊焰 郭亮 顾乃杰 苗付友 华蓓,小型微型计算机系统,第24卷第6期 2003;移动IP技术中L2-TRIGGER方法研究 唐宏,陈前斌,吴中福,梁快,重庆邮电学院学报,第15卷第4期 2003;IP Mobility Support C. Perkins,第2-4节,Network Working Group 1996;Mobility Support in IPv6 David B. Johnson,Charles Perkins,全文,IETF Mobile IP Working Group 2000 * |
| 移动IP技术中L2-TRIGGER方法研究 唐宏,陈前斌,吴中福,梁快,重庆邮电学院学报,第15卷第4期 2003 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN1582050A (en) | 2005-02-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP1436962B1 (en) | Method and system for managing data flow between mobile nodes, access routers and peer nodes | |
| 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 | |
| US8570976B2 (en) | Method and system for fast handover in hierarchical mobile IPv6 | |
| US20110103260A1 (en) | Binding cache creating method, binding cache creating system, home agent, and mobile node | |
| JP3917623B2 (en) | System and method for supporting mobility of mobile node using regional anchor point in next generation internet | |
| CN1484407A (en) | Optimized packet routing method | |
| CN1610322A (en) | Movement detection method and a mobile terminal | |
| EP1589718A2 (en) | Mobile host, paging agent, packet communication system and movement detection method | |
| CN1596023A (en) | Method for implementing seamless switching between mobile nodes in mobile IP | |
| CN100349432C (en) | Tunnel based mobile IPv6 quick switching method | |
| CN101068213A (en) | Switch method, group broadcasting adding method and insertion router in proxy mobile IP | |
| CN101548566B (en) | Method and system for managing address prefix information associated with handovers in a network | |
| CN101005444B (en) | Method and device for quick switching | |
| CN1582050A (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 | |
| Sen | Mobility and handoff management in wireless networks | |
| CN1846360A (en) | System and method for providing mobile internet protocol terminal handover in wireless network | |
| CN101043350A (en) | Mobile multicasting method for multiple interfaces | |
| CN1477884A (en) | Hierarchical mobile data packet communication network and communication method thereof | |
| CN101051986A (en) | Method and device for realizing quick switch | |
| CN1291580C (en) | Method of realizing seamless switching based on mobile node of mobile IP | |
| CN1301035C (en) | Method for realizing network layer switching in mobile IP | |
| Liu et al. | Challenges and Solutions for Handoff Issues in 4G Wireless Systems An Overview | |
| CN101827410B (en) | Switching method for wireless mesh network |
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: 20070704 Termination date: 20160517 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |
