Summary of the invention
The object of the present invention is to provide a kind of method that realizes that mobile node is directly exchanged visits in the same extended network territory, it has solved after mobile node roams into same field network in the background technology, the exchanging visit of two mobile nodes need just can establish a communications link through home proxy entity and foreign agent entity, cause two mobile node data interaction efficient low, the technical problem that the data processing amount of home proxy entity and foreign agent entity is increased greatly.
Technical solution of the present invention is:
A kind of method that realizes that mobile node is directly exchanged visits in the same extended network territory, its special character is: this method may further comprise the steps
1). after two different mobile nodes 1,2 roamed into same extended network territory, mobile node 1,2 was respectively to 3 registrations of extending domain management entity;
2). by register flow path, tell ground field management entity 5 Care-of Address of oneself;
3). after succeeding in registration, between ground field management entity 5 and extending domain management entity 3, set up the tunnel;
4). two direct exchanging visits at the mobile node 1,2 in same extended network territory are after detecting by extending domain management entity 3, to judge whether to enable the proxy ARP module.
Above-mentioned two direct exchanging visits at the mobile node 1,2 in same extended network territory are to judge whether to enable the proxy ARP module after detecting by extending domain management entity 3 can judge whether to enable the proxy ARP module by after 3 detections of extending domain management entity:
(1). when mobile node 1 visit mobile node 2 sent the ARP request, extending domain management entity 3 was resolved this ARP request, and retrieved the binding table of this ARP request; Find that when extending domain management entity 3 it provides a mobile node of agency service to mobile node 2 just, extending domain management entity 3 will no longer be enabled agent functionality;
(2). when mobile node 1 visit mobile node 2 sends the ARP request, when mobile node 2 is received the ARP request of mobile node 1, mobile node 2 provides arp reply, tell mobile node 1 its MAC Address, mobile node 1 directly sends to mobile node 2 with data, and the exchanging visit communication between the mobile node 1,2 is set up.
Above-mentioned it provides a mobile node of agency service just when extending domain management entity 3 discovery mobile nodes 2, and extending domain management entity 3 will no longer be enabled agent functionality and be meant:
The address of the mobile node that if the destination address of ARP request is it to be acted on behalf of, extending domain management entity 3 will not enabled the ARP proxy module, continue other handling process; If the address of the mobile node that the destination address of ARP request is not it to be acted on behalf of is according to the flexible IP network technology system flow processing.
Above-mentioned mobile node 1,2 can be the access position, from a link switchover to another link, still keep all ongoing communications and only use the equipment of original fixed ip address.
Above-mentioned access-in management entity 6 can be that have can be at the network equipment of internet routed ip address.
Above-mentioned ground field management entity 5 can be to have a port to link to each other with the moving nodes local link, and the network equipment of authentication and proxy ARP is provided for the mobile node that roaming takes place.
Above-mentioned extending domain management entity 3 can be an equipment on the link of the extended network territory of mobile node, transmit registration message and packet networks for mobile node.
The present invention has the following advantages:
The present invention can guarantee normally to visit under the prerequisite of basic network territory resource at mobile node, and the communication between two mobile nodes is directly set up without each agent entity of flexible IP network technology system.Specifically, after mobile node roams into same extended network territory, need not to establish a communications link through ground field management entity 5 and extending domain management entity 3, two mobile nodes can directly be exchanged visits, directly set up efficient, connection reliably, simultaneously, also the utilance of the flexible IP network technology system of Ti Gaoing has alleviated the data process load of each entity in the flexible IP network technology system.
Embodiment
The flexible IP network technology system that the present invention relates to is meant: by the ground field management entity, the extending domain management entity, the access-in management entity, mobile node constitutes, make mobile node in the local area network (LAN) can be in the Global Internet scope arbitrarily roaming, and guarantee that mobile node can realize interactive access with its local area network (LAN) at any time.
The present invention mainly is made up of two parts: the extending domain management entity is correctly resolved the ARP request; The extending domain management entity is for the retrieval of mobile node binding table.
Core of the present invention at first is correctly to judge 3 couples of agencies' of extending domain management entity mobile node binding table, correctly judges whether to enable the ARP proxy module.The mobile node present position is judged in the source IP address and the purpose IP address of the ARP request broadcasting of receiving by parsing, and whether decision enables the ARP proxy module.On this basis, extending domain management entity 3 can correctly make whether acting on behalf of the response arp reply, realizes two connections that mobile node 1,2 is set up efficient communication without the tunnel.
The present invention is implemented in the same extended network territory, and the method for directly exchanging visits between two mobile nodes is as follows:
1) after mobile node 1,2 roams into the extended network territory, mobile node 1,2 is respectively to 3 registrations of extending domain management entity.
2) by register flow path, tell ground field management entity 5 Care-of Address of oneself.
3) succeed in registration after, between ground field management entity 5 and extending domain management entity 3, set up the tunnel.
4) referring to Fig. 1, when sending ARP, mobile node 1 visit mobile node 2 asks,
When (1) extending domain management entity 3 was received the ARP request of mobile node 1, extending domain management entity 3 was resolved this ARP request, and retrieved the binding table of this ARP request.If extending domain management entity 3 finds that it provides a mobile node of agency service to mobile node 2 just, extending domain management entity 3 will no longer be enabled the proxy ARP module.
(2) mobile node 2 is received ARP when request of mobile node 1, and mobile node 2 provides arp reply, tells mobile node 1 its network interface card hardware address; Mobile node 1 directly sends to mobile node 2 with data, and the exchanging visit communication between the mobile node 1,2 is set up.
The detailed description of implementation method of the present invention:
1). after different two mobile nodes 1,2 roamed into same extended network territory, mobile node 1,2 can be respectively to 3 registrations of extending domain management entity.
2). by register flow path, tell ground field management entity 5 Care-of Address of oneself.That is, mobile node 1,2 roams into same extended network territory, also can register to ground field management entity 5 separately respectively.
3). after succeeding in registration, ground field management entity 5 and extending domain management entity 3 add the binding of mobile node 1 and mobile node 2 simultaneously, and set up the tunnel between ground field management entity 5 and extending domain management entity 3, ground field management entity 5 and extending domain management entity 3 have all started the proxy ARP module.
4). two direct exchanging visits at the mobile node 1,2 in same extended network territory are after detecting by extending domain management entity 3, judge whether to carry out that the proxy ARP module realizes.
When mobile node 1 visit mobile node 2 sent the ARP request, extending domain management entity 3 was resolved this ARP request, and retrieved its binding table; Find that when extending domain management entity 3 it provides a mobile node of agency service to mobile node 2 just, extending domain management entity 3 will no longer be enabled the proxy ARP module.Mobile node 1 will be visited mobile node 2, and mobile node 1 at first can send an ARP broadcasting, the network interface card hardware address of request mobile node 2.Referring to Fig. 2, extending domain management entity 3 is received this ARP request, and it at first judges the source address of this ARP request, retrieves its binding table then, sends if not mobile node from its agency, just abandons; If send, just carry out subsequent operation from its agency's mobile node.Extending domain management entity 3 is at first resolved the purpose IP address of the ARP request of mobile node 1, retrieve its binding table then, the address of the mobile node that if the destination address of ARP request is it to be acted on behalf of, extending domain management entity 3 will not enabled the ARP proxy module, continue other handling process; The address of the mobile node that if the destination address of ARP request is not it to be acted on behalf of, will be according to normal flexible IP network technology system flow processing: the destination host of extending domain management entity 3 proxy ARP requests sends arp reply, mobile node 1 obtains the network interface card hardware address in the arp reply, revise the arp cache of oneself, all packets that mail to destination host all can send to extending domain management entity 3, extending domain management entity 3 is forwarded to ground field management entity 5 again, and ground field management entity 5 re-sends to final purpose ground.
Mobile node 2 also can be received this ARP request broadcasting, and mobile node 2 is found this ARP that asks oneself broadcasting, will provide arp reply, and mobile node 1 is received arp reply, revises the arp cache of oneself, and mobile node 1 is set up with communicating by letter of mobile node 2.
Relevant technical terms explanation of the present invention:
Agency search: acting on behalf of search mechanisms, can to make mobile node detect it be on the link of basic network territory or on the link of extended network territory, and when mobile node moved on the new network link, agent discovery mechanism can also find a suitable extending domain management entity for it.Agent discovery has two kinds of message: a kind of be the agency send periodically act on behalf of broadcast, another kind is the Agent Solicitation that mobile node sends.
The tunnel: when packed packet transmits on public internet network the logical path of process be called the tunnel.
Tunneling technique: refer to comprise data encapsulation, the overall process in wrapping in is conciliate in transmission.
The network interface card hardware address: generally be one 12 hexadecimal address, be used to identify network interface card, in general, the network interface card hardware address of every network interface card is unique.
Mobile node: can with the position of entering the Internet from a link switchover to another link, and still keep all ongoing communications, and only use the equipment of original fixed ip address.
Flexible IP network technology system: be meant by the ground field management entity, the extending domain management entity, the access-in management entity, mobile node constitutes, make mobile node in the local area network (LAN) can be in the Global Internet scope arbitrarily roaming, and guarantee that mobile node can realize interactive access with its local area network (LAN) at any time.
The ground field management entity: the network equipment that has a port to link to each other with the basic network territory at mobile node place, for the mobile node that roaming takes place provides purview certification and identity agency.
The extending domain management entity: the network equipment on the extended network territory of mobile node, for mobile node is transmitted territory purview certification message and packet.
The access-in management entity: having can be at the network equipment of internet routed ip address, and it carries out the trunking that territory purview certification message and packet are transmitted between ground field management entity and extending domain management entity.
IETF:Internet Engineering Task Force. the Internet engineering duty group.
ARP:Address Resolution Protocol. address resolution protocol.
MAC:Media Access Control. medium access control.