CN101977250B - Tunnel selection method in optimization of visit between hosts under edge network double stack access - Google Patents

Tunnel selection method in optimization of visit between hosts under edge network double stack access Download PDF

Info

Publication number
CN101977250B
CN101977250B CN 201010530944 CN201010530944A CN101977250B CN 101977250 B CN101977250 B CN 101977250B CN 201010530944 CN201010530944 CN 201010530944 CN 201010530944 A CN201010530944 A CN 201010530944A CN 101977250 B CN101977250 B CN 101977250B
Authority
CN
China
Prior art keywords
address
cpe
tunnel
cgn
customer provided
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN 201010530944
Other languages
Chinese (zh)
Other versions
CN101977250A (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.)
Tsinghua University
Original Assignee
Tsinghua University
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 Tsinghua University filed Critical Tsinghua University
Priority to CN 201010530944 priority Critical patent/CN101977250B/en
Publication of CN101977250A publication Critical patent/CN101977250A/en
Application granted granted Critical
Publication of CN101977250B publication Critical patent/CN101977250B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a tunnel selection method in the optimization of visit between hosts under edge network double stack access, belonging to the field of the Internet technology. The tunnel selection method is characterized in that a tunnel selection mechanism is added to a consultation mechanism between client access equipment CPE and a network address decoder CGN, which is introduced under edge network double stack access; under the condition that all the CPEs support the tunnel mechanism in 2-3 and the CGN feeds back CGN tunnel information to each CPE according to the IPv6 address of each CPE, tunnel types supported by the CPEs and the priority grade thereof, the CGN is used for maintaining the tunnel types and other information under the edge network double stack access, and after being confirmed by the CGN, and tunnels used in the tunnel consultation mechanism are sent to the CPE used as source terminals. By the invention, the problem how to select a more proper tunnel type to carry out tunnel transmission when various tunnel mechanisms coexist can be solved, thereby better supporting the diversity of network application.

Description

Tunnel selecting method during visit between hosts under edge network double stack access is optimized
Technical field
Tunnel selecting method in the visit between hosts under edge network double stack access optimization belongs to Internet technical field, is a kind of tunnel transition technology.
Background technology
Along with the fast development of IPv6 technology, progressively maturation and extensive use, the IPv6 network size progressively enlarges, yet a large amount of internet, applications and service still are only applicable to the IPv4 network.It is a long-term and difficult task that these application and service are transplanted from IPv4 to the IPv6 network, and therefore, IPv4 and IPv6 network are with long-term co-existence, and the transition of its IPv4/v6 will have chronicity and complexity.In the network of IPv4/IPv6 interconnection, there are some IPv6 edge networks, its incoming end is the IPv4 private network.
The two stack accesses of edge network are a kind of tunnel transition technology, and it has realized private ip v4 network or main frame passing through IPv 6 Access Network access IPv4Internet.As shown in Figure 1, the grouping of mailing to IPv4Internet from private ip v4 networks/hosts at first encapsulates ipv6 header at CPE, and source IPv6 address is the IPv6 address of CPE, and destination IPv6 address is the IPv6 address of CGN.By arriving Carri er Grade NAT (CGN) behind the IPv4-over-IPv6 tunnel, the CGN decapsulation of will dividing into groups, according to CPE IPv6 address+source private ip v4 address+interface querying NAT mapping table whether corresponding option is arranged, if not finding then, CGN distributes a publicly-owned IPv4 address and port to set up list item, if it is publicly-owned to find source private ip v4 address in then directly will dividing into groups and port to change into, then IPv4Internet is mail in grouping.
The two stack access technologies of edge network can better coordinate to dispose the required cost of IPv6 and interests.Broadband service provider uses the two stack access technologies of edge network in conjunction with two kinds of technology of knowing: IP in IP (IPv4-in-IPv6) and NAT, share I Pv4 address has good development prospect between the client.
Prior art related to the present invention (the visit between hosts under edge network double stack access prioritization scheme that Huawei Company proposes)
This scheme is the machinery of consultation between the lower CPE of introducing of the two stack accesses of edge network and CGN, to alleviate the burden of network, alleviates simultaneously the flow burden of CGN.The two stacks access of edge network as shown in Figure 1 scene, CPE1 and CPE2 register to CGN, show that they support this prioritization scheme.CGN receives the state information of preserving CPE1 and CPE2 after the information.Main frame H1 sends grouping to H2, and this grouping at first arrives CPE1, and then the tunnel by CPE1 and CGN mails to CGN; After CGN receives grouping, decapsulation is carried out in grouping, the log-on message according to CPE2 encapsulates again, and the grouping after the encapsulation is mail to CPE2 by the tunnel of CGN and CPE2.After CPE2 received grouping from CGN, directly then decapsulation mail to grouping local private ip v4 network.Simultaneously, CGN gets through tunnel between CPE, make the grouping of mailing to H2 can be directly by mailing to CPE2 after the CPE1 encapsulation, local private ip v4 network was mail in decapsulation after CPE2 received grouping.
This technology existent defect: application has diversity in the network, every kind of tunnel type all has pluses and minuses separately, the scope of application is separately arranged, this just requires CPE to support multiple tunnel (such as GRE, L2Tpv3, IP-in-IP, LDP-based MPLS etc.), and can only connect by a fixing tunnel type between this scheme CPE; And CPE also has diversity in the network, and the tunnel type of supporting is also all different, so this technical scheme has limitation.
Summary of the invention
The present invention increases a tunnel selecting method on the basis of existing scheme.Giving tacit consent to all CPE all is to support 2-3 kind tunneling mechanism.If the tunnel type that 2 CPE that connect support does not have identical, then CPE1 by the tunnel between CPE1 and the CGN to the CGN the transmission of data, the type in this tunnel is when being registered to CGN by CPE, the tunnel type information that CGN returns to CPE determines, then sends the data to CPE2 by CGN by the tunnel between CGN and the CPE2; If more than one common tunneling mechanisms of supporting are arranged, then according to the selected tunnel type of tunnel priority (priority with CPE1 is as the criterion), carry out transfer of data (this is the main part of this programme) by selected tunnel again.
Method characteristic of the present invention is: be by the main frame of two exchanging visits, with the main frame of described two exchanging visits respectively corresponding IPv6 netter family access device CPE, IPv6 net, with described two customer provided equipment CPE successively according to the following steps realization in the network address decoder CGN of the telecommunications grade that described IPv6 net links to each other and the network environment that the IPv4 net consists of.
Step (1), to the network address decoder CGN registration of described telecommunications grade, its step is as follows respectively for the first customer provided equipment CPE (1) and the second customer provided equipment CPE (2):
Step (1.1), described the first customer provided equipment CPE (1) and the second customer provided equipment CPE (2) send respectively the information of the priority Tunnel DPI that comprises that the tunnel type Tunnel Type that supports and this type are corresponding to the network address decoder CGN of described telecommunications grade, express support for path optimization;
Step (1.2), the network address decoder CGN of described telecommunications grade is after receiving the information described in the step (1.1), comprise CPE IPv6Address, priority corresponding to CPE tunnel type and CPE tunnel extracted are kept in the powers and functions Capability table, simultaneously selected described two customer provided equipments separately with the network address decoder CGN of described telecommunications grade between CGN tunnel type information and corresponding CPE address information send to described two customer provided equipment CPE;
Step (1.3) after described two customer provided equipment reception information, is upgraded the forwarding Forward table of oneself;
Step (2), the first main frame (H1) sends the grouping of leading to the second main frame (H2) to described the first customer provided equipment CPE (1), source address is the private ip v4 address of described the first main frame (H1), and the destination address is the publicly-owned IPv4 address of described the second main frame (H2);
Step (3), after the grouping described in the step (2) arrives described the first customer provided equipment CPE (1), described grouping is mail to the network address decoder CGN of described telecommunications grade by default route, first IPv6 head on the described packet encapsulation, take the IPv6 address of described the first customer provided equipment as source address, take the IPv6 address of the network address decoder CGN of described telecommunications grade as the destination address, again according to tunnel corresponding to described CGN tunnel type, the network address decoder CGN that mails to described telecommunications grade after the described packet encapsulation;
Step (4), after the network address decoder CGN of described telecommunications grade receives the grouping that step (3) sends, described grouping decapsulation is changed described source private address and port into publicly-owned address and port according to the local address mapping table that the network address translation of reserving is used again; The publicly-owned address of destination and port change private ip v4 address into and port encapsulates the IPv6 head again, take the IPv6 address of the network address decoder CGN of described telecommunications grade as source address, take the IPv6 address of described the second customer provided equipment CPE (2) as the destination address, according to by tunnel corresponding to CGN tunnel type that the network address decoder CGN of described telecommunications grade sends this grouping being encapsulated in when registration at described the second customer provided equipment CPE (2), then mail to described the second customer provided equipment CPE (2) again;
Step (5), after described the second customer provided equipment is received in the step (4) grouping that the network address decoder CGN from described telecommunications grade sends, directly decapsulation, again according to the private ip v4 address of the second main frame (H2) in the packet header, grouping by local described the second main frame of private ip v4 network destined (H2);
Step (6), in execution in step (4), if have all support path prioritization schemes of described two customer provided equipments in the table of the powers and functions Capability among the network address decoder CGN of described telecommunications grade, and jointly support a kind of tunnel type, and for described the first customer provided equipment CPE (1), there are not other common tunnel types of supporting to have higher priority than the tunnel type of described common support, then the network address decoder CGN of described telecommunications grade accesses blame CPE (1) to the first client as source and sends the tunnel information of getting through between described two customer provided equipments: comprise CPE (2) IPv6 address, CPE (2) tunnel type is in interior forwarding tunnel information.Be used for upgrading described forwarding forward table as the first customer provided equipment CPE (1) of source, send the forwarding of described the first customer provided equipment CPE (1) of arrival with the information of arriving to the second customer provided equipment CPE (2) as destination simultaneously, comprising: the publicly-owned address of IPv4 of described the first main frame (H1), the tunnel type of CPE (1) IPv6 address and CPE (1) is used for described the second customer provided equipment CPE (2) and upgrades forwarding forward table;
Step (7) is when execution in step (2), if the local Forward table of transmitting of described the first customer provided equipment CPE (1) inquiry, find that the publicly-owned address of purpose and port have the IPv6 address of corresponding CPE (2), and the tunnel type of leading to described the second customer provided equipment CPE (2) of having an agreement is carried out data and is transmitted, according to the local address mapping table private ip v4 address and the port of the grouping that will send out are changed into publicly-owned address and port again, be described packet encapsulation IPv6 head again, take the IPv6 address of described the second customer provided equipment CPE (2) as destination address, according to a preconcerted arrangement the tunnel type that mails to CPE (2) is carried out tunnel encapsulation to described grouping again, transmits again;
Step (8), after described the second customer provided equipment CPE (2) receives grouping from the first customer provided equipment CPE (1) described in the step (7), decapsulation, destination address and the port of encouraging described grouping according to the local address mapping table again change private address and port into, mail to local IPv4 network.
Have diversified application in the network, each application is applicable to dissimilar tunneling mechanism, such as GRE, L2Tpv3, IP-in-IP, LDP-based MPLS etc.In order to support better various application, require whole network can support multiple tunneling mechanism, and can spontaneously select optimized tunneling mechanism to carry out transfer of data.This programme has solved multiple tunneling mechanism and has deposited, and the tunnel type that How to choose is more suitable for is carried out the problem of transfer of data, has supported better the diversity of network application.
Description of drawings
Fig. 1. the scene topological diagram of the two stack accesses of edge network;
Fig. 2. the graph of a relation of each node in the tunnel selecting method during visit between hosts under edge network double stack access is optimized;
Fig. 3. the schematic diagram of the data packet transmission in the tunnel selecting method during visit between hosts under edge network double stack access is optimized;
Fig. 4. the flow chart of the tunnel selecting method data packet transmission during visit between hosts under edge network double stack access is optimized;
Fig. 5. the flow chart of data packet transmission in the case study on implementation.
Embodiment
CPE registers to CGN, and CGN obtains the tunnel information of CPE1 and CPE2, generates the capability table, replys simultaneously forward information to CPE1, makes it to upgrade the forward table; The return address assignment information makes it to upgrade the local address mapping table, such as Fig. 5 to CPE.The main frame H1 that when private ip v4 address is 192.168.1.2 is that the main frame H2 of 166.111.8.56 (this address is to be distributed by DHCPv6 corresponding to CGN) sends data to publicly-owned IPv4 address, and data envelope sends to CPE1 (IPv6 address: 1:0:0:0:0:0:0:1) after loading onto destination and source address information.CPE1 searches forward table (non-shaded portion, dash area is the information of upgrading after the next step), according to transmitting the forward table packet is encapsulated, in the encapsulation behind source and destination IPv6 address (CPE1 and CGN address) and the port, the upper GRE header of encapsulation sends to CGN again, such as Fig. 5.CGN receives wrapper, and forward table is searched in decapsulation, encapsulates, is transmitted to CPE2, after the CPE2 decapsulation, search the local address mapping table after, source and destination address information send to H2 in the encapsulation.When CGN transmits bag, search the Capability table, determine tunnel type used between CPE1 and the CPE2 after, this forward information is sent to CPE1 and CPE2, make it to upgrade the forward table, i.e. dash area among Fig. 5.
When next one bag process CPE1, CPE1 inquiry forward table, the bag that discovery is dealt into H2 can directly send to CPE2, and available gre tunneling encapsulates, CPE1 first changes source address and the port of packet into the publicly-owned address of H1 and port according to the local address mapping table, again data envelope is loaded onto source and destination IPv6 address (being the IPv6 address of CPE1 and CPE2), again behind the upper GRE heading of encapsulation, send to CPE2 by gre tunneling, CPE2 carries out the GRE decapsulation after receiving, and searches the local address mapping table again, information according to table, data envelope is loaded onto source and destination IPv4 address, be transmitted to H2, such as Fig. 5.

Claims (1)

1. the tunnel selecting method during visit between hosts under edge network double stack access is optimized is characterized in that: be by the main frame of two exchanging visits, with the main frame of described two exchanging visits respectively corresponding IPv6 netter family access device CPE, IPv6 net, with described two customer provided equipment CPE successively according to the following steps realization in the network address decoder CGN of the telecommunications grade that described IPv6 net links to each other and the network environment that the IPv4 net consists of:
Step (1), to the network address decoder CGN registration of described telecommunications grade, its step is as follows respectively for the first customer provided equipment CPE (1) and the second customer provided equipment CPE (2):
Step (1.1), described the first customer provided equipment CPE (1) and the second customer provided equipment CPE (2) send respectively the information of the priority Tunnel DPI that comprises that the tunnel type Tunnel Type that supports and this type are corresponding to the network address decoder CGN of described telecommunications grade, express support for path optimization;
Step (1.2), the network address decoder CGN of described telecommunications grade is after receiving the information described in the step (1.1), comprise CPE IPv6Address, priority corresponding to CPE tunnel type and CPE tunnel extracted are kept in the powers and functions Capability table, simultaneously selected described two customer provided equipments separately with the network address decoder CGN of described telecommunications grade between CGN tunnel type information and corresponding CPE address information send to described two customer provided equipment CPE;
Step (1.3) after described two customer provided equipment reception information, is upgraded the forwarding Forward table of oneself;
Step (2), the first main frame (H1) sends the grouping of leading to the second main frame (H2) to described the first customer provided equipment CPE (1), source address is the private ip v4 address of described the first main frame (H1), and the destination address is the publicly-owned IPv4 address of described the second main frame (H2);
Step (3), after the grouping described in the step (2) arrives described the first customer provided equipment CPE (1), described grouping is mail to the network address decoder CGN of described telecommunications grade by default route, first IPv6 head on the described packet encapsulation, take the IPv6 address of described the first customer provided equipment as source address, take the IPv6 address of the network address decoder CGN of described telecommunications grade as the destination address, again according to tunnel corresponding to described CGN tunnel type, the network address decoder CGN that mails to described telecommunications grade after the described packet encapsulation;
Step (4), after the network address decoder CGN of described telecommunications grade receives the grouping that step (3) sends, described grouping decapsulation is changed described source private address and port into publicly-owned address and port according to the local address mapping table that the network address translation of reserving is used again; The publicly-owned address of destination and port change private ip v4 address into and port encapsulates the IPv6 head again, take the IPv6 address of the network address decoder CGN of described telecommunications grade as source address, take the IPv6 address of described the second customer provided equipment CPE (2) as the destination address, according to by tunnel corresponding to CGN tunnel type that the network address decoder CGN of described telecommunications grade sends this grouping being encapsulated in when registration at described the second customer provided equipment CPE (2), then mail to described the second customer provided equipment CPE (2) again;
Step (5), after described the second customer provided equipment is received in the step (4) grouping that the network address decoder CGN from described telecommunications grade sends, directly decapsulation, again according to the private ip v4 address of the second main frame (H2) in the packet header, grouping by local described the second main frame of private ip v4 network destined (H2);
Step (6), in execution in step (4), if have all support path prioritization schemes of described two customer provided equipments in the table of the powers and functions Capability among the network address decoder CGN of described telecommunications grade, and jointly support a kind of tunnel type, and for described the first customer provided equipment CPE (1), there are not other common tunnel types of supporting to have higher priority than the tunnel type of described common support, then the network address decoder CGN of described telecommunications grade sends the tunnel information of getting through between described two customer provided equipments to the first customer provided equipment CPE (1) as source: comprise CPE (2) IPv6 address, CPE (2) tunnel type is in interior forwarding tunnel information, be used for upgrading described forwarding forward table as the first customer provided equipment CPE (1) of source, send the forwarding tunnel information that arrives described the first customer provided equipment CPE (1) to the second customer provided equipment CPE (2) as destination simultaneously, comprising: the publicly-owned address of IPv4 of described the first main frame (H1), the tunnel type of CPE (1) IPv6 address and CPE (1) is used for described the second customer provided equipment CPE (2) and upgrades forwarding forward table;
Step (7) is when execution in step (2), if the local Forward table of transmitting of described the first customer provided equipment CPE (1) inquiry, find that the publicly-owned address of purpose and port have the IPv6 address of corresponding CPE (2), and the tunnel type of leading to described the second customer provided equipment CPE (2) of having an agreement is carried out data and is transmitted, according to the local address mapping table private ip v4 address and the port of the grouping that will send out are changed into publicly-owned address and port again, be described packet encapsulation IPv6 head again, take the IPv6 address of described the second customer provided equipment CPE (2) as destination address, according to a preconcerted arrangement the tunnel type that mails to CPE (2) is carried out tunnel encapsulation to described grouping again, transmits again;
Step (8), after described the second customer provided equipment CPE (2) receives grouping from the first customer provided equipment CPE (1) described in the step (7), decapsulation, change destination address and the port of described grouping into private address and port according to the local address mapping table again, mail to local IPv4 network.
CN 201010530944 2010-10-29 2010-10-29 Tunnel selection method in optimization of visit between hosts under edge network double stack access Active CN101977250B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010530944 CN101977250B (en) 2010-10-29 2010-10-29 Tunnel selection method in optimization of visit between hosts under edge network double stack access

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010530944 CN101977250B (en) 2010-10-29 2010-10-29 Tunnel selection method in optimization of visit between hosts under edge network double stack access

Publications (2)

Publication Number Publication Date
CN101977250A CN101977250A (en) 2011-02-16
CN101977250B true CN101977250B (en) 2013-02-27

Family

ID=43577093

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010530944 Active CN101977250B (en) 2010-10-29 2010-10-29 Tunnel selection method in optimization of visit between hosts under edge network double stack access

Country Status (1)

Country Link
CN (1) CN101977250B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012136006A1 (en) * 2011-04-08 2012-10-11 华为技术有限公司 Routing method and device for host in multi-homing site
CN102523312B (en) * 2011-12-02 2014-04-02 清华大学 Method for optimal tunnel selection in 4over6 scene
CN102594933B (en) * 2011-12-20 2015-04-08 华为技术有限公司 Method, device and system for address allocation of public networks
CN103067411B (en) * 2013-01-23 2016-03-30 杭州华三通信技术有限公司 Prevent the DoS attack method and apparatus in DS-Lite networking
CN103532842B (en) * 2013-10-14 2017-10-13 广州供电局有限公司 The high reliability LTE transmission system of distribution network
CN109995640A (en) * 2018-01-03 2019-07-09 中兴通讯股份有限公司 A kind of method, apparatus and system of the interconnection of polymorphic type cascade net
CN114422431B (en) * 2021-12-23 2023-11-28 网络通信与安全紫金山实验室 Network tunnel configuration method, device, computer equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1691665A (en) * 2004-04-21 2005-11-02 华为技术有限公司 A method for implementing communication between IPv4 network and IPv6 network

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1691665A (en) * 2004-04-21 2005-11-02 华为技术有限公司 A method for implementing communication between IPv4 network and IPv6 network

Also Published As

Publication number Publication date
CN101977250A (en) 2011-02-16

Similar Documents

Publication Publication Date Title
CN101977250B (en) Tunnel selection method in optimization of visit between hosts under edge network double stack access
US9008093B2 (en) Stateless protocol translation
CN101695047B (en) Method and switch for realizing forwarding of dynamic tunnel message
CN111682996B (en) Method for forwarding message in network, network node and network system
JP5368459B2 (en) Support for triple operation services in user equipment
US9154993B1 (en) Mobile-IPv6 encapsulation for wireless networks
EP2750329B1 (en) Method and device for sending internet protocol packets
CN102209121A (en) Method and device for intercommunication between Internet protocol version 6 (IPv6) network and Internet protocol version 4 (IPv4) network
CN102055637B (en) Wide band network system and realizing method thereof
CN102792651B (en) At the device of MAC layer application service path Route Selection
CN104935516A (en) Communication system based on software defined network and communication method
US8432877B2 (en) Routing control method and system
CN104683210A (en) Automatic tunnel establishing method and device
WO2011119019A1 (en) Method of communicating signals in 6lowpan network to ipv6 network
CN102045244A (en) IPV4 (Internet Protocol Version 4) network as well as implementation method and system for intercommunicating with new network
CN108259351B (en) Data transmission method suitable for wide-band and narrow-band channel hybrid network
EP2675117A1 (en) Routing method and device for host in multi-homing site
US9049273B2 (en) Selective network transmission
CN102291305A (en) Method and device for implementing 6 to 4 relay routing, and message forwarding method
CN113726653B (en) Message processing method and device
CN102523312B (en) Method for optimal tunnel selection in 4over6 scene
KR100907136B1 (en) Communication device, routing method, and program recording medium
CN101938531A (en) Method, system and device for communicating IPv4 network and IPv6 network
CN109218258B (en) Data packet transmission method and gateway equipment
JP6523987B2 (en) Network connection system and network connection method

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