CN100456742C - Mobile Internet protocol route processing method and system and router - Google Patents

Mobile Internet protocol route processing method and system and router Download PDF

Info

Publication number
CN100456742C
CN100456742C CN 200610078033 CN200610078033A CN100456742C CN 100456742 C CN100456742 C CN 100456742C CN 200610078033 CN200610078033 CN 200610078033 CN 200610078033 A CN200610078033 A CN 200610078033A CN 100456742 C CN100456742 C CN 100456742C
Authority
CN
China
Prior art keywords
mobile node
address
mobile
home agent
node
Prior art date
Application number
CN 200610078033
Other languages
Chinese (zh)
Other versions
CN1881935A (en
Inventor
婧 于
张红杰
汪斌强
涓 申
靓 赵
Original Assignee
国家数字交换系统工程技术研究中心
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 国家数字交换系统工程技术研究中心 filed Critical 国家数字交换系统工程技术研究中心
Priority to CN 200610078033 priority Critical patent/CN100456742C/en
Publication of CN1881935A publication Critical patent/CN1881935A/en
Application granted granted Critical
Publication of CN100456742C publication Critical patent/CN100456742C/en

Links

Abstract

本发明提供了移动互联网协议路由处理方法和系统及路由器。 The present invention provides a mobile Internet protocol routing processing method and system and a router. 本发明提供的移动互联网协议路由处理方法一包括:移动节点发送当前转交地址信息,家乡代理判断若移动节点处于邻居子网,则修改移动节点家乡地址的转发处理函数,将数据包出口定向为移动节点当前所处子网接口;若移动节点处于远端子网,则建立从家乡代理到移动节点当前转交地址的隧道,并修改移动节点家乡地址的转发处理函数,将数据包出口对应于隧道接收处理函数。 Mobile Internet Protocol routing process of the present invention provides a method comprising: the mobile node sends information of the current care-of address, the home agent determines if the mobile node is the neighbor subnet, the forwarding function to modify the mobile node's home address, packet oriented mobile outlet interface to a subnet node is currently located; if the mobile node is distal subnets is established from the home agent to the mobile node's current care-of address of the tunnel, forwarding handler and modify the mobile node's home address, the packets exit the tunnel corresponding to the reception processing function . 本发明提供的移动互联网协议路由处理方法二包括:移动节点发送当前转交地址;家乡代理判断若移动节点处于远端子网,完成移动节点向通信节点的注册;若移动节点处于邻居子网,家乡代理阻止移动节点向通信节点进行注册。 Mobile Internet Protocol routing processing method of the present invention provides two comprising: the mobile node sends the current care-of address; home agent determines if the mobile node is distal to subnet, the mobile node registration completion to the communication node; if the mobile node is the neighbor subnet, the home agent preventing the mobile node registers with the communication node.

Description

移动互联网协议路由处理方法和系统;sj洛由器 Mobile Internet Protocol routing methods and systems; Luo by the device SJ

技术领域 FIELD

本发明涉及计算机通信技术领域,尤其涉及移动互联网协议路由处理方法和系统及路由器。 The present invention relates to computer communication technologies, and in particular relates to a mobile internet protocol routing processing method and system and a router.

背景技术 Background technique

随着互联网和移动通信技术的飞速发展,以及个人电脑和个人数字助理 With the rapid development of Internet and mobile communications technology, as well as personal computers and personal digital assistants

(PDA)的大量普及应用,用户对终端设备移动能力的需求与日俱增。 (PDA) of a large number of universal application, the user needs a mobile terminal apparatus for increasing capacity. IPv4 (互联网协议第四版)对终端设备移动性普遍采用的支持方法是:移动节点的家乡代理根据移动节点的注册请求,在本地建立移动节点外地网络临时转交地址与其家乡地址的绑定关系,然后截获所有发往移动节点家乡地址的数据包, IPv4 (Internet Protocol version) method to support the mobility of terminal equipment commonly used are: mobile node's home agent according to the registration request of the mobile node, the mobile node to establish a binding relationship between a foreign network temporary care-of address with its home address in local, then intercepts all packets destined for the mobile node's home address,

用移动节点当前的转交地址对该数据包进行隧道封装,然后再转发给移动节点。 Tunnel the data packet encapsulated with the current care-of address of the mobile node, and then forwarded to the mobile node. 该方法虽然可以满足用户移动性的需求,但是却存在很多潜在问题,如三角路由、家乡网络拥塞等。 Although this method can meet the needs of mobile users, but there are many potential problems, such as triangular routing, the home network congestion.

IPv6 (互联网协议第六版)在IPv4的基础上,为终端设备的移动性提供了两种路由策略:策略一提供的方法与上述IPv4采用的方法一致;策略二是当移动节点获得当前转交地址后,除了向家乡代理发送绑定更新消息外,还要向通信节点发送绑定更新消息,使通信节点建立起移动节点家乡地址与当前转交地址的绑定关系,能够直接通过移动节点的转交地址进行数据通信,以避免三角路由问题。 IPv6 (Internet Protocol version 6) on the basis of IPv4, provides for the mobility of the terminal devices of two routing strategies: a strategy to provide methods consistent with said IPv4 employed; Strategy II is obtained when the current care-of address the mobile node after addition to sending the binding update message to the home agent, but also to the communication node transmits a binding update message, so that the communication node with the home address of the mobile node to establish a care-of address binding relationship between the current care of address, the mobile node directly by data communication, in order to avoid triangular routing problem.

上述路由策略虽然对移动IPv4策略进行了改进,但具有以下缺陷: Although the above-described routing policy strategy improved Mobile IPv4, but with the following disadvantages:

在策略一中,移动节点的家乡代理获取移动节点当前转交地址后,截获所有发往该移动节点家乡地址的数据包,并用该移动节点当前的转交地址对每个数据包进行隧道封装再转发到移动节点。 In strategy a, the mobile node's home agent acquires the mobile node after the current care-of address, to intercept all packets addressed to the mobile node's home address, and the tunnel encapsulation for each packet with the current care-of address of the mobile node and then forwarded to the mobile node. 在该过程中,IP分组进行了两次定向路由处理。 In this process, IP packet routing processing two orientation. 但是如果移动节点只是移动到家乡代理的其他链珞接口所管理的子网中,从家乡代理的角度来看,该移动节点并没有移出其管理范围,此时家乡代理与移动节点间不存在其他任何三层交换设备,只要能将数据包从移动节点当前所接入的子网接口输出,不论该分组是否经过封装处理,都会到达移动节点所在的链路。 However, only if the mobile node moves to another subnet Luo chain management interface of the home agent, the home agent from the point of view, the mobile node is not moved out of its management scope, when there are no other between the home agent and the mobile node any three switching devices, as long as the mobile node capable of packet data currently output from the access interface to a subnet, regardless of whether the packet after encapsulation processing, the link will reach the mobile node is located. 在此情况下,如果仍然按照上述策略,对所有发送到该移动 In this case, if still in accordance with the above strategy, all sent to the mobile

节点家乡地址的数据包都进行隧道封装再转发的处理,实际上就造成了不必要的资源浪费,增加了系统开销和时间延迟。 Packet node's home address are processed and then forwarded tunnel encapsulation, actually resulting in unnecessary waste of resources, increased overhead and time delays.

另外,当家乡代理是具有接入汇聚功能的路由器时,如果移动节点只是移动到家乡代理的其他链路接口所管理的子网中,那么无论通信节点与移动节点是否处于同一链路,他们之间交换的分组都必须通过家乡代理进行路由转发处理,因此也就不存在三角路由问题,移动节点与通信节点再进行策略二提供的处理方法不但不会对路由优化产生正面的意义,反而会增加系统的开销,浪费系统资源。 In addition, when a home agent is a router access aggregation function, if the mobile node just move to the other sub-link interface managed by the home agent, then regardless of whether the communication nodes and mobile nodes on the same link, they are the packet switched between must be routed through the home agent forwarding, therefore there is no triangular routing problem, the mobile node and communication node further treatment strategy provided in the second route optimization will not only have a positive meaning, but will increase overhead systems, waste of system resources.

发明内容 SUMMARY

路由器,以实现有效利用网络资源进行数据路由的目的。 Router, to achieve efficient use of network resources for the purpose of routing data.

为解决上述技术问题,本发明的目的是通过以下技术方案实现的: . 一种移动互联网协议路由处理方法,包括以下步骤: Al、移动节点发送当前转交地址信息; To solve the above problems, an object of the present invention is achieved by the following technical solutions: A processing method of a mobile Internet protocol routing, comprising the following steps:. Al, the mobile node sends the current care-of address information;

Bl、家乡代理才艮据收到的转交地址信息判断若移动节点处于邻居子网, 则修改对应于移动节点家乡地址的转发处理函数,将数据包出口定向为移动节点当前所处子网接口;若移动节点处于远端子网,则建立从家乡代理到移动节点当前转交地址的隧道,并修改移动节点家乡地址的转发处理函数,将数据包出口对应于隧道接收处理函数。 BL, only the home agent care-of address according to the received Gen information to determine if the mobile node is the neighbor subnet, the mobile node is modified corresponding to the home address of the forwarding function, the packet is currently located outlet oriented interface to a subnet of the mobile node; if the mobile node is distal to the subnet is established from the home agent to the mobile node care-of address of the tunnel current, and forward processing function to modify the mobile node's home address, the packets exit the tunnel corresponding to the reception processing function.

步骤B1后进一步包括以下步骤: After step B1 further comprising the step of:

Cl、家乡代理获取通信节点发送到移动节点家乡地址的数据包,判断若该数据包是数据报文,则执行步骤D1; Cl, home agent acquires a data packet transmitted to the communication node home address of the mobile node, determining if the packet is a data packet, step Dl;

Dl、家乡代理判断如果与该数据包的目的地址对应的转发处理函数的数据包输出函数指针是隧道入口函数指针,则对数据包进行隧道封装,通过隧道将该数据包发送至移动节点;如果与该数据包的目的地址对应的转发处理函数的数据包输出函数指针是移动节点当前所在子网输出函数指针,则执行步骤El; DL, the packet forwarding function pointer output handler determines if the home agent corresponding to the destination address of the packet is the function pointer entry tunnel, the tunnel encapsulation of data packets, transmitted to the mobile node through the tunnel the data packet; if forwarding packet output handler function pointers corresponding to the destination address of the packet is the subnet where the mobile node is currently output function pointer, step El;

E1 、家乡代理通过移动节点当前子网接口将数据包发送至移动节点。 E1, the home agent transmits packets to the mobile node via the current subnet interface of the mobile node.

其中,步骤E1具体包括:家乡代理才艮据该移动节点绑定緩存表项中的转交地址信息进行IP地址和链路层地址查表,用查表得到的链路层地址对原数据包进行二层数据封装; Wherein E1 comprises the step of: before the home agent according to the Gen-transmit the address information of the mobile node binding cache entry in the IP address and the link layer address look-up table, the look-up table with a link-layer address of the original packet Layer 2 encapsulation;

将封装后的数据发送到移动节点当前所在子网接口的输出緩存队列,输出给移动节点。 Transmitting the encapsulated data to the interface to a subnet of the mobile node is currently located in the output buffer queue, the output to the mobile node.

在上述方法中,步骤A1具体包括: In the above method, the step A1 comprises:

移动节点获得具有所处外地子网前缀的转交地址后,向家乡代理发送绑定更新消息,该消息中携带移动节点的转交地址信息。 After obtaining the mobile node care of address field which has a subnet prefix, sending binding update message to the home agent, the message carries the information of the mobile node care-of address.

步骤Bl中所述家乡代理判断移动节点所处移动区域是通过以下方法实 The mobile node home agent determines in step Bl which is a solid region by the following method

现: Now:

家乡代理+艮据移动节点发送来的绑定更新消息,建立对应于该移动节点的绑定緩存表项; + Gen home agent according to the mobile node sends binding update message, in correspondence to the mobile node's binding cache entry;

家乡代理提取移动节点的转交地址前缀,与本家乡代理所有子网的前缀进行匹配查找,如果发现有匹配的前缀信息,则在绑定緩存表项中标记该移动节点当前移动区域为邻居子网;否则,在绑定緩存表项中标记该移动节点当前移动区域为远端子网。 Home agent extracted care-of address prefix of the mobile node, the home agent with this prefix to find all subnets match, if found to have a prefix matching information, then the binding cache entry area to mark the current movement of the mobile node neighbor subnet ; otherwise, mark the mobile node in the binding cache entry the current movement of the distal end region of the subnet.

一种移动互联网协议路由处理方法,包括以下步骤: A mobile internet protocol routing processing method comprising the steps of:

A2、移动节点发送当前转交地址信息; A2, the mobile node sends the current care-of address information;

B2、家乡代理根据收到的转交地址信息判断若移动节点处于远端子网, 则完成移动节点向通信节点的注册;若移动节点处于邻居子网,则阻止移动节点向通信节点进行注册。 B2, care-of address according to the home agent determines if the received information of the mobile node is distal to the subnet, the mobile node registration is complete to the communication node; if the mobile node is the neighbor subnet, the mobile node registers to prevent communication node.

其中,步骤A2具体包括: Wherein the step A2 comprises:

移动节点具有所处外地子网前缀的转交地址后,向家乡代理发送绑定更新消息,该消息中携带移动节点的转交地址信息。 Care-of address after the mobile node has a prefix in which the foreign subnet, the home agent sends a binding update message, and the message carries information of the mobile node's care-of address.

其中,步骤B2中所述家乡代理判断移动节点所处移动区域是通过以下方法实现: Wherein said home agent is determined in step B2 in which the mobile node moving area is achieved by the following method:

家乡代理才艮据移动节点发送来的绑定更新消息,建立对应于该移动节点的绑定緩存表项; It was Gen home agent to the mobile node sends a binding update message, in correspondence to the mobile node's binding cache entry;

家乡代理提取移动节点的转交地址前缀,与本家乡代理所有子网的前缀进行匹配查找,如果发现有匹配的前缀信息,则在緩存表项中标记该移动节点当前移动区域为邻居子网;否则,在緩存表项中标记该移动节点当前移动区域为远端子网。 Home agent extracted care-of address prefix of the mobile node, the home agent with this prefix to find all subnets match, if found to have the prefix information matches, the tag in the cache entry for the mobile node is currently moving area neighbor subnet; otherwise, , the mobile node in the cache tag entry of the current movement of the distal end region of the subnet.

其中,步骤B2中所迷阻止移动节点向通信节点进行注册是通过以下方法实现: Wherein, in the step B2 fans prevented mobile node registration is achieved by the following method to the communication node:

移动节点向家乡代理发送家乡测试初始化HoTI消息; 家乡代理收到HoH消息后,丟弃该消息,停止移动节点向通信节点的注册。 The mobile node transmits to the home agent the home test init HoTI message; HoH the home agent receives the message, discarding the message, stop the registration of the mobile node to the communication node.

步骤B2中所述阻止移动节点向通信节点进行注册还可以通过以下方法实 Step B2 prevents the mobile node to be registered by the following method may also be solid to the communication node

现: Now:

移动节点向家乡代理发送HoTI消息; The mobile node transmits HoTI message to the home agent;

家乡代理收到HoTI消息后,向通信节点发送该消息; The home agent receives HoTI message, sending the message to the communication node;

通信节点收到HoTI消息后,向家乡代理返回家乡测试HoT消息; After the communication node receives the HoTI message, the home agent returns to the home test message HoT;

家乡代理丢弃HoT消息,停止移动节点向通信节点的注册。 HoT message is discarded home agent, the mobile node registration stops the communication node.

一种移动互联网协议路由处理系统,包括: A mobile internet protocol routing processing system, comprising:

家乡代理,用于才艮据移动节点发送的转交地址信息判断该移动节点所处的移动区域,若移动节点处于邻居子网,则修改对应于移动节点家乡地址的转发处理函数,将数据包出口定向为移动节点当前所处子网^r口;若移动节点处于远端子网,则建立从家乡代理到移动节点当前转交地址的隧道,修改移动节点家乡地址的转发处理函数,将数据包出口对应于隧道接收处理函数。 Home agent, a care-of address data only Gen information sent by the mobile node determines the movement area of ​​the mobile node is located, if the mobile node is the neighbor subnet, the mobile node is modified corresponding to the home address of the forwarding function, the packet outlet oriented mobile node is currently located port subnet ^ r; if the mobile node is distal subnets is established from the home agent to the mobile node's current care-of address of the tunnel, modifying the forwarding processing functions of the mobile node's home address, the data packet corresponding to the outlet tunnel reception processing function.

所述家乡代理还用于在获取通信节点发送到移动节点家乡地址的数据包后,判断若该数据包是数据报文,则根据数据包的目的地址判断若与该目的地 The home agent further configured to acquire the communication node transmits a packet to the home address of the mobile node, determining if the packet is a data packet, if the destination is determined according to the destination address of the packet

址对应的转发处理函数的数据包输出函数指针是隧道入口函数指针,则对数据包进行隧道封装,通过隧道将该数据包发送至移动节点;如果与该目的地址对应的转发处理函数的数据包输出函数指针是移动节点当前所在子网输出指针, 则通过该子网接口将数据包发送至移动节点。 Packet output transfer process function pointer address corresponding to a function is the function pointer entry tunnel, the tunnel encapsulation of data packets, transmitted to the mobile node through the tunnel the data packet; forwarding data packets corresponding to the processing function if the destination address output function pointer is currently located subnet output pointer mobile node sends the packet to the mobile node via the interface to a subnet.

其中,所述家乡代理是具有三层路由功能的网络节点设备。 Wherein said network node is a home agent apparatus having a three-layer routing function. 一种移动互联网协议路由处理系统,其特征在于,包括: A mobile internet protocol routing processing system comprising:

所述家乡代理用于才艮据移动节点发送的转交地址信息判断该移动节点所处的移动区域,若移动节点处于远端子网,则实现移动节点向通信节点的注册; 若移动节点处于邻居子网,则阻止移动节点向通信节点进^f亍注册。 The home agent according to the care of address for Gen only information sent by the mobile node determines the movement area of ​​the mobile node is located, if the mobile node is distal to subnet, the mobile node registers to achieve the communication node; if the mobile node is the neighbor sub network, the node is prevented from moving into the right foot ^ f registered to the communication node.

其中,所述家乡代理是汇聚路由器。 Wherein the home agent is a router aggregation.

一种路由器,包括: A router include:

存储单元,用于存储根据路由器接收到的信息所建立的绑定緩存列表;所述绑定緩存列表中的不同绑定緩存表项保存本路由器管理的各个移动节点当前的移动信息,每一表项中包含有移动节点当前移动区域项,用于标识移动节点当前所处的移动区域;所述存储单元还用于将存储的信息提供给处理单元做进一步处理; A storage unit for storing a binding cache list according to the received router information established; different binding the binding cache entry in the cache list to save the current information of each mobile router managing a mobile node, each table entry area contains the current mobile node item movement, for moving the area identification of the mobile node is currently located; said further storage unit for storing information provided to the processing unit for further processing;

处理单元,用于根据存储单元中保存的绑定緩存表项中的移动节点当前移动区域项,判断移动节点所处移动区域,并采科目应的路由处理策略。 Processing means for moving area according to the current item stored in the storage unit of the mobile node in the binding cache entry, in which a mobile node moving area determination, the routing processing strategy adopted and the corresponding account.

其中,移动节点处于邻居子网时,所述路由处理策略是修?文对应于移动节点家乡地址的转发处理函数,将数据包出口定向为移动节点当前所处子网接 Among them, the mobile node is a neighbor subnet, the routing processing strategy is revised? Text corresponds to the forwarding function mobile node's home address, the packet export oriented mobile node is currently located subnet access

口;移动节点处于远端子网时,所述路由处理策略是建立从路由器到移动节点当前转交地址的隧道,修改移动节点家乡地址的转发处理函数,将数据包出口对应于隧道接收处理函数。 Mouth; subnet is distal to the mobile node, the routing treatment policy is to establish the current care-of address of the mobile node from the router to the tunnel, to modify the forwarding processing functions of the mobile node's home address, the packets exit the tunnel corresponding to the reception processing function.

当移动节点处于邻居子网时,所述路由处理策略还可以是阻止移动节点向通信节点进行注册;移动节点处于远端子网时,所述路由处理策略是实现移动节点向通信节点的注册。 When the mobile node is a neighbor subnet, the routing treatment policy is to block the mobile node may also register with the communication node; subnet is distal to the mobile node, the routing policy processing is implemented to the communication node registers the mobile node.

从以上技术方案可以看出,本发明具有以下优点:1、 通过引入移动节点区分处理机制,增强家乡代理对节点移动性支持的能力,对移动到邻居子网的移动节点,避免通过隧道传输,优化了IP寻址策略,加快了数据处理速度,实际上,对于直接重定向的数据包,当它到达移动节点后,由于数据没有经过隧道封装,因此在移动节点处理过程中也不再需要解封装的处理,进一步减小了相邻网间的切换和数据传输过程的网络延迟,提高了网络资源利用率。 As can be seen from the above technical solution, the present invention has the following advantages: 1, by introducing a mechanism for distinguishing processing mobile node, home agent to enhance the ability of mobility support node to the mobile node moves to the neighbor subnet avoided by tunneling, optimization of the IP addressing scheme to accelerate the data processing speed, in fact, to simply redirects the data packets, when it reaches the mobile node, since no data is encapsulated through the tunnel, and therefore in the mobile node is no longer necessary process solution processing package, further reducing the latency of the network and switching data transmission process of the gateway adjacent to improve the utilization of network resources.

2、 对于具有三层接入汇聚功能的网络节点设备作为家乡代理时,同样引入移动节点区分处理机制,在不可能产生三角路由的情况下,避免移动节点向通信节点发送通信注册信息,进一步减小了网络切换的延迟,提高了网络资源利用率。 2, the network node apparatus having three functions as the access convergence home agent, the same processing mechanism is introduced to distinguish the mobile node, in the case of triangular routing is not possible to produce, to avoid the mobile node sends the registration information to the communication node communications, is further reduced small delay switching network, improve network resource utilization.

3、 由于简化了处理,因此一定程度上可以降低网络节点处理能力的要求, 从而实现最广泛的移动性支持。 3, since the process is simplified, thus reducing the processing power requirements of the network node to a certain extent, in order to achieve the most extensive mobility support.

4、 本发明中对路由处理过程的修改只涉及到家乡代理,对移动节点和通信节点完全透明,因此与现有移动协议的兼容性4艮好。 4, the present invention is to modify the routing process involves only to the home agent, the mobile node and the correspondent node is completely transparent, and thus a good compatibility with conventional mobility protocol Gen 4.

附困说明 Description attached trapped

图1为本发明路由处理方法的主流程图。 Figure 1 is a flowchart of a main route processing method of the present invention. 图2为本发明路由处理方法一的流程图。 A flowchart of FIG. 2 routing processing method of the present invention. 图3为本发明路由处理方法一的具体实施例流程图。 FIG 3 routing processing method of a specific example of a flowchart of embodiments of the present invention. 图4为本发明路由处理系统一的结构图。 Routing configuration diagram of a processing system of FIG. 4 of the present invention. 图5为本发明路由处理方法二的流程图。 Two routing processing method flowchart FIG. 5 of the present invention. 图6为现有技术中移动节点向通信节点注册的流程图。 FIG 6 is a flowchart illustrating the prior art, the mobile node registers the communication node. 图7为本发明路由处理方法二的具体实施例流程图。 7 DETAILED two routing processing flowchart embodiment of the present invention. 具体实施方式 Detailed ways

本发明针对三层网络设备在实现家乡代理功能时不考虑移动节点所处移动区域的差别,采用同一处理方法进行路由处理而导致的网络资源浪费的问 The present invention is directed to a three-layer network devices do not consider when implementing a home agent function of the mobile node movement which regional differences, using the same processing method for routing process and lead to waste of resources of the network to ask

题,提出了解决该问题的基本构思。 Questions, put forward the basic idea to solve the problem.

首先,把移动节点的接入网分为本地子网和外地子网;若移动节点移动到本地子网之外,则根据移动节点所处外地子网与家乡代理的关系,将外地子网进一步分为邻居子网和远端子网。 First, the access network is divided into local subnet of the mobile node and foreign subnet; if the mobile node moves outside the local subnet, in which the relationship between the foreign subnet to the home agent of the mobile node, the foreign subnet further into a neighbor subnet and remote subnet. 其中,上述邻居子网和本地子网通过不同LAN接口与家乡代理直接相连;远端子网不直接与家乡代理相连,它与本地子网之间的通信至少需要两台路由设备的转发处理才能实现。 Wherein the neighbor subnet, and subnets different local LAN interface is connected directly to the home agent; distal subnet is not directly connected to the home agent, and communication between the local subnet that requires at least two routing forwarding apparatus to realize .

按照上述划分,参考图1所示,本发明所提供移动互联网协议路由处理方法的基本构思是:移动节点向家乡代理发送绑定更新消息,该消息中携带有移动节点的当前转交地址信息;家乡代理根据移动节点的当前转交地址信息判断该移动节点所处的移动区域,根据不同的移动区域采用相应的路由处理策略。 According to the above division reference to FIG., The basic idea of ​​the present invention, the routing processing method providing a mobile internet protocol are: the mobile node transmitting a binding update message to the home agent, the message carrying the mobile node care-of address information of the current; hometown the mobile proxy determines the address information of the area in which the mobile node the mobile node's current care, with the corresponding processing routing policy according to the different areas of movement.

如图2所示,本发明所提供移动互联网协议路由处理方法一的基本思想是:家乡代理收到移动节点发送来的绑定更新消息后,根据该消息中携带的移动节点的当前转交地址信息判断该移动节点所处的移动区域,若移动节点处于邻居子网,则修改对应于移动节点家乡地址的转发处理函数,将数据包出口直接定向为移动节点当前所处子网接口;若移动节点处于远端子网,则建立从家乡代理到移动节点当前转交地址的隧道,并修改路由信息表中移动节点家乡地址的转发处理函数,将数据包出口对应于隧道接收处理函数。 As shown, the present invention is a Mobile Internet Protocol routing processing method of the basic idea is to provide a 2: home agent receives the binding update message sent by the mobile node, the mobile node carried in the message information of the current care-of address Analyzing movement area of ​​the mobile node is located, if the mobile node is the neighbor subnet, the mobile node is modified corresponding to the home address of the forwarding function, the mobile node is currently oriented to directly interface to a subnet which packets outlet; if the mobile node is distal subnet is established from the home agent to the mobile node's current care-of address of the tunnel, forwarding handler and modify the routing table of the mobile node's home address, the packets exit the tunnel corresponding to the reception processing function.

下面结合图3,对移动互联网协议路由处理方法一的具体实施例进行描述。 Below in connection with FIG. 3, the mobile internet protocol routing processing method of a specific embodiment will be described.

301. 移动节点移动到外地子网后,获得具有该外地子网前缀的转交地址。 301. After the mobile node moves to the foreign subnet, to obtain the care-of address having a foreign subnet prefix.

其中,移动节点通过IPv6正常的地址分配机制,即全状态地址配置方式或无状态地址配置方式获得具有子网前缀的转交地址。 Wherein the mobile node IPv6 address allocation scheme, normal, i.e. stateful address configuration method or stateless address configuration mode obtained care-of address having a subnet prefix.

302. 移动节点向其家乡代理发送绑定更新消息,告知家乡代理本移动节点目前的转交地址。 302. The mobile node sending its home proxy binding update message to inform the home agent of the current care-of address that the mobile node.

303. 家乡代理才艮据移动节点发送来的绑定更新消息,建立对应于移动节点当前转交地址的绑定緩存表项,将该表项添加到家乡代理的绑定緩存列表中, 并向移动节点返回绑定应答消息。 303. According to Gen home agent before binding update message sent by the mobile node, the mobile node to correspond to current care-of address binding cache entry to add the entry to the binding cache of the home agent list, and move node returns a binding acknowledgment message.

其中,所述绑定緩存列表中的每一个绑定緩存表项保存本家乡代理管理的各个移动节点当前的移动信息,该信息用于移动节点的数据转发处理。 Wherein said binding cache list each binding cache entry to save the current movement information of each mobile node home agent of the present management information for the mobile node forwarding data processing.

绑定緩存表项结构如下:_ Binding cache entry is structured as follows: _

哈西表入口指针_ Hash table entry pointer _

链表入口指针_ List entry pointer _

接口标示符_ Interface identifiers _

家乡代理地址_ Home Agent Address _

移动节点家乡地址_ Mobile node's home address _

移动节点当前转交地址_ The current mobile node care-of address _

移动节点当前移动区域_ Mobile node is currently moving area _

緩存表项定时器到时时间_ Cache entry timer to the time _

回调函数指针_ Callback function pointers _

注册类型_ Registration Type_

移动节点类型_ The mobile node type _

标志位_ Flag _

消息序号_ Message number _

最后收到ICMP目的地不可达消息的时间已收到的ICMP目的地不可达消息数量 Finally, receipt of ICMP Destination Unreachable messages received time is the number of messages ICMP Destination Unreachable

表1 Table 1

在该表项中,移动节点当前移动区域通过以下方式来确定: In this entry, the mobile node is currently moving area determined by:

家乡代理收到绑定更新消息后,提取移动节点注册的转交地址前缀,并与本家乡代理所有子网接口发送的路由宣告消息中的子网前缀进行匹配查找,如果发现有匹配的前缀信息,则说明该移动节点移动到了邻居子网,在緩存表项中标记该移动节点当前移动区域为邻居子网;否则在緩存表项中标记该移动节点当前移动区域为远端子网。 After receipt of the home agent binding update message, extracts the care-of address prefix registered mobile node and the home agent route with this interface to send the announcement to all subnets subnet prefix match lookup message, if there are matching prefix information, it indicates that the mobile node to the neighbor subnet, marking the cache entry for the mobile node is currently moving region neighbor subnet; otherwise mark the current area of ​​the mobile node moves to the distal end of the subnet in the cache entry.

为了满足在不同的查找要求下快速查表,上迷的绑定緩存列表根据不同的关键字构成哈西表和链表双重结构。 In order to meet the fast look-up table at different lookup requirements, binding cache listing on fans constitute a double structure hash table and list based on different keywords. 如果是根据移动节点家乡地址查表,可以通过哈西查表的方法快速定位移动节点对应的绑定緩存表项;如果要按照表项 If the look-up table according to the mobile node's home address, hash table lookup method can quickly locate the mobile node corresponding binding cache entry; if you want to table entries

中定时器到时的先后顺序查表,则可以通过链表查表方法快速定位所查找的表项结构。 Look-up table when the timer sequence that can quickly locate entries linked list structure lookup table lookup method.

304. 家乡代理根据移动节点对应的绑定緩存表项中移动节点当前移动区域判断若移动节点处于远端子网,则建立从家乡代理到移动节点当前转交地址的隧道,并修改路由信息表中移动节点家乡地址的转发处理函数,将数据包出口对应于隧道接收处理函数,继续执行步骤306;若移动节点处于邻居子网, 则执4亍步骤305。 Home agent 304. The mobile node's binding cache entry corresponding to the mobile node is currently moving area determining if the mobile node is distal to the subnet is established from the home agent to the mobile node care-of address of the tunnel current, and modify routing information table mobile node's home forwarding address handler, the data packets exit the tunnel corresponding to the reception processing function, proceed to step 306; if the mobile node is the neighbor subnet, right foot 4 is performed in step 305.

305. 家乡代理修改对应于移动节点家乡地址的转发处理函数,将数据包出口直接定向为移动节点当前所处子网接口。 305. The home agent forwarding function corresponding to modify the mobile node's home address, the packet will be directed directly to the mobile node is currently located exit interface to a subnet.

306. 家乡代理获取发送到移动节点家乡地址的数据包,判断若该数据包是数据报文,则继续执行步骤307;若该数据包是绑定更新消息,则执行步骤303。 306. The home agent acquires a data packet transmitted to the home address of the mobile node, determining if the packet is a data packet, proceed to step 307; if the packet is a binding update message, step 303 is executed.

307. 家乡代理根据数据包的目的地址在路由信息表中进行查找,如果与该目的地址对应的转发处理函数所对应的数据包输出函数指针是隧道入口函数指针,则按照移动IPV6基本协议对数据包进行隧道封装,然后通过家乡代理与移动节点当前地址的隧道将该数据包发送至移动节点,结束流程;如果与该 307. The home agent according to the destination address of the packet in the routing table lookup, if the object corresponding to the address forwarding processing function corresponding to the function pointers are packet output function pointer entry tunnel, according to the basic mobile IPV6 protocol data tunnel encapsulated packet, then the packet transmitted by the tunnel current address with the mobile node's home agent to the mobile node, the process ends; if the

子网接口,执行步骤308。 Subnet interfaces, step 308 is executed.

308. 根据该移动节点绑定緩存表项中的转交地址信息进行IP地址和链路层地址匹配查表,用查表得到的链路层地址对原数据包进行二层数据封装,然后发送到该接口的输出緩存队列,输出给移动节点。 308. According to the information of the mobile node care-of address binding cache entry in the IP address and the link layer address match lookup with a link-layer address look-up table of the original Layer 2 encapsulation packets, and then sent to the the output buffer queue of the interface, is output to the mobile node.

本发明所提供的移动互联网协议路由处理系统一如图4所示,包括移动节点、家乡代理;才艮据移动节点所处子网与家乡代理的关系,将移动节点的接入网家乡代理连接的子网分为本地子网和外地子网,并将外地子网进一步分为邻居子网和远端子网;邻居子网和本地子网通过不同LAN接口与家乡代理直接相连;远端子网不直接与家乡代理相连,它与本地子网之间的通信至少需要两台路由设备的转发处理才能实现。 Mobile Internet Protocol routing processing system of the present invention provides a 4, includes a mobile node, the home agent; Gen before the mobile node is located according to the relationship with the home agent subnet, the mobile node home agent connected to the access network local subnet and subnet into a subnet field and a further foreign subnet into a subnet and a distal neighbor subnet; neighbor subnet and different subnets local LAN interface is connected directly to the home agent; distal subnetwork do not directly and home agent connected to the communication between it and the local subnet forwarding process to take at least two devices to achieve.

其中,移动节点用于在移动到外地子网时,向家乡代理发送绑定更新消息, 告知家乡代理本移动节点当前的转交地址;还用于在绑定成功后,通过家乡代 Wherein when the mobile node moves to the foreign subnet for, sending the home agent a binding update message to inform the home agent of the current care-of address that the mobile node; further configured to, after binding is successful, the home by substituting

理与通信节点进行数据通信。 Processing data communication with the communication node.

家乡代理用于在收到移动节点发送的绑定更新消息后,+艮据该消息中的转交地址信息判断该移动节点所处的移动区域,若移动节点处于邻居子网,则修改对应于移动节点家乡地址的转发处理函数,将数据包出口直接定向为移动节 Home agent after receiving a binding update message sent by the mobile node, according to Gen + care-of address information in the message area of ​​the movement determines the mobile node is located, if the mobile node is the neighbor subnet, is modified corresponding to the movement handler forwarding node's home address, the packet is directly oriented to move the outlet section

点当前所处子网接口;若移动节点处于远端子网,则建立从家乡代理到移动节点当前转交地址的隧道,并修改路由信息表中移动节点家乡地址的转发处理函数,将数据包出口对应于隧道接收处理函数。 Interface to a subnet point is currently located; if the mobile node is distal subnets is established from the home agent to the mobile node's current care-of address of the tunnel, forwarding handler and modify the routing table of the mobile node's home address, the data packet corresponding to the outlet of the tunnel reception processing function.

家乡代理还用于获取通信节点发送到移动节点家乡地址的数据包,并在获取该数据包后,判断若该数据包是数据报文,则根据数据包的目的地址在路由信息表中进行查找,如果与该目的地址对应的转发处理函数的数据包输出函数指针是隧道入口函数指针,则对数据包进行隧道封装,然后通过隧道将该数据包发送至移动节点;如果与该目的地址对应的转发处理函数的数据包输出函数指针是移动节点当前所在子网输出函数指针,则根据该移动节点的转交地址信息进行IP地址和链路层地址查表,用查表得到的链路层地址对原数据包进行二层数据封装,然后发送到该接口的输出緩存队列,输出给移动节点。 After the home agent is further configured to acquire the communication node transmits a packet to the home address of the mobile node, and acquires the data packet, determining if the packet is a data packet, the lookup in the routing table according to the destination address of the packet , if the function pointer forwarding packet output processing function corresponding to the destination address is the function pointer entry tunnel, the tunnel encapsulation on the packet, and then transmitted to the mobile node through the tunnel the data packet; if the destination address corresponds to forwarding the output data packet handler function pointer subnet where the mobile node is currently output function pointer, the IP address and the link layer address information of the look-up table according to the care-of address of the mobile node using the look-up table of the link-layer address Layer original data packet encapsulation, and then sent to the output buffer of the queue of the interface, is output to the mobile node.

其中,家乡代理可以是大规模汇聚路由器、多层交换机等具有三层路由功能的网络节点设备。 Among them, the home agent can be a large-scale aggregation network node devices with IP routing routers, multilayer switches.

参考图5,本发明所提供移动互联网协议路由处理方法二的基本思想是: 移动节点向家乡代理发送绑定更新消息;家乡代理才艮据该消息中携带的当前转交地址判断该移动节点所处的移动区域,若移动节点处于远端子网,完成移动节点向通信节点的注册,使通信节点直接将数据发送到移动节点的当前转交地址;若移动节点处于邻居子网,家乡代理阻止移动节点向通信节点进行注册, 由家乡代理转发通信节点与移动节点的通信数据。 Referring to Figure 5, the present invention is a mobile internet protocol routing approach is to provide two basic ideas: the mobile node transmitting a binding update message to the home agent; Gen home agent according to the message before the current care-of address carried in determining the mobile node is located moving area, if the mobile node is distal to subnet, the mobile node to complete the registration of a communication node, so that the communication node transmits the data directly to the mobile node's current care-of address; if the mobile node is the neighbor subnet, the mobile node to the home agent to prevent registered communication node, the communication data from the home agent forwarding communication node and mobile nodes.

需要说明的是,本方法中所迷的家乡代理是指具有接入汇聚功能的路由器。 It should be noted that the present process refers to fans home agent access router having a converging function.

如图6所示,移动节点向通信节点的注册具体包括以下步骤: As shown, the mobile communication node to the node registration 6 includes the following steps:

601.移动节点发送HoTI( Home Test Initial,家乡测试初始化)消息和CoTI (Care of Test Initial,转交测试初始化)消息。 601. The mobile node sends HoTI (Home Test Initial, home Test Init) message and CoTI (Care of Test Initial, care-of Test Init) message. 其中,HoTI消息由移动节点的 Wherein, HoTI message by the mobile node

家乡代理转发至通信节点,消息中包含家乡初始Cookie; CoTI消息由移动节点直接发送给通信节点,消息中包舍转交测试Cookie; Forwarding communication node to the home agent, the message comprising home initial Cookie; CoTI message is sent by the mobile node directly to the correspondent node Care-of Test message packet round cookies;

602. 通信节点收到HoTI消息和CoTI后,向移动节点回应HoK Home Test, 家乡测试)消息和CoT (Care of Test,转交测试)消息;移动节点收到HoT 和CoT消息,完成返回路由可达过程,其中,HoT消息由移动节点的家乡代理转发至移动节点,消息中包含家乡初始Cookie,该参数值和HoTI消息中家乡初始Cookie的值相同;CoT消息由通信节点直接发送给移动节点,消息中包含转交Cookie,该参数值和CoTI消息中转交测试Cookie的值相同。 602. After the communication node receives the HoTI message and the CoTI, HoK Home Test responses to the mobile node, the home test) message and CoT (Care of Test, Care-of Test) message; mobile node receives CoT and HoT messages, to complete the return routability process, wherein, the HoT message forwarded by the home agent of the mobile node to the mobile node, the message comprising home Init Cookie, the parameter values ​​and values ​​HoTI message in the home of Init Cookie of the same; the CoT message transmitted by the communication node directly to the mobile node, the message Cookie included transmitted, the parameter values ​​and the CoTI message is transmitted to the same value of the test Cookie.

603. 移动节点向通信节点发送BU (BindingUpdate,绑定更新)消息,注册转交地址,通信节点返回BA (BindingAcknowledge,绑定确认)消息,完成注册。 603. The mobile node sends a BU (BindingUpdate, Binding Update) message to the communication node, and care-of address registration, the communication node returns BA (BindingAcknowledge, Binding Acknowledgment) message to complete the registration.

下面结合图7,对移动互联网协议路由处理方法二的具体实施方式进行描 Below in connection with FIG. 7, the mobile Internet Protocol routing processing method of the embodiment will be specifically described embodiment two

述: Above:

701. 移动节点移动到外地子网后,获得具有该外地子网前缀的转交地址。 701. After the mobile node moves to the foreign subnet, to obtain the care-of address having a foreign subnet prefix.

其中,移动节点通过EPV6正常的地址分配机制,即全状态地址配置方式或无状态地址配置方式获得具有子网前缀的转交地址。 Wherein the mobile node EPV6 normal address allocation mechanism, i.e. stateful address configuration method or stateless address configuration mode to obtain a care-of address having a subnet prefix.

702. 移动节点向其家乡代理发送绑定更新消息,告知家乡代理本移动节点当前的转交地址。 702. The mobile node sending its home proxy binding update message to inform the home agent of the current care-of address that the mobile node.

703. 家乡代理根据移动节点发送来的绑定更新消息,建立对应于移动节点当前转交地址的绑定緩存表项,将该表项添加到家乡代理的绑定緩存列表中, 并向移动节点返回一个绑定应答消息。 703. The home agent binding update message sent by the mobile node, the mobile node correspondence to the current care of address binding cache entry, the entry is added to the binding cache of the home agent list, and return to the mobile node a reply message binding.

其中,在移动节点的绑定緩存表项中建立移动节点当前移动区域项,通过以下方式确定移动节点当前移动区域: Wherein items moving area Establishing the mobile node a binding cache entry of the mobile node, the mobile determines the current area of ​​the mobile node by:

家乡代理收到绑定更新消息后,提取移动节点注册的转交地址前缀,并与本家乡代理所有子网接口发送的路由宣告消息中的子网前缀进行匹配查找,如果发现有匹配的前缀信息,则说明该移动节点移动到了邻居子网,在緩存表项中标记该移动节点当前移动区域为邻居子网;否则在緩存表项中标记该移动节 After receipt of the home agent binding update message, extracts the care-of address prefix registered mobile node and the home agent route with this interface to send the announcement to all subnets subnet prefix match lookup message, if there are matching prefix information, it indicates that the mobile node to the neighbor subnet, marking the current area of ​​the mobile node moves to a neighbor cache entry subnet; otherwise the mobile node in the cache tag entry

点当前移动区域为远端子网, Moving the distal end point of the current sub-region,

704. 家乡代理根据移动节点对应的绑定緩存表项中移动节点的移动区域判断若移动节点处于远端子网,则依次执行上面所述步骤601至603,完成移动节点向通信节点的注册,继续执行步骤706;若移动节点处于邻居子网,则执行步骤705。 704. If the mobile node home agent is determined in the distal end region subnet of the mobile node The mobile binding cache entry corresponding to the mobile node, the above steps are sequentially performed from 601 to 603, to complete the registration of the mobile node to the communication node, to continue step 706; if the mobile node is the neighbor subnet, then step 705 is performed.

705. 家乡代理阻止移动节点向通信节点进行注册,继续执行步骤707。 705. prevent the mobile node home agent registers with the communication node, proceed to step 707.

其中,可以通过以下方式使家乡代理阻止移动节点向通信节点进行注册: 移动节点发送HoTI消息后,家乡代理直接丢弃该消息,或在通信节点通过家乡代理收到HoTI消息并返回HoT消息至家乡代理时,家乡代理丢弃HoT消息。 Wherein, the home can be made in the following manner to prevent the proxy mobile node registration to the communication nodes: the mobile node sends HoTI message, the home agent directly discards the message or messages received HoTI communication node and the home agent returns the HoT message to the home agent when the home agent discards the HoT message.

706. 通信节点直接将数据发送到移动节点的当前转交地址,结束流程。 706. The communication node transmits the data directly to the mobile node's current care-of address, the process ends.

707. 通信节点通过家乡代理将数据转发到移动节点的当前转交地址。 By the home agent 707. The communication node to forward the data to the mobile node's current care-of address.

本发明移动互联网协议路由处理系统二的结构图与上述系统一的结构图相同,系统同样包括移动节点和家乡代理;根据移动节点所处子网与家乡代理的关系,将移动节点的接入网家乡代理连接的子网分为本地子网和外地子网, 并将外地子网进一步分为邻居子网和远端子网。 Mobile Internet Protocol routing processing system of the present invention is a configuration diagram of the structure II with a view of the same system, the system also includes a mobile node and a home agent; according to the relationship in which the subnet of the mobile node and the home agent, the mobile node's home access network Acting subnets connected into the local subnet and foreign subnet, and further divided into foreign subnet neighbor subnet and remote subnet.

在本系统中,移动节点用于在移动到外地子网时,向家乡代理发送绑定更新消息,告知家乡代理本移动节点当前的转交地址;还用于向通信节点发送注册消息,并接收通信节点发送来的数据。 In the present system, the mobile node moves to the foreign subnet, sending the home agent a binding update message to inform the home agent of the current care-of address that the mobile node; further configured to send a registration message to the communication node and the receiving communication node data transmitted.

家乡代理用于在收到移动节点发送的绑定更新消息后,根据该消息中的转交地址信息判断该移动节点所处的移动区域,若移动节点处于远端子网,完成移动节点向通信节点的注册,使通信节点直接将数据发送到移动节点的当前转交地址;若移动节点处于邻居子网,则家乡代理阻止移动节点向通信节点进行注册,由家乡代理转发通信节点发送给移动节点的数据。 Home agent after receiving a binding update message sent by the mobile node, the mobile node determines the movement area is located care-of address according to the information in the message, if the mobile node is distal to subnet, the mobile node to complete the communication node registration, the communication nodes send data directly to the mobile node's current care-of address; if the mobile node is a neighbor subnet, the mobile node home agent to register to prevent communication nodes, forwarded by the home agent communication node data sent to the mobile node.

另外,本发明还提供了一种路由器,包括存储单元和处理单元。 Further, the present invention further provides a router comprising a storage unit and a processing unit. 其中: among them:

存储单元用于存储根据路由器接收到的信息所建立的绑定緩存列表,并将存储的信息提供给处理单元做进一步处理;其中,绑定緩存列表中有不同的绑 Storage means for storing a binding cache list according to the received router information to the established, and the stored information is supplied to the processing unit for further processing; wherein the binding cache list have different tie

定緩存表项,分别对应不同的移动节点,绑定緩存表项保存有^J咯由器管理的各个移动节点当前的移动信息,每一表项中包舍有移动节点当前移动区城项, 用于标识移动节点当前所处的移动区域。 Given cache entry corresponding to different mobile nodes, binding cache entry stores ^ J slightly by the current movement information managed by the respective mobile nodes, each entry packet mobile homes there is a current area of ​​the mobile node entries City, for moving the area identification of the mobile node is currently located.

该存储单元还用于存储路由信息表,该信息表中包含有移动节点家乡地址的转发处理函数,当移动节点处于邻居子网时,可以修改该转发处理函数将数 The storage unit is further configured to store routing information table, the table contains forwarding information processing functions of the mobile node's home address when the mobile node is the neighbor subnet, the transfer process can be modified function number

据包定向为移动节点当前所处子网接口;当移动节点处于远端子网时,可以修改该转发处理函数将数据包出口定向为隧道接收处理函数。 Packet oriented interface to a subnet of the mobile node is currently located; when the mobile node is distal to subnet, the transfer process can be modified function receives the packet handler outlet directional tunnel.

处理单元用于根据存储单元中保存的绑定緩存表项中的移动节点当前移动区域项,采取与各不同移动区域所对应的不同处理策略。 Processing means for moving area according to the current item stored in the storage unit of the mobile node in the binding cache entry, to take different treatment strategies and various regions corresponding to the mobile.

其中,移动节点处于邻居子网时,所述路由处理策略可以是修改对应于移动节点家乡地址的转发处理函数,将数据包出口定向为移动节点当前所处子网 Wherein the mobile node is a neighbor subnet, the routing processing strategies may be modified corresponding to the transfer processing function of the mobile node's home address, the packet oriented outlet mobile node is currently located subnets

接口;移动节点处于远端子网时,所述路由处理策略是建立从路由器到移动节 Interface; subnet is distal to the mobile node, processing the routing policy is established from the router to the mobile node

点当前转交地址的隧道,修改移动节点家乡地址的转发处理函数,将数据包出口对应于隧道接收处理函数。 Point tunnel current care of address, modify the forwarding function mobile node's home address, the packets exit the tunnel corresponding to the reception processing function.

当移动节点处于邻居子网时,所述路由处理策略还可以是阻止移动节点向 When the mobile node is a neighbor subnet, the routing policy may also be treated to prevent the mobile node

通信节点进行注册;移动节点处于远端子网时,所述路由处理策略是实现移动节点向通信节点的注册。 The communication node registering; subnet is distal to the mobile node, the routing policy processing is implemented to the communication node registers the mobile node.

以上对本发明所提供的移动互联网协议路由处理方法和系统及路由器进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时, 对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。 Above the mobile internet protocol of the present invention provides a routing processing method and system and a router in detail herein through specific examples of the principles and embodiments of the present invention have been set forth in the above description of embodiments merely for understanding of the present the method and core ideas of the invention; the same time, those of ordinary skill in the art, according to the ideas of the present invention, there are modifications to the specific embodiments and application scope of the specification shall not be construed as limiting the present invention.

Claims (17)

1.一种移动互联网协议路由处理方法,其特征在于,包括以下步骤: A1、移动节点发送当前转交地址信息; B1、家乡代理根据收到的转交地址信息判断若移动节点处于邻居子网,则修改对应于移动节点家乡地址的转发处理函数,将数据包出口定向为移动节点当前所处子网接口;若移动节点处于远端子网,则建立从家乡代理到移动节点当前转交地址的隧道,并修改移动节点家乡地址的转发处理函数,将数据包出口对应于隧道接收处理函数。 A mobile internet protocol routing processing method characterized by comprising the steps of: A1, the mobile node sends the current care-of address information; Bl, care-of address according to the home agent determines if the received information of the mobile node in the neighboring subnet, forwarding function corresponding to modify the mobile node's home address, the packet is currently located outlet oriented interface to a subnet of the mobile node; if the mobile node is distal subnets is established from the home agent to the mobile node care-of address of the tunnel current, and modified forwarding processing functions of the mobile node's home address, the packets exit the tunnel corresponding to the reception processing function.
2. 如权利要求1所述的移动互联网协议路由处理方法,其特征在于,步骤B1 后进一步包括:Cl、家乡代理获取通信节点发送到移动节点家乡地址的数据包,判断若该数据包是数据报文,则执行步骤Dl;Dl、家乡代理判断如果与该数据包的目的地址对应的转发处理函数的数据包输出函数指针是隧道入口函数指针,则对数据包进行隧道封装,通过隧道将该数据包发送至移动节点;如果与该数据包的目的地址对应的转发处理函数的数据包输出函数指针是移动节点当前所在子网输出函数指针,则执行步骤El;El 、家乡代理通过该移动节点所在子网接口将数据包发送至移动节点。 2. Mobile Internet Protocol routing processing method according to claim 1, wherein the step B1 further comprises: Cl, home agent acquires a data packet transmitted to the communication node home address of the mobile node, determining if the packet is a data message, step Dl; Dl, the packet forwarding function pointer output handler determines if the home agent corresponding to the destination address of the packet is the function pointer entry tunnel, the tunnel encapsulation on the packet, the tunnel packet to the mobile node; forwarding packet output handler function pointer if the destination address of the packet corresponding to the current output of the same subnet as the mobile node function pointer, step El; El, the home agent by the mobile node where the subnet interface data packet to the mobile node.
3. 如权利要求2所述的移动互联网协议路由处理方法,其特征在于,步骤E1 具体包括:家乡代理根据移动节点绑定緩存表项中的转交地址信息进行IP地址和链路层地址匹配查表,用查表得到的链路层地址对原数据包进行二层数据封装; 将封装后的数据发送到移动节点当前所在子网接口的输出緩存队列。 The mobile routing processing method according to claim 2 internet protocol, wherein E1 comprises the step of: IP address and home agent address matching the link layer according to search information of the mobile node care-of address binding cache entry in table, with a link-layer address look-up table of the original data packet encapsulating layer; transmitting the encapsulated data to the output buffer current subnet where the mobile node interface queue.
4. 如权利要求1或2或3所述的移动互联网协议路由处理方法,其特征在于, 步骤Al包括:移动节点获得具有所处外地子网前缀的转交地址后,向家乡代理发送绑定更新消息,该消息中携带移动节点的转交地址信息。 The mobile internet protocol routing processing method of claim 1 or 2 or as claimed in claim 3, wherein the step of Al comprising: a care-of address after the mobile node is obtained which has a foreign subnet prefix, sends a binding update to the home agent message, which carries information of the mobile node's care-of address.
5. 如权利要求4所述的移动互联网协议路由处理方法,其特征在于,步骤B1 中所述家乡代理判断移动节点所处移动区域是通过以下方法实现:家乡代理根据移动节点发送来的绑定更新消息,建立对应于该移动节点的绑定緩存表项;家乡代理提取移动节点的转交地址前缀,与本家乡代理所有子网的前缀进行匹配查找,如果发现有匹配的前缀信息,则在绑定緩存表项中标记该移动节点当前移动区域为邻居子网;否则,在绑定緩存表项中标"^己该移动节点当前移动区域为远端子网。 The mobile internet protocol routing processing method according to claim 4, wherein, in the step B1 of the mobile node home agent determines which zone is achieved by the following method: Binding transmitted to the home agent of the mobile node update message corresponding to the mobile node to establish a binding cache entry; home agent extracted care-of address prefix of the mobile node, the home agent with this prefix for all subnets match look, if there is a match of prefix information is found, in tie given cache tag entry of the mobile node is currently moving region neighbor subnet; otherwise, the binding cache entry successful "^ have the mobile node is currently moving to the distal end region subnet.
6. —种移动互联网协议路由处理方法,其特征在于,包括:A2、移动节点发送当前转交地址信息;B2、家乡代理4艮据收到的转交地址信息判断若移动节点处于远端子网, 则完成移动节点向通信节点的注册;若移动节点处于邻居子网,则阻止移动节点向通信节点进行注册。 6. - kind of Mobile Internet Protocol routing processing method, comprising: A2, the mobile node sends the current care-of address information; B2, home agent care-of address according to the received information Gen 4 judges if the mobile node is distal subnet, complete the registration of the mobile node to node communication; if the mobile node is a neighbor subnet, the mobile node to register to prevent communication node.
7. 如权利要求6所述的移动互联网协议路由处理方法,其特征在于,步骤A2 包括:移动节点具有所处外地子网前缀的转交地址后,向家乡代理发送绑定更新消息,该消息中携带移动节点的转交地址信息。 The mobile internet protocol routing processing method according to claim 6, wherein the step A2 comprises: a mobile node having the care-of address located foreign subnet prefix to send the home agent a binding update message, the message carrying the care-of address information of the mobile node.
8. 如权利要求7所述的移动互联网协议路由处理方法,其特征在于,步骤B2 中所述家乡代理判断移动节点所处移动区域是通过以下方法实现:家乡代理才艮据移动节点发送来的绑定更新消息,建立对应于该移动节点的绑定緩存表项;家乡代理提取移动节点的转交地址前缀,与本家乡代理所有子网的前缀进行匹配查找,如果发现有匹配的前缀信息,则在緩存表项中标记该移动节点当前移动区域为邻居子网;否则,在緩存表项中标记该移动节点当前移动区域为远端子网。 8. Mobile Internet Protocol routing processing method according to claim 7, wherein said home agent is determined in step B2 region in which the mobile node moves is achieved by the following method: According to the home agent of the mobile node before Gen transmitted binding update message corresponding to the mobile node to establish a binding cache entry; home agent extracted care-of address prefix of the mobile node, the home agent with this prefix for all subnets match look, if there is a match of prefix information is found, flag in the cache entry of the mobile node is currently moving region neighbor subnet; otherwise, mark the current area of ​​the mobile node moves to the distal end of the subnet in the cache entry.
9. 如权利要求6或7或8所述的移动互联网协议路由处理方法,其特征在于, 步骤B2中所述阻止移动节点向通信节点进行注册是通过以下方法实现:移动节点向家乡代理发送家乡测试初始化HoTI消息; 家乡代理收到HoTI消息后,丢弃该消息,停止移动节点向通信节点的注册。 The mobile internet protocol routing processing method of claim 6 or 7 or as claimed in claim 8, wherein said blocking step B2 mobile node registration is achieved by a method of the communication nodes: the mobile node sends the home agent to the home test Init HoTI message; home agent receives the HoTI message, discards the message, stop the registration of the mobile node to the communication node.
10. 如权利要求6或7或8所述的移动互联网协议路由处理方法,其特征在于, 步骤B2中所述阻止移动节点向通信节点进行注册是通过以下方法实现:移动节点向家乡代理发送HoTI消息;家乡代理收到HoTI消息后,向通信节点发送该消息;通信节点收到HoTI消息后,向家乡代理返回家乡测试HoT消息;家乡代理丢弃HoT消息,停止移动节点向通信节点的注册。 Mobile Internet Protocol routing processing method as claimed in claim 6 or 7 or 8, characterized in that, in the blocking step B2 mobile node registration is achieved by a method of the communication nodes: the mobile node sends home agent HoTI message; home agent after receiving the HoTI message, sending the message to the communication node; communication node receives the HoTI message, the home agent returns to the home test message HoT; home agent discarded HoT message, stop the registration of the mobile node to the communication node.
11. 一种移动互联网协议路由处理系统,其特征在于,所述系统包括:家乡代理,用于才艮据移动节点发送的转交地址信息判断该移动节点所处的移动区域,若移动节点处于邻居子网,则修改对应于移动节点家乡地址的转发处理函数,将数据包出口定向为移动节点当前所处子网接口;若移动节点处于远端子网,则建立从家乡代理到移动节点当前转交地址的隧道,修改移动节点家乡地址的转发处理函数,将数据包出口对应于隧道接收处理函数。 A mobile internet protocol routing processing system, wherein, said system comprising: a home agent, a care-of address data only Gen information sent by the mobile node determines the movement area of ​​the mobile node is located, if the mobile node is the neighbor subnet, the mobile node is modified corresponding to the home address of the forwarding function, the packet export oriented interface to a subnet of the mobile node is currently located; if the mobile node is distal subnets is established from the home agent to the mobile node's current care-of address tunnel, modifying the forwarding processing functions of the mobile node's home address, the packets exit the tunnel corresponding to the reception processing function.
12. 如权利要求11所述的移动互联网协议路由处理系统,其特征在于:所述家乡代理还用于在获取通信节点发送到移动节点家乡地址的数据包后,判断若该数据包是数据报文,则根据该数据包的目的地址判断若与该目的地址对应的转发处理函数的数据包输出函数指针是隧道入口函数指针,则对数据包进行隧道封装,通过隧道将该数据包发送至移动节点;如果与该目的地址对应的转发处理函数的数据包输出函数指针是移动节点当前所在子网输出指针,则通过该子网接口将数据包发送至移动节点。 12. Mobile Internet Protocol routing processing system of claim 11, wherein: said home agent further configured to acquire the communication node transmits a packet to the home address of the mobile node, determining if the packet is a data packet text, according to the output of the packet handler function pointer forwarding destination address of the packet is determined when the object corresponding to the function pointer address entry tunnel, the tunnel encapsulation on the packet transmitted to the packet moves through the tunnel node; If the packet forwarding function pointer output handler corresponding to the destination address is the subnet where the output pointer is currently the mobile node, the subnet through the interface sends the data packet to the mobile node.
13. 如权利要求11或12所述的移动互联网协议路由处理系统,其特征在于: 所述家乡代理是具有三层路由功能的网络节点设备。 13. The mobile internet protocol routing processing system as claimed in claim 11 or claim 12, wherein: said network node is a home agent apparatus having a three-layer routing function.
14. 一种移动互联网协议路由处理系统,其特征在于,所述系统包括:家乡代理,用于根据移动节点发送的转交地址信息判断该移动节点所处的移动区域,若移动节点处于远端子网,则实现移动节点向通信节点的注册;若移动节点处于邻居子网,则阻止移动节点向通信节点进行注册。 14. A mobile internet protocol routing processing system, wherein, said system comprising: a home agent, a mobile node care-of address according to information sent by the mobile node determines the movement area is located, if the mobile node in the subnet distal , the realization of the mobile node to register with the communication node; if the mobile node is a neighbor subnet, the mobile node to register to prevent communication node.
15. 如权利要求14所述的移动互联网协议路由处理系统,其特征在于:所述家乡代理是汇聚路由器。 15. The mobile internet protocol routing processing system according to claim 14, wherein: said home agent is a router aggregation.
16. —种路由器,其特征在于,所述路由器包括:存储单元,用于存储根据路由器接收到的信息所建立的绑定緩存列表;所述绑定緩存列表中的不同绑定緩存表项保存本路由器管理的各个移动节点当前的移动信息,每一表项中包含有移动节点当前移动区域项,用于标识移动节点当前所处的移动区域;所述存储单元还用于将存储的信息提供给处理单元做进一步处理;处理单元,用于根据存储单元中保存的绑定緩存表项中的移动节点当前移动区域项,判断移动节点所处移动区域,若移动节点处于邻居子网,则修改对应于移动节点家乡地址的转发处理函数,将数据包出口定向为移动节点当前所处子网接口;若移动节点处于远端子网,则建立从路由器到移动节点当前转交地址的隧道,修改移动节点家乡地址的转发处理函数,将数据包出口对应于隧道接收处理 16. - species router, wherein said router comprising: a storage unit for storing a binding cache list according to the received router information established; different binding the binding cache entry of the cache is saved list current mobile router information of each managed mobile nodes, each entry contains the current area of ​​the mobile node moving item, for which the current area identification of the mobile node moves; the storage unit is further provided for storing information to the processing unit for further processing; processing means for moving area according to the current item stored in the storage unit of the mobile node in the binding cache entry, it is determined which mobile node moving area, if the mobile node is the neighbor subnet, modifying forwarding processing function corresponding to the mobile node's home address, the packet is currently located outlet oriented interface to a subnet of the mobile node; if the mobile node in the subnet distal end, the current care-of address is established from the router to the mobile node a tunnel, modifications mobile node's home forwarding address handler, the data packets exit the tunnel corresponding to the reception processing 函数。 function.
17. —种路由器,其特征在于,所述路由器包括:存储单元,用于存储根据路由器接收到的信息所建立的绑定緩存列表;所述绑定緩存列表中的不同绑定緩存表项保存本路由器管理的各个移动节点当前的移动信息,每一表项中包含有移动节点当前移动区域项,用于标识移动节点当前所处的移动区域;所述存储单元还用于将存储的信息提供给处理单元做进一步处理;处理单元,用于根据存储单元中保存的绑定緩存表项中的移动节点当前移动区域项,判断移动节点所处移动区域,若移动节点处于邻居子网时,则阻止移动节点向通信节点进行注册;若移动节点处于远端子网时,则实现移动节点向通信节点的注册。 17. - species router, wherein said router comprising: a storage unit for storing a binding cache list according to the received router information established; different binding the binding cache entry of the cache is saved list current mobile router information of each managed mobile nodes, each entry contains the current area of ​​the mobile node moving item, for which the current area identification of the mobile node moves; the storage unit is further provided for storing information to the processing unit for further processing; processing means for moving area according to the current item stored in the storage unit of the mobile node in a binding cache entry, in which a mobile node moving area determination, if the mobile node is the neighbor subnet, preventing the mobile node registers with the communication node; if the mobile node is distal to subnet, the implementation of the registration of the mobile node to the communication node.
CN 200610078033 2006-04-30 2006-04-30 Mobile Internet protocol route processing method and system and router CN100456742C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200610078033 CN100456742C (en) 2006-04-30 2006-04-30 Mobile Internet protocol route processing method and system and router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200610078033 CN100456742C (en) 2006-04-30 2006-04-30 Mobile Internet protocol route processing method and system and router

Publications (2)

Publication Number Publication Date
CN1881935A CN1881935A (en) 2006-12-20
CN100456742C true CN100456742C (en) 2009-01-28

Family

ID=37519916

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200610078033 CN100456742C (en) 2006-04-30 2006-04-30 Mobile Internet protocol route processing method and system and router

Country Status (1)

Country Link
CN (1) CN100456742C (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101277233B (en) 2007-03-30 2010-09-22 华为技术有限公司 Access method and system for proxy mobile internet protocol
CN101106568B (en) 2007-07-25 2010-06-02 华为技术有限公司 Method, device and system for generating forwarding address and improving route optimization security
WO2009097914A1 (en) 2008-02-04 2009-08-13 Telefonaktiebolaget Lm Ericsson (Publ) A method and an apparatus for providing route optimisation
CN101516085B (en) 2009-03-24 2011-11-02 华为技术有限公司 Route rule updating method and device and communication system
CN101510827B (en) 2009-03-31 2011-08-31 中国人民解放军信息工程大学 Routing exchange device, method and method for updating business of routing exchange device
CN101902726B (en) 2009-05-31 2013-02-13 华为技术有限公司 Method, equipment and system for communication among mobile network nodes
CN103368846A (en) * 2012-03-26 2013-10-23 上海地面通信息网络有限公司 Control system with interconnection and intercommunication among China Telecom, China Unicom, and China Mobile and application thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030224788A1 (en) 2002-03-05 2003-12-04 Cisco Technology, Inc. Mobile IP roaming between internal and external networks
CN1511404A (en) 2001-02-21 2004-07-07 美商内数位科技公司 Method and system for low-overhead mobility management protocol in internet protocol layer
CN1582050A (en) 2004-05-17 2005-02-16 北京航空航天大学 Method for realizing mobile node switching in mobile IP
CN1610322A (en) 2003-10-17 2005-04-27 松下电器产业株式会社 Movement detection method and a mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1511404A (en) 2001-02-21 2004-07-07 美商内数位科技公司 Method and system for low-overhead mobility management protocol in internet protocol layer
US20030224788A1 (en) 2002-03-05 2003-12-04 Cisco Technology, Inc. Mobile IP roaming between internal and external networks
CN1610322A (en) 2003-10-17 2005-04-27 松下电器产业株式会社 Movement detection method and a mobile terminal
CN1582050A (en) 2004-05-17 2005-02-16 北京航空航天大学 Method for realizing mobile node switching in mobile IP

Also Published As

Publication number Publication date
CN1881935A (en) 2006-12-20

Similar Documents

Publication Publication Date Title
Teraoka et al. VIP: a protocal providing host mobility
JP4028793B2 (en) Mobile terminal device and the terminal-to-terminal packet communication method
US6856624B2 (en) Temporary unique private address
US9226139B2 (en) Methods and apparatus for extending mobile IP
US8553689B2 (en) Home agent acting as a proxy for a Mobile Node
EP1011242B1 (en) Dynamic address assignment for wireless devices accessing packet-based wired networks
US6930988B2 (en) Method and system for fast IP connectivity in a mobile network
CN104919766B (en) A device to device communication path switching method and apparatus
CN100428719C (en) Internet access method based on identity and location separation
US6804221B1 (en) Micromobility using multicast
JP4164352B2 (en) Packet transfer apparatus capable of accommodating the mobile terminals
CN1262090C (en) System for managing mobile node in mobile network
US7072323B2 (en) System and method for performing soft handoff in a wireless data network
EP1139632B1 (en) Method for packet communication with mobile node
US7158497B2 (en) Methods and apparatus for supporting micro-mobility within a radio access network
US6747979B1 (en) Method and apparatus for bridging between networks
US7342903B2 (en) Methods and apparatus for the utilization of multiple uplinks in reverse tunneling
CN102457583B (en) Realization method of mobility of virtual machine and system thereof
JP3573266B2 (en) How to establish a routing path to deliver the packet to the destination node
US6654359B1 (en) Wireless access to packet-based networks
CN1726689B (en) Inter-proxy communication protocol for mobile IP
US7239618B1 (en) Single phase local mobility scheme for wireless access to packet-based networks
US6862274B1 (en) Method and system capable of providing mobility support for IPv4/IPv6 inter-networking
JP3876741B2 (en) Protocol conversion method and apparatus
US6496505B2 (en) Packet tunneling optimization to wireless devices accessing packet-based wired networks

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C14 Granted