CN102938736B - A kind of method and apparatus realizing IPv4 message passing through IPv 6 network - Google Patents

A kind of method and apparatus realizing IPv4 message passing through IPv 6 network Download PDF

Info

Publication number
CN102938736B
CN102938736B CN201210477060.3A CN201210477060A CN102938736B CN 102938736 B CN102938736 B CN 102938736B CN 201210477060 A CN201210477060 A CN 201210477060A CN 102938736 B CN102938736 B CN 102938736B
Authority
CN
China
Prior art keywords
ipv6
message
ipv4
equipment
address
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
CN201210477060.3A
Other languages
Chinese (zh)
Other versions
CN102938736A (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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies 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 Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201210477060.3A priority Critical patent/CN102938736B/en
Publication of CN102938736A publication Critical patent/CN102938736A/en
Application granted granted Critical
Publication of CN102938736B publication Critical patent/CN102938736B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of method and apparatus realizing IPv4 message passing through IPv 6 network, described method includes when being applied on B4 equipment: when receiving the IPv4 message that client sends, judge the session entry whether depositing correspondence in IPv4 conversational list, obtain the first judged result; When described first judged result is for being, according to described session entry, after described IPv4 message is increased ipv6 header, it is sent to AFTR equipment by the IPv4-in-IPv6 tunnel in IPv6 network; When described first judged result is no, IPv6 address according to B4 equipment and AFTR equipment, it is sent to AFTR equipment by IPv4-in-IPv6 tunnel after described IPv4 message is increased ipv6 header, and in IPv4 conversational list, increase the session entry corresponding with described IPv4 message, and, IPv6 conversational list increases the session entry corresponding with described IPv6 message. In accordance with the invention it is possible to the Message processing efficiency improved in DS-Lite.

Description

A kind of method and apparatus realizing IPv4 message passing through IPv 6 network
Technical field
The present invention relates to network communication technology field, particularly relate to a kind of method and apparatus realizing IPv4 message passing through IPv 6 network.
Background technology
Along with mutual net connection technology developing rapidly in the world, networked devices quickly increases, global ip v4 address is faced with the severe situation being about to exhaust, the requirement in space, location larger is become more urgent, IPv6 agreement is arisen at the historic moment in this case, IPv6 agreement provides 128 IP addresses, it is possible to effectively solve IP Address Run Short problem. Along with IPv4 can distribute exhausting of address resource, increasing operator also begins to set about disposing IPv6 network at Access Network with core net. But terminal and business platform can not be upgraded at short notice, support IPv6, so just creates new problem, how to realize the terminal access to original IPv4 business under IPv6-only Access Network environment. In this context, lightweight dual stack (Dual-StackLite, DS-Lite) technology is occurred in that. DS-Lite technology is the IPv4 one to IPv6 smooth transition technology, and transitional technology up-to-date at present has 6rd, DS-Lite, A+P, NAT64, PNAT etc., and wherein DS-Lite is seen as the final mask of IPv6 evolution scheme.
DS-Lite technology is to dispose IPv4-in-IPv6 tunnel in the network of IPv6 to complete the transmission of IPv4 business, and IPv6 business is then transmitted either directly through IPv6 network. DS-Lite is a kind of IPv4-in-IPv6 tunneling technique, gateway bridges wide element (BasicBridgingBroadband substantially as shown in Figure 1, and address race transient router unit (AddressFamilyTransitionRouter B4), AFTR) it is all dual stack device, B4 network element is at subscriber's main station or customer terminal equipment (CustomerPremiseEquipment, CPE) equipment realizes, create the tunnel of IPv4-in-IPv6 to AFTR.AFTR network element has terminated IPv4-in-IPv6 tunnel, and achieves from network address translation (NetworkAddressTranslation, the NAT) function private ip v4 to publicly-owned IPv4.
Fig. 2 is the Message processing flow chart in DS-Lite, as shown in Figure 2, the scheme realizing DS-Lite at present mainly adopts tunneling technique to realize, need to create virtual interface on B4 equipment and AFTR equipment, after message arrival equipment, route looked into by needs, is added ipv6 header or removes the operation of ipv6 header after being routed to virtual interface, and the new message of generation is transmitted then through after looking into route. Visible, that existing scheme realizes DS-Lite, is required for performing twice to each message on B4 equipment or AFTR equipment and looks into routing operations, and the treatment effeciency of message is not high.
Summary of the invention
In view of this, it is an object of the invention to provide a kind of method and apparatus realizing IPv4 message passing through IPv 6 network, it is possible to increase the Message processing efficiency in DS-Lite.
For achieving the above object, the present invention provides technical scheme as follows:
A kind of method realizing IPv4 message passing through IPv 6 network, is applied on B4 equipment, and described method includes:
When receiving the IPv4 message that client sends, it is judged that whether IPv4 conversational list exists the session entry corresponding with this IPv4 message, obtains the first judged result;
When described first judged result is for being, according to described session entry, described IPv4 message is increased ipv6 header and obtains IPv6 message, described IPv6 message is sent to AFTR equipment by the IPv4-in-IPv6 tunnel in IPv6 network;
When described first judged result is no, IPv6 address according to B4 equipment and AFTR equipment, described IPv4 message is increased ipv6 header and obtains IPv6 message, described IPv6 message is sent to AFTR equipment by described IPv4-in-IPv6 tunnel, and in IPv4 conversational list, increase the session entry corresponding with described IPv4 message, and, IPv6 conversational list increases the session entry corresponding with described IPv6 message.
A kind of method realizing IPv4 message passing through IPv 6 network, is applied on AFTR equipment, and described method includes:
When receiving the IPv6 message that B4 equipment is sent by the IPv4-in-IPv6 tunnel in IPv6 network, it is judged that whether IPv6 conversational list exists the session entry corresponding with this IPv6 message, obtains the second judged result;
When described second judged result is for being, according to described session entry, the ipv6 header removing described IPv6 message obtains IPv4 message, forwards after described IPv4 message is carried out source address conversion;
When described second judged result is no, the ipv6 header removing described IPv6 message obtains IPv4 message, forward after described IPv4 message is carried out source address conversion, and in IPv6 conversational list, increase the session entry corresponding with described IPv6 message, and, IPv4 conversational list increases the session entry that the IPv4 message after changing with source address is corresponding.
A kind of B4 equipment, including:
First judge module, when being used for the IPv4 message receiving client transmission, it is judged that whether there is the session entry corresponding with this IPv4 message in IPv4 conversational list, obtain the first judged result;
First processing module, for when described first judged result is for being, according to described session entry, described IPv4 message is increased ipv6 header and obtains IPv6 message, described IPv6 message is sent to AFTR equipment by the IPv4-in-IPv6 tunnel in IPv6 network;
Second processing module, for when described first judged result is no, IPv6 address according to B4 equipment and AFTR equipment, described IPv4 message is increased ipv6 header and obtains IPv6 message, described IPv6 message is sent to AFTR equipment by described IPv4-in-IPv6 tunnel, and in IPv4 conversational list, increase the session entry corresponding with described IPv4 message, and, IPv6 conversational list increases the session entry corresponding with described IPv6 message.
A kind of AFTR equipment, including:
Second judge module, during for receiving B4 equipment by the IPv6 message of the IPv4-in-IPv6 tunnel transmission in IPv6 network, it is judged that whether there is the session entry corresponding with this IPv6 message in IPv6 conversational list, obtain the second judged result;
Fourth processing module, for when described second judged result is for being, according to described session entry, the ipv6 header removing described IPv6 message obtains IPv4 message, forwards after described IPv4 message is carried out source address conversion;
5th processing module, for when described second judged result is no, the ipv6 header removing described IPv6 message obtains IPv4 message, forward after described IPv4 message is carried out source address conversion, and in IPv6 conversational list, increase the session entry corresponding with described IPv6 message, and, IPv4 conversational list increases the session entry that the IPv4 message after changing with source address is corresponding.
Compared with prior art, the invention provides a kind of strategy mode and realize the scheme of DS-Lite, message is without virtual interface but is combined with session and fast phase inversion, so, it is achieved that the high efficiency of message is forwarded.
Accompanying drawing explanation
Fig. 1 is the basic networking schematic diagram of DS-Lite;
Fig. 2 is the Message processing flow chart in DS-Lite;
Fig. 3 is the method flow diagram realizing IPv4 message passing through IPv 6 network of the embodiment of the present invention 1;
Fig. 4 is the method flow diagram realizing IPv4 message passing through IPv 6 network of the embodiment of the present invention 2.
Detailed description of the invention
Describe the present invention below in conjunction with accompanying drawing.
On B4 equipment and AFTR equipment, virtual interface is created for prior art realizes the DS-Lite needs existed, and each message is required for performing twice at looking into routing operations on equipment, the problem that Message processing is inefficient, the invention provides a kind of strategy mode and realize the scheme of DS-Lite, message is without virtual interface but is combined with session and fast phase inversion, so, it is achieved that the high efficiency of message is forwarded.
Embodiment 1
Fig. 3 illustrates a kind of method realizing IPv4 message passing through IPv 6 network, and the method is applicable to the network environment shown in Fig. 1. In this network environment, B4 equipment and AFTR equipment all open DS-Lite function, B4 equipment and AFTR equipment and are dual stack device, and setting up between B4 equipment and AFTR equipment has DS-Lite tunnel, i.e. IPv4-in-IPv6 tunnel. Regulation according to DS-Lite relevant criterion or specification, when opening DS-Lite function, on B4 equipment, it is necessary to the address (obtaining the IPv6 address of AFTR also by DHCPv6 option) etc. of configuration interface, the IPv4 address of B4 equipment and AFTR equipment; On AFTR equipment, it is necessary to the configuration IPv6 address of AFTR, private network IPv4 address and public network IP v4 address etc. The configuration of B4 equipment and AFTR equipment is specifically referred to DS-Lite relevant criterion or specification.
Method shown in Fig. 3 is applied on B4 equipment, and with reference to Fig. 3, described method may include steps of:
Step 301, receives the IPv4 message that client sends;
Step 302, it is judged that whether there is the session entry corresponding with this IPv4 message in IPv4 conversational list, if so, enters step 304, enters step 303 if not;
When receiving IPv4 message, five-tuple information according to IPv4 message is mated with IPv4 conversational list, the match is successful, then according to the process strategy in the session entry matched, this IPv4 message is processed, it fails to match, after then this IPv4 message being processed according to predetermined policy, IPv4 conversational list increases corresponding list item.
On B4 equipment, storage has IPv4 conversational list and IPv6 conversational list, and described IPv4 conversational list generates according to IPv4 message, and the content of list item is five-tuple information and the process strategy to IPv4 message of IPv4 message; Described IPv6 conversational list generates according to IPv6 message, and the content of list item is five-tuple information and the process strategy to IPv6 message of IPv6 message. Concrete foundation of IPv4 conversational list and IPv6 conversational list refers to subsequent step with update method.
Step 303, IPv6 address according to B4 equipment and AFTR equipment, described IPv4 message is increased ipv6 header and obtains IPv6 message, described IPv6 message is sent to AFTR equipment by the IPv4-in-IPv6 tunnel in IPv6 network, and in IPv4 conversational list, increase the session entry corresponding with described IPv4 message, and, IPv6 conversational list increases the session entry corresponding with described IPv6 message.
When it fails to match, according to predetermined policy, this IPv4 message is processed, this predetermined policy can be, this IPv4 message is carried out IPv6 encapsulation, and sent by DS-Lite tunnel (i.e. IPv4-in-IPv6 tunnel), wherein, the IPv6 address that source address is B4 equipment to the ipv6 header that described IPv4 message increases, destination address is the IPv6 address of AFTR equipment.
Then, it is necessary in IPv4 conversational list and IPv6 conversational list, increase session entry. Specifically, for IPv4 conversational list, increase a list item wherein, the content of this list item is five-tuple information and the process strategy to IPv4 message of IPv4 message, this process strategy can be, the IPv4 message received carries out IPv6 encapsulation and the IPv6 address that source address is B4 equipment to the ipv6 header that described IPv4 message increases, and destination address is the IPv6 address of AFTR equipment. For IPv6 conversational list, increasing a list item wherein, the content of this list item is five-tuple information and the process strategy to IPv6 message of IPv6 message, and this process strategy is it may be that remove the ipv6 header of the IPv6 message received.
Step 304, according to described session entry, increases ipv6 header to described IPv4 message and obtains IPv6 message, by the IPv4-in-IPv6 tunnel in IPv6 network, described IPv6 message is sent to AFTR equipment;
When the match is successful, according to the session entry matched, obtain the process strategy to IPv4 message, particularly as follows: the IPv4 message received is carried out IPv6 encapsulation, and the IPv6 address that source address is B4 equipment to the ipv6 header that described IPv4 message increases, destination address is the IPv6 address of AFTR equipment.
It is above B4 equipment and receives the handling process of the IPv4 message that client sends. B4 equipment introduced below receives the handling process during IPv6 message that AFTR equipment sent by IPv4-in-IPv6 tunnel, is specifically as follows:
When receiving the IPv6 message that AFTR equipment is sent by IPv4-in-IPv6 tunnel, the session entry corresponding with described IPv6 message is obtained from described IPv6 conversational list, according to described session entry, the ipv6 header removing described IPv6 message obtains IPv4 message, and described IPv4 message is forwarded to client.
Actually, the IPv6 message that B4 equipment receives from IPv4-in-IPv6 tunnel is the response message of certain IPv6 message of its transmission, the two belongs to same session, IPv6 conversational list can match corresponding session entry, therefore, it can the direct process strategy according to this session entry record process, as previously mentioned, this process strategy is, the ipv6 header removing the IPv6 message received obtains IPv4 message.
Corresponding with said method, the embodiment of the present invention also provides for a kind of B4 equipment, and described B4 equipment may include that
First judge module, when being used for the IPv4 message receiving client transmission, it is judged that whether there is the session entry corresponding with this IPv4 message in IPv4 conversational list, obtain the first judged result;
First processing module, for when described first judged result is for being, according to described session entry, described IPv4 message is increased ipv6 header and obtains IPv6 message, described IPv6 message is sent to AFTR equipment by the IPv4-in-IPv6 tunnel in IPv6 network;
Second processing module, for when described first judged result is no, IPv6 address according to B4 equipment and AFTR equipment, described IPv4 message is increased ipv6 header and obtains IPv6 message, described IPv6 message is sent to AFTR equipment by described IPv4-in-IPv6 tunnel, and in IPv4 conversational list, increase the session entry corresponding with described IPv4 message, and, IPv6 conversational list increases the session entry corresponding with described IPv6 message.
Further, described B4 equipment can also include:
3rd processing module, during for receiving IPv6 message that AFTR equipment is sent by IPv4-in-IPv6 tunnel, the session entry corresponding with described IPv6 message is obtained from described IPv6 conversational list, according to described session entry, the ipv6 header removing described IPv6 message obtains IPv4 message, and described IPv4 message is forwarded to client.
Embodiment 2
Fig. 4 illustrates a kind of method realizing IPv4 message passing through IPv 6 network, and the method is applicable to the network environment shown in Fig. 1. In this network environment, B4 equipment and AFTR equipment all open DS-Lite function, B4 equipment and AFTR equipment and are dual stack device, and setting up between B4 equipment and AFTR equipment has DS-Lite tunnel, i.e. IPv4-in-IPv6 tunnel. Regulation according to DS-Lite relevant criterion or specification, when opening DS-Lite function, on B4 equipment, it is necessary to the address (obtaining the IPv6 address of AFTR also by DHCPv6 option) etc. of configuration interface, the IPv4 address of B4 equipment and AFTR equipment; On AFTR equipment, it is necessary to the configuration IPv6 address of AFTR, private network IPv4 address and public network IP v4 address etc. The configuration of B4 equipment and AFTR equipment is specifically referred to DS-Lite relevant criterion or specification.
Method shown in Fig. 4 is applied on AFTR equipment, and with reference to Fig. 4, described method may include steps of:
Step 401, receives the IPv6 message that B4 equipment is sent by the IPv4-in-IPv6 tunnel in IPv6 network;
Step 402, it is judged that whether there is the session entry corresponding with this IPv6 message in IPv6 conversational list, if so, enters step 404, otherwise, enters step 403;
From DS-Lite tunnel (IPv4-in-IPv6 tunnel) receive IPv6 message time, five-tuple information according to IPv6 message is mated with IPv6 conversational list, the match is successful, then according to the process strategy in the session entry matched, this IPv6 message is processed, it fails to match, after then this IPv6 message being processed according to predetermined policy, IPv6 conversational list increases corresponding list item.
On AFTR equipment, storage has IPv4 conversational list and IPv6 conversational list, and described IPv4 conversational list generates according to IPv4 message, and the content of list item is five-tuple information and the process strategy to IPv4 message of IPv4 message; Described IPv6 conversational list generates according to IPv6 message, and the content of list item is five-tuple information and the process strategy to IPv6 message of IPv6 message. Concrete foundation of IPv4 conversational list and IPv6 conversational list refers to subsequent step with update method.
Step 403, the ipv6 header removing described IPv6 message obtains IPv4 message, forward after described IPv4 message is carried out source address conversion, and in IPv6 conversational list, increase the session entry corresponding with described IPv6 message, and, IPv4 conversational list increases the session entry that the IPv4 message after changing with source address is corresponding;
When it fails to match, according to predetermined policy, this IPv6 message is processed, this predetermined policy can be, if it find that the IPv6 address that the destination address of this IPv6 message is this AFTR equipment, and this IPv6 message is IPv4-in-IPv6 message, then determine that this IPv6 message is carried out decapsulation and obtains IPv4 message by needs, i.e. need to remove the ipv6 header of the IPv6 message received; Further, before the IPv4 message that decapsulation is obtained forwards, also carry out source NAT, be converted to publicly-owned IPv4 address by privately owned IPv4 address, source.
Then, it is necessary in IPv4 conversational list and IPv6 conversational list, increase session entry. Specifically, for IPv6 conversational list, increasing a list item wherein, the content of this list item is five-tuple information and the process strategy to IPv6 message of IPv6 message, and this process strategy is it may be that remove the ipv6 header of the IPv6 message received. For IPv4 conversational list, increase a list item wherein, the content of this list item is the five-tuple information of IPv4 message after source address conversion and process strategy to IPv4 message, this process strategy can be, the IPv4 message received is carried out IPv6 encapsulation, and the IPv6 address that source address is AFTR equipment to the ipv6 header that described IPv4 message increases, destination address is the IPv6 address of B4 equipment.
Step 404, according to described session entry, the ipv6 header removing described IPv6 message obtains IPv4 message, forwards after described IPv4 message is carried out source address conversion.
When the match is successful, according to the session entry matched, obtain the process strategy to IPv6 message, particularly as follows: the IPv6 message received is decapsulated, namely remove the ipv6 header of described IPv6 message, obtain IPv4 message, and the source address of IPv4 message is changed.
It is above handling process when AFTR equipment receives the IPv6 message that B4 equipment sent by IPv4-in-IPv6 tunnel. AFTR equipment introduced below from IPv4 network receive IPv4 message time handling process, be specifically as follows:
When receiving IPv4 message, the session entry corresponding with described IPv4 message is obtained from described IPv4 conversational list, according to described session entry, described IPv4 message is carried out destination address conversion and increases ipv6 header and obtain IPv6 message, described IPv6 message is sent to B4 equipment by IPv4-in-IPv6 tunnel.
Actually, AFTR equipment is the response message of certain IPv4 message of its transmission from the IPv4 message that IPv4 network receives, the two belongs to same session, IPv4 conversational list can match corresponding session entry, therefore, can directly process strategy according to this session entry record process, as previously mentioned, this process strategy is, after the IPv4 message received is carried out destination address conversion, carrying out IPv6 encapsulation and the IPv6 address that source address is AFTR equipment to the ipv6 header that described IPv4 message increases, destination address is the IPv6 address of B4 equipment.
Corresponding with said method, the embodiment of the present invention also provides for a kind of AFTR equipment, and described AFTR equipment may include that
Second judge module, during for receiving B4 equipment by the IPv6 message of the IPv4-in-IPv6 tunnel transmission in IPv6 network, it is judged that whether there is the session entry corresponding with this IPv6 message in IPv6 conversational list, obtain the second judged result;
Fourth processing module, for when described second judged result is for being, according to described session entry, the ipv6 header removing described IPv6 message obtains IPv4 message, forwards after described IPv4 message is carried out source address conversion;
5th processing module, for when described second judged result is no, the ipv6 header removing described IPv6 message obtains IPv4 message, forward after described IPv4 message is carried out source address conversion, and in IPv6 conversational list, increase the session entry corresponding with described IPv6 message, and, IPv4 conversational list increases the session entry that the IPv4 message after changing with source address is corresponding.
Further, described AFTR equipment can also include:
6th processing module, during for receiving IPv4 message, the session entry corresponding with described IPv4 message is obtained from described IPv4 conversational list, according to described session entry, described IPv4 message is carried out destination address conversion and increases ipv6 header and obtain IPv6 message, described IPv6 message is sent to B4 equipment by IPv4-in-IPv6 tunnel.
In sum, the present invention is to rely on session and carrys out matching strategy, simultaneously for turning offer list item soon. After the success of message matching strategy, message afterwards will walk fast turning according to session entry, and performance is higher, and speed is faster.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all within the spirit and principles in the present invention, any amendment of making, equivalent replacement, improvement etc., should be included within the scope of protection of the invention.

Claims (8)

1. the method realizing IPv4 message passing through IPv 6 network, it is applied to substantially bridge on the B4 equipment of broadband, it is characterized in that, described B4 opening of device dual stack DS-Lite function, described B4 device storage has IPv4 conversational list and IPv6 conversational list, described IPv4 conversational list generates according to IPv4 message, and the content of list item is five-tuple information and the process strategy to IPv4 message of IPv4 message; Described IPv6 conversational list generates according to IPv6 message, and the content of list item is five-tuple information and the process strategy to IPv6 message of IPv6 message, and described method includes:
When receiving the IPv4 message that client sends, it is judged that whether IPv4 conversational list exists the session entry corresponding with this IPv4 message, obtains the first judged result;
When described first judged result is for being, the process strategy to IPv4 message is obtained according to described session entry, and described IPv4 message increase ipv6 header is obtained IPv6 message, described IPv6 message is sent to address race transient router AFTR equipment by the IPv4-in-IPv6 tunnel in IPv6 network; The described strategy that processes to IPv4 message is that the IPv4 message received carries out IPv6 encapsulation and the IPv6 address that source address is B4 equipment to the ipv6 header that described IPv4 message increases, and destination address is the IPv6 address of AFTR equipment;
When described first judged result is no, according to predetermined policy, and the IPv6 address according to B4 equipment and AFTR equipment, described IPv4 message is increased ipv6 header and obtains IPv6 message, described IPv6 message is sent to AFTR equipment by described IPv4-in-IPv6 tunnel, and in IPv4 conversational list, increase the session entry corresponding with described IPv4 message, and, IPv6 conversational list increases the session entry corresponding with described IPv6 message;Described predetermined policy for carrying out IPv6 encapsulation to this IPv4 message, and is sent by IPv4-in-IPv6 tunnel, and wherein, the IPv6 address that source address is B4 equipment to the ipv6 header that described IPv4 message increases, destination address is the IPv6 address of AFTR equipment.
2. the method for claim 1, it is characterised in that also include:
When receiving the IPv6 message that AFTR equipment is sent by IPv4-in-IPv6 tunnel, the session entry corresponding with described IPv6 message is obtained from described IPv6 conversational list, according to described session entry, the ipv6 header removing described IPv6 message obtains IPv4 message, and described IPv4 message is forwarded to client.
3. the method realizing IPv4 message passing through IPv 6 network, it is applied on address race transient router AFTR equipment, it is characterized in that, described AFTR opening of device dual stack DS-Lite function, and storage has IPv4 conversational list and IPv6 conversational list, described IPv4 conversational list generates according to IPv4 message, and the content of list item is five-tuple information and the process strategy to IPv4 message of IPv4 message; Described IPv6 conversational list generates according to IPv6 message, and the content of list item is five-tuple information and the process strategy to IPv6 message of IPv6 message, and described method includes:
When receiving the IPv6 message that basic bridge joint broadband B4 equipment is sent by the IPv4-in-IPv6 tunnel in IPv6 network, it is judged that whether IPv6 conversational list exists the session entry corresponding with this IPv6 message, obtains the second judged result;
When described second judged result is for being, obtain the process strategy to IPv6 message according to described session entry, and the ipv6 header removing described IPv6 message obtains IPv4 message, forwards after described IPv4 message is carried out source address conversion; Described that processing of IPv6 message is tactful in the IPv6 message received to be decapsulated, namely remove the ipv6 header of described IPv6 message, obtain IPv4 message, and the source address of IPv4 message is changed;
When described second judged result is no, according to predetermined policy, the ipv6 header removing described IPv6 message obtains IPv4 message, forward after described IPv4 message is carried out source address conversion, and in IPv6 conversational list, increase the session entry corresponding with described IPv6 message, and, IPv4 conversational list increases the session entry that the IPv4 message after changing with source address is corresponding; Described predetermined policy is if it find that the IPv6 address that destination address is this AFTR equipment of this IPv6 message, and this IPv6 message is IPv4-in-IPv6 message, then determine that this IPv6 message is carried out decapsulation and obtains IPv4 message by needs, that is, it needs to remove the ipv6 header of the IPv6 message received; Further, before the IPv4 message that decapsulation is obtained forwards, also carry out source NAT, be converted to publicly-owned IPv4 address by privately owned IPv4 address, source.
4. method as claimed in claim 3, it is characterised in that also include:
When receiving IPv4 message, the session entry corresponding with described IPv4 message is obtained from described IPv4 conversational list, according to described session entry, described IPv4 message is carried out destination address conversion and increases ipv6 header and obtain IPv6 message, described IPv6 message is sent to B4 equipment by IPv4-in-IPv6 tunnel.
5. a basic bridge joint broadband B4 equipment, it is characterized in that, described B4 opening of device dual stack DS-Lite function, and storage has IPv4 conversational list and IPv6 conversational list, described IPv4 conversational list generates according to IPv4 message, and the content of list item is five-tuple information and the process strategy to IPv4 message of IPv4 message;Described IPv6 conversational list generates according to IPv6 message, and the content of list item is five-tuple information and the process strategy to IPv6 message of IPv6 message, including:
First judge module, when being used for the IPv4 message receiving client transmission, it is judged that whether there is the session entry corresponding with this IPv4 message in IPv4 conversational list, obtain the first judged result;
First processing module, for when described first judged result is for being, the process strategy to IPv4 message is obtained according to described session entry, and described IPv4 message increase ipv6 header is obtained IPv6 message, described IPv6 message is sent to address race transient router AFTR equipment by the IPv4-in-IPv6 tunnel in IPv6 network; The described strategy that processes to IPv4 message is that the IPv4 message received carries out IPv6 encapsulation and the IPv6 address that source address is B4 equipment to the ipv6 header that described IPv4 message increases, and destination address is the IPv6 address of AFTR equipment;
Second processing module, for when described first judged result is no, according to predetermined policy, and the IPv6 address according to B4 equipment and AFTR equipment, described IPv4 message is increased ipv6 header and obtains IPv6 message, described IPv6 message is sent to AFTR equipment by described IPv4-in-IPv6 tunnel, and in IPv4 conversational list, increases the session entry corresponding with described IPv4 message, and, IPv6 conversational list increases the session entry corresponding with described IPv6 message; Described predetermined policy for carrying out IPv6 encapsulation to this IPv4 message, and is sent by IPv4-in-IPv6 tunnel, and wherein, the IPv6 address that source address is B4 equipment to the ipv6 header that described IPv4 message increases, destination address is the IPv6 address of AFTR equipment.
6. B4 equipment as claimed in claim 5, it is characterised in that also include:
3rd processing module, during for receiving IPv6 message that AFTR equipment is sent by IPv4-in-IPv6 tunnel, the session entry corresponding with described IPv6 message is obtained from described IPv6 conversational list, according to described session entry, the ipv6 header removing described IPv6 message obtains IPv4 message, and described IPv4 message is forwarded to client.
7. an address race transient router AFTR equipment, it is characterized in that, described AFTR opening of device dual stack DS-Lite function, and storage has IPv4 conversational list and IPv6 conversational list, described IPv4 conversational list generates according to IPv4 message, and the content of list item is five-tuple information and the process strategy to IPv4 message of IPv4 message; Described IPv6 conversational list generates according to IPv6 message, and the content of list item is five-tuple information and the process strategy to IPv6 message of IPv6 message, including:
Second judge module, during for receiving basic bridge joint broadband B4 equipment by the IPv6 message of the IPv4-in-IPv6 tunnel transmission in IPv6 network, it is judged that whether there is the session entry corresponding with this IPv6 message in IPv6 conversational list, obtain the second judged result;
Fourth processing module, for when described second judged result is for being, obtain the process strategy to IPv6 message according to described session entry, and the ipv6 header removing described IPv6 message obtains IPv4 message, forwards after described IPv4 message is carried out source address conversion; Described that processing of IPv6 message is tactful in the IPv6 message received to be decapsulated, namely remove the ipv6 header of described IPv6 message, obtain IPv4 message, and the source address of IPv4 message is changed;
5th processing module, for when described second judged result is no, according to predetermined policy, the ipv6 header removing described IPv6 message obtains IPv4 message, forward after described IPv4 message is carried out source address conversion, and in IPv6 conversational list, increase the session entry corresponding with described IPv6 message, and, IPv4 conversational list increases the session entry that the IPv4 message after changing with source address is corresponding; Described predetermined policy is if it find that the IPv6 address that destination address is this AFTR equipment of this IPv6 message, and this IPv6 message is IPv4-in-IPv6 message, then determine that this IPv6 message is carried out decapsulation and obtains IPv4 message by needs, that is, it needs to remove the ipv6 header of the IPv6 message received; Further, before the IPv4 message that decapsulation is obtained forwards, also carry out source NAT, be converted to publicly-owned IPv4 address by privately owned IPv4 address, source.
8. AFTR equipment as claimed in claim 7, it is characterised in that also include:
6th processing module, during for receiving IPv4 message, the session entry corresponding with described IPv4 message is obtained from described IPv4 conversational list, according to described session entry, described IPv4 message is carried out destination address conversion and increases ipv6 header and obtain IPv6 message, described IPv6 message is sent to B4 equipment by IPv4-in-IPv6 tunnel.
CN201210477060.3A 2012-11-20 2012-11-20 A kind of method and apparatus realizing IPv4 message passing through IPv 6 network Active CN102938736B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210477060.3A CN102938736B (en) 2012-11-20 2012-11-20 A kind of method and apparatus realizing IPv4 message passing through IPv 6 network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210477060.3A CN102938736B (en) 2012-11-20 2012-11-20 A kind of method and apparatus realizing IPv4 message passing through IPv 6 network

Publications (2)

Publication Number Publication Date
CN102938736A CN102938736A (en) 2013-02-20
CN102938736B true CN102938736B (en) 2016-06-08

Family

ID=47697606

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210477060.3A Active CN102938736B (en) 2012-11-20 2012-11-20 A kind of method and apparatus realizing IPv4 message passing through IPv 6 network

Country Status (1)

Country Link
CN (1) CN102938736B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103236964B (en) * 2013-05-07 2015-09-16 烽火通信科技股份有限公司 Based on DS-Lite implementation method and the CPE access device thereof of Linux
CN104579970B (en) * 2013-10-29 2018-06-12 国家计算机网络与信息安全管理中心 A kind of strategy matching device of IPv6 messages
CN104717141B (en) * 2013-12-13 2018-02-13 中国电信股份有限公司 Realize the method and system of ICP differentiated service guarantees
CN105282102B (en) * 2014-06-30 2019-03-15 中国电信股份有限公司 Data flow processing method and system and IPv6 data processing equipment
CN104333561A (en) * 2014-11-21 2015-02-04 迈普通信技术股份有限公司 Tunnel certification method and device
CN104486227B (en) * 2014-12-11 2017-10-13 武汉绿色网络信息服务有限责任公司 The system and method for IPv6 flexible deployments is realized by VxLAN technologies
CN105939316A (en) * 2015-10-26 2016-09-14 杭州迪普科技有限公司 Message forwarding method and device
CN106657120A (en) * 2016-12-31 2017-05-10 王旸 WIFI security system architecture
CN111371909B (en) * 2018-12-25 2022-04-26 深圳市中兴微电子技术有限公司 Method and system for realizing 4in6DS Lite data stream forwarding
WO2020132982A1 (en) * 2018-12-26 2020-07-02 华为技术有限公司 Data transmission method and routing device
CN114205334A (en) * 2020-09-02 2022-03-18 艾锐势企业有限责任公司 Method, apparatus, gateway and computer readable medium for routing packets

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1949776A (en) * 2006-11-10 2007-04-18 清华大学 4 over 6 tunnel packing and depacking method for extending boundary gateway protocol
CN101247308A (en) * 2007-02-13 2008-08-20 上海亿人通信终端有限公司 Tunnel packet processing method for implementing IPv6 traversing IPv4 based on network processor
CN102170395A (en) * 2011-04-21 2011-08-31 中兴通讯股份有限公司 Data transmission method and network equipment
CN102546362A (en) * 2010-12-20 2012-07-04 中兴通讯股份有限公司 Message processing method, message processing system and customer premises equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009018658A1 (en) * 2007-08-03 2009-02-12 Hexago Device, system and method for automatic ipv4 provisioning in a local area network connected to an ipv6 network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1949776A (en) * 2006-11-10 2007-04-18 清华大学 4 over 6 tunnel packing and depacking method for extending boundary gateway protocol
CN101247308A (en) * 2007-02-13 2008-08-20 上海亿人通信终端有限公司 Tunnel packet processing method for implementing IPv6 traversing IPv4 based on network processor
CN102546362A (en) * 2010-12-20 2012-07-04 中兴通讯股份有限公司 Message processing method, message processing system and customer premises equipment
CN102170395A (en) * 2011-04-21 2011-08-31 中兴通讯股份有限公司 Data transmission method and network equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
"Dual-Stack Lite Broadband Deployments Following IPv4 Exhaustion";A. Durand 等;《RFC 6333》;20110831;第1-32页 *
"IPv6过渡技术分析于评述";李淼等;《广西大学学报 自然科学版》;20111031;第36卷(第1期);第210-217页 *
"基于路由器的IPv4 over IPv6隧道设计";彭磊等;《2010APCID》;20101201;第121-124页 *

Also Published As

Publication number Publication date
CN102938736A (en) 2013-02-20

Similar Documents

Publication Publication Date Title
CN102938736B (en) A kind of method and apparatus realizing IPv4 message passing through IPv 6 network
CN102970386B (en) A kind of IPv6 of realization message passes through the method and apparatus of IPv4 network
US10476796B2 (en) Packet processing method, and device and system
CN102347993B (en) Network communication method and equipment
US8259571B1 (en) Handling overlapping IP addresses in multi-tenant architecture
CN104869065B (en) Data message processing method and device
US9397940B2 (en) System and method for providing a translation mechanism in a network environment
EP2288083B1 (en) Communication device having VPN accomodation function
US10454880B2 (en) IP packet processing method and apparatus, and network system
CN100372347C (en) 4 over 6 tunnel packing and depacking method for extending boundary gateway protocol
US8798060B1 (en) Converting between tunneling protocols
US9485196B1 (en) Internal packet steering within a wireless access gateway
CN105591873B (en) A kind of virtual machine partition method and device
CN111510513B (en) MAP-E link acceleration method, device, storage medium and network equipment
CN109936492B (en) Method, device and system for transmitting message through tunnel
CN104767666A (en) Virtual extensible local area network tunnel terminal tunnel building method and equipment
CN102546407B (en) File transmitting method and device
CN103957161B (en) A kind of message forwarding method and its device
US20220239629A1 (en) Business service providing method and system, and remote acceleration gateway
CN102014039B (en) Data transmission method and access point
EP2675117A1 (en) Routing method and device for host in multi-homing site
CN103634214A (en) Route information generating method and device
CN105376338A (en) Translation method between IPv4 and IPv6 and device
CN1564542A (en) Tunnel set-up method for carrying out internet of IPV4 network on IPV6 network
CN108282404B (en) Route generation method, device and system

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
CP01 Change in the name or title of a patent holder

Address after: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building

Patentee after: Hangzhou Dipu Polytron Technologies Inc

Address before: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building

Patentee before: Hangzhou Dipu Technology Co., Ltd.

CP01 Change in the name or title of a patent holder