CN102075921A - Inter-network communication method and device - Google Patents
Inter-network communication method and device Download PDFInfo
- Publication number
- CN102075921A CN102075921A CN2009102387554A CN200910238755A CN102075921A CN 102075921 A CN102075921 A CN 102075921A CN 2009102387554 A CN2009102387554 A CN 2009102387554A CN 200910238755 A CN200910238755 A CN 200910238755A CN 102075921 A CN102075921 A CN 102075921A
- Authority
- CN
- China
- Prior art keywords
- address
- destination node
- mapping
- ipv4
- prefix
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses an inter-network communication method and simultaneously discloses an inter-network communication device comprising a configuration distribution module, an address conversion module and address translation equipment. By arranging a plurality of address prefixes and establishing corresponding relationship between the address prefixes and corresponding Xboxes and simultaneously randomly distributing the address prefixes to each target node of inter-network communication business, the problem that the inter-network communication business is processed comprehensively on single Xbox is prevented, the problem of single-point failure is solved, and the load balancing of the network communication business among a plurality of Xboxes is realized.
Description
Technical field
The present invention relates to mobile communication technology, be specifically related to a kind of method and apparatus of inter-net communication.
Background technology
At present, take as the leading factor with the 4th edition (IPv4) technology of Internet protocol in the data network, along with the expansion of network size, the network element device quantity in the network sharply increases, and Internet protocol sixth version (IPv6) technology will replace present IPv4 technology gradually with the advantage of its huge address space.IPv6 network scalability, mobility, fail safe, automatic address distribute and end to end aspect such as service quality and bearer service ability have sizable improvement and lifting than IPv4, therefore, will begin extensive commercial 3G (Third Generation) Moblie (3G) network field acquisition overall application.
IETF (internet task working group) has just finished the standardisation process of IPv6 substantially as far back as 1998, and traditional Internet service also is trapped in the IPv4 network owing to a variety of causes.Therefore, though IPv6 has represented next step developing direction of the Internet, also can't replace IPv4 in a short time at present, therefore two kinds of network technologies will coexist in considerable time, until finally carrying out the transition to the IPv6 stage fully comprehensively.This long-term by the IPv4 technology progressively in the process of IPv6 technology evolution transition, for shared network resource, must solve the problem of IPv4 network and IPv6 network interworking, IPv4 node and IPv6 node can be visited mutually.For this reason, IETF has proposed three kinds of main transient modes: dual stack technology, tunneling technique and protocol translation technology.
Network address translation-protocol conversion (Network Address Translation-ProtocolTranslation, NAT-PT) be a kind of protocol translation technology, this technology provides the solution of a kind of IPv4 network and IPv6 network interworking, and this protocol specification is by Request for Comment (RFC) 2766 definition.
The cardinal principle of NAT-PT technology is, between IPv4 and IPv6 network, gateway device is set, is called the NAT-PT gateway, when the IPv6 network node intercoms mutually with the IPv4 node, the NAT-PT gateway is changed the IPv4 message and the IPv6 message of contact mutually, to adapt to the IP protocol type to section.Wherein, described conversion comprises the conversion (conversion of IPv4 heading and IPv6 heading) of agreement and the conversion of IP address.
For by the IPv6 message in the conversion of IPv4 message, the conversion of IP address is actually with the substitute I Pv6 address, IPv4 address that can identify, concrete grammar is that the NAT-PT gateway distributes the IPv6 address that interim IPv4 address is shone upon needs conversion from the IPv4 address pool, and for by of the conversion of IPv4 message to the IPv6 message, then need with substitute I Pv4 address, corresponding IPv6 address, the concrete mode that adopts is to distribute special IPv6 address prefix, utilizes the mode of prefix+IPv4 address to constitute the IPv4 address that new IPv6 address is shone upon needs conversion.
The example that NAT-PT disposes in network as shown in Figure 1, comprising:
The network (Net 1 among the figure) at initiation user of communication process (i.e. host A, host B among the figure) and place thereof, usually the Net under this scene 1 is called user network, in actual applications, there are three kinds of possible address styles in the address space of described Net 1: private ip v4 address, global I Pv4 address or IPv6 address;
The network (Net 2 among the figure) at communications reception end subscriber (host C among the figure) and place thereof, usually the Net under this scene 2 is called business network, similar with Net 1, in actual applications, three kinds of possible address styles of the same existence of the address space of described NetB repeat no more.
At the intersection of user network and business network, be deployed with the NAT-PT equipment that connects two networks, described NAT-PT equipment is also referred to as address translation equipment (Xbox) usually.
By structure shown in Figure 1 as seen, if when using the intercommunication between an Xbox realization user network and business network, the problem that has single point failure---promptly, in case break down can't operate as normal for this equipment, communicating by letter and will paralyse fully between user network and the business network then.In addition, when user network and business network larger, only rely on an Xbox to carry out whole communication process, can make this equipment bear bigger processing pressure, treatment effeciency is not high.Therefore, the method that can adopt many Xbox to handle, each equipment is responsible for communication and the transfer of data that the main frame in the scope of a part of address is initiated in the process user network.This method can solve the problem of single point failure to a certain extent and reduce the processing pressure of single device, yet still has certain problem:
Though scope from whole network, the communication paralysis that an Xbox broke down and can not cause whole network this moment, but, for the main frame in the responsible address realm of every Xbox, in case corresponding Xbox breaks down, still can cause the communication in this scope all to be paralysed, so this method does not really solve the problem of single point failure; Similarly, for every Xbox, the scheme of this moment does not realize the equiblibrium mass distribution of business between a plurality of Xbox of the main frame of user network too, if when the communication that user network is initiated concentrates on main frame in the address realm that some Xbox are responsible for, still can cause the professional burden of each Xbox in the network unbalanced.
Summary of the invention
The invention provides a kind of method and apparatus of inter-net communication, can avoid single point failure and realize that network traffic is in a plurality of address translation equipment room load balancing.
For achieving the above object, technical scheme of the present invention specifically is achieved in that
A kind of method of inter-net communication is used for the communication process between the network of different address styles, and this method comprises:
Configuration comprises the IPv4 mapping address pond of L IPv4 mapping address prefix and comprises the virtual prefix pond, IPv6 address of K IPv6 address prefix, respectively described L IPv4 mapping address prefix and K IPv6 address prefix are distributed to M address translation equipment, obtain the routing address prefix table of each address interpreting equipment; Wherein, L, K and M are the positive integer more than or equal to 1, and L, K 〉=M;
When the node in the network of different address styles communicates, with the destination node address transition is its destination node mapping address in the source node network, the message that the reception sources node sends and definite address translation equipment of being responsible for this message transmissions, the source address of described message is a source node address, and destination address is the destination node mapping address;
Destination node mapping address in the message is changed go back to the destination node address, more described message is carried out the message format conversion according to the form of destination node network requirement after, send to destination node.
A kind of device of inter-net communication, this device comprises:
The configuration distribution module, be used to dispose IPv4 mapping address pond that comprises L IPv4 mapping address prefix and the virtual prefix pond, IPv6 address that comprises K IPv6 address prefix, respectively described L IPv4 mapping address prefix and K IPv6 address prefix are distributed to M address translation equipment, obtain the routing address prefix table of each address interpreting equipment; Wherein, L, K and M are the positive integer more than or equal to 1, and L, K 〉=M;
Address conversion module, be used for when the node of the network of different address styles communicates, with the destination node address transition is its destination node mapping address in the source node network, the message that the reception sources node sends and definite address translation equipment of being responsible for this message transmissions, the source address of described message is a source node address, and destination address is the destination node mapping address;
Address translation equipment, the destination node mapping address that is used for message that this equipment is responsible for handling is changed go back to the destination node address, more described message is carried out the message format conversion according to the form of destination node place network requirement after, send to destination node.
As seen from the above technical solutions, the method and apparatus of the inter-net communication that the embodiment of the invention provides, by a plurality of address prefixs being set and itself and each Xbox being set up corresponding relation, be the described address prefix of destination node Random assignment of each inter-net communication business simultaneously, avoided occurring the problem that the inter-net communication service set is handled on single Xbox, therefore, solve the single point failure problem, and realized the load balancing of network traffic between a plurality of Xbox.
Description of drawings
Fig. 1 is the networking structure schematic diagram of IPv4 network and IPv6 network interworking in the prior art.
Fig. 2 is the schematic flow sheet of the method for inter-net communication in the embodiment of the invention.
Fig. 3 is the field format schematic diagram of bgp attribute in the embodiment of the invention.
Type is 2 o'clock in the bgp attribute that Fig. 4 provides for the embodiment of the invention, the composition structural representation of Value field.
Fig. 5 is the composition structural representation of the device of inter-net communication in the embodiment of the invention.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, the present invention is described in more detail.
The embodiment of the invention provides a kind of method of inter-net communication, its flow process as shown in Figure 2, comprising:
Step 201: configuration comprises the IPv4 mapping address pond of L IPv4 mapping address prefix and comprises the virtual prefix pond, IPv6 address of K IPv6 address prefix, respectively described L IPv4 mapping address prefix and K IPv6 address prefix are distributed to M Xbox, obtain the routing address prefix table of each Xbox; Wherein, L, K and M are the positive integer more than or equal to 1, and L, K 〉=M;
At first the configuration rule on the DNS is made amendment, virtual prefix pond, configuration of IP v6 address on DNS and Xbox, comprise altogether in the described virtual prefix pond K IPv6 address prefix (such as, get K=2 usually
i, i is a natural number) and K 〉=M, wherein M is the number of Xbox.
Described K IPv6 address prefix distributed to M Xbox, and concrete grammar comprises:
1) N/M is rounded downwards obtaining k, according to certain rule, is that each Xbox distributes k address prefix, and described rule can preestablish;
2) if N mod M ≠ 0, then give each Xbox with remaining address prefix Random assignment, and one of each Xbox, mod is complementation.
For example: the IPv6 address prefix has N=16, Xbox to have M=3, then according to 1) algorithm draw K=5; Afterwards, Prefix1,2,3,4,5 is given Xbox1, Prefix6,7,8,9,10 gives Xbox2, and Prefix11,12,13,14,15 gives Xbox3;
Again according to 2), Xbox is arbitrarily given in remaining Prefix16 Random assignment, such as giving Xbox1.
Perhaps, if change 1) in rule, also Prefix1,2,3,15,16 can be distributed to Xbox1, Prefix4,5,6,13,14 distributes to Xbox2, and Prefix7,8,9,11,12 is distributed to Xbox3;
Again according to 2), Xbox2 is given in remaining Prefix10 Random assignment.Understand easily, other various distribution methods can also be arranged, enumerate no longer one by one.
In addition, also need configuration of IP v4 mapping address pond on described DNS and the Xbox, similar with virtual prefix pond, described IPv6 address, described IPv4 mapping address pond need comprise L IPv4 mapping address prefix (such as, get L=2 usually
j, j is a natural number) and L 〉=M, wherein M is the number of Xbox.For example: the address realm in IPv4 mapping address pond is 10.0.0.0/16, when if it comprises 16 IPv4 mapping address prefixes, each IPv4 mapping address prefix is 10.0.0.0/20, specifically give the method for M Xbox the same L mapping address prefix assignment, introduce no longer in detail with the distribution method of the described IPv6 address prefix of preamble.
Correspondingly, it is pointed out that when the method that provides when the embodiment of the invention was used for IPv6 to the IPv4 communication scenes, the routing address prefix table of described each Xbox was made up of the IPv6 address prefix of distributing to this Xbox; And when this method was used for IPv4 to the IPv6 communication scenes, the routing address prefix table of described each Xbox then was made up of the IPv4 mapping address prefix of distributing to this Xbox.
Step 202: when the node in the network of different address styles communicates, with the destination node address transition is its destination node mapping address in the source node network, the message that the reception sources node sends and definite address translation equipment of being responsible for this message transmissions, the source address of described message is a source node address, and destination address is the destination node mapping address;
Step 203: the destination node mapping address in the message is changed go back to the destination node address, more described message is carried out the message format conversion according to the form of destination node network requirement after, send to destination node.
Wherein, when the method that provides when the embodiment of the invention is used for IPv6 to the IPv4 communication scenes, source node is positioned at the IPv6 network, destination node is positioned at the IPv4 network, at this moment, described in the step 202 method of destination node address transition for its destination node mapping address in the source node network comprised:
Optional IPv6 address prefix from virtual prefix pond, IPv6 address adds the above address prefix with the IPv4 address of destination node and obtains the mapping address of destination node in the IPv6 network.
Correspondingly, the method for described in the step 203 the destination node mapping address in the message being changed go back to the destination node address comprises: the IPv6 address prefix of destination node mapping address in the message is removed, be converted to the destination node address.
And the method that provides when the embodiment of the invention is when being used for IPv4 to the IPv6 communication scenes, source node is positioned at the IPv4 network, destination node is positioned at the IPv6 network, at this moment, described in the step 202 method of destination node address transition for its destination node mapping address in the source node network is comprised:
Optional IPv4 mapping address prefix from IPv4 mapping address pond is any one IPv4 address under the described IPv4 mapping address prefix with the IPv6 map addresses of destination node, obtains the mapping address of destination node in the IPv4 network.
At this moment, described in the step 202 be that this method further comprises in its destination node mapping address in the source node network with the destination node address transition:
Trigger bgp update message and notify all Xbox the address of described destination node and the mapping relations of its mapping address, each Xbox judges whether the destination node mapping address in these mapping relations belongs to the routing address prefix table of self, if belong to, then preserve these mapping relations;
Correspondingly, the method for described in the step 203 the destination node mapping address in the message being changed go back to the destination node address comprises:
According to the destination node mapping address of preserving and the mapping relations of destination node address, convert the destination node mapping address in the message to the destination node address.
Further, described triggering bgp update message is notified the mapping relations of the address of described destination node and its mapping address the method for all Xbox, multiple mode can be arranged, the embodiment of the invention is only enumerated a kind of possible example, it may be noted that this example should not be understood that the qualification that embodiment of the present invention is carried out:
In bgp update message, increase a new bgp attribute and identify this newly-generated destination node address and the address mapping relation of its mapping address, the field format of this attribute as shown in Figure 3, comprising the type field, Length field and Value field, below introduce in detail respectively:
The length of A:Type field is 1 byte, is used to identify the type of this address mapping relation, and according to the difference of address translation scene, corresponding the type field also has multiple value, such as:
Type is 1: expression address mapping relation at this moment is IPv4~IPv4 type---promptly, transmit leg and the recipient of this moment are the IPv4 addresses, but the address style difference is private ip v4 address such as a side, and the opposing party is global I Pv4 address;
Type is 2: expression address mapping relation at this moment is IPv4~IPv6 type---promptly, in the transmit leg and recipient of this moment, a side is the IPv4 address, and the opposing party is the IPv6 address;
Type is 3: expression address mapping relation IPv6~IPv6 type at this moment---promptly, transmit leg and the recipient of this moment are the IPv6 addresses, but the address style difference.The value of the type field can also be worth for other, enumerates no longer one by one.
The length of B:Length field is 1 byte, is used to identify the length of the pairing Value field of address mapping relation type of the type field; With the type field value is 2 for example, and when Type was 2, the address mapping relation of expression this moment was IPv4~IPv6 type, and according to the regulation in the standard, the length of an IPv4 address is 4 bytes, and the length of an IPv6 address is 16 bytes; Therefore, the value of the Length field of this moment is 20 (being 4+16), and the length of expression Value field is 20 bytes.One of ordinary skill in the art will readily recognize that when Type is 1 the value of Length field then is 8, and Type is at 3 o'clock, the value of Length field then is 32 or the like.
The length of C:Value field is identical with the value of Length field, type decided by the type field, be 2 for example with Type still, when the type of the type field was 2, the value of Length field was 20, the length of expression Value field is 20 bytes, at this moment, the Value field format as shown in Figure 4, wherein, preceding 4 bytes are the IPv4 address in the described newly-generated address mapping relation, and then 16 bytes are the IPv6 address in the described newly-generated address mapping relation.
By above-mentioned explanation as seen, by the bgp attribute that increases newly in the bgp update message, the described newly-generated destination node address and the address mapping relation of its mapping address can be comprised wherein, and the Xbox of this mapping relations correspondence is when receiving this bgp update message, just can be by the parsing of bgp attribute is wherein obtained corresponding target node address and mapping address thereof.
And which kind of communication scenes (IPv6 → IPv4, IPv4 → IPv6 or other scenes) no matter, the method for determining to be responsible for the Xbox of this message transmissions described in the step 202 comprises:
Judge according to the routing address prefix table of each Xbox and the destination node mapping address of message,, then this Xbox is defined as being responsible for the Xbox of this message transmissions if the destination node mapping address of described message is included in the routing address prefix table of certain Xbox.
Below, according to possible communication scenes, simply enumerate two examples implementation process of the present invention further be introduced:
A, for example, in IPv6 → IPv4 communication scenes, as shown in Figure 1, establishing at this moment, Net 1 is user network, its address style is the IPv6 network, Net 2 is a business network, and its address style is the IPv4 network, and the IPv6 Node B preparation in the user network is communicated by letter with the IPv4 node C in the business network, at this moment, source node is a Node B, and destination node is node C, and concrete processing procedure is as follows:
At first, DNS is according to number (M) the virtual prefix pond, configuration of IP v6 address of Xbox, comprising K IPv6 address prefix and K 〉=M;
K the IPv6 address prefix that DNS is gone up in the virtual prefix pond, IPv6 address that disposes distributed to M Xbox, each Xbox obtains the routing address prefix table of self and publishes in the middle of the IPv6 network, and described routing address prefix table is used for declaring: all destination node mapping addresss are included in the message of this routing address prefix table and are responsible for processing by this Xbox;
When the preparation of IPv6 Node B is communicated by letter with IPv4 node C, needs at first are mapped as IPv6 address (being the destination node mapping address) with the IPv4 address (being the destination node address) of node C, be specially optional IPv6 address prefix from virtual prefix pond, described IPv6 address, the IPv4 address of node C is added the IPv6 address that the above address prefix obtains node C, and then this IPv6 address is the destination node mapping address; Afterwards, Node B generates and sends the IPv6 message according to the IPv6 address of the node C that obtains, and its source address is the IPv6 address of Node B, and destination address is the IPv6 address of node C;
After this IPv6 message sends, routing address prefix table according to each Xbox issue finds the pairing Xbox of this IPv6 message, this Xbox removes the IPv6 address prefix in the IPv6 address of node C in the described IPv6 message, is converted to the IPv4 address (being the destination node address) of node C;
Afterwards, this Xbox is converted to described IPv6 message the IPv4 message and sends to IPv4 node C, finishes the communication process of IPv6 → IPv4.
B, in IPv4 → IPv6 communication scenes, as shown in Figure 1, if this moment, Net 1 was a business network, its address style is the IPv6 network, Net 2 is a user network, its address style is the IPv4 network, and when the IPv4 node C preparation in the user network was communicated by letter with the IPv6 Node B in the business network, concrete processing procedure was as follows:
At first, DNS is according to the number of Xbox (M) configuration of IP v4 mapping address pond, comprising L IPv4 mapping address prefix, and L 〉=M;
L the IPv4 mapping address prefix assignment that DNS is gone up in the IPv4 mapping address pond that disposes given M Xbox, each Xbox obtains the routing address prefix table of self and publishes in the middle of the IPv4 network, and described routing address prefix table is used for declaring: all destination node mapping addresss are included in the message of this routing address prefix table and are responsible for processing by this Xbox;
When IPv4 node C preparation is communicated by letter with the IPv6 Node B, at first the IPv6 address (being the destination node address) with Node B is mapped as IPv4 address (being the destination node mapping address), be specially optional IPv4 mapping address prefix from described IPv4 mapping address pond, with the IPv6 map addresses of Node B is any one IPv4 address under the described IPv4 mapping address prefix, obtain the IPv4 address of Node B, this IPv4 address is the destination node mapping address; Afterwards, DNS triggers bgp update message the IPv6 address of described Node B and the mapping relations of its IPv4 address is notified to all Xbox, each Xbox judges that whether the IPv4 address in these mapping relations belongs to the routing address prefix table of self, if belong to, then preserves these mapping relations;
Simultaneously, node C generates and sends the IPv4 message according to the IPv4 address of the Node B that obtains, and its source address is the IPv4 address of node C, and destination address is the IPv4 address of Node B;
After this IPv4 message sends, routing address prefix table according to each Xbox issue finds the pairing Xbox of this IPv4 message, this Xbox is according to the IPv6 address of the Node B of preserving and the mapping relations of its IPv4 address, the IPv4 address transition of the Node B in the IPv4 message is become the IPv6 address of Node B, afterwards, this Xbox is converted to described IPv4 message the IPv6 message and sends to the IPv6 Node B, finishes the communication process of IPv4 → IPv6.
The embodiment of the invention also provides a kind of device of inter-net communication, and it forms structure as shown in Figure 5, comprising: configuration distribution module 510, address conversion module 520 and at least one Xbox530;
Xbox530, the destination node mapping address that is used for message that this equipment is responsible for handling is changed go back to the destination node address, more described message is carried out the message format conversion according to the form of destination node place network requirement after, send to destination node.
Wherein, configuration distribution module 510 comprises: prefix pond dispensing unit 511 and prefix assignment unit 512;
Prefix pond dispensing unit 511 is used to dispose IPv4 mapping address pond that comprises L IPv4 mapping address prefix and the virtual prefix pond, IPv6 address that comprises K IPv6 address prefix;
Preferably, further comprise map updating unit 524 in the address conversion module 520;
Described map updating unit 524, be used for the communication scenes to IPv6 at IPv4, when the IPv6 map addresses with destination node is any one IPv4 address under the described IPv4 mapping address prefix, trigger bgp update message and increase a new bgp attribute in bgp update message identifying the address of described destination node and the mapping relations of its mapping address, described bgp attribute comprises the type field, Length field and Value field; Wherein, the length of the type field is 1 byte, is used to identify the type of described mapping relations; The length of Length field is 1 byte, is used to identify the length of the Value field of described mapping relations correspondence; The length of Value field is identical with the value of Length field, wherein comprises the address and the mapping address thereof of destination node in the described mapping relations; Notify all Xbox530 with the address of described destination node and the mapping relations of its mapping address;
Correspondingly, this moment, Xbox530 was further used for judging whether the destination node mapping address in these mapping relations belongs to the routing address prefix table of self, if belong to, then preserves these mapping relations.
Xbox530 comprises: translation unit 531 and converting unit 532;
Converting unit 532 is used for the destination node address that obtains according to after translation unit 531 conversion, described message is carried out the message format conversion according to the form of destination node place network requirement after, send to destination node.
As seen by above-mentioned, the method and apparatus of the inter-net communication that the embodiment of the invention provides carries out message translation conversion by using many Xbox, and the hardware resource of having saved DNS is convenient to professional expansion, and the flexibility of networking is provided; In addition, by a plurality of address prefixs being set and itself and each Xbox being set up corresponding relation, be the described address prefix of destination node Random assignment of each inter-net communication business simultaneously, make no matter be the different communication business of initiating by same source node, still point to the communication service of same destination node, described communication service can not occur and concentrate on the problem of handling on the single Xbox, therefore, both solve the single point failure problem and also realized the load balancing of network traffic between a plurality of Xbox.
Claims (14)
1. the method for an inter-net communication is used for the communication process between the network of different address styles, it is characterized in that this method comprises:
Configuration comprises the IPv4 mapping address pond of L IPv4 mapping address prefix and comprises the virtual prefix pond, IPv6 address of K IPv6 address prefix, respectively described L IPv4 mapping address prefix and K IPv6 address prefix are distributed to M address translation equipment, obtain the routing address prefix table of each address interpreting equipment; Wherein, L, K and M are the positive integer more than or equal to 1, and L, K 〉=M;
When the node in the network of different address styles communicates, with the destination node address transition is its destination node mapping address in the source node network, the message that the reception sources node sends and definite address translation equipment of being responsible for this message transmissions, the source address of described message is a source node address, and destination address is the destination node mapping address;
Destination node mapping address in the message is changed go back to the destination node address, more described message is carried out the message format conversion according to the form of destination node network requirement after, send to destination node.
2. method according to claim 1 is characterized in that, the method that described L IPv4 mapping address prefix and K IPv6 address prefix are distributed to M address translation equipment comprises respectively:
Be the individual IPv4 mapping address of each address translation devices allocation [L/M] prefix earlier, [] represents downward rounding operation;
If L can not be divided exactly by M, give each address interpreting equipment with the Random assignment of remaining IPv4 mapping address prefix again, and one of each address translation equipment;
Described K IPv6 address prefix distributed to the method for M address translation equipment, and give the method for M address translation equipment identical described L IPv4 mapping address prefix assignment.
3. method according to claim 2 is characterized in that, when this method was used for IPv6 to the IPv4 communication scenes, the routing address prefix table of described each address interpreting equipment was made up of the IPv6 address prefix of distributing to this address translation equipment; When this method was used for IPv4 to the IPv6 communication scenes, the routing address prefix table of described each address interpreting equipment was made up of the IPv4 mapping address prefix of distributing to this address translation equipment.
4. method according to claim 3, it is characterized in that, when this method is used for IPv6 to the IPv4 communication scenes, source node is positioned at the IPv6 network, destination node is positioned at the IPv4 network, described the destination node address transition is comprised for the method for its destination node mapping address in the source node network:
Optional IPv6 address prefix from virtual prefix pond, IPv6 address adds the above address prefix with the IPv4 address of destination node and obtains the mapping address of destination node in the IPv6 network.
5. method according to claim 4 is characterized in that, the described method that destination node mapping address in the message is changed go back to the destination node address comprises:
The IPv6 address prefix of destination node mapping address in the message is removed, be converted to the destination node address.
6. method according to claim 3, it is characterized in that, when this method is used for IPv4 to the IPv6 communication scenes, source node is positioned at the IPv4 network, destination node is positioned at the IPv6 network, described the destination node address transition is comprised for the method for its destination node mapping address in the source node network:
Optional IPv4 mapping address prefix from IPv4 mapping address pond is any one IPv4 address under the described IPv4 mapping address prefix with the IPv6 map addresses of destination node, obtains the mapping address of destination node in the IPv4 network.
7. method according to claim 6 is characterized in that, described the destination node address transition is its destination node mapping address in the source node network in, this method further comprises:
Trigger bgp update message and notify all address translation equipment the address of described destination node and the mapping relations of its mapping address, each address interpreting equipment judges whether the destination node mapping address in these mapping relations belongs to the routing address prefix table of self, if belong to, then preserve these mapping relations;
Correspondingly, the described method that destination node mapping address in the message is changed go back to the destination node address comprises:
According to the destination node mapping address of preserving and the mapping relations of destination node address, convert the destination node mapping address in the message to the destination node address.
8. method according to claim 7 is characterized in that, described triggering bgp update message notifies the method for all address translation equipment to comprise the address of described destination node and the mapping relations of its mapping address:
Increase a new bgp attribute and identify the address of described destination node and the mapping relations of its mapping address in bgp update message, described bgp attribute comprises the type field, Length field and Value field;
Wherein, the length of the type field is 1 byte, is used to identify the type of described mapping relations;
The length of Length field is 1 byte, is used to identify the length of the Value field of described mapping relations correspondence;
The length of Value field is identical with the value of Length field, wherein comprises the address and the mapping address thereof of destination node in the described mapping relations.
9. according to each described method in the claim 1 to 8, it is characterized in that described definite method of being responsible for the address translation equipment of this message transmissions comprises:
Judge according to the routing address prefix table of each address interpreting equipment and the destination node mapping address of message, if the destination node mapping address of described message is included in the routing address prefix table of certain address translation equipment, then this address translation equipment is defined as being responsible for the address translation equipment of this message transmissions.
10. the device of an inter-net communication is characterized in that, this device comprises:
The configuration distribution module, be used to dispose IPv4 mapping address pond that comprises L IPv4 mapping address prefix and the virtual prefix pond, IPv6 address that comprises K IPv6 address prefix, respectively described L IPv4 mapping address prefix and K IPv6 address prefix are distributed to M address translation equipment, obtain the routing address prefix table of each address interpreting equipment; Wherein, L, K and M are the positive integer more than or equal to 1, and L, K 〉=M;
Address conversion module, be used for when the node of the network of different address styles communicates, with the destination node address transition is its destination node mapping address in the source node network, the message that the reception sources node sends and definite address translation equipment of being responsible for this message transmissions, the source address of described message is a source node address, and destination address is the destination node mapping address;
Address translation equipment, the destination node mapping address that is used for message that this equipment is responsible for handling is changed go back to the destination node address, more described message is carried out the message format conversion according to the form of destination node place network requirement after, send to destination node.
11. device according to claim 10 is characterized in that, described configuration distribution module comprises:
Prefix pond dispensing unit is used to dispose IPv4 mapping address pond that comprises L IPv4 mapping address prefix and the virtual prefix pond, IPv6 address that comprises K IPv6 address prefix;
The prefix assignment unit is used to the individual IPv4 mapping address of each address translation devices allocation [L/M] prefix, and [] represents downward rounding operation; If L can not be divided exactly by M, give each address interpreting equipment with the Random assignment of remaining IPv4 mapping address prefix again, and one of each address translation equipment; Also be used to the individual IPv6 address prefix of each address translation devices allocation [K/M], [] represents downward rounding operation; If K can not be divided exactly by M, give each address interpreting equipment with the Random assignment of remaining IPv6 address prefix again, and one of each address translation equipment; Obtain the routing address prefix table of each address interpreting equipment according to the addresses distributed prefix, wherein, when this device was used for IPv6 to the IPv4 communication scenes, the routing address prefix table of described each address interpreting equipment was made up of the IPv6 address prefix of distributing to this address translation equipment; When this device was used for IPv4 to the IPv6 communication scenes, the routing address prefix table of described each address interpreting equipment was made up of the IPv4 mapping address prefix of distributing to this address translation equipment.
12., it is characterized in that described address conversion module comprises according to claim 10 or 11 described devices:
Map unit is used for the communication scenes to IPv4 at IPv6, and optional IPv6 address prefix from virtual prefix pond, IPv6 address adds the above address prefix with the IPv4 address of destination node and obtains the mapping address of destination node in the IPv6 network; Also be used for the communication scenes to IPv6 at IPv4, optional IPv4 mapping address prefix from IPv4 mapping address pond, with the IPv6 map addresses of destination node is any one IPv4 address under the described IPv4 mapping address prefix, obtains the mapping address of destination node in the IPv4 network;
Message process unit is used for the message that the reception sources node sends, and the source address of described message is a source node address, and destination address is the destination node mapping address;
The equipment determining unit, be used for judging according to the routing address prefix table of each address interpreting equipment and the destination node mapping address of message, if the destination node mapping address of described message is included in the routing address prefix table of certain address translation equipment, then this address translation equipment is defined as being responsible for the address translation equipment of this message transmissions.
13. device according to claim 12 is characterized in that, further comprises the map updating unit in the described address conversion module;
Described map updating unit, be used for the communication scenes to IPv6 at IPv4, when the IPv6 map addresses with destination node is any one IPv4 address under the described IPv4 mapping address prefix, trigger bgp update message and increase a new bgp attribute in bgp update message identifying the address of described destination node and the mapping relations of its mapping address, described bgp attribute comprises the type field, Length field and Value field; Wherein, the length of the type field is 1 byte, is used to identify the type of described mapping relations; The length of Length field is 1 byte, is used to identify the length of the Value field of described mapping relations correspondence; The length of Value field is identical with the value of Length field, wherein comprises the address and the mapping address thereof of destination node in the described mapping relations; Notify all address translation equipment with the address of described destination node and the mapping relations of its mapping address;
Address translation equipment is further used for judging whether the destination node mapping address in these mapping relations belongs to the routing address prefix table of self, if belong to, then preserves these mapping relations.
14. device according to claim 13 is characterized in that, described address translation equipment comprises:
Translation unit is used for the communication scenes to IPv4 at IPv6, and the IPv6 address prefix of destination node mapping address in the message is removed, and is converted to the destination node address; Also be used for the communication scenes to IPv6,, convert the destination node mapping address in the message to the destination node address according to the destination node mapping address of preserving and the mapping relations of destination node address at IPv4;
Converting unit is used for according to the destination node address that obtains after the translation unit conversion, described message is carried out the message format conversion according to the form of destination node place network requirement after, send to destination node.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910238755 CN102075921B (en) | 2009-11-24 | 2009-11-24 | Inter-network communication method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910238755 CN102075921B (en) | 2009-11-24 | 2009-11-24 | Inter-network communication method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102075921A true CN102075921A (en) | 2011-05-25 |
CN102075921B CN102075921B (en) | 2013-09-18 |
Family
ID=44034233
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200910238755 Active CN102075921B (en) | 2009-11-24 | 2009-11-24 | Inter-network communication method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102075921B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013040942A1 (en) * | 2011-09-23 | 2013-03-28 | 百度在线网络技术(北京)有限公司 | Data centre system and apparatus, and method for providing service |
CN104935521A (en) * | 2014-03-18 | 2015-09-23 | 中国电信股份有限公司 | Global load balancing method and server for realizing hybrid scheduling |
CN109495570A (en) * | 2018-11-20 | 2019-03-19 | 锐捷网络股份有限公司 | Sample retransmission method, device and the data center of message |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6687222B1 (en) * | 1999-07-02 | 2004-02-03 | Cisco Technology, Inc. | Backup service managers for providing reliable network services in a distributed environment |
CN101141494A (en) * | 2007-10-12 | 2008-03-12 | 杭州华三通信技术有限公司 | Method for settling resource allocation conflict under load sharing condition |
CN101150502A (en) * | 2007-10-22 | 2008-03-26 | 中兴通讯股份有限公司 | A NAT-PT device and its load share method |
-
2009
- 2009-11-24 CN CN 200910238755 patent/CN102075921B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6687222B1 (en) * | 1999-07-02 | 2004-02-03 | Cisco Technology, Inc. | Backup service managers for providing reliable network services in a distributed environment |
CN101141494A (en) * | 2007-10-12 | 2008-03-12 | 杭州华三通信技术有限公司 | Method for settling resource allocation conflict under load sharing condition |
CN101150502A (en) * | 2007-10-22 | 2008-03-26 | 中兴通讯股份有限公司 | A NAT-PT device and its load share method |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013040942A1 (en) * | 2011-09-23 | 2013-03-28 | 百度在线网络技术(北京)有限公司 | Data centre system and apparatus, and method for providing service |
US8966050B2 (en) | 2011-09-23 | 2015-02-24 | Baidu Online Network Technology (Beijing) Co., Ltd. | Data centre system and method for a data centre to provide service |
CN104935521A (en) * | 2014-03-18 | 2015-09-23 | 中国电信股份有限公司 | Global load balancing method and server for realizing hybrid scheduling |
CN104935521B (en) * | 2014-03-18 | 2018-11-16 | 中国电信股份有限公司 | For realizing the Whole load equalizing method and server of mixed scheduling |
CN109495570A (en) * | 2018-11-20 | 2019-03-19 | 锐捷网络股份有限公司 | Sample retransmission method, device and the data center of message |
CN109495570B (en) * | 2018-11-20 | 2022-04-26 | 锐捷网络股份有限公司 | Method and device for forwarding sampling message and data center |
Also Published As
Publication number | Publication date |
---|---|
CN102075921B (en) | 2013-09-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2645679B1 (en) | Method and apparatus for message transmission | |
CN104270475B (en) | The system and method for IPv4 networks and IPv6 network interworkings is realized based on NAT64 | |
US9553805B2 (en) | Method, device, and system for quickly informing CGN exception | |
Janevski | NGN architectures, protocols and services | |
US8606937B2 (en) | Information providing method, home gateway, and home network system | |
Babatunde et al. | A comparative review of internet protocol version 4 (ipv4) and internet protocol version 6 (ipv6) | |
Klauck et al. | Enhanced DNS message compression-Optimizing mDNS/DNS-SD for the use in 6LoWPANs | |
CN102938795A (en) | Method for achieving access to internet protocol version 4 (IPv4) resources by IPv6 through tunnel and address | |
CN100525295C (en) | A method for implementing communication between IPv4 network and IPv6 network | |
CN102594942A (en) | Method and system for achieving network address translation | |
CN109526030A (en) | Processing method, device and the equipment of message | |
CN101610295A (en) | Use the stateless IPv4/IPv6 grouping conversion method of nonspecific IPv6 address | |
CN102075921B (en) | Inter-network communication method and device | |
CN113472913A (en) | Communication method and device | |
CN103856582A (en) | Method for controlling IPv6 internet of things through IPv4 internet of things | |
CN102238164B (en) | Internet protocol (IP) telecommunication network-oriented multi-protocol message adaptation method | |
US9787578B2 (en) | Systems and methods of IPV6 mapping | |
CN113163276A (en) | Method, device and system for issuing routing information | |
CN114449051B (en) | Data packet transmission method and communication equipment | |
CN102238084B (en) | Method and device for forwarding cross-domain message, route equipment and client | |
CN101783775B (en) | Interconnected method for vector network and IP network by gateway mode | |
CN105681481A (en) | Method and device for realizing network translation to IPv6 (Internet Protocol Version 6) based on PNAT (Prefix Network Address Translation) and terminal device | |
JP4670866B2 (en) | Translator | |
CN103457823A (en) | Method for achieving double-stack protocol bridge dialing | |
CN114157601B (en) | Message transmission method, device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |