CN102075921B - Inter-network communication method and device - Google Patents

Inter-network communication method and device Download PDF

Info

Publication number
CN102075921B
CN102075921B CN 200910238755 CN200910238755A CN102075921B CN 102075921 B CN102075921 B CN 102075921B CN 200910238755 CN200910238755 CN 200910238755 CN 200910238755 A CN200910238755 A CN 200910238755A CN 102075921 B CN102075921 B CN 102075921B
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.)
Active
Application number
CN 200910238755
Other languages
Chinese (zh)
Other versions
CN102075921A (en
Inventor
陈刚
邓辉
周博
徐明伟
宋林健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN 200910238755 priority Critical patent/CN102075921B/en
Publication of CN102075921A publication Critical patent/CN102075921A/en
Application granted granted Critical
Publication of CN102075921B publication Critical patent/CN102075921B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

A kind of method and apparatus of inter-net communication
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, expansion along with network size, 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 the 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, although IPv6 has represented next step developing direction of the Internet, also can't replace in a short time IPv4 at present, therefore two kinds of network technologies will coexist within considerable time, until finally be transitioned into 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 accessed 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, be called the NAT-PT gateway, when the IPv6 network node intercoms mutually with the IPv4 node, the NAT-PT gateway is changed 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 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 consist of 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 the initiation user of communication process (i.e. host A, host B among the figure) and place thereof, usually the Net 1 under this scene 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 2 under this scene 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---namely, in case breaking down, this equipment can't work, then communicating by letter and will paralyse fully between user network and the business network.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 larger processing pressure, treatment effeciency is not high.Therefore, the method that can adopt many Xbox to process, 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 to a certain extent the problem of single point failure and reduce the processing pressure of single device, yet still has certain problem:
Although the 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 the 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 the 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 greater than 1, and L, K 〉=M;
When the node in the network of different address styles communicates, be its destination node mapping address in the source node network with the destination node address transition, 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 source node address, and destination address is the destination node mapping address;
Destination node mapping address in the message is converted back 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 for the virtual prefix pond, IPv6 address that configuration comprises the IPv4 mapping address pond of L IPv4 mapping address prefix and 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 greater than 1, and L, K 〉=M;
Address conversion module, be used for when the node of the network of different address styles communicates, be its destination node mapping address in the source node network with the destination node address transition, 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 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 processing converts back 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 processed at 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, referring 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, usually get K=2 i, i is 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 preset;
2) if N mod is 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), arbitrarily Xbox is 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), remaining Prefix10 Random assignment is to Xbox2.Easily understand, 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 to comprise L IPv4 mapping address prefix (such as, usually get L=2 j, j is 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 that L mapping address prefix assignment is the same with the distribution method of the described IPv6 address prefix of preamble to the method for M Xbox, introduce no longer in detail.
Correspondingly, it is pointed out that the routing address prefix table of described each Xbox was comprised of the IPv6 address prefix of distributing to this Xbox when the method that provides when the embodiment of the invention was used for IPv6 to the IPv4 communication scenes; And when the method was used for IPv4 to the IPv6 communication scenes, the routing address prefix table of described each Xbox then was comprised of the IPv4 mapping address prefix of distributing to this Xbox.
Step 202: when the node in the network of different address styles communicates, be its destination node mapping address in the source node network with the destination node address transition, 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 source node address, and destination address is the destination node mapping address;
Step 203: the destination node mapping address in the message is converted back 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 that described in the step 203 the destination node mapping address in the message is converted back 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 mapped as any one IPv4 address under the described IPv4 mapping address prefix with the IPv6 address of destination node, obtains the mapping address of destination node in the IPv4 network.
At this moment, described in the step 202 be that the 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 with 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 that described in the step 203 the destination node mapping address in the message is converted back 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, various ways 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 to the restriction 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 for the type of this address mapping relation of sign, 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---namely, transmit leg and the recipient of this moment are the IPv4 addresses, but address style is different, 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---namely, 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: represent address mapping relation IPv6 at this moment~IPv6 type---namely, transmit leg and the recipient of this moment are the IPv6 addresses, but address style is different.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 for the length of the corresponding Value field of address mapping relation type of sign the type field; Take the type field value as 2 for example, 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 3 o'clock, and the value of Length field then is 32 etc.
The length of C:Value field is identical with the value of Length field, type decided by the type field, still take Type as 2 for example, 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, front 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.
Seen from the above description, by the bgp attribute that newly increases in the bgp update message, described newly-generated destination node address and the address mapping relation of its mapping address can be comprised wherein, and Xbox corresponding to these mapping relations be when receiving this bgp update message, just can be by the parsing of bgp attribute is wherein obtained corresponding destination 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, if the destination node mapping address of described message is included in the routing address prefix table of certain Xbox, then this Xbox is defined as being responsible for the Xbox of this message transmissions.
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 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 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 IPv6 address prefix in the virtual prefix pond, IPv6 address of the upper configuration of DNS 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, the IPv6 address generation of the node C that the Node B basis obtains also sends the IPv6 message, 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 corresponding 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 business network, its address style is the IPv6 network, Net 2 is 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;
With L IPv4 mapping address prefix assignment in the IPv4 mapping address pond of the upper configuration of DNS to 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, the IPv6 address of Node B is mapped as 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, the IPv4 address generation of the Node B that node C basis obtains also sends the IPv4 message, 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 corresponding 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;
Configuration distribution module 510 is used for the virtual prefix pond, IPv6 address that configuration comprises the IPv4 mapping address pond of L IPv4 mapping address prefix and comprises K IPv6 address prefix, respectively described L IPv4 mapping address prefix and K IPv6 address prefix are distributed to M Xbox530, obtain the routing address prefix table of each Xbox530; Wherein, L, K and M are the positive integer more than or equal to 1, and L, K 〉=M;
Address conversion module 520 is used for when the node of the network of different address styles communicates, be its destination node mapping address in the source node network with the destination node address transition, the message that the reception sources node sends and definite Xbox530 that is responsible for this message transmissions, the source address of described message is source node address, and destination address is the destination node mapping address;
Xbox530, the destination node mapping address that is used for message that this equipment is responsible for processing converts back 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 for the virtual prefix pond, IPv6 address that configuration comprises the IPv4 mapping address pond of L IPv4 mapping address prefix and comprises K IPv6 address prefix;
Prefix assignment unit 512 is used to each Xbox530 to distribute [L/M] individual IPv4 mapping address prefix, and [] represents downward rounding operation; If L can not be divided exactly by M, again the Random assignment of remaining IPv4 mapping address prefix is given each Xbox530, and one of each Xbox530; Also be used to each Xbox530 to distribute [K/M] individual IPv6 address prefix, [] represents downward rounding operation; If K can not be divided exactly by M, again the Random assignment of remaining IPv6 address prefix is given each Xbox530, and one of each Xbox530; Obtain the routing address prefix table of each Xbox530 according to the address prefix that distributes, wherein, when this device was used for IPv6 to the IPv4 communication scenes, the routing address prefix table of described each Xbox530 was comprised of the IPv6 address prefix of distributing to this Xbox530; When this device was used for IPv4 to the IPv6 communication scenes, the routing address prefix table of described each Xbox530 was comprised of the IPv4 mapping address prefix of distributing to this Xbox530.
Address conversion module 520 comprises: map unit 521, message process unit 522 and equipment determining unit 523;
Map unit 521 is used in the communication scenes of IPv6 to IPv4, 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 in the communication scenes of IPv4 to IPv6, optional IPv4 mapping address prefix from IPv4 mapping address pond, the IPv6 address of destination node is mapped as 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 522 is used for the message that the reception sources node sends, and the source address of described message is source node address, and destination address is the destination node mapping address;
Equipment determining unit 523 is used for judging according to the routing address prefix table of each Xbox530 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 Xbox530, then this Xbox530 is defined as being responsible for the Xbox530 of this message transmissions.
Preferably, further comprise map updating unit 524 in the address conversion module 520;
Described map updating unit 524, be used in the communication scenes of IPv4 to IPv6, when the IPv6 address with destination node is mapped as 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 for identifying the type of described mapping relations; The length of Length field is 1 byte, is used for identifying the length of Value field corresponding to described mapping relations; The length of Value field is identical with the value of Length field, wherein comprises 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;
Translation unit 531 is used in the communication scenes of IPv6 to IPv4, 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 in the communication scenes of IPv4 to IPv6, 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;
Converting unit 532 is used for the destination node address that obtains according to after translation unit 531 conversions, 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, so that no matter be the different communication business of being initiated 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 processing 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, the 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 greater than 1, and L, K 〉=M;
When the node in the network of different address styles communicates, be its destination node mapping address in the source node network with the destination node address transition, 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 source node address, and destination address is the destination node mapping address;
Destination node mapping address in the message is converted back 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 for respectively described L IPv4 mapping address prefix and K IPv6 address prefix being distributed to M address translation equipment comprises:
Be first the individual IPv4 mapping address of each address translation devices allocation [L/M] prefix, [] represents downward rounding operation;
If L can not be divided exactly by M, again the Random assignment of remaining IPv4 mapping address prefix is given each address interpreting equipment, and one of each address translation equipment;
Described K IPv6 address prefix distributed to the method for M address translation equipment, with described L IPv4 mapping address prefix assignment is identical to the method for M address translation equipment.
3. method according to claim 2 is characterized in that, when the method was used for IPv6 to the IPv4 communication scenes, the routing address prefix table of described each address interpreting equipment was comprised of the IPv6 address prefix of distributing to this address translation equipment; When the method was used for IPv4 to the IPv6 communication scenes, the routing address prefix table of described each address interpreting equipment was comprised 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 the 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 converted back 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 the 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 mapped as any one IPv4 address under the described IPv4 mapping address prefix with the IPv6 address 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, the method further comprises:
Trigger bgp update message and notify all address translation equipment with 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 converted back 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 for identifying the type of described mapping relations;
The length of Length field is 1 byte, is used for identifying the length of Value field corresponding to described mapping relations;
The length of Value field is identical with the value of Length field, wherein comprises address and the mapping address thereof of destination node in the described mapping relations.
9. each described method in 8 according to claim 1 is characterized in that, the described method of determining to be 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 for the virtual prefix pond, IPv6 address that configuration comprises the IPv4 mapping address pond of L IPv4 mapping address prefix and 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 greater than 1, and L, K 〉=M;
Address conversion module, be used for when the node of the network of different address styles communicates, be its destination node mapping address in the source node network with the destination node address transition, 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 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 processing converts back 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 for the virtual prefix pond, IPv6 address that configuration comprises the IPv4 mapping address pond of L IPv4 mapping address prefix and 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, again the Random assignment of remaining IPv4 mapping address prefix is given each address interpreting equipment, 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, again the Random assignment of remaining IPv6 address prefix is given each address interpreting equipment, and one of each address translation equipment; Obtain the routing address prefix table of each address interpreting equipment according to the address prefix that distributes, 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 comprised 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 comprised of the IPv4 mapping address prefix of distributing to this address translation equipment.
12. according to claim 10 or 11 described devices, it is characterized in that, described address conversion module comprises:
Map unit is used in the communication scenes of IPv6 to IPv4, 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 in the communication scenes of IPv4 to IPv6, optional IPv4 mapping address prefix from IPv4 mapping address pond, the IPv6 address of destination node is mapped as 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 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 in the communication scenes of IPv4 to IPv6, when the IPv6 address with destination node is mapped as 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 for identifying the type of described mapping relations; The length of Length field is 1 byte, is used for identifying the length of Value field corresponding to described mapping relations; The length of Value field is identical with the value of Length field, wherein comprises 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 in the communication scenes of IPv6 to IPv4, 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 in the communication scenes of IPv4 to IPv6, 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;
Converting unit is used for the destination node address that obtains according to 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.
CN 200910238755 2009-11-24 2009-11-24 Inter-network communication method and device Active CN102075921B (en)

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 CN102075921A (en) 2011-05-25
CN102075921B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103023797B (en) * 2011-09-23 2016-06-15 百度在线网络技术(北京)有限公司 The method of data center systems and device and offer service
CN104935521B (en) * 2014-03-18 2018-11-16 中国电信股份有限公司 For realizing the Whole load equalizing method and server of mixed scheduling
CN109495570B (en) * 2018-11-20 2022-04-26 锐捷网络股份有限公司 Method and device for forwarding sampling message and data center

Citations (3)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN102075921A (en) 2011-05-25

Similar Documents

Publication Publication Date Title
US10110555B2 (en) Method, device, and system for quickly informing CGN exception
CN104270475B (en) The system and method for IPv4 networks and IPv6 network interworkings is realized based on NAT64
EP2645679B1 (en) Method and apparatus for message transmission
Janevski NGN architectures, protocols and services
CN102938735B (en) Advertising of route is used to carry the method that option issues NAT64 address prefix
US8606937B2 (en) Information providing method, home gateway, and home network system
CN102209121A (en) Method and device for intercommunication between Internet protocol version 6 (IPv6) network and Internet protocol version 4 (IPv4) network
CN102938795B (en) The method of IPv6 address access IPv4 resource is realized by tunnel and address transition
Klauck et al. Enhanced DNS message compression-Optimizing mDNS/DNS-SD for the use in 6LoWPANs
Babatunde et al. A comparative review of internet protocol version 4 (ipv4) and internet protocol version 6 (ipv6)
CN102594942A (en) Method and system for achieving network address translation
KR20120040273A (en) Method and system for implementing network intercommunication
CN101610295A (en) Use the stateless IPv4/IPv6 grouping conversion method of nonspecific IPv6 address
CN102075921B (en) Inter-network communication method and device
CN116982307A (en) Method and computing device for enforcing functional filtering rules in a clustered infrastructure
CN102025604A (en) Carrying network and data transmission method
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
Reddy et al. Importance and Benefits of IPV6 over IPV4: A Study
CN101783775B (en) Interconnected method for vector network and IP network by gateway mode
KR20170001654A (en) Method for network address translation by using a software defined networking switch
CN102238084A (en) Method and device for forwarding cross-domain message, route equipment and client
CN113163276A (en) Method, device and system for issuing routing information

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