Realize the method for self adaptation extending domain management entity mechanism in a kind of flexible IP network technology system
Technical field
The present invention relates to the method that mobile node in a kind of flexible IP network technology system roams into the laggard row data communication in extended network territory.That is, relate to a kind ofly when mobile node roams into a network that is different from the own network address, mobile node is communicated by letter with the extending domain management entity and the method for extending domain management entity proxy mobile node.Be specifically related to realize in a kind of flexible IP network technology system the method for self adaptation extending domain management entity mechanism.
Background technology
Along with the improvement of the volume of portable instruments such as development of computer network and notebook computer and PDA, weight, performance, the realization of mobile office becomes gradually and is more prone to.Mobile IP technology is the technology that is derived by the ambulant series standard of expansion IP network that IETF formulates, and is to make the mobile node that is connected on any network use the identity of home address to continue to receive the technology of IP bag.
Mobile node roams into field network from home network, when if mobile node has roamed in the network identical with own IP address network segment, pass through agent discovery, mobile node can directly outwards be acted on behalf of and register, and mobile node can send the MAC Address of ARP broadcast request foreign agent entity; Foreign agent entity response ARP request; Mobile node sends to foreign agent entity with register requirement.
When if mobile node roams in the network different with own IP address network segment, because the IP address of foreign agent entity and the IP address of mobile node be not at the same network segment, operation principle according to the TCP/IP network protocol stack, when the destination host of another network segment of mobile node request, mobile node will at first send the MAC Address of its gateway of ARP request query, because this moment, the MAC Address of mobile node inquiry was the MAC Address of home network gateway, so can not get arp reply.Mobile node can't be delivered to foreign agent entity with register requirement.
For addressing the above problem, the foreign agent entity among traditional mobile IP can be carried out the function of Full Proxy, and request all can provide response to all ARP for it, and then according to oneself the route and the forwarding of routing iinformation specified data bag.Like this, just field network has been caused great influence.The Full Proxy function of foreign agent entity, make between the field network main frame normal communications access all many a jumping, cause the communication efficiency of the nonlocal main frame of two proper communications originally to reduce, also can make communication disruption between them when serious.The Full Proxy function of foreign agent entity has also taken the system resource of foreign agent entity, and the efficient of foreign agent entity deal with data is reduced greatly.
Summary of the invention
The object of the present invention is to provide the method that realizes self adaptation extending domain management entity mechanism in a kind of flexible IP network technology system, its foreign agent entity that has solved traditional mobile IP in the background technology is because of carrying out the function of Full Proxy, cause the communication efficiency of the nonlocal main frame of two proper communications originally to reduce even interruption, and take the technical problem of the system resource of foreign agent entity.
Technical solution of the present invention is:
Realize the method for self adaptation extending domain management entity mechanism in a kind of flexible IP network technology system, its special character is: this method may further comprise the steps
1). the Network Access Point of mobile node 5 is when a link switchover is to another link, and mobile node 5 is by " agent discovery ", the address of the territory management entity 3 that is expanded from 3 broadcasting of extending domain management entity;
2). mobile node 5 judges whether it and extending domain management entity 3 belong to the same network segment:
Be, then mobile node 5 is according to the principle of the mobile IP of tradition, and structure register requirement packet sends to extending domain management entity 3, and extending domain management entity 3 is transmitted register requirement;
Be not, then mobile node 5 obtains the IP address and the mac address information of extending domain management entity 3 from 3 broadcasting of extending domain management entity, and the structure raw socket sends register requirement with this raw socket to extending domain management entity 3;
3). by register flow path, mobile node 5 is told ground field management entity 1 Care-of Address of oneself;
4). after extending domain management entity 3 is received correct registration reply, be transmitted to mobile node 5, simultaneously, set up bidirectional tunnel between extending domain management entity 3 and the ground field management entity 1;
5). extending domain management entity 3 generates the proxy ARP list item of a mobile node 5, enables proxy ARP mechanism for the mobile node 5 that succeeds in registration, and makes mobile node 5 can visit basic network territory resource or/and other mobile nodes 5.
Above-mentioned mobile node 5 is by " agent discovery ", can be expanded from the extending domain management entity 3 broadcasting address of territory management entity 3 is meant: extending domain management entity 3 sends periodically acts on behalf of broadcast, mobile node 5 is received agency's broadcasting of extending domain management entity 3, by with the comparison of ground field management entity 1 address, mobile node 5 detects it on the link of extended network territory, and mobile node 5 is promptly with the Care-of Address of these extending domain management entity 3 addresses as it.
Above-mentioned register flow path is meant: after extending domain management entity 3 is received the register requirement of mobile node 5, register requirement is forwarded to the ground field management entity 1 of mobile node 5, the identity of 1 pair of mobile node 5 of ground field management entity authenticates, and returns registration reply.
Above-mentioned agent discovery is meant to be acted on behalf of search mechanisms can to make mobile node 5 detect it is on the link of basic network territory or on the link of extended network territory, and when mobile node 5 moved on the new network link, agent discovery mechanism can find a suitable extending domain management entity 3 for it.
Above-mentioned tunnel be meant when packed packet transmits on public internet network the logical path of process.
Above-mentioned mobile node 5 be meant 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.
Above-mentioned ground field management entity 1 is meant that a port links to each other, provides for the mobile node 5 that roaming takes place the equipment of authentication and proxy ARP network with mobile node 5 basic network territory links.
Above-mentioned extending domain management entity 3 can be the network equipment of transmitting registration message and packet on the link of the extended network territory of mobile node 5, for mobile node 5.
Above-mentioned flexible IP network technology system can be made of ground field management entity 1, extending domain management entity 3, access-in management entity 2; Above-mentioned access-in management entity 2 can be between ground field management entity 1 and extending domain management entity 3, carry out registration message and packet is transmitted, having can be at the network equipment of internet routed ip address.
The present invention has the following advantages:
Adopt the present invention, under different network environments, flexible IP network technology system can be discerned and responds for the current network environment, carries out corresponding register flow path and carries out the corresponding tunnel module.
1. the present invention does not have influence to the communication efficiency of the nonlocal main frame of proper communication;
2. do not take extending domain management physical system resource, extending domain management entity handles data efficiency is not also had influence;
3. mobile node is when the inter-network internet roaming, and mobile node can successfully be registered, and the extending domain management entity still can correctly respond mobile node ARP request.
Description of drawings
Fig. 1 is a flexible IP network technology system topological diagram of the present invention;
Fig. 2 is the flow chart of setting up of extending domain management entity of the present invention;
Fig. 3 is an extending domain management entity broadcasts packet format of the present invention.
Drawing reference numeral explanation: 1-ground field management entity, 2-access-in management entity, 3-extending domain management entity, 4-basic network territory user, 5-mobile node, 6-NAT refers to the NAT in basic network territory, 7-Internet, be the internet, 8-NAT refers to the NAT in extended network territory.
Embodiment
Flexible IP network technology system of the present invention is meant the system that is made of ground field management entity 1, extending domain management entity 3, access-in management entity 2, realizes that mobile node 5 at extended network territory link, uses the system of original IP address proper communication.
The present invention utilizes raw socket and proxy ARP technology, has realized mobile node when different segment is roamed, and can successfully register and the problem of extending domain management entity 3 correct proxy mobile nodes.That is, behind mobile node 5 inter-network internet roamings, mobile node 5 sends to its extending domain management entity 3 with register requirement, and mobile node 5 can normal registration, and after succeeding in registration, extending domain management entity 3 can correctly respond the ARP request of mobile node 5.
Implementation method of the present invention is as follows:
When the Network Access Point of mobile node 5 be on the extended network territory time from a link switchover to another link, mobile node 5 at " agent discovery " afterwards, from 3 broadcasting of extending domain management entity, the be expanded address of territory management entity 3 of mobile node 5;
2. mobile node 5 judges whether it belongs to the same network segment with extending domain management entity 3: if belong to the address of same network segment mutually, mobile node 5 is just according to the principle of the mobile IP of tradition, construct general register requirement packet and send to extending domain management entity 3, extending domain management entity 3 is transmitted register requirement.If do not belong to the phase same network segment, mobile node 5 obtains the IP address and the mac address information of extending domain management entity 3 from 3 broadcasting of extending domain management entity, mobile node 5 structure raw sockets use raw socket directly to send register requirement to extending domain management entity 3.Because the use raw socket, such register requirement can be sent to extending domain management entity 3.Tell ground field management entity 1 Care-of Address of oneself by register flow path mobile node 5, after succeeding in registration, between ground field management entity 1 and extending domain management entity 3, set up the tunnel.Extending domain management entity 3 makes mobile node 5 can normally visit basic network territory resource according to proxy ARP mechanism, visits other mobile nodes 5.
Referring to Fig. 1-3, details are as follows for specific implementation method of the present invention:
1. agent discovery process: extending domain management entity 3 sends periodically acts on behalf of broadcast, mobile node 5 is received agency's broadcasting of extending domain management entity 3, by with the comparison of ground field management entity 1 address, mobile node 5 detects it on the link of extended network territory, and mobile node 5 can be with the Care-of Address of these extending domain management entity 3 addresses as it.Referring to accompanying drawing 1.
2. mobile node 5 is received the agency broadcasting of extending domain management entity 3, and mobile node 5 is resolved this agency's broadcasting, and by comparative analysis, mobile node 5 detects own and extending domain management entity 3 is a same network segment mutually.Extending domain management entity 3 broadcast packet forms are referring to Fig. 3.
1) if mobile node 5 belongs to same network segment mutually with extending domain management entity 3: mobile node 5 is constructed general register requirement packet and is sent to extending domain management entity 3 according to the principle of the mobile IP of tradition, and extending domain management entity 3 is transmitted register requirement;
2) if mobile node 5 and extending domain management entity 3 belong to different segment: 5 structures of mobile node raw socket, utilize this raw socket to send login request message.
3. after extending domain management entity 3 is received the register requirement of mobile node 5, register requirement is forwarded to the ground field management entity 1 of mobile node 5, the identity of 1 pair of mobile node 5 of ground field management entity authenticates, and returns registration reply.
4. after extending domain management entity 3 is received correct registration reply, be transmitted to mobile node 5, extending domain management entity 3 generates the proxy ARP list item of a mobile node 5 simultaneously.Set up the tunnel between extending domain management entity 3 and the ground field management entity 1, but make after mobile node 5 roaming still operate as normal.The flow process that extending domain management entity 3 is set up is referring to Fig. 2.
5. because extending domain management entity 3 has added the proxy ARP list item of mobile node 5, so the ARP that sends from mobile node 5 asks, extending domain management entity 3 can the response arp replys.
Relevant technical terms explanation of the present invention:
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 authentication message and packet.
The access-in management entity: having can be at the network equipment of the IP address of internet route, and it authenticates and transmit the trunking of mobile node packet to the mobile node identity between ground field management entity and extending domain management entity.
The basic network territory: mobile node is roamed the network at preceding place.
Extended network territory: the network that mobile node roaming back is arrived.
IP tunnel: be meant that an IP-based packet is encapsulated in the path of process when transmitting in the net load of another IP packet.
Tunneling technique: refer to comprise data encapsulation, the overall process in wrapping in is conciliate in transmission.
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.
Care-of Address: the legitimate ip address that mobile node obtains in the extended network territory.
IETF: the Internet engineering duty group, Internet Engineering Task Force.
Full Proxy: all give arp reply for all ARP that receives requests, rather than only just give arp reply at specific ARP request.