The content of the invention
The problem to be solved in the present invention is to provide a kind of communication means and system of compatible IPv4 addresses, to realize IPv4 ends
End has access to identify net.
In order to solve above-mentioned technical problem, the invention provides a kind of communication system of compatible IPv4 address formats, including
Router;The router includes message converting unit;The message converting unit, for according to IPv4 addresses described in compatible
Mapping relations between the identity unique mark of IPv4 addresses realize the conversion between IPv4 messages and mark network packet.
Further, above-mentioned communication system can also have the characteristics that:
The communication system also includes server;It is single that the router also includes that proxy mapping unit, mapping relations are safeguarded
Unit;The server, for setting up the visual identification and identity uniquely identified mapping relations of communication equipment;The identity is unique
Identify the IPv4 addresses of the compatible communication equipment;The proxy mapping unit, for according to the communication equipment for receiving
Visual identification knows identity unique mark corresponding with this visual identification from the server;The mapping relations maintenance unit,
For parsing the IPv4 addresses of the communication equipment from the identity unique mark for receiving, this IPv4 address and identity are set up
Uniquely identified mapping relations;The message converting unit, according to communication equipment described in the mapping relations maintenance unit
IPv4 addresses and identity uniquely identified mapping relations realize being sent to the IPv4 messages of the communication equipment and identify network packet it
Between conversion.
Further, above-mentioned communication system can also have the characteristics that:
The router also includes allocation unit;The allocation unit, for receiving the initiation of IPv4 terminals
After registration request, from the server identity unique mark corresponding with the visual identification of this IPv4 terminal is known, and send to
The mapping relations maintenance unit.
Further, above-mentioned communication system can also have the characteristics that:
When the router that the proxy mapping unit is located is couple in router, it is described that the proxy mapping unit is received
The visual identification of communication equipment is the visual identification of the opposite end IPv4 terminals carried in the communication request that IPv4 terminals send, or
It is the visual identification of the opposite end Internet resources carried in the communication request that IPv4 terminals send;The proxy mapping unit is located
Router when being intercommunication router, the visual identification of the communication equipment that the proxy mapping unit is received is that the Internet is used
The visual identification of the mark net server carried in the communication request that family is initiated.
Further, above-mentioned communication system can also have the characteristics that:
The message converting unit, during in the couple in router being located positioned at communication originating end, reflects according to described
Penetrate the IPv4 addresses at communication objective end corresponding with communication originating end in relationship safeguard unit to close with the mapping of identity uniquely identified
System, by the IPv4 messages that communication originating end sends mark network packet is converted to;For in the access being located positioned at communication objective end
When in router, according to the IPv4 addresses at communication objective end described in the mapping relations maintenance unit and identity uniquely identified
Mapping relations, the mark network packet for receiving is converted to the IPv4 messages for being sent to the communication objective end;For positioned at intercommunication
When in router, according to IPv4 addresses and identity uniquely identified that net server is identified in the mapping relations maintenance unit
Mapping relations, the IPv4 messages received from the Internet are converted to the mark network packet for being sent to the mark net server.
Further, above-mentioned communication system can also have the characteristics that:
Identity unique mark is the combination of prefix and IPv4 addresses.
In order to solve above-mentioned technical problem, the invention provides a kind of communication means of compatible IPv4 address formats, including:
IPv4 messages and mark are realized according to the mapping relations between IPv4 addresses and the identity unique mark of the compatible IPv4 addresses
Conversion between network packet.
Further, above-mentioned communication means can also have the characteristics that:
The visual identification and identity uniquely identified mapping relations of communication equipment are set up in server;The identity is unique
Identify the IPv4 addresses of the compatible communication equipment;Router is according to the visual identification of the communication equipment for receiving from the clothes
Business device knows identity unique mark corresponding with this visual identification;The communication is parsed from the identity unique mark for receiving
The IPv4 addresses of equipment, set up this IPv4 address and identity uniquely identified mapping relations;Safeguard single according to the mapping relations
Realize being sent to the IPv4 of the communication equipment with identity uniquely identified mapping relations in the IPv4 addresses of communication equipment described in unit
Conversion between message and mark network packet.
Further, above-mentioned communication means can also have the characteristics that:
The communication means that IPv4 terminals are initiated in mark net includes:IPv4 initiating terminals to affiliated couple in router sends
The communication request of the visual identification of IPv4 communication targets is carried, the couple in router belonging to the IPv4 initiating terminals is according to described
Visual identification is known identity unique mark corresponding with the visual identification and is uniquely marked from the identity from the server
The IPv4 addresses of the IPv4 communication targets are parsed in knowledge, the IPv4 addresses for building the IPv4 communication targets are unique with identity
The mapping relations of mark, and the IPv4 addresses of the IPv4 communication targets are notified to the IPv4 initiating terminals;The IPv4
Initiating terminal initiates its IPv4 address as source address and using the IPv4 addresses of the IPv4 communication targets as destination address
IPv4 messages, IPv4 address and identity of the couple in router belonging to the IPv4 initiating terminals according to the IPv4 communication targets
Uniquely identified mapping relations will receive IPv4 messages and be encapsulated as identifying network packet and send to belonging to the IPv4 communication targets
Router, the router belonging to the IPv4 communication targets is according to the IPv4 communication targets carried in mark network packet
IPv4 addresses and identity uniquely identified mapping relations will identify network packet and be converted to IPv4 messages and send to the IPv4 and communicate
Target;Wherein, when IPv4 communication targets are the IPv4 terminals in mark net, the router belonging to IPv4 communication targets is access road
By device;IPv4 communication targets are the IPv4 resources of the Internet;Router belonging to IPv4 communication targets is intercommunication router.
Further, above-mentioned communication means can also have the characteristics that:
The method of internet communication end access identities net server includes:Internet communication end to intercommunication router sends
The communication request of the visual identification of mark net server is carried, the intercommunication router is according to the visual identification from the clothes
Business device knows identity unique mark corresponding with the visual identification and parses the mark from the identity unique mark
Know the IPv4 addresses of net server, the IPv4 addresses and the mapping of identity uniquely identified for building the mark net server is closed
System;The intercommunication router will be received according to the IPv4 addresses of the mark net server with identity uniquely identified mapping relations
Mark network packet is encapsulated as to IPv4 messages to send to the couple in router at the mark net server place, the access road
Closed with the mapping of identity uniquely identified according to the IPv4 addresses of the mark net server carried in mark network packet by device
Mark network packet is converted to IPv4 messages and is sent to the mark net server by system.
The present invention makes IPv4 terminals smoothly access mark by the identity uniquely identified mode of setting compatibility IPv4 addresses
Net, is communicated by identifying net.
Specific embodiment
The communication system of compatible IPv4 address formats includes router, and the router includes message converting unit;It is described
Message converting unit is used for according to the mapping relations reality between IPv4 addresses and the identity unique mark of the compatible IPv4 addresses
Conversion between existing IPv4 messages and mark network packet.
Router can also be able to be intercommunication router for couple in router.
Identity unique mark is globally unique identifier, by the combination of prefix and IPv4 addresses.For example, the length of IPv4 addresses
Generally 32, identity uniquely identified number of bits could be arranged to 128.
As shown in figure 1, when IPv4 addresses are the IPv4 addresses of IPv4 terminals, identity unique mark can be set to fix
Or the combination of variable prefix and this IPv4 address, IPv4 addresses can be used as identifying the local IP of net local communication.IPv4 ground
When location is the public network IP v4 address of Internet resources, identity unique mark can be set to Fixed CP with this public network IP v4 ground
The combination of location.When IPv4 addresses are to identify the public network IP v4 address of net server, identity unique mark can be set to solid
Determine the combination of prefix and this public network IP v4 address.
As shown in Fig. 2 communication system also includes server;The router also includes proxy mapping unit, mapping relations
Maintenance unit.
The server is used to set up the visual identification of communication equipment and identity uniquely identified mapping relations;The identity
The IPv4 addresses of the compatible communication equipment of unique mark;
The proxy mapping unit is used to be known from the server according to the visual identification of the communication equipment for receiving
Identity unique mark corresponding with this visual identification;
The mapping relations maintenance unit is used to parse the communication equipment from the identity unique mark for receiving
IPv4 addresses, set up this IPv4 address and identity uniquely identified mapping relations;
The message converting unit is according to the IPv4 addresses of communication equipment and body described in the mapping relations maintenance unit
Part uniquely identified mapping relations realize the conversion being sent between the IPv4 messages of the communication equipment and mark network packet.
Wherein, communication equipment is for during terminal, its visual identification can be the domain name of relative users in mark net.Communication equipment
For internet communication end when, its visual identification can be this internet communication end domain name.
Wherein, server can include User Identity server and mark net dns server, and both may be located at for this
Same network element.User Identity server is user point for the visual identification when user registers inlet identity net according to user
With identity unique mark;Mark net dns server is used to safeguard the visual identification of user and identity uniquely identified mapping relations.
Above-mentioned allocation identification and safeguard mapping relations can by User Identity server and mark net dns server share, also may be used
To be undertaken by a server simultaneously.
The router also includes allocation unit;The allocation unit is mainly used in the stream of IPv4 endpoint registrations
Journey.The allocation unit is used for after the registration request for receiving the initiation of IPv4 terminals, knows and this IPv4 from the server
The corresponding identity unique mark of visual identification of terminal, and send to mapping relations maintenance unit.
The communication scenes that router in said system is processed include:IPv4 terminals are another with mark net in mark net
The exchanging visit of IPv4 terminals, IPv4 terminal access internet ip v4 communication ends in mark net, internet ip v4 communication ends access identities
IPv4 terminals in net.
Corresponding to above-mentioned communication scenes, the correlation function of proxy mapping unit is as follows:
When the router that the proxy mapping unit is located is couple in router, it is described that the proxy mapping unit is received
The visual identification of communication equipment is the visual identification of the opposite end IPv4 terminals carried in the communication request that IPv4 terminals send, or
It is the visual identification of the opposite end Internet resources carried in the communication request that IPv4 terminals send;The proxy mapping unit is located
Router when being intercommunication router, the visual identification of the communication equipment that the proxy mapping unit is received is that the Internet is used
The visual identification of the mark net server carried in the communication request that family is initiated.
Corresponding to above-mentioned communication scenes, the correlation function of message converting unit is as follows:
When the message converting unit is used in the couple in router being located positioned at communication originating end, according to the mapping
The IPv4 addresses at communication objective end corresponding with communication originating end and identity uniquely identified mapping relations in relationship safeguard unit,
The IPv4 messages that communication originating end sends are converted to into mark network packet;For in the access route being located positioned at communication objective end
When in device, mapped according to the IPv4 addresses at communication objective end described in the mapping relations maintenance unit and identity uniquely identified
Relation, the mark network packet for receiving is converted to the IPv4 messages for being sent to the communication objective end;For routeing positioned at intercommunication
When in device, mapped with identity uniquely identified according to the IPv4 addresses that net server is identified in the mapping relations maintenance unit
Relation, the IPv4 messages received from the Internet are converted to the mark network packet for being sent to the mark net server.
The communication means of compatible IPv4 address formats includes:Router is according to IPv4 addresses and the compatible IPv4 addresses
Mapping relations between identity unique mark realize the conversion between IPv4 messages and mark network packet.
In said method, router knows reflecting between IPv4 addresses and the identity unique mark of the compatible IPv4 addresses
Penetrating the mode of relation can have various.Following implementations can be adopted in the present invention:That sets up communication equipment in server can
See mark and identity uniquely identified mapping relations;The IPv4 addresses of the compatible communication equipment of the identity unique mark;Road
Identity corresponding with this visual identification is known only from the server according to the visual identification of the communication equipment for receiving by device
One mark;The IPv4 addresses of the communication equipment are parsed from the identity unique mark for receiving, set up this IPv4 address with
Identity uniquely identified mapping relations;According to the IPv4 addresses of communication equipment and identity described in the mapping relations maintenance unit
Uniquely identified mapping relations realize the conversion being sent between the IPv4 messages of the communication equipment and mark network packet.
Wherein, communication equipment is for during terminal, its visual identification can be the domain name of relative users in mark net.Communication equipment
For internet communication end when, its visual identification can be this internet communication end domain name.
The communication means that IPv4 terminals are initiated in mark net includes:
IPv4 initiating terminals to the communication that affiliated couple in router sends the visual identification for carrying IPv4 communication targets please
Ask, the couple in router belonging to the IPv4 initiating terminals according to the visual identification from the server know with it is described
Identify corresponding identity unique mark and the IPv4 ground of the IPv4 communication targets is parsed from the identity unique mark
Location, builds IPv4 addresses and the identity uniquely identified mapping relations of the IPv4 communication targets, and the IPv4 is communicated mesh
Target IPv4 address is notified to the IPv4 initiating terminals;
The IPv4 initiating terminals are using its IPv4 address as source address and by the IPv4 addresses of the IPv4 communication targets
IPv4 messages are initiated as destination address, the couple in router belonging to the IPv4 initiating terminals is according to the IPv4 communication targets
IPv4 addresses and identity uniquely identified mapping relations will receive IPv4 messages and be encapsulated as identifying network packet and send to described
Router belonging to IPv4 communication targets, the router belonging to the IPv4 communication targets is according to the institute carried in mark network packet
The IPv4 addresses and identity uniquely identified mapping relations for stating IPv4 communication targets will identify network packet and be converted to IPv4 messages
Deliver to the IPv4 communication targets;
It is another with mark net that the communication means that above-mentioned IPv4 terminals are initiated goes for IPv4 terminals in mark net
IPv4 terminal access internet ips v4 two kinds of application scenarios of communication ends in the exchanging visit of IPv4 terminals and mark net.Wherein, IPv4 leads to
When letter target is the IPv4 terminals in mark net, the router belonging to IPv4 communication targets is couple in router;IPv4 communication mesh
It is designated as the IPv4 resources of the Internet;Router belonging to IPv4 communication targets is intercommunication router.
The method of internet communication end access identities net server includes:
Internet communication end sends the communication request of the visual identification for carrying mark net server, institute to intercommunication router
State intercommunication router and identity unique mark corresponding with the visual identification is known from the server according to the visual identification
And the IPv4 addresses for identifying net server are parsed from the identity unique mark, build the mark net for oral administration
The IPv4 addresses of business device and identity uniquely identified mapping relations;The intercommunication router is according to the mark net server
IPv4 addresses and identity uniquely identified mapping relations will receive IPv4 messages and be encapsulated as identifying network packet and send to the mark
The couple in router that net server is located, the couple in router takes orally according to the mark net carried in mark network packet
IPv4 addresses and the identity uniquely identified mapping relations of business device will identify network packet and be converted to IPv4 messages and send to the mark
Know net server.
The present invention is described in detail below by accompanying drawing.
As shown in figure 3, when common IPv4 endpoint registrations access mark net in the present invention, User Identity mapping mechanism,
Comprise the following steps:
Step 301:IPv4 terminals initiate IPv4 Address requests according to normal IPv4 Address Autoconfigurations flow process.
This IPv4 Address requests can be DHCP request, PPP IPCP etc..
Step 302:ASR is received after Address requests, according in Address requests carry this IPv4 terminal visual identification to
User identity unique mark is asked in identity server lookup.
The visual identification of this IPv4 terminal can be the domain name of relative users.
Step 303:Identity server returns the user identity unique mark of this IPv4 terminal.
Identity server is this IPv4 terminal distribution user identity unique mark in terminal registration inlet identity net.
This user identity unique mark be globally unique identifier, length be 128 bits, including prefix and for link-local communication sheet
Ground two parts of IP, local IP is the IPv4 addresses of this IPv4 terminal.
Step 304:ASR parses the user according to the returning result of step 303 is used for the local IP of link-local communication;
Simultaneously according to the default mark net dns server AID of ASR, the local ip address of dns server is parsed.
Step 305:ASR updates session id mapping relations, including session number, user's unique mark, user 32bit Local
The information such as IP, as shown in table 1.
Table 1
Session number |
Local IP |
AID |
Interface ID |
Attribute |
Type |
1 |
10.1.1.1 |
FAOE::10.1.1.1 |
Eth0 |
It is local to access |
Mark network users |
2 |
10.6.6.6 |
FAOE::10.6.6.6 |
Gth1 |
Network side |
Mark network users |
3 |
202.11.2.3 |
FE1B::202.11.2.3 |
Gth1 |
Network side |
Mark net DNS |
4 |
163.2.33.4 |
FE2A::163.2.33.4 |
Gth1 |
Network side |
Internet resources |
5 |
202.12.22.9 |
FE1B::202.12.22.9 |
Gth1 |
Network side |
Mark net server |
Step 306:ASR is to terminal feedback IPv4 address format configuration informations.
As shown in figure 4, comprising the following steps during common IPv4 terminal mutual visits in mark net:
Step 401:Local terminal sends the communication request for carrying the visible domain name in opposite end.
The domain name adopts standardized domain name form, when identity server is registered in terminal registration inlet identity net in user
User is distributed to, by mark domain name maintenance management server.
Step 402:ASR is received after above-mentioned communication request, according to the visible domain name in opposite end this to dns server query communication pair
End subscriber identity unique mark.
Step 403:Dns server returns peer user identity unique mark.
Identity server is this IPv4 terminal distribution user identity unique mark in terminal registration inlet identity net.
This user identity unique mark be globally unique identifier, length be 128 bits, including prefix and for link-local communication sheet
Ground two parts of IP, local IP is the IPv4 addresses of this IPv4 terminal.
Step 404:ASR parses Correspondent Node for the local of link-local communication according to the returning result of step 403
IP。
Step 405:ASR updates session id mapping relations, including session number, user's unique mark, user 32bit Local
The information such as IP, as shown in table 1.
Step 406:Proxy mapping module to local terminal returns DNS request, the local ip address of notice communication opposite end.
Step 407:Local terminal is using IPv4 form Local IP as source IP address, and the communication that step 406 is returned is right
End Local IP are communicated as purpose IP address.
Step 408:ASR generates/updates Local IP according to the information obtained in above-mentioned steps, and the encapsulation of AID, RID turns
List (form as shown in table 2) is sent out, IPv4 messages is realized to the encapsulation of mark network packet and is identified network packet to IPv4 messages
Decapsulation.
Table 2
Step 409:The ASR of opposite end generates/updates Local IP, the encapsulation forwarding list (lattice as shown in table 2 of AID, RID
Formula), IPv4 messages are realized to the encapsulation of mark network packet and identify network packet to the decapsulation of IPv4 messages.
As shown in figure 5, comprising the following steps during common IPv4 terminal access internet ip v4 resources in mark net:
Step 501:Identity server is predistribution user's body in internet communication end when internet communication end is registered
Part unique mark.
Step 502:Local IPv4 terminals send the communication request of the internet domain name for carrying internet communication end;
Step 503:ASR is received after above-mentioned communication request, is uniquely marked to dns server query communication peer user identity
Know;
Step 504:Dns server returns peer user identity unique mark.
Identity server is uniquely marked when internet communication end is registered for internet communication end predistribution user identity
Know.This user identity unique mark be globally unique identifier, length be 128 bits, including prefix and for link-local communication
Two parts of local IP, local IP is the public network IP v4 address at this internet communication end.
Step 505:ASR parses Correspondent Node for the local of link-local communication according to the returning result of step 504
IP。
Step 506:ASR updates session id mapping relations, including session number, user's unique mark, user 32bit Local
The information such as IP, as shown in table 2.
Step 507:Proxy mapping module to local terminal returns DNS request, the local ip address of notice communication opposite end.
Step 508:Local terminal is using IPv4 form Local IP as source IP address, and the communication that step 507 is returned is right
Hold local IP as purpose IP address, communicated.
Step 509:The identity IPv4 addresses compatible modules-identity of ASR maps auxiliary unit with Route Distinguisher,
According to the information for realizing being obtained in above-mentioned steps, generate/Local IP are updated, the encapsulation forwarding list of AID, RID is (such as the institute of table 2
Show form), IPv4 messages are realized to the encapsulation of mark network packet and identify network packet to the decapsulation of IPv4 messages.
Step 510:Mark network packet is reached after intercommunication router (ISR), and ISR identity IPv4 addresses compatible modules-
Identity is received after message with Route Distinguisher mapping auxiliary unit, generates/update Local IP, the encapsulation forwarding of AID, RID
List (form as shown in table 2), realizes IPv4 messages to the encapsulation of mark network packet and identifies network packet to the solution of IPv4 messages
Encapsulation.
Step 511:The NAT modules of intercommunication router (ISR) realize private network to the mapping of public network address.
As shown in fig. 6, during internet ip v4 communication ends access identities net server, comprising the following steps:
Step 601:Identity server is being identified when net server is registered as mark net server predistribution body
Part unique mark.
Step 602:Internet ip v4 communication ends to identity server is initiated after DNS request, identity server
Return to the public network IP v4 address of mark net server.
Step 603:Internet user initiates to access as destination address using this public network IP address to intercommunication router;
Step 604:After intercommunication router (ISR) receives message, to dns server user's unique mark is asked;
Step 605:Dns server returns peer user identity unique mark.
This user identity unique mark is globally unique identifier, and length is 128 bits, including prefix and for link-local
Two parts of local IP of communication, local IP is the public network IP v4 address of this mark net server.
Step 606:Intercommunication router (ISR) updates session id mapping relations, including session number, user's unique mark, use
The information such as family 32bit Local IP, as shown in table 1.
Step 607:The identity IPv4 addresses compatible modules-identity of dlsw router (ISR) and Route Distinguisher
Mapping auxiliary unit, according to the information for realizing being obtained in above-mentioned steps, generates/updates LocalIP, the encapsulation forwarding of AID, RID
List (form as shown in table 2), realizes IPv4 messages to the encapsulation of mark network packet and identifies network packet to the solution of IPv4 messages
Encapsulation.
Step 608:ASR belonging to mark net server is generated/updated according to the information for realizing being obtained in above-mentioned steps
The encapsulation forwarding list (form as shown in table 2) of Local IP, AID, RID, realizes IPv4 messages to the encapsulation of mark network packet
With the decapsulation of mark network packet to IPv4 messages.
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase
Mutual combination in any.
Certainly, the present invention can also have other various embodiments, ripe in the case of without departing substantially from spirit of the invention and its essence
Knowing those skilled in the art can make various corresponding changes and deformation, but these corresponding changes and deformation according to the present invention
The protection domain of appended claims of the invention should all be belonged to.
One of ordinary skill in the art will appreciate that all or part of step in said method can be instructed by program
Related hardware is completed, and described program can be stored in computer-readable recording medium, such as read only memory, disk or CD
Deng.Alternatively, all or part of step of above-described embodiment can also be realized using one or more integrated circuits.Accordingly
Ground, each module/unit in above-described embodiment can be realized in the form of hardware, it would however also be possible to employ the shape of software function module
Formula is realized.The present invention is not restricted to the combination of the hardware and software of any particular form.