CN102387221B - Data forwarding method and system - Google Patents

Data forwarding method and system Download PDF

Info

Publication number
CN102387221B
CN102387221B CN201010278736.7A CN201010278736A CN102387221B CN 102387221 B CN102387221 B CN 102387221B CN 201010278736 A CN201010278736 A CN 201010278736A CN 102387221 B CN102387221 B CN 102387221B
Authority
CN
China
Prior art keywords
described
ipv4
mapping item
mapping
publicly
Prior art date
Application number
CN201010278736.7A
Other languages
Chinese (zh)
Other versions
CN102387221A (en
Inventor
樊滑翔
刘利锋
Original Assignee
华为数字技术(成都)有限公司
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 华为数字技术(成都)有限公司 filed Critical 华为数字技术(成都)有限公司
Priority to CN201010278736.7A priority Critical patent/CN102387221B/en
Publication of CN102387221A publication Critical patent/CN102387221A/en
Application granted granted Critical
Publication of CN102387221B publication Critical patent/CN102387221B/en

Links

Abstract

The embodiment of the invention provides a data forwarding method and system. When source equipment generates and forwards an IPv4 (Internet Protocol version 4) message transmitted to destination equipment inside an IPv6 (Internet Protocol version 6) network, whether a corresponding mapping table item exists in an address mapping table of source equipment is queried first; and if the corresponding mapping table item exists, the source equipment can directly communicate with the destination equipment inside the IPv6 network through the corresponding mapping table, so that a processing load of a two-stack gateway is reduced and the communication efficiency is improved.

Description

A kind of data forwarding method and system

Technical field

The present invention relates to the communications field, relate in particular to a kind of data forwarding method and system.

Background technology

Along with internet protocol version four (Internet Protocol version 4, abbreviation IPv4) address is about to use up, internet network kimonos is done honest work progressively to IPv 6 (Internet Protocol version 6 is called for short IPv6) transition.Yet based on cost and real consideration, making the overall arrangement for of IPv6 can not be accomplished in one move, IPv4 and IPv6 are by long-term co-existence.IPv4 has become discussion focus and the development trend of industry and educational circles to IPv6 transition.

An important IPv6 transition problem is exactly how to guarantee that existing IPv4 application still can be used in the network environment of IPv6.At present, many Virtual network operators or intend to dispose the network of IPv6, for user provides the network service of IPv6.Meanwhile, in order to look after existing IPv4 user's interests, operator can dispose one or more transit mechanisms to guarantee that user still can use IPv4 application and service.

Two stacks (Dual Stack Lite, DS-Lite) are a kind of at IPv6 net environment, a kind of IPv4/IPv6 transit mechanism of compatible IPv4 application and service.DS-Lite combines tunneling mechanism and the IPv4 address translation mechanism of IPv6 packet encapsulation IPv4 packet.But DS-Lite is to the support of IPv4 application insufficient and efficient.

Summary of the invention

The embodiment of the present invention provides a kind of data forwarding method and system, in order to realize the load that reduces two stack intra-gateway IPv4 data message communications, improves the efficiency of carrying out the communication of IPv4 data message between two stack intra-gateway communication nodes.

The object of the embodiment of the present invention is achieved through the following technical solutions:

A data forwarding method, comprising:

Produce and forward internet protocol version four IPv4 data message, described IPv4 data message carries Internet Protocol IP address, the privately owned source of IPv4, the privately owned source port number of IPv4, IPv4 publicly-owned object IP address and the publicly-owned destination slogan of IPv4;

In inquire address mapping table, whether there is the first mapping item and the second mapping item simultaneously, wherein, described the first mapping item and described the second mapping item obtain from two stack DS-Lite gateways, and described the first mapping item comprises the mapping relations of the privately owned source IP address of described IPv4 and the publicly-owned source IP address of IPv4 and the mapping relations of the privately owned source port number of described IPv4 and the publicly-owned source port number of IPv4; Described the second mapping item comprises the publicly-owned destination slogan of mapping relations, described IPv4 of described IPv4 publicly-owned object IP address and the privately owned object IP of IPv4 address and the mapping relations of the privately owned destination slogan of IPv4;

If there is described the first mapping item and described the second mapping item simultaneously,, according to described the first mapping item, the privately owned source IP address of described IPv4 of described IPv4 data message and the privately owned source port number of described IPv4 are converted to respectively to the publicly-owned source IP address of IPv4 and the publicly-owned source port number of IPv4; According to described the second mapping item, described IPv4 publicly-owned object IP address and the publicly-owned destination slogan of described IPv4 are converted to respectively to IPv4 privately owned object IP address and the privately owned destination slogan of IPv4; Described IPv4 data message is encapsulated as to IPv 6 IPv6 data message, and sends to object equipment, the IPv6 destination address of described IPv6 data message is the IPv6 address of described object equipment;

If there is described the first mapping item and described the second mapping item when different, described IPv4 data message is encapsulated as to IPv6 data message, and described IPv6 data message is sent to two stack DS-Lite gateways, the IPv6 destination address of described IPv6 data message is the IPv6 address of described DS-Lite gateway.

A method that sends mapping item, comprising:

Reception, from the IPv6 data message of source device, is carried the privately owned source IP address of IPv4, the publicly-owned object IP of IPv4 address, the privately owned source port number of IPv4 and the publicly-owned destination slogan of IPv4 in described IPv6 data message;

In address mapping table, obtain the first mapping item and the second mapping item, wherein, described the first mapping item comprises the mapping relations of the privately owned source IP address of described IPv4 and the publicly-owned source IP address of IPv4 and the mapping relations of the privately owned source port number of described IPv4 and the publicly-owned source port number of IPv4; Described the second mapping item comprises the publicly-owned destination slogan of mapping relations, described IPv4 of described IPv4 publicly-owned object IP address and the privately owned object IP of IPv4 address and the mapping relations of the privately owned destination slogan of IPv4;

Described the first mapping item and described the second mapping item are sent to described source device, make described source device obtain described the first mapping item and described the second mapping item.

A network equipment, comprising:

Forwarding module, for generation of with forward internet protocol version four IPv4 data message, described IPv4 data message carries Internet Protocol IP address, the privately owned source of IPv4, the privately owned source port number of IPv4, IPv4 publicly-owned object IP address and the publicly-owned destination slogan of IPv4;

The first enquiry module, for inquire address mapping table, whether there is the first mapping item and the second mapping item simultaneously, wherein, described the first mapping item and described the second mapping item obtain from two stack DS-Lite gateways, and described the first mapping item comprises the mapping relations of the privately owned source IP address of described IPv4 and the publicly-owned source IP address of IPv4 and the mapping relations of the privately owned source port number of described IPv4 and the publicly-owned source port number of IPv4; Described the second mapping item comprises the publicly-owned destination slogan of mapping relations, described IPv4 of described IPv4 publicly-owned object IP address and the privately owned object IP of IPv4 address and the mapping relations of the privately owned destination slogan of IPv4;

The first sending module, if inquire and have described the first mapping item and described the second mapping item for described the first enquiry module simultaneously,, according to described the first mapping item, the privately owned source IP address of described IPv4 of described IPv4 data message and the privately owned source port number of described IPv4 are converted to respectively to the publicly-owned source IP address of IPv4 and the publicly-owned source port number of IPv4; According to described the second mapping item, described IPv4 publicly-owned object IP address and the publicly-owned destination slogan of described IPv4 are converted to respectively to I Pv4 privately owned object IP address and the privately owned destination slogan of IPv4; Described IPv4 data message is encapsulated as to IPv 6 IPv6 data message, and sends to object equipment, the IPv6 destination address of described IPv6 data message is the IPv6 address of described object equipment;

The second sending module, if there is described the first mapping item and described the second mapping item while inquiring difference for described the first enquiry module, described IPv4 data message is encapsulated as to IPv6 data message, and described IPv6 data message is sent to two stack DS-Lite gateways, the IPv6 destination address of described IPv6 data message is the IPv6 address of described DS-Lite gateway.

A gateway, comprising:

Receiver module, for receiving the IPv6 data message from source device, carries the privately owned source IP address of IPv4, the publicly-owned object IP of IPv4 address, the privately owned source port number of IPv4 and the publicly-owned destination slogan of IPv4 in described IPv6 data message;

Mapping item acquisition module, for obtaining the first mapping item and the second mapping item in address mapping table, wherein, described the first mapping item comprises the mapping relations of the privately owned source IP address of described IPv4 and the publicly-owned source IP address of IPv4 and the mapping relations of the privately owned source port number of described IPv4 and the publicly-owned source port number of IPv4; Described the second mapping item comprises the publicly-owned destination slogan of mapping relations, described IPv4 of described IPv4 publicly-owned object IP address and the privately owned object IP of IPv4 address and the mapping relations of the privately owned destination slogan of IPv4;

Mapping item sending module, sends to described source device for described the first mapping item and described the second mapping item that described mapping item acquisition module is obtained, and makes described source device obtain described the first mapping item and described the second mapping item.

A data forwarding system, described repeater system comprises: source device, object equipment and gateway, in described source device, preserve source device address mapping table, in described gateway, preserve gateway address mapping table;

Wherein, described source device for generation of with forward internet protocol version four IPv4 data message, described IPv4 data message carries Internet Protocol IP address, the privately owned source of IPv4, the privately owned source port number of IPv4, IPv4 publicly-owned object IP address and the publicly-owned destination slogan of IPv4; In inquire address mapping table, whether there is the first mapping item and the second mapping item simultaneously, wherein, described the first mapping item and described the second mapping item obtain from two stack DS-Lite gateways, and described the first mapping item comprises the mapping relations of the privately owned source IP address of described IPv4 and the publicly-owned source IP address of IPv4 and the mapping relations of the privately owned source port number of described IPv4 and the publicly-owned source port number of IPv4; Described the second mapping item comprises the publicly-owned destination slogan of mapping relations, described IPv4 of described IPv4 publicly-owned object IP address and the privately owned object IP of IPv4 address and the mapping relations of the privately owned destination slogan of IPv4; If there is described the first mapping item and described the second mapping item simultaneously,, according to described the first mapping item, the privately owned source IP address of described IPv4 of described IPv4 data message and the privately owned source port number of described IPv4 are converted to respectively to the publicly-owned source IP address of IPv4 and the publicly-owned source port number of IPv4; According to described the second mapping item, described IPv4 publicly-owned object IP address and the publicly-owned destination slogan of described IPv4 are converted to respectively to IPv4 privately owned object IP address and the privately owned destination slogan of IPv4; Described IPv4 data message is encapsulated as to IPv 6 IPv6 data message, and sends to object equipment, the IPv6 destination address of described IPv6 data message is the IPv6 address of described object equipment; If there is described the first mapping item and described the second mapping item when different, described IPv4 data message is encapsulated as to IPv6 data message, and described IPv6 data message is sent to two stack DS-Lite gateways, the IPv6 destination address of described IPv6 data message is the IPv6 address of described DS-Lite gateway;

Described gateway, for receiving the IPv6 data message from source device, carries the privately owned source IP address of IPv4, the publicly-owned object IP of IPv4 address, the privately owned source port number of IPv4 and the publicly-owned destination slogan of IPv4 in described IPv6 data message; In address mapping table, obtain the first mapping item and the second mapping item, wherein, described the first mapping item comprises the mapping relations of the privately owned source IP address of described IPv4 and the publicly-owned source IP address of IPv4 and the mapping relations of the privately owned source port number of described IPv4 and the publicly-owned source port number of IPv4; Described the second mapping item comprises the publicly-owned destination slogan of mapping relations, described IPv4 of described IPv4 publicly-owned object IP address and the privately owned object IP of IPv4 address and the mapping relations of the privately owned destination slogan of IPv4; Described the first mapping item and described the second mapping item are sent to described source device, make described source device obtain described the first mapping item and described the second mapping item.

The data forwarding system providing by the embodiment of the present invention, when source device produces and mails to the IPv4 data message of object equipment of IPv6 network internal, in the mapping table of first query source device address, whether there is corresponding mapping item, if there is corresponding mapping item, can be directly by corresponding mapping item directly and the object devices communicating of IPv6 network internal, only do not having under the situation of corresponding mapping item, just by IPv4 data message described in two stack gateway forwards, alleviated the traffic load of described pair of stack gateway, improved the efficiency of two stack intra-gateway IPv4 data message communications.

Accompanying drawing explanation

In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.

Fig. 1 is the application scenarios figure of a kind of data forwarding system of providing of the embodiment of the present invention;

Fig. 2 is the flow chart of a kind of data forwarding method of providing of the embodiment of the present invention;

Fig. 3 is the flow chart of the another kind of data forwarding method that provides of the embodiment of the present invention;

Fig. 4 be the embodiment of the present invention provide another send the method flow diagram of mapping item;

Fig. 5 be the embodiment of the present invention provide another send the method flow diagram of mapping item;

Fig. 6 is the structural representation of a kind of network equipment of providing of the embodiment of the present invention;

Fig. 7 is the structural representation of a kind of gateway of providing of the embodiment of the present invention.

Embodiment

For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.

As shown in Figure 1, be a kind of application scenarios of the embodiment of the present invention.Source device 101 and object equipment 102 are the communication node under IPv6 network.Source device 101 and object equipment 102 are by two stack DS-Lite gateways 103 and external network communication.

The embodiment of the present invention provides a kind of data forwarding method, take source device 101 as example, and as shown in Figure 2, the method comprises:

Step 201: produce and forward internet protocol version four IPv4 data message;

Wherein, in described IPv4 data message, carry Internet Protocol IP address, the privately owned source of IPv4, the privately owned source port number of IPv4, IPv4 publicly-owned object IP address and the publicly-owned destination slogan of IPv4.

For example, the IPv6 address of source device 101 is A, and the IPv6 address of object equipment 102 is B, and the IPv6 address of two stack gateways 103 is X.The privately owned source IP address of IPv4 and the publicly-owned object IP address of the IPv4 data message that is produced or forwarded by source device 101 are respectively a and b ', and privately owned source port number and publicly-owned destination slogan are respectively ap, bp '.

Step 202: whether simultaneously have the first mapping item and the second mapping item in inquire address mapping table;

Wherein, described the first mapping item and described the second mapping item obtain from two stack DS-Lite gateways, and described the first mapping item comprises the mapping relations of the privately owned source IP address of described IPv4 and the publicly-owned source IP address of IPv4 and the mapping relations of the privately owned source port number of described IPv4 and the publicly-owned source port number of IPv4; Described the second mapping item comprises the publicly-owned destination slogan of mapping relations, described IPv4 of described IPv4 publicly-owned object IP address and the privately owned object IP of IPv4 address and the mapping relations of the privately owned destination slogan of IPv4; If, there is described the first mapping item and described the second mapping item simultaneously, jump to step 203, otherwise, jump to step 204.

With step 201 given example, source device 101 is inquired about the first mapping item that whether has the publicly-owned source IP address a ' of the IPv4 of the source device corresponding with a and ap and publicly-owned source port number ap ' in source device address mapping table; Whether have and b ' and the privately owned object IP of the IPv4 address b of bp ' correspondence and the second mapping item of privately owned destination slogan bp.If there is described the first mapping item and described the second mapping item, enter 203, otherwise enter step 204.

Step 203: according to described the first mapping item and described the second mapping item, change the address information of IPv4 data message, described IPv4 data message is encapsulated as to IPv6 data message, and sends to object equipment;

If there is described the first mapping item and described the second mapping item simultaneously,, according to described the first mapping item, the privately owned source IP address of described IPv4 of described IPv4 data message and the privately owned source port number of described IPv4 are converted to respectively to the publicly-owned source IP address of IPv4 and the publicly-owned source port number of IPv4; According to described the second mapping item, described IPv4 publicly-owned object IP address and the publicly-owned destination slogan of described IPv4 are converted to respectively to IPv4 privately owned object IP address and the privately owned destination slogan of IPv4; Described IPv4 data message is encapsulated as to IPv 6 IPv6 data message, and sends to object equipment, the IPv6 destination address of described IPv6 data message is the IPv6 address of described object equipment.

Equally, take step 201 given example as example, if there is described the first mapping item and described the second mapping item,, according to described the first mapping item, the privately owned source IP address a of the IPv4 of described IPv4 data message and the privately owned source port number ap of IPv4 are converted to respectively to the publicly-owned source IP address a ' of IPv4 and the publicly-owned source port number ap ' of IPv4; According to described the second mapping item, the publicly-owned destination address b ' of IPv4 and the publicly-owned destination slogan of IPv4 bp ' are converted to the privately owned destination address b of IPv4 and the privately owned port numbers bp of IPv4; And on described IPv4 data message, add IPv6 message, described IPv4 data message is encapsulated as to IPv6 data message, described IPv6 data message is sent to object equipment 102, wherein, described IPv6 data message IPv6 source address is that A (the IPv6 address of source device 101) and IPv6 destination address are B (the IPv6 address of object equipment 102);

Step 204: described IPv4 data message is encapsulated as to IPv6 data message, and described IPv6 data message is sent to two stack gateways.

If there is described the first mapping item and described the second mapping item when different, described IPv4 data message is encapsulated as to IPv6 data message, and described IPv6 data message is sent to two stack DS-Lite gateways, the IPv6 destination address of described IPv6 data message is the IPv6 address of described DS-Lite gateway.

Equally, take step 201 given example as example, if do not exist described the first mapping item and described the second mapping item can add IPv6 message on described IPv4 data message, described IPv4 data message is encapsulated as to IPv6 data message, and described IPv6 data message is sent to two stack gateways 103, wherein, described IPv6 data message IPv6 source address is that A (the IPv6 address of source device 101) and IPv6 destination address are X (the IPv6 addresses of two stack gateways 103).

The method of the data retransmission providing by the embodiment of the present invention, when source device produces and mails to the IPv4 data message of object equipment of IPv6 network internal, in first inquire address mapping table, whether there is corresponding mapping item, if exist, can be directly by corresponding mapping item directly and the object devices communicating of IPv6 network internal, only do not having under the situation of corresponding mapping item, just by IPv4 data message described in two stack gateway forwards, alleviated the traffic load of described pair of stack gateway, improved the efficiency of two stack intra-gateway IPv4 data message communications.

The embodiment of the present invention also provides a kind of data forwarding method, and as shown in Figure 3, the method, after previous embodiment step 204, can also comprise:

Step 305: receive the first mapping item and the second mapping item from DS-Lite gateway, and preserve described the first mapping item and described the second mapping item.

The first mapping item in step 305 and the second mapping item come from two stack gateways, when if the first mapping item and the second mapping item need to upgrade, need to receive the renewal list item corresponding to this first mapping item and the second mapping item from two stack gateways.

Wherein, step 301, step 302, step 303 and step 304 are corresponding with step 201, step 202, step 203 and step 204 in previous embodiment respectively, in fact, after step 305 not necessarily will be positioned at step 304, whenever source device can receive from described in DS-Lite gateway, there is no concrete event horizon.

By step 305, source device is by receiving, and described in preserving, realized the study mechanism of described source device address mapping table, so that described source device object equipment direct according to the mapping item of described source device address mapping table and IPv6 network internal communicates.

The embodiment of the present invention provides a kind of method that sends mapping item, and two stack DS-Lite gateways 103 of take are example, and as shown in Figure 4, the method comprises:

Step 401, receive the IPv6 data message from source device;

Wherein, in described IPv6 data message, carry the privately owned source IP address of IPv4, the publicly-owned object IP of IPv4 address, the privately owned source port number of IPv4 and the publicly-owned destination slogan of IPv4;

Step 402, in address mapping table, obtain corresponding mapping item, be specially: in address mapping table, obtain the first mapping item and the second mapping item, wherein, described the first mapping item comprises the mapping relations of the privately owned source IP address of described IPv4 and the publicly-owned source IP address of IPv4 and the mapping relations of the privately owned source port number of described IPv4 and the publicly-owned source port number of IPv4; Described the second mapping item comprises the publicly-owned destination slogan of mapping relations, described IPv4 of described IPv4 publicly-owned object IP address and the privately owned object IP of IPv4 address and the mapping relations of the privately owned destination slogan of IPv4;

Step 403, described the first mapping item and described the second mapping item are sent to described source device, make described source device obtain described the first mapping item and described the second mapping item.

The method of the data retransmission providing by the embodiment of the present invention, two stack gateways receive the IPv6 data message from source device, in address mapping table, obtain corresponding mapping item, corresponding mapping item is sent to described source device 101, make described source device 101 obtain corresponding mapping item, realized the address mapping table study mechanism of source device, so that described source device communicates according to corresponding mapping item object equipment direct and IPv6 network internal, need not be via two stack gateway forwards.

The embodiment of the present invention also provides a kind of method that sends mapping item, and as shown in Figure 5, the method, after previous embodiment step 403, can also comprise:

Step 504: described the first mapping item and described the second mapping item are sent to object equipment, make described object equipment obtain described the first mapping item and described the second mapping item.

Wherein, step 501, step 502 and step 503 are corresponding with step 401, step 402 and step 403 in previous embodiment respectively, in fact, after step 504 not necessarily will be positioned at step 503, whenever DS-Lite gateway 103 can send to object equipment 102 by described the first mapping item and described the second mapping item, there is no concrete event horizon.

By step 504, described the first mapping item and described the second mapping item are sent to described object equipment 102, make described object equipment 102 obtain described the first mapping item and described the second mapping item, realized the address mapping table study mechanism of object equipment 102, so that described object equipment 102 communicates according to described the first mapping item and described the second mapping item source device 101 direct and IPv6 network internal, need not be via two stack gateway forwards.

When if described the first mapping item and described the second mapping item need to upgrade, need again to source device and object equipment, to send the first mapping item and the second mapping item after upgrading.

The embodiment of the present invention provides a kind of network equipment, as shown in Figure 6, comprising:

Forwarding module 610, for generation of with forward internet protocol version four IPv4 data message, described IPv4 data message carries Internet Protocol IP address, the privately owned source of IPv4, the privately owned source port number of IPv4, IPv4 publicly-owned object IP address and the publicly-owned destination slogan of IPv4;

The first enquiry module 620, for inquire address mapping table, whether there is the first mapping item and the second mapping item simultaneously, wherein, described the first mapping item and described the second mapping item obtain from two stack DS-Lite gateways, and described the first mapping item comprises the mapping relations of the privately owned source IP address of described IPv4 and the publicly-owned source IP address of IPv4 and the mapping relations of the privately owned source port number of described IPv4 and the publicly-owned source port number of IPv4; Described the second mapping item comprises the publicly-owned destination slogan of mapping relations, described IPv4 of described IPv4 publicly-owned object IP address and the privately owned object IP of IPv4 address and the mapping relations of the privately owned destination slogan of IPv4; ;

The first sending module 630, if inquire and have described the first mapping item and described the second mapping item for described the first enquiry module 620 simultaneously,, according to described the first mapping item, the privately owned source IP address of described IPv4 of described IPv4 data message and the privately owned source port number of described IPv4 are converted to respectively to the publicly-owned source IP address of IPv4 and the publicly-owned source port number of IPv4; According to described the second mapping item, described IPv4 publicly-owned object IP address and the publicly-owned destination slogan of described IPv4 are converted to respectively to IPv4 privately owned object IP address and the privately owned destination slogan of IPv4; Described IPv4 data message is encapsulated as to IPv 6 IPv6 data message, and sends to object equipment, the IPv6 destination address of described IPv6 data message is the IPv6 address of described object equipment;

The second sending module 640, if there is described the first mapping item and described the second mapping item while inquiring difference for described the first enquiry module 620, described IPv4 data message is encapsulated as to IPv6 data message, and described IPv6 data message is sent to two stack DS-Lite gateways, the IPv6 destination address of described IPv6 data message is the IPv6 address of described DS-Lite gateway.

A kind of network equipment providing by the embodiment of the present invention, when the described network equipment produces and mails to the IPv4 data message of object equipment of IPv6 network internal, in first inquire address mapping table, whether there is corresponding mapping item, if exist, can be directly by corresponding mapping item directly and the object devices communicating of IPv6 network internal, only do not having under the situation of corresponding mapping item, just by IPv4 data message described in two stack gateway forwards, alleviated the traffic load of described pair of stack gateway, improved the efficiency of two stack intra-gateway IPv4 data message communications.

The described network equipment, also comprises:

Mapping item receiver module 650, for receiving the first mapping item and the second mapping item from described DS-Lite gateway, and preserves described the first mapping item and described the second mapping item.

The described network equipment receives by mapping item receiver module 650, and preserve described the first mapping item and described the second mapping item, realized the address mapping table study mechanism of the described network equipment, so that the described network equipment communicates according to described first mapping item of described source device address mapping table and described the second mapping item object equipment direct and IPv6 network internal.

A kind of gateway that the embodiment of the present invention provides, as shown in Figure 7, comprising:

Receiver module 710, for receiving the IPv6 data message from source device, carries the privately owned source IP address of IPv4, the publicly-owned object IP of IPv4 address, the privately owned source port number of IPv4 and the publicly-owned destination slogan of IPv4 in described IPv6 data message;

Mapping item acquisition module 720, for obtaining the first mapping item and the second mapping item in address mapping table, wherein, described the first mapping item comprises the mapping relations of the privately owned source IP address of described IPv4 and the publicly-owned source IP address of IPv4 and the mapping relations of the privately owned source port number of described IPv4 and the publicly-owned source port number of IPv4; Described the second mapping item comprises the publicly-owned destination slogan of mapping relations, described IPv4 of described IPv4 publicly-owned object IP address and the privately owned object IP of IPv4 address and the mapping relations of the privately owned destination slogan of IPv4;

Mapping item sending module 730, sends to described source device for described the first mapping item and described the second mapping item that described mapping item acquisition module is obtained, and makes described source device obtain described the first mapping item and described the second mapping item.

The method of the data retransmission providing by the embodiment of the present invention, gateway receives the IPv6 data message from source device, in address mapping table, obtain corresponding mapping item, corresponding mapping item is sent to described source device, described source is established and obtain corresponding mapping item, realized the address mapping table study mechanism of source device, so that described source device communicates according to corresponding mapping item object equipment direct and IPv6 network internal, need not be via two stack gateway forwards.

Wherein, described mapping item sending module 730, also for described the first mapping item and described the second mapping item are sent to object equipment, makes described object equipment obtain described the first mapping item and described the second mapping item.

By mapping item sending module 730, described the first mapping item and described the second mapping item are sent to described object equipment 1, make described object equipment obtain described the first mapping item and described the second mapping item, realized the address mapping table study mechanism of object equipment, so that described object equipment communicates according to described the first mapping item and described the second mapping item source device direct and IPv6 network internal, need not be via two stack gateway forwards.

The embodiment of the present invention provides a kind of data forwarding system, and as shown in Figure 1, this system comprises:

Source device 101, object equipment 102 and two stack gateway 103, preserve source device address mapping table in described source device 101, in described pair of stack gateway 103, preserves gateway address mapping table;

Wherein, described source device 101 for generation of with forward internet protocol version four IPv4 data message, described IPv4 data message carries Internet Protocol IP address, the privately owned source of IPv4, the privately owned source port number of IPv4, IPv4 publicly-owned object IP address and the publicly-owned destination slogan of IPv4; In inquire address mapping table, whether there is the first mapping item and the second mapping item simultaneously, wherein, described the first mapping item and described the second mapping item obtain from two stack DS-Lite gateways, and described the first mapping item comprises the mapping relations of the privately owned source IP address of described IPv4 and the publicly-owned source IP address of IPv4 and the mapping relations of the privately owned source port number of described IPv4 and the publicly-owned source port number of IPv4; Described the second mapping item comprises the publicly-owned destination slogan of mapping relations, described IPv4 of described IPv4 publicly-owned object IP address and the privately owned object IP of IPv4 address and the mapping relations of the privately owned destination slogan of IPv4; If there is described the first mapping item and described the second mapping item simultaneously,, according to described the first mapping item, the privately owned source IP address of described IPv4 of described IPv4 data message and the privately owned source port number of described IPv4 are converted to respectively to the publicly-owned source IP address of IPv4 and the publicly-owned source port number of IPv4; According to described the second mapping item, described IPv4 publicly-owned object IP address and the publicly-owned destination slogan of described IPv4 are converted to respectively to IPv4 privately owned object IP address and the privately owned destination slogan of IPv4; Described IPv4 data message is encapsulated as to IPv 6 IPv6 data message, and sends to object equipment, the IPv6 destination address of described IPv6 data message is the IPv6 address of described object equipment; If there is described the first mapping item and described the second mapping item when different, described IPv4 data message is encapsulated as to IPv6 data message, and described IPv6 data message is sent to two stack DS-Lite gateways, the IPv6 destination address of described IPv6 data message is the IPv6 address of described DS-Lite gateway;

Described pair of stack gateway 103, for receiving the IPv6 data message from source device, carries the privately owned source IP address of IPv4, the publicly-owned object IP of IPv4 address, the privately owned source port number of IPv4 and the publicly-owned destination slogan of IPv4 in described IPv6 data message; In address mapping table, obtain the first mapping item and the second mapping item, wherein, described the first mapping item comprises the mapping relations of the privately owned source IP address of described IPv4 and the publicly-owned source IP address of IPv4 and the mapping relations of the privately owned source port number of described IPv4 and the publicly-owned source port number of IPv4; Described the second mapping item comprises the publicly-owned destination slogan of mapping relations, described IPv4 of described IPv4 publicly-owned object IP address and the privately owned object IP of IPv4 address and the mapping relations of the privately owned destination slogan of IPv4; Described the first mapping item and described the second mapping item are sent to described source device, make described source device obtain described the first mapping item and described the second mapping item.

The data forwarding system providing by the embodiment of the present invention, when source device produces and mails to the IPv4 data message of object equipment of IPv6 network internal, in first inquire address mapping table, whether there is corresponding mapping item, if exist, can be directly by corresponding mapping item directly and the object devices communicating of IPv6 network internal, only do not having under the situation of corresponding mapping item, just by IPv4 data message described in two stack gateway forwards, alleviated the traffic load of described pair of stack gateway, improved the efficiency of two stack intra-gateway IPv4 data message communications.

In addition, two stack gateways receive the IPv6 data message from source device, in address mapping table, obtain corresponding mapping item, corresponding mapping item is sent to described source device 101, make described source device 101 obtain corresponding mapping item, realized the address mapping table study mechanism of source device, so that described source device communicates according to corresponding mapping item object equipment direct and IPv6 network internal, need not be via two stack gateway forwards.

The embodiment of the present invention also provides a kind of data forwarding system, on the basis of the data forwarding system providing in previous embodiment, described source device 101 is also for receiving the first mapping item and the second mapping item from described pair of stack gateway 103, and preserves described the first mapping item and described the second mapping item; Described pair of stack gateway 103, also for described the first mapping item and described the second mapping item are sent to object equipment 102, makes described object equipment 102 obtain described the first mapping item and described the second mapping item.

A kind of data forwarding system providing by the embodiment of the present invention, source device 101 is by receiving the first mapping item and the second mapping item, and preserve described the first mapping item and described the second mapping item, realized the study mechanism of the address mapping table of described source device 101, so that described source device 101 object equipment direct according to the mapping item of described source device address mapping table and IPv6 network internal communicates.Two stack gateways 103 send to described object equipment 102 by described the first mapping item and described the second mapping item, make described object equipment 102 obtain described the first mapping item and described the second mapping item, realized the address mapping table study mechanism of object equipment 102, so that described object equipment 102 communicates according to described the first mapping item and described the second mapping item source device 101 direct and IPv6 network internal, need not be via two stack gateway forwards.

Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential hardware platform by software and realize, can certainly all by hardware, implement, but in a lot of situation, the former is better execution mode.Understanding based on such, what technical scheme of the present invention contributed to background technology can embody with the form of software product in whole or in part, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) carry out the method described in some part of each embodiment of the present invention or embodiment.

Above the present invention is described in detail, has applied specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention meanwhile.

Claims (10)

1. a data forwarding method, is characterized in that, comprising:
Produce and forward internet protocol version four IPv4 data message, described IPv4 data message carries Internet Protocol IP address, the privately owned source of IPv4, the privately owned source port number of IPv4, IPv4 publicly-owned object IP address and the publicly-owned destination slogan of IPv4;
In inquire address mapping table, whether there is the first mapping item and the second mapping item simultaneously, wherein, described the first mapping item and described the second mapping item obtain from two stack DS-Lite gateways, and described the first mapping item comprises the mapping relations of the privately owned source IP address of described IPv4 and the publicly-owned source IP address of IPv4 and the mapping relations of the privately owned source port number of described IPv4 and the publicly-owned source port number of IPv4; Described the second mapping item comprises the publicly-owned destination slogan of mapping relations, described IPv4 of described IPv4 publicly-owned object IP address and the privately owned object IP of IPv4 address and the mapping relations of the privately owned destination slogan of IPv4;
If there is described the first mapping item and described the second mapping item simultaneously,, according to described the first mapping item, the privately owned source IP address of described IPv4 of described IPv4 data message and the privately owned source port number of described IPv4 are converted to respectively to the publicly-owned source IP address of IPv4 and the publicly-owned source port number of IPv4; According to described the second mapping item, described IPv4 publicly-owned object IP address and the publicly-owned destination slogan of described IPv4 are converted to respectively to IPv4 privately owned object IP address and the privately owned destination slogan of IPv4; Described IPv4 data message is encapsulated as to IPv 6 IPv6 data message, and sends to object equipment, the IPv6 destination address of described IPv6 data message is the IPv6 address of described object equipment;
If there is described the first mapping item and described the second mapping item when different, described IPv4 data message is encapsulated as to IPv6 data message, and described IPv6 data message is sent to two stack gateways, the IPv6 destination address of described IPv6 data message is the IPv6 address of described DS-Lite gateway.
2. data forwarding method according to claim 1, is characterized in that, described method, also comprises:
Reception is from the first mapping item and second mapping item of DS-Lite gateway, and preserves described the first mapping item and described the second mapping item.
3. a method that sends mapping item, is characterized in that, comprising:
Reception, from the IPv6 data message of source device, is carried the privately owned source IP address of IPv4, the publicly-owned object IP of IPv4 address, the privately owned source port number of IPv4 and the publicly-owned destination slogan of IPv4 in described IPv6 data message;
In address mapping table, obtain the first mapping item and the second mapping item, wherein, described the first mapping item comprises the mapping relations of the privately owned source IP address of described IPv4 and the publicly-owned source IP address of IPv4 and the mapping relations of the privately owned source port number of described IPv4 and the publicly-owned source port number of IPv4; Described the second mapping item comprises the publicly-owned destination slogan of mapping relations, described IPv4 of described IPv4 publicly-owned object IP address and the privately owned object IP of IPv4 address and the mapping relations of the privately owned destination slogan of IPv4;
Described the first mapping item and described the second mapping item are sent to described source device, make described source device obtain described the first mapping item and described the second mapping item.
4. the method for transmission mapping item according to claim 3, is characterized in that,
Described the first mapping item and described the second mapping item are sent to object equipment, make described object equipment obtain described the first mapping item and described the second mapping item.
5. a network equipment, is characterized in that, comprising:
Forwarding module, for generation of with forward internet protocol version four IPv4 data message, described IPv4 data message carries Internet Protocol IP address, the privately owned source of IPv4, the privately owned source port number of IPv4, IPv4 publicly-owned object IP address and the publicly-owned destination slogan of IPv4;
The first enquiry module, for inquire address mapping table, whether there is the first mapping item and the second mapping item simultaneously, wherein, described the first mapping item and described the second mapping item obtain from two stack DS-Lite gateways, and described the first mapping item comprises the mapping relations of the privately owned source IP address of described IPv4 and the publicly-owned source IP address of IPv4 and the mapping relations of the privately owned source port number of described IPv4 and the publicly-owned source port number of IPv4; Described the second mapping item comprises the publicly-owned destination slogan of mapping relations, described IPv4 of described IPv4 publicly-owned object IP address and the privately owned object IP of IPv4 address and the mapping relations of the privately owned destination slogan of IPv4;
The first sending module, if inquire and have described the first mapping item and described the second mapping item for described the first enquiry module simultaneously,, according to described the first mapping item, the privately owned source IP address of described IPv4 of described IPv4 data message and the privately owned source port number of described IPv4 are converted to respectively to the publicly-owned source IP address of IPv4 and the publicly-owned source port number of IPv4; According to described the second mapping item, described IPv4 publicly-owned object IP address and the publicly-owned destination slogan of described IPv4 are converted to respectively to IPv4 privately owned object IP address and the privately owned destination slogan of IPv4; Described IPv4 data message is encapsulated as to IPv 6 IPv6 data message, and sends to object equipment, the IPv6 destination address of described IPv6 data message is the IPv6 address of described object equipment;
The second sending module, if there is described the first mapping item and described the second mapping item while inquiring difference for described the first enquiry module, described IPv4 data message is encapsulated as to IPv6 data message, and described IPv6 data message is sent to two stack DS-Lite gateways, the IPv6 destination address of described IPv6 data message is the IPv6 address of described DS-Lite gateway.
6. the network equipment according to claim 5, is characterized in that, the described network equipment, also comprises:
Mapping item receiver module, for receiving the first mapping item and the second mapping item from DS-Lite gateway, and preserves described the first mapping item and described the second mapping item.
7. a gateway, is characterized in that, comprising:
Receiver module, for receiving the IPv6 data message from source device, carries the privately owned source IP address of IPv4, the publicly-owned object IP of IPv4 address, the privately owned source port number of IPv4 and the publicly-owned destination slogan of IPv4 in described IPv6 data message;
Mapping item acquisition module, for obtaining the first mapping item and the second mapping item in address mapping table, wherein, described the first mapping item comprises the mapping relations of the privately owned source IP address of described IPv4 and the publicly-owned source IP address of IPv4 and the mapping relations of the privately owned source port number of described IPv4 and the publicly-owned source port number of IPv4; Described the second mapping item comprises the publicly-owned destination slogan of mapping relations, described IPv4 of described IPv4 publicly-owned object IP address and the privately owned object IP of IPv4 address and the mapping relations of the privately owned destination slogan of IPv4;
Mapping item sending module, sends to described source device for described the first mapping item and described the second mapping item that described mapping item acquisition module is obtained, and makes described source device obtain described the first mapping item and described the second mapping item.
8. gateway according to claim 7, it is characterized in that, described mapping item sending module, also for described the first mapping item and described the second mapping item are sent to object equipment, makes described object equipment obtain described the first mapping item and described the second mapping item.
9. a data forwarding system, is characterized in that, described repeater system comprises: source device, object equipment and two stack gateway, in described source device, preserve source device address mapping table, and in described pair of stack gateway, preserve gateway address mapping table;
Wherein, described source device for generation of with forward internet protocol version four IPv4 data message, described IPv4 data message carries Internet Protocol IP address, the privately owned source of IPv4, the privately owned source port number of IPv4, IPv4 publicly-owned object IP address and the publicly-owned destination slogan of IPv4; In inquire address mapping table, whether there is the first mapping item and the second mapping item simultaneously, wherein, described the first mapping item and described the second mapping item obtain from described pair of stack gateway, and described the first mapping item comprises the mapping relations of the privately owned source IP address of described IPv4 and the publicly-owned source IP address of IPv4 and the mapping relations of the privately owned source port number of described IPv4 and the publicly-owned source port number of IPv4; Described the second mapping item comprises the publicly-owned destination slogan of mapping relations, described IPv4 of described IPv4 publicly-owned object IP address and the privately owned object IP of IPv4 address and the mapping relations of the privately owned destination slogan of IPv4; If there is described the first mapping item and described the second mapping item simultaneously,, according to described the first mapping item, the privately owned source IP address of described IPv4 of described IPv4 data message and the privately owned source port number of described IPv4 are converted to respectively to the publicly-owned source IP address of IPv4 and the publicly-owned source port number of IPv4; According to described the second mapping item, described IPv4 publicly-owned object IP address and the publicly-owned destination slogan of described IPv4 are converted to respectively to IPv4 privately owned object IP address and the privately owned destination slogan of IPv4; Described IPv4 data message is encapsulated as to IPv 6 IPv6 data message, and sends to object equipment, the IPv6 destination address of described IPv6 data message is the IPv6 address of described object equipment; If there is described the first mapping item and described the second mapping item when different, described IPv4 data message is encapsulated as to IPv6 data message, and described IPv6 data message is sent to described pair of stack gateway, the IPv6 destination address of described IPv6 data message is the IPv6 address of described pair of stack gateway;
Described pair of stack gateway, for receiving the IPv6 data message from source device, carries the privately owned source IP address of IPv4, the publicly-owned object IP of IPv4 address, the privately owned source port number of IPv4 and the publicly-owned destination slogan of IPv4 in described IPv6 data message; In address mapping table, obtain the first mapping item and the second mapping item, wherein, described the first mapping item comprises the mapping relations of the privately owned source IP address of described IPv4 and the publicly-owned source IP address of IPv4 and the mapping relations of the privately owned source port number of described IPv4 and the publicly-owned source port number of IPv4; Described the second mapping item comprises the publicly-owned destination slogan of mapping relations, described IPv4 of described IPv4 publicly-owned object IP address and the privately owned object IP of IPv4 address and the mapping relations of the privately owned destination slogan of IPv4; Described the first mapping item and described the second mapping item are sent to described source device, make described source device obtain described the first mapping item and described the second mapping item.
10. data forwarding system according to claim 9, is characterized in that, described source device is also for receiving the first mapping item and the second mapping item from described pair of stack gateway, and preserves described the first mapping item and described the second mapping item; Described pair of stack gateway, also for described the first mapping item and described the second mapping item are sent to object equipment, makes described object equipment obtain described the first mapping item and described the second mapping item.
CN201010278736.7A 2010-09-06 2010-09-06 Data forwarding method and system CN102387221B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010278736.7A CN102387221B (en) 2010-09-06 2010-09-06 Data forwarding method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010278736.7A CN102387221B (en) 2010-09-06 2010-09-06 Data forwarding method and system

Publications (2)

Publication Number Publication Date
CN102387221A CN102387221A (en) 2012-03-21
CN102387221B true CN102387221B (en) 2014-02-26

Family

ID=45826181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010278736.7A CN102387221B (en) 2010-09-06 2010-09-06 Data forwarding method and system

Country Status (1)

Country Link
CN (1) CN102387221B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103516692A (en) * 2012-06-28 2014-01-15 中兴通讯股份有限公司 Method and system for achieving accelerating processing of DS-Lite data message
KR102053856B1 (en) * 2013-09-13 2019-12-09 삼성전자주식회사 Method and apparatus for providng push service in communication system
CN105306227A (en) * 2014-06-16 2016-02-03 中兴通讯股份有限公司 Home gateway DS-Lite multicast method and equipment
CN106559505A (en) * 2015-09-25 2017-04-05 中兴通讯股份有限公司 IP method for parameter configuration, network address processing method and processing device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988491A (en) * 2006-11-24 2007-06-27 清华大学 Method for optimizing IPv4/IPv6 application interoperation using multiple point access
CN101179468A (en) * 2006-11-10 2008-05-14 中兴通讯股份有限公司 Method for communication between isomerized network SIP terminal and H.323 terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7231452B2 (en) * 2002-11-29 2007-06-12 National University Of Singapore Method and apparatus for communicating on a communication network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179468A (en) * 2006-11-10 2008-05-14 中兴通讯股份有限公司 Method for communication between isomerized network SIP terminal and H.323 terminal
CN1988491A (en) * 2006-11-24 2007-06-27 清华大学 Method for optimizing IPv4/IPv6 application interoperation using multiple point access

Also Published As

Publication number Publication date
CN102387221A (en) 2012-03-21

Similar Documents

Publication Publication Date Title
US10057928B2 (en) Handheld device processing for providing data tethering services while maintaining suite of handheld service functions
CN103166874B (en) A kind of message forwarding method and equipment
US9185186B2 (en) Method of implementing content-centric network (CCN) using internet protocol (IP)-based network in gateway, and gateway
JP5817299B2 (en) Address translation apparatus, communication system, and address translation method
CN105009544B (en) Tunnel processing method, switching equipment and the control device of message
CN103200069B (en) A kind of method and apparatus of Message processing
US20150095514A1 (en) Content Centric M2M System
CN102714636B (en) For being convenient to the method and apparatus of the propelling movement communication of crossing network boundary
Jara et al. Glowbal IP: An adaptive and transparent IPv6 integration in the Internet of Things
JP3603057B2 (en) Method for supporting small group multicast in mobile IP
CN101133609B (en) Communication node and communication control method
US7526569B2 (en) Router and address identification information management server
JP3494610B2 (en) IP router device with TCP termination function and medium
CN102025591B (en) Method and system for implementing virtual private network
CN100469038C (en) ISATAP router for tunneling packets and method thereof
US8619817B1 (en) Message address manipulation using source port codes
US7242689B2 (en) Mobile IP communication terminal, mobile IP communication method, and computer product
CN101043411B (en) Method and system for realizing mobile VPN service in hybrid network
CN100505943C (en) Mobile communication control system and method, and router
CN104038401A (en) Interoperability for distributed overlay virtual environments
US7450585B2 (en) Method and system in an IP network for using a network address translation (NAT) with any type of application
JP2008283670A (en) Access, connectivity and interoperability for device and service
KR101785760B1 (en) Method and network element for enhancing ds-lite with private ipv4 reachability
US20070060147A1 (en) Apparatus for transmitting data packets between wireless sensor networks over internet, wireless sensor network domain name server, and data packet transmission method using the same
KR101029457B1 (en) Network address translation based mobility management

Legal Events

Date Code Title Description
DD01 Delivery of document by public notice

Addressee: Zhang Liang

Document name: Application for patent security review to foreign countries (agreement)

PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: 611731 Chengdu high tech Zone, Sichuan, West Park, Qingshui River

Applicant after: Huawei Symantec Technologies Co., Ltd.

Address before: 611731 Chengdu high tech Zone, Sichuan, West Park, Qingshui River

Applicant before: Chengdu Huawei Symantec Technologies Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: CHENGDU HUAWEI SYMANTEC TECHNOLOGIES CO., LTD. TO: HUAWEI DIGITAL TECHNOLOGY (CHENGDU) CO., LTD.

C14 Grant of patent or utility model
GR01 Patent grant