Background technology
Along with the continuous appearance of rapid development of information network technology and various new business, increasing mobile device requires to insert the Internet, whenever and wherever possible with the Internet in other communication terminal communicate, obtain information and service.This has proposed mobility to traditional the Internet and has supported requirement.The mobility of the Internet is meant that an IP-based equipment moves to different networks and still can keep present ongoing communication, and it does not comprise the situation that this equipment just moves in a single network.In addition, people also no longer are satisfied with the use fixed terminal or single mobile terminal is connected to network, but wish the terminal organic assembling in certain range of attributes to be got up, insert the Internet with a metastable set, dynamically obtain information on the internet.In this case, under the mobile internet environment composition mode of moving person mainly comprise unit, because of the geographic area limits the main frame set forms, limits the main frame set formed etc. because of the network prefix scope, the move mode of network comprises mainly that unit enters that main frame set, certain main frame in certain motion gathers that the main frame that enters another motion is gathered and the nested mode of deriving thus etc.
Because traditional ICP/IP protocol initial design is to be used for fixing communication between the node, the mobility support of the Internet is a very complicated topic, has many problems to need to solve.In traditional ICP/IP protocol stack, the IP address both as the identify label of main frame also as the station location marker of main frame.This IP address is not only as the identify label of main frame but also be unfavorable for supporting the mobility of main frame, the variation of IP address can cause original transmission of setting up to connect as the mode of the station location marker of main frame interrupting, need rebulid connection.
At present the solution of internet mobility mainly contain the mobile IP that supports unit to move (MobileIP, MIP), the network of supporting subnet to move move (NEtwork MObility, NEMO) and the self-organizing network (Ad hoc) of networking separately etc.MIP and NEMO are based on that the mode in home agent and tunnel communicates, and all there are problems such as time-delay is big, router efficiency is low in they.Ad hoc network is a self-organizing network, goes back neither one at present and effectively supports Ad hoc to insert the scheme of the Internet.Therefore, be necessary to design a Internet access scheme, make mobile host, mobile network and self-organizing network etc. to insert the Internet in a kind of same mode.
Mobile IP (Mobile IP, MIP) defined a home network, (Mobile Node MN) is assigned to a permanent IP address and is called home address mobile node in this network, and discerning MN with it, MIP has also defined the field network of MN visit simultaneously.MIP has introduced two new entities, promptly home agent (Home Agent, HA) and Foreign Agent (Foreign Agent FA), uses these two entities to transmit MN and Correspondent Node (Correspond Node, CN) message between.In MIP, when MN during at home network its behavior communicate just as ordinary fixed node and CN; When leaving home network and enter field network, MN will pass through DHCP (Dynamic HostConfiguration Protocol, DHCP) obtain a Care-of Address, and after HA notifies its new address, HA to receive this login request message, send a registration reply message and respond MN by send login request message to HA.When CN sent message to MN, HA intercepted and captured this message, utilized tunneling technique that this message is forwarded to the Care-of Address of MN then, and FA issues MN to this message again, and MN then directly sends to CN to message.MIP makes mobile node can continue to use original IP address and CN to communicate.MIP for transport layer and application layer such as TCP be connected and the port binding of maintenance and UDP to wait be transparent.But in MIP, all messages that CN sends to MN all will pass through HA, have increased extra routing cost like this, and HA also is a potential fault point simultaneously.
Network moves that (NEtwork MObility NEMO) is meant a subnet that can move and be linked into the Internet arbitrarily.Mobile node among the NEMO both can the net in mutual communication, (Mobile Router, MR) communication node that is linked in the Internet and the Internet communicates also can to pass through mobile router.NEMO is responsible for mobile management by MR, and the mobile node among the NEMO can only visit the Internet by being in charge of its ambulant MR.Guarantee the continuity of upper layer application in order to make mobile node that existing IP address can not changed, NEMO uses the working method that is similar to mobile MIP, adopt home agent (Home Agent, HA) and the mode of bidirectional tunnel communicate, each MR has oneself a HA, and by HA MR is carried out location management; Setting up a bidirectional tunnel between MR and its HA communicates.This communication mode based on HA and bidirectional tunnel makes routing cost increase.NEMO supports nested move (Nested Mobility), and promptly MR allows another one MR to be connected to its mobile network to go up and can have the nested of random layer to move.Because NEMO adopts the communication mode based on HA and bidirectional tunnel, therefore routing cost increases in nested mobile mobile subnetwork is arranged.
Self-organizing network (Ad hoc) is meant by one group of autonomous node or terminal and cooperates with each other and form, be independent of fixing infrastructure and adopt the network of distributed management, is a kind of self-organizing and from supervising the network.Have the network of foundation structure to compare with tradition, Ad hoc network can not have fixing foundation structure; The distributed operation of all nodes, and each node all has the function of router, the responsible route of finding and being maintained into other node; Node usually at random moves in network, freely adds and exits network, and makes the network topology structure frequent variations.This network both can isolated operation, can be linked into wired backbone network (as the Internet) by gateway again.Development along with personal communication and mobile internet technology, people also begin growing interest to the problem of Ad hoc network insertion the Internet, the basic ideas that make Ad hoc network insertion the Internet at present are that a proxy gateway is set in Ad hoc network, and each node in the Ad hoc network is connected to the Internet by this proxy gateway.Node in the Ad hoc network uses home address, when communicating with the outside, by proxy gateway home address is converted to outside legal address; Perhaps combine, utilize Foreign Agent among the MIP to serve as the proxy gateway of Ad hoc network, with the problem of resolution protocol conversion and address transition with MIP.Proxy gateway often needs the address of Ad hoc network is managed; The agent discovery request of response Ad hoc node; Handle the register requirement of Ad hoc node; Carry out protocol conversion and address transition; The data that forwarding Ad hoc node is communicated by letter with external the Internet etc.Although these schemes have solved the problem of Ad hoc network insertion the Internet to a certain extent, but exist obvious defects: because the node in the Ad hoc network uses home address to communicate, therefore, when the node in the Ad hoc network and the node in the Internet communicate, proxy gateway need carry out address transition to the node in the Ad hoc network, and the address transition expense of proxy gateway is big; Combine if consider Ad hoc network and MIP, the access node number is subjected to the restriction of Care-of Address number, and can cause huge routing cost.
Summary of the invention
The objective of the invention is to improve the shortcoming of prior art, a kind of internet access method that separates with the position based on identity be provided, make mobile device insert the Internet, whenever and wherever possible with the Internet in other communication terminal communicate, obtain information and service.Traditional ICP/IP protocol initial design is to be used for fixing communication between the node, and it is not suitable for supporting the mobility of the Internet.In traditional internet architecture based on the ICP/IP protocol stack, the IP address both as the identify label of main frame also as the station location marker of main frame.This IP address is not only as the identify label of main frame but also be unfavorable for supporting the mobility of main frame, the variation of IP address can cause original transmission of setting up to connect as the mode of the station location marker of main frame interrupting, need rebulid connection.
The invention provides a kind of internet access method that separates with the position based on identity, the dual-use function of Traditional IP address is separated, IP address a station location marker as main frame; Introduce a new name space simultaneously---the end hostid, the use side hostid is as the identify label of main frame and the use side hostid terminal identifier as host-host protocol.Use this technology can be so that mobile host, mobile network, self-organizing network etc. insert the Internet with a kind of uniform way.
For achieving the above object, the present invention takes following design:
A kind of internet access method that separates with the position based on identity; The IP address not only as the identify label of main frame, but also separate as the dual-use function of the station location marker of main frame, the IP address is only as the station location marker of main frame.Introduce a new name space simultaneously---(EndhostIdentity EID), uses the identify label of EID as main frame to the end hostid, and uses the terminal identifier of EID as host-host protocols such as TCP, UDP.Each main frame has a globally unique EID.
In order to resolve the mapping between EID and the IP address, introduce a new equipment---and the identity resolver (Identity Resolution Server, IRS).IRS is responsible for resolving the mapping relations between EID and the IP address, and upgrades the binding between EID and the IP address dynamically.
After the separation of the dual-use function of IP address and introducing EID, application layer and EID binding, EID and IP address binding, therefore be necessary at domain name system (Domain Name System, DNS) increase a kind of resource record form in, make DNS can write down the mapping relations between domain name and the EID, and DNS also must record the IP address of IRS.
A kind of internet access method that separates with the position based on identity includes following steps:
Step 1: all nodes are registered the EID of oneself in dns server, the EID of registration oneself and current IP address in IRS;
Step 2: the communication sources end is searched the EID of dns server acquisition Correspondent Node and this EID is resolved, thereby obtains the IP address of Correspondent Node;
Step 3: communication sources end and Correspondent Node use EID and IP address to establish a communications link simultaneously;
Step 4: when communication node is moved in communication process, when becoming mobile node, mobile node obtains new IP address and (obtains the IP address by state or state configuration mode are arranged, specifically according to rfc2462, rfc3315, rfc3736) and use new IP address and Correspondent Node to communicate, and the EID of mobile node remains unchanged.
Characteristics of the present invention and advantage, a kind of internet access method that separates with the position based on identity separates the dual-use function of IP address, IP address a station location marker as main frame, introduce a new name space---end hostid (Endhost Identity, EID), use the identify label of EID, and use the terminal identifier of EID as host-host protocols such as TCP, UDP as main frame.In communication process, the IP address of communication node can change, and the EID of communication node then remains unchanged.Use this technology can be so that fixed terminal, portable terminal, mobile network, self-organizing network etc. insert the Internet with a kind of uniform way.
Embodiment
Embodiment 1;
A kind of internet access method that separates with the position based on identity;
A kind of based in identity and the internet access method that separates the position, the IP address not only as the identify label of main frame, but also separate as the dual-use function of the station location marker of main frame, the IP address is only as the station location marker of main frame.Introduce a new name space simultaneously---(EndhostIdentity EID), uses the identify label of EID as main frame to the end hostid, and uses the terminal identifier of EID as host-host protocols such as TCP, UDP.Each main frame has a globally unique EID.Use EID as shown in table 1, use EID as shown in table 2 as the UDP message format of terminal identifier as the TCP message format of terminal identifier.0 31
| 160 potential source EID |
| 160 purpose EID |
| 16 potential source port numbers | 16 destination slogans |
| 32 bit sequence number |
| Confirm number for 32 |
| 4 header length | 6 keep the position | 6 bit flag positions | 16 windows |
| 16 bit checks and | 16 urgent pointer |
| Option (if having) |
| Data |
Table 1 uses the TCP message format of EID as terminal identifier
0 31
| 160 potential source EID |
| 160 purpose EID |
| 16 potential source port numbers | 16 destination slogans |
| 16 UDP length | 16 UDP verifications and |
| Data |
Table 2 uses the UDP message format of EID as terminal identifier
In order to resolve the mapping between EID and the IP address, introduce a new equipment---and the identity resolver (Identity Resolution Server, IRS).IRS is responsible for resolving the mapping relations between EID and the IP address, and upgrades the binding between EID and the IP address dynamically.The storage format of database is as shown in table 3 among the IRS, and wherein sequence number shows the new and old of this memory contents, verification and show the integrality of this memory contents.
0 31
| Sequence number | Verification and |
| EID1 |
| IP1 |
| EID2 |
| IP2 |
| |
The storage format of database among table 3 IRS
After the separation of the dual-use function of IP address and introducing EID, application layer and EID binding, EID and IP address binding, therefore be necessary at domain name system (Domain Name System, DNS) increase a kind of resource record form in, make DNS can write down the mapping relations between domain name and the EID, and DNS also must record the IP address of IRS.Amended DNS resource record form is as shown in table 4:
0 31
| EID(IRS) |
| IP |
| Domain name |
| Type | Class |
| Life span |
| The EID data length | |
| EID |
The amended DNS resource record of table 4 form
A kind of the Internet access technology of separating with the position based on identity includes following steps:
Step 1: all nodes are registered the EID of oneself in dns server, the EID of registration oneself and current IP address in IRS, and this step contains following two steps:
Step 1: all nodes are registered the EID of oneself in dns server, and IRS registers EID and the IP address of oneself in dns server;
Step 2: all nodes are registered EID of oneself and current IP address in IRS;
Step 2: the communication sources end is searched the EID of dns server acquisition Correspondent Node and this EID is resolved, thereby obtains the IP address of Correspondent Node, and this step contains following two steps:
Step 1: the communication sources end is searched dns server, obtains the EID of Correspondent Node and EID and the IP address of IRS;
Step 2: the communication sources end is searched IRS, the EID of Correspondent Node is resolved, thereby obtain the IP address of Correspondent Node;
Step 3: communication sources end and Correspondent Node use EID and IP address to establish a communications link simultaneously, and this step contains following four steps:
Step 1: the EID of communication sources end use Correspondent Node and IP address send message respectively as the purpose EID and the purpose IP address that oneself send in the message to Correspondent Node;
Step 2: Correspondent Node receives the message that the communication sources end sends over, and checks whether the purpose EID in the message is the EID of oneself, if then receive this message, if not, then abandon this message;
Step 3: Correspondent Node is searched dns server, obtains the EID of communication sources end and EID and the IP address of IRS; Correspondent Node is searched IRS, the EID of communication sources end is resolved, thereby obtain the IP address of communication sources end;
Step 4: the EID of Correspondent Node use communication sources end and IP address send message respectively as the purpose EID and the purpose IP address that oneself send in the message to the communication sources end;
Step 4: when communication node is moved in communication process, when becoming mobile node, mobile node obtains new IP address (obtaining IP address rfc2462rfc3315rfc3736 by state or state configuration mode are arranged) and uses new IP address and Correspondent Node to communicate, and the EID of mobile node remains unchanged, and this step contains following five steps:
Step 1: when communication node is moved in communication process, when becoming mobile node, mobile node obtains new IP address;
Step 2: mobile node sends the renewal message for IRS and Correspondent Node, the own new IP address of announcement;
Step 3:IRS and Correspondent Node send to upgrade confirmation message and IRS to mobile node and upgrade corresponding contents in the own database, make that the EID of mobile node is corresponding with new IP address;
Step 4: Correspondent Node uses the new IP address of mobile node to communicate by letter with mobile node as destination address;
Step 5: mobile node uses new IP address to communicate by letter with Correspondent Node as the source address of oneself.
Embodiment 2;
As shown in Figure 1.Shown in Fig. 1 is that node in when moving and the Internet of fixed host computer and individual host communicates.Communication sources end among Fig. 1 has taken place to move in communication process, inserts the Internet by subnet 1 originally, moves the back and inserts the Internet by subnet 2.
Step 1: all nodes are registered the end hostid of oneself in dns server, as communication sources end registration EID
1, Correspondent Node registration EID
2, IRS registers the end hostid EID of oneself in dns server
IRSAnd address ip
IRS
Step 2: all nodes are registered end hostid of oneself and current IP address in IRS, as communication sources end registration EID
1And IP
1, Correspondent Node registration EID
2And IP
2
Step 3: the communication sources end is searched dns server, obtains the EID of Correspondent Node
2EID with IRS
IRSAnd IP
IRS
Step 4: the communication sources end is searched IRS, to the EID of Correspondent Node
2Resolve, thus the address ip of acquisition Correspondent Node
2
Step 5: the communication sources end uses EID respectively
2And IP
2As purpose EID and purpose IP address, send in the message to Correspondent Node.
Step 6: Correspondent Node receives the message that the communication sources end sends over, and checks whether the purpose EID in the message is EID
2, if, then receive this message, if not, this message then abandoned.
Step 7: Correspondent Node is searched dns server, obtains the EID of communication sources end
1EID with IRS
IRSAnd IP
IRS
Step 8: Correspondent Node is searched IRS, to EID
1Resolve, thus the address ip of acquisition communication sources end
1
Step 9: Correspondent Node uses EID respectively
1And IP
1As purpose EID and purpose IP address, send in the message to the communication sources end.
Step 10: the communication sources end is moved in communication process, and when becoming mobile node, (Dynamic Host Configuration Protocol DHCP) obtains new address ip to mobile node by DHCP
3
Step 11: mobile node sends the renewal message for IRS and Correspondent Node, the own new address ip of announcement
3
Step 12:IRS and Correspondent Node send to upgrade confirmation message and IRS to mobile node and upgrade corresponding contents in the own database, make that the EID of mobile node is corresponding with new IP address.
Step 13: Correspondent Node uses EID respectively
1And IP
3As purpose EID and purpose IP address, send message to the communication sources end.
Step 14: mobile node uses IP
3Source address as oneself sends message to Correspondent Node.
For present embodiment there being a understanding clearly, the drawn schematic flow sheet of present embodiment of spy.The schematic flow sheet of embodiment 2 as shown in Figure 2.
Embodiment 3;
As shown in Figure 3.Shown in Fig. 3 is that node among the mobile network and the node in the Internet communicate, and AR is couple in router (Access Router), and MR has enough address spaces, can be unique address of each host assignment of network to one's name.For for simplicity, four mobile routers have only drawn among the figure.
The communication steps of MN and CN is as follows:
Step 1: all nodes are the end hostid of registration oneself in dns server all, as MN registration EID
MN, CN registers EID
CN, MR registers EID
MR, IRS registers EID in dns server
IRSAnd address ip
IRS
Step 2: all nodes are registered end hostid of oneself and current IP address in IRS, as MN registration EID
MNAnd IP
MN, CN registers EID
CNAnd IP
CN, MR registers EID
MRAnd IP
MR
Step 3:MN inquires about dns server, obtains the EID of CN
CN, IRS EID
IRSAnd address ip
IRS, MR EID
MRAnd IP
MR
Memory contents among the step 4:MR copy IRS obtains the mapping relations between a all addresss of node and the EID.
Step 5:MN inquires about MR, to EID
CNResolve, obtain the address ip of CN
CN
Step 6:MN uses EID
MNAnd IP
MNAs the source EID of message and source address, use EID
CNAnd IP
CNAs the purpose EID and the destination address of message, send message to CN.
Step 7:MR receives the message that MN sends to CN, and then MR is transmitted to AR to this message, is responsible for this message is sent to CN by AR.
Step 8:CN receives the message that MN sends over, and checks whether the purpose EID in the message is EID
CN, if, then receive this message, if not, this message then abandoned.
Step 9:CN searches dns server, obtains the EID of MN
MNEID with IRS
IRSAnd address ip
IRS
Step 10:CN searches IRS, to EID
MNResolve, obtain the address ip of MN
MN
Step 11:CN uses EID
CNAnd IP
CNAs the source EID of message and source address, use EID
MNAnd IP
MNAs the purpose EID and the destination address of message, send message to CN.
Step 12:MR receives the message that CN sends, and checks whether purpose EID is the EID of the node in the own network, if not, then abandon this message; If then transmit this message according to the destination address in the message.
Step 13:MN receives packet, checks whether purpose EID is EID
MN, if, then receive this message, if not, this message then abandoned.
Step 14: if MN is moved in communication process or have node to add this mobile network's (access node, VN), then (Dynamic HostConfiguration Protocol DHCP) obtains new address ip by DHCP for MN or this access node
MNN
Step 15:MN or VN send the renewal message for IRS, CN and MR, the own new address ip of announcement
MNN
Step 16:IRS, CN and MR send the renewal confirmation message for MN or VN.
Step 17:IRS and MR upgrade the corresponding contents in the own database, make that the EID of MN or VN is corresponding with new address.
Step 18:CN uses EID
CNAnd IP
CNAs the source EID of message and source address, use EID
MNAnd IP
MNNAs the purpose EID and the destination address of message, send message to CN.
Step 19:MN uses EID
MNAnd IP
MNNAs the source EID of message and source address, use EID
CNAnd IP
CNAs the purpose EID and the destination address of message, send message to CN.
For present embodiment there being a understanding clearly, the drawn schematic flow sheet of present embodiment of spy.The schematic flow sheet of embodiment 3 as shown in Figure 4.
Embodiment 4;
As shown in Figure 5.Shown in Fig. 5 is that node in the Ad hoc network and the node in the Internet communicate, and AR is couple in router (Access Router), is responsible for the node in the Ad hoc network is linked into the Internet, and AR has legal IP address; Each node in the Ad hoc network only has identify label EID, does not have the IP address.
The communication steps of node M N in the Ad hoc network and the node CN in the Internet is as follows:
Step 1:AR gives the address ip of the mobile node announcement oneself in the Ad hoc network
AR, mobile node uses the address of this address as oneself.
Step 2: all nodes are the end hostid of registration oneself in dns server all, as MN registration EID
MN, CN registers EID
CN, AR registers EID
AR, IRS registers EID in dns server
IRSAnd address ip
IRS
Step 3: all nodes are the end hostid and the IP address of registration oneself in IRS all, registers EID as CN in IRS
CNAnd IP
CN, AR registers EID in IRS
ARAnd IP
AR, the node M N in the Ad hoc network registers EID in IRS
MNAnd IP
AR
Step 4:MN inquires about dns server, obtains the EID of CN
CNEID with IRS
IRSAnd address ip
IRS
Step 5:MN inquires about IRS, to EID
CNResolve, obtain the address ip of CN
CN
Step 6:MN uses EID
MNAnd IP
ARAs the source EID of message and source address, use EID
CNAnd IP
CNAs the purpose EID and the destination address of message, send message to CN.
Step 7:AR receives the message that the node in the Ad hoc network sends out, and then AR transmits this message according to the purpose IP in the message.
Step 8:CN receives the message that MN sends over, and checks whether the purpose EID in the message is EID
CN, if, then receive this message, if not, this message then abandoned.
Step 9:CN searches dns server, obtains the EID of MN
MNWith
IRSEID
IRSAnd address ip
IRS
Step 10:CN searches IRS, to EID
MNResolve, obtain the address ip of MN
AR
Step 11:CN uses EID
CNAnd IP
CNAs the source EID of message and source address, use EID
MNAnd IP
ARAs the purpose EID and the destination address of message, send message to CN.
Step 12:AR receives the message that the node in the Internet sends over, and checks whether the destination address in the message is IP
AR, if not then abandoning this message; If then forward step 13 to.
Step 13:AR checks the purpose EID in the message, if MN direct jumps can reach, and then AR directly is submitted to MN to this message; If it is unreachable that MN one jumps, then AR is submitted to direct one to this message and jumps the node that can reach, and is transmitted to MN by this message of this node.
Step 14:MN receives packet, checks whether purpose EID is EID
MN, if, then receive this message, if not, this message then abandoned.
Step 15: if Ad hoc network changes access point in communication process, by AR
2Insert the Internet, then AR2 gives the address ip of the mobile node announcement oneself in the Ad hoc network
AR2, mobile node receives this announcement back and uses IP
AR2As the address of oneself.
Step 16:MN sends the renewal message for IRS and CN, announces the new address ip of oneself
AR2
Step 17:CN send to upgrade confirmation message to MN, and IRS upgrades the corresponding contents in the own database and sends to MN and upgrades confirmation message.
Step 18:AR
2Send the renewal message to IRS, announce the address ip of oneself
AR2
Step 19:IRS upgrades the corresponding contents in the own database and gives AR
2Send and upgrade confirmation message.
Step 20:CN uses EID
CNAnd IP
CNAs the source EID of message and source address, use EID
MNAnd IP
AR2As the purpose EID and the destination address of message, send message to CN.
Step 21:MN uses EID
MNAnd IP
AR2As the source EID of message and source address, use EID
CNAnd IP
CNAs the purpose EID and the destination address of message, send message to CN.
For present embodiment there being a understanding clearly, the drawn schematic flow sheet of present embodiment of spy.The schematic flow sheet of embodiment 4 as shown in Figure 6.