Background technology:
Solve in the mobile IP technology of similar problem with flexible IP network technology system, adopt IP tunneling to transmit after the net load encapsulation of an IP-based packet as another IP packet, the path of data transmission process is called the tunnel.
A lot of services in internet and/or wide area network scope at present, for example: mobile IP, VPN, timely message etc., adopted tunneling technique or data relaying retransmission technique, and this type of technology all can produce the data forwarding bottleneck in realization, thereby cause efficient lower.
The way that adopts server to carry out the forwarding of data relaying is: data all will check, analyze each packet in transmitting, and determine the relay purposes address, and efficient is low, server becomes system bottleneck easily, increased the delay that data transmit.
Also there are the following problems to adopt the method for general tunneling technique:
As shown in Figure 1,, finish data by the tunnel relaying and transmit, will set up direct end-to-end tunnel, realize the relaying in tunnel in different inter-entity if having in the system of three entities; That is, require to set up tunnel D end to end between entity A and entity B, set up tunnel E end to end equally between entity B and entity C, the original data stream of mobile node arrives entity C through tunnel D, tunnel E, arrives destination host at last.Data will also will be carried out data buffering and handle through twice encapsulation and twice decapsulation in transmission on the intermediate entities B, wasted a large amount of CPU and storage resources, make entity B become the bottleneck of whole system.
Summary of the invention
The IP tunnel method that the purpose of this invention is to provide data relay in a kind of flexible IP network technology system solves the transmission efficiency that how to improve data, the problem of improving systematic function.
The thinking that addresses the above problem is: the access-in management entity only carries out decapsulation to the data that ground field management entity and extending domain management entity or mobile node are sent, directly routing forwarding is handled then, need not complicated decapsulation, application layer buffered, encapsulation process again, reduce the complexity of processing data packets.
The technical scheme that addresses the above problem is: the IP tunnel method of data relay is as follows in the flexible IP network technology system that is provided:
1) the access-in management entity is at first set up FPDP;
2) ground field management entity, extending domain management entity connect with the FPDP of access-in management entity respectively;
3) swap data link information;
4) ground field management entity or extending domain management entity are set up double layer tunnel, and said double layer tunnel is meant that the encapsulation of tunnel end has comprised for realizing the skin encapsulation packet header that the first step transmits and being the internal layer encapsulation packet header that direct route of second step is used;
5) the access-in management entity is set up the IP-based tunnel of individual layer, and as IP in IP tunnel or IP inUDP tunnel, this tunnel is an omnidirectional tunnel, can finish simultaneously with the bi-directional data of opposite end, two tunnels and transmit.
Two Peer-Port addresses in this tunnel are respectively ground field management entity and extending domain management entity (or mobile node); This tunnel port is directly removed outer field header packet information after receiving the tunneling data of sending any opposite end, and inner individual layer encapsulated data packet is normally carried out routing forwarding; The access-in management entity was not handled the particular content of tunneling data bag when the tunnel was transmitted, but according to the direct routing forwarding in the packet header of packet encapsulation, thereby had improved the efficient of data forwarding.
In order on the access-in management entity, to realize the omnidirectional tunnel, to carry the routing iinformation of partner address on ground field management entity and the extending domain management entity (or mobile node), be convenient to the access-in management entity and carry out routing forwarding, be equivalent to carry out two-layer encapsulation, but, can not cause tangible effectiveness affects to ground field management entity and extending domain management entity (or mobile node) owing to be once to finish.
The present invention can improve the efficient of intermediate entities processing transactions amount, and minimizing takies system resource, reduces the delay of data transmission and the efficient of forwarding data.
Method provided by the invention can realize on various network device and operating system, be not limited only on flexible IP network technology system system and the flexible IP network technology system access-in management entity, simultaneously, final realization can realize with the form of software systems or hardware device.
Embodiment:
Fig. 2 has provided the embodiment of the present invention in flexible IP network technology system access-in management entity.Among the figure: the ground field management entity is the identity of proxy mobile node, and finishes data forwarding; Extending domain management entity (or mobile node) is promoter or the recipient that data transmit; The access-in management entity is responsible for inserting the request of mobile node, finishes the quick forwarding of data; Basic network territory NAT is responsible for finishing the address transition of privately owned address, basic network territory; Extended network territory NAT is responsible for finishing the address transition of privately owned address, extended network territory.Ground field management entity and extending domain management entity (or mobile node) all are the end points of finally realizing the tunnel, can finish the bilayer encapsulation of data.Concrete grammar is as follows:
(1) at first needs to realize the equipment or the main frame of data double-way transfer IP tunnel, it in the present case flexible IP network technology system access-in management entity, create a data port, and wait for two end points that the tunnel connects: ground field management entity, extending domain management entity (or mobile node) initiatively carry out data with the access-in management entity and are connected;
(2) these two endpoint of a tunnels of ground field management entity and extending domain management entity (or mobile node) are set up data transfer port at self respectively, and initiate the data connection request to the FPDP of access-in management entity, this connection request sends to flexible IP network technology system access-in management entity after through corresponding NAT; The address that the access-in management entity obtains is exactly the NAT address of ground field management entity and extending domain management entity (or mobile node) address or their correspondences;
(3) flexible IP network technology system access-in management entity is the two tunnel endpoint addresses information notice other end that obtains, promptly give the ground field management entity address notification of extending domain management entity (or mobile node), give extending domain management entity (or mobile node) address notification of ground field management entity simultaneously;
(4) obtain both sides' connection request, and after finishing the mutual notice of address message, the access-in management entity is set up the tunnel, its local port was for receiving the port of data connection request just now, and the address at two ends is the mapping address on the NAT gateway of the address of ground field management entity and extending domain management entity (or mobile node) or its place network egress;
(5) when mobile node sends data to basic network territory main frame from the extended network territory, extending domain management entity or mobile node encapsulate original TCP/IP data, this encapsulation has comprised for realizing the outer basic encapsulation packet header that the first step transmits and being the internal layer route packet header that direct route of second step is used, wherein internal layer route packet header is for balance and raises the efficiency, and replaces the access-in management entity to finish;
(6) data after extending domain management entity (or mobile node) encapsulation arrive flexible IP network technology system access-in management entity, the access-in management entity need not to carry out the buffering of application layer, directly remove outer encapsulation packet header, destination address according to internal layer directly carries out routing forwarding to the ground field management entity, so its speed and efficient all improve a lot.
(7) in like manner, when basic network territory main frame when the basic network territory sends data to mobile node, the ground field management entity carries out twice encapsulation to original TCP/IP data, that is: for realizing the outer basic encapsulation packet header that the first step transmits and being the internal layer route packet header that direct route of second step is used;
(8) data after the encapsulation of ground field management entity arrive flexible IP network technology system access-in management entity, the access-in management entity still need not to carry out the data buffering and the processing of application layer, directly remove outer encapsulation packet header, destination address according to internal layer directly carries out routing forwarding to extending domain management entity (or mobile node), has guaranteed speed and efficient equally.
Flexible IP network technology system access-in management entity uses the present invention to realize two-way unpacking fast and directly route transfer, all data transmit all and can finish through the access-in management entity, and the access-in management entity is directly transmitted by the routing function of bottom after receiving data.
The present invention relates to two-way unpack fast and directly route transfer tunneling technique require the tunnel the address, corresponding port as shown in Figure 3.
Two ends arrive the access-in management entity and leave data packet format such as Fig. 4, shown in Figure 5 of access-in management entity.Wherein: the source address in outer encapsulation packet header is ground field management entity or the mapped port address of extending domain management entity on NAT, and destination address is the port and the address of access-in management entity; The source address in internal layer route packet header is the port and the address of access-in management entity, and destination address is the mapped port address on the other side NAT.
Concrete data content does not need to encrypt on three port tunnel M, can encrypt on the concrete data of inside, the tunnel device of access-in management entity only carries out transparent transmission, non-decrypting original text, therefore do not need to carry out further encryption and decryption operation, but keep the original fail safe of data.
The said flexible IP network technology system access-in management of the present invention entity is that have can be at the network equipment of internet routed ip address, it between flexible IP network technology system ground field management entity and extending domain management entity, the trunking that registration message and packet are transmitted.Flexible IP network technology system access-in management entity provides access service during from extended network domain browsing basic network territory at mobile node, flexible IP network technology system ground field management entity and extending domain management entity are carried out two-way authentication, allow mobile node and basic network territory to connect, the request in the long-range access basic network of response mobile node territory.
Said some other relevant technical terms of the present invention is:
1. 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.
2. extending domain management entity: the network equipment on the extended network territory of mobile node is that mobile node is transmitted authentication message and packet.
3. 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.
4. basic network territory: mobile node is roamed the network at preceding place.
5. extended network territory: the network that mobile node roaming back is arrived.
6.IP tunnel: being meant that an IP-based packet is encapsulated in the net load of another IP packet transmits, and the path of process is called the tunnel.
7. tunneling technique: refer to comprise data encapsulation, the overall process in wrapping in is conciliate in transmission.
8. 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.
9. network address translation (nat): Network Address Translation provides a kind of plain mode that connects the Internet, and provides safeguard protection by the means of hiding internal network address for the user.When internal network user (being positioned at the inboard of NAT server) connects the Internet, NAT becomes an outside public ip address (being stored in the address pool of NAT) with user's internal network IP address transition, when external network data was returned, the address that NAT then oppositely replaces to destination address initial internal user allowed the internal network user accept well.Because the external like this IP address that has hidden internal network, therefore, external user can't directly be initiated to the connection of inner usefulness, thereby has protected internal user.
10.ARP:Address Resolution Protocol is an address resolution protocol, is a kind of agreement that the IP address spaces is become physical address.