WO2010099654A1 - IPv4-v6共存方法、网络设备及系统 - Google Patents

IPv4-v6共存方法、网络设备及系统 Download PDF

Info

Publication number
WO2010099654A1
WO2010099654A1 PCT/CN2009/070624 CN2009070624W WO2010099654A1 WO 2010099654 A1 WO2010099654 A1 WO 2010099654A1 CN 2009070624 W CN2009070624 W CN 2009070624W WO 2010099654 A1 WO2010099654 A1 WO 2010099654A1
Authority
WO
WIPO (PCT)
Prior art keywords
data packet
ipv4
downlink
uplink
mobile terminal
Prior art date
Application number
PCT/CN2009/070624
Other languages
English (en)
French (fr)
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 PCT/CN2009/070624 priority Critical patent/WO2010099654A1/zh
Priority to CN200980114473.1A priority patent/CN102282821B/zh
Publication of WO2010099654A1 publication Critical patent/WO2010099654A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/167Adaptation for transition between two IP versions, e.g. between IPv4 and IPv6
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/12Setup of transport tunnels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/04Network layer protocols, e.g. mobile IP [Internet Protocol]
    • H04W80/045Network layer protocols, e.g. mobile IP [Internet Protocol] involving different protocol versions, e.g. MIPv4 and MIPv6

Definitions

  • IPv4-v6 coexistence method network device and system
  • the present invention relates to the field of network communication technologies, and specifically relates to an IPv4 and IPv6 coexistence method, a network device, a node device, and an IPv4-v6 coexistence system.
  • Dual-stack lite Lightweight Dual Stack, DS-lite
  • MIP Mobile IP
  • the IPv4-v6 coexistence method based on DS-lite and MIP (that is, the uplink and downlink packet transmission method of the mobile terminal) is as shown in FIG.
  • the uplink data transmission process of the MS is as described in operations 1-3, and the downlink data transmission process of the MS is as described in operations 4-6.
  • Operation 1 First, in the case that the mobile terminal such as the MS has the DS-lite capability, the DS-lite client (such as the client in the MS, referred to as the Client) finds that the IPv4 data packet needs to be sent, and the client uses the IPv4 data packet.
  • the source address is set to a well-known IPv4 address that does not have a routing meaning, and the destination address is set to the IPv4 address of the communication peer (CN).
  • the well-known IPv4 addresses described above can be shared by clients in all MSs.
  • the MS sends the above IPv4 data packet, and the DS-lite proxy of the MS (located in the access network to which the MS is connected, which may be referred to as Proxy) receives the IPv4 data packet.
  • Proxy the DS-lite proxy of the MS
  • the client/proxy encapsulates the IPv4 data packet into an IPv4 over IPv6 tunnel.
  • the source address of the encapsulated data packet is HoA6 (home address based on IPv6) of the MS, and the destination address is Carrier Grade Network Address Translation. Network Address Translation, CGN) The IPv6 address of the device.
  • Client/Proxy encapsulates the encapsulated data packet in MIPv6, and the source address of the MIPv6 encapsulation is MS CoA6 (based on
  • the IPv6 care-of address is the IPv6 address of the home agent HA.
  • Client/Proxy sends the encapsulated upstream packet twice.
  • the HA After receiving the uplink data packet sent by the client/Proxy, the HA strips the outermost MIPv6 encapsulation and sends the inner layer nested IPv4 over IPv6 tunnel-based uplink data packet to the CGN.
  • Operation 3 After receiving the uplink data packet sent by the HA, the CGN strips the outer IPv4 over IPv6 tunnel encapsulation, and performs IPv4 to IPv4 NAT conversion on the inner layer IPv4 data packet.
  • the source address of the converted IPv4 data packet is A publicly routable IPv4 address, the routable IPv4 address is selected from an IPv4 address pool in the network where the CGN is located; after that, the CGN stores or updates the mapping relationship between the addresses, and sends the converted IPv4 data packet, This IPv4 packet will be routed to the CN.
  • the above mapping relationship is a correspondence between a well-known IPv4 address, HoA6 of the MS, and a public IPv4 address after the conversion.
  • Operation 4 The CGN receives the downlink IPv4 data packet sent by the CN, and the CGN searches for the matching record in the stored mapping relationship according to the destination IPv4 address of the downlink IPv4 data packet, and performs IPv4 to IPv4 NAT on the downlink IPv4 data packet according to the search result.
  • the source address of the downstream IPv4 packet processed by the NAT is the IPv4 address of the CN, and the destination address is a well-known IPv4 address.
  • the CGN performs downlink tunnel encapsulation and encapsulation of the downlink IPv4 data packet after the NAT at the IPv4 over IPv6 tunnel interface.
  • the source address of the outer tunnel of the downlink packet is the IPv6 address of the CGN device, and the destination address is HoA6 of the MS.
  • the CGN sends the encapsulated data packet. send out.
  • Operation 5 The HA intercepts the data packet sent by the CGN, and searches for the CoA6 address of the MS according to the destination address of the data packet in the cache binding relationship, and performs MIPv6 encapsulation.
  • the source address of the MIPv6 encapsulated data packet is the IPv6 of the HA. Address, the destination address is the CoA6 of the MS.
  • the HA sends the downlink packet after MIPv6 encapsulation.
  • the client/Proxy receives the downlink data packet sent by the HA, and decapsulates the MIPv6 tunnel and encapsulates the IPv4 over IPv6 tunnel to obtain the downlink IPv4 data packet.
  • the Proxy In Proxy mode, the Proxy also needs to send the IPv4 packet to the MS.
  • the inventor has found that: in the above uplink and downlink IPv4 data packet transmission process, both the node device and the network side need to perform two tunnel encapsulation and decapsulation operations, and the two tunnel encapsulation and decapsulation operations are added.
  • the overhead of the node device (that is, the client/proxy) makes the protocol stack of the node device complex (the protocol stack of the node device is as shown in Figure 3).
  • the node device needs to have both the IPv4 over IPv6 tunnel interface and the MIPv6 tunnel interface, The node device structure is complex.
  • the data packet transmitted between the node device and the HA is a packet with a two-layer tunnel encapsulation header added.
  • the encapsulation header occupies the transmission resource between the node device and the HA, resulting in waste of transmission resources.
  • the embodiments of the present invention provide an IPv4-v6 coexistence method, a network device, and a system, and directly encapsulate and transmit an IPv4 data packet by MIP6, thereby reducing the complexity of the node device structure and saving transmission resources.
  • the IPv4-v6 coexistence method provided by the embodiment of the present invention includes:
  • the uplink IPv4 data packet obtained after the decapsulation of the uplink data packet is subjected to network address translation processing, and the uplink IPv4 data packet after the network address translation processing is sent to the communication peer end of the mobile terminal;
  • the mobile IPv6 tunnel encapsulation header that carries the mobile IPv6 tunnel encapsulation directly carries the indication information, and sends the downlink data packet encapsulated by the mobile IPv6 tunnel to the mobile terminal.
  • Another IPW-V6 coexistence method provided by an embodiment of the present invention includes:
  • the uplink data packet is a data packet directly encapsulated by the mobile IPv6 tunnel for the uplink IPv4 data packet.
  • a downlink data packet sent by the CGN function module where the downlink data packet is: the CGN function module performs network address translation and IPv4 over IPv6 on the downlink IPv4 data packet sent by the communication peer end.
  • Another IPv4-v6 coexistence method provided by the embodiments of the present invention includes:
  • the mobile terminal or the mobile terminal's proxy directly performs the mobile IPv6 tunnel encapsulation by the uplink IPv4 data packet to be sent, and carries the data packet indicating that the data packet is directly for mobile IPv6 tunnel encapsulation of the IPv4 data packet in the mobile IPv6 tunnel encapsulation header. And transmitting the uplink data packet encapsulated by the mobile IPv6 tunnel;
  • the mobile data packet is subjected to mobile IPv6 decapsulation processing to obtain the downlink IPv4 data packet.
  • the network device provided by the embodiment of the present invention is applied to a network environment where IPv4-v6 coexists, and the network device includes: a first receiving module, configured to receive a mobile IPv6 tunnel sent by a proxy of the mobile terminal or the mobile terminal.
  • a first determining module configured to determine finger information carried in a mobile IPv6 tunnel encapsulation header of the uplink data packet received by the first receiving module
  • the first coexistence processing module is configured to:
  • the uplink data packet is solved.
  • the uplink IPv4 data packet obtained after encapsulation is subjected to network address translation processing;
  • a first sending module configured to send, to the communication peer end of the mobile terminal, the uplink IPv4 data packet after the network address translation process, and send the downlink data packet to the mobile terminal.
  • the network device includes: a second receiving module, configured to receive a mobile IPv6 based on a mobile terminal or a proxy of the mobile terminal.
  • a second determining module configured to determine indication information carried in a mobile IPv6 tunnel encapsulation header of the uplink data packet received by the second receiving module
  • the second coexistence processing module is configured to:
  • the second determining module determines, according to the indication information, that the uplink data packet is a data packet encapsulated by the mobile IPv6 tunnel directly to the IPv4 data packet, acquiring, for the uplink IPv4 in the uplink data packet, The uplink packet of the data packet based on the IPv4 over IPv6 tunnel encapsulation;
  • the node device includes: an uplink encapsulation module, configured to directly perform uplink IPv4 tunnel encapsulation to be transmitted, and carry the indication in the mobile IPv6 tunnel encapsulation header.
  • the indication information is used to indicate that the uplink data packet is a data packet that is directly encapsulated by the mobile IPv6 tunnel for the IPv4 data packet;
  • a third sending module configured to send, by the network side, the uplink data packet encapsulated by the mobile IPv6 tunnel;
  • a third receiving module configured to receive a downlink data packet
  • the downlink decapsulation module is configured to determine whether the indication information is carried in the mobile IPv6 tunnel encapsulation header of the downlink data packet, decapsulate the downlink data packet, and determine, according to the determination result, that the decapsulated data packet is Downstream IPv4 packets.
  • the IPv4-v6 coexistence system includes:
  • the agent of the mobile terminal is located at the access network side of the mobile terminal, and is configured to directly perform the mobile IPv6 tunnel encapsulation on the uplink IPv4 data packet sent by the mobile terminal, carry the indication information in the mobile IPv6 tunnel encapsulation header, and send the mobile IPv6
  • the downlink data packet is received by the mobile terminal, and after the indication information is carried in the mobile IPv6 tunnel encapsulation header of the downlink data packet, the downlink data packet is decapsulated. Processing, acquiring a downlink IPv4 data packet, and sending the data packet to the mobile terminal;
  • the mobile IPv6 tunnel encapsulation header that carries the mobile IPv6 tunnel encapsulation directly carries the indication information, and sends the downlink data packet encapsulated by the mobile IPv6 tunnel to the proxy of the mobile terminal.
  • IPv4-v6 coexistence system includes:
  • the agent of the mobile terminal is located at the access network side of the mobile terminal, and is configured to directly perform the IPv4 tunneling of the uplink IPv4 data packet sent by the mobile terminal, and carry the indication information in the encapsulated header of the mobile IPv6 tunnel, and send the The uplink data packet encapsulated by the mobile IPv6 tunnel; receiving the downlink data packet of the mobile terminal, and after determining that the mobile IPv6 tunnel encapsulation header of the downlink data packet carries the indication information, performing the downlink data packet Decapsulation processing, obtaining a downlink IPv4 data packet, and transmitting the data packet to the mobile terminal;
  • Home agent function module used to:
  • the uplink data packet of the mobile terminal Receiving, in the uplink of the mobile terminal, the uplink data packet of the mobile terminal, determining, according to the indication information carried in the mobile IPv6 tunnel encapsulation header of the uplink data packet, that the uplink data packet is directly moving IPv6 to the IPv4 data packet. After the data packet encapsulated by the tunnel, the uplink data packet encapsulated by the IPv4 over IPv6 tunnel for the uplink IPv4 data packet in the uplink data packet is obtained, and the uplink data packet encapsulated by the IPv4 over IPv6 tunnel is sent;
  • the information carried in the encapsulation header determines that the downlink data packet is a data packet encapsulated by the IPv4 over IPv6 tunnel for the IPv4 data packet, and obtains a downlink data packet encapsulated by the mobile IPv6 tunnel for the downlink IPv4 data packet, and moves to the mobile device.
  • the terminal sends a -line data packet encapsulated based on the mobile IPv6 tunnel;
  • a CGN function module configured to receive a downlink IPv4 data packet sent by a communication peer end of the mobile terminal, perform network address translation and IPv4 over IPv6 tunnel encapsulation processing on the downlink IPv4 data packet, and send the to the home agent function module
  • the downlink data packet processed by the IPv4 over IPv6 tunnel is encapsulated; the uplink data packet encapsulated by the IPv4 over IPv6 tunnel is sent by the home agent function module, and the IPv4 over IPv6 tunnel decapsulation processing and network address translation are performed on the uplink data packet. Sending the network address translated uplink IPv4 data packet to the communication peer end.
  • IPv4-v6 coexistence system includes:
  • the first network device is configured with a home agent function module, where the first network device is used to:
  • the uplink data packet of the mobile terminal Receiving, in the uplink of the mobile terminal, the uplink data packet of the mobile terminal, determining, according to the indication information carried in the mobile IPv6 tunnel encapsulation header of the uplink data packet, that the uplink data packet is directly moving IPv6 to the IPv4 data packet. After the data packet encapsulated by the tunnel, the uplink data packet encapsulated by the IPv4 over IPv6 tunnel for the uplink IPv4 data packet in the uplink data packet is obtained, and the uplink data packet encapsulated by the IPv4 over IPv6 tunnel is sent;
  • the downlink data packet of the mobile terminal Receiving, in the downlink of the mobile terminal, the downlink data packet of the mobile terminal, determining, according to the information carried in the mobile IPv6 tunnel encapsulation header of the downlink data packet, that the downlink data packet is an IPv4 over IPv6 tunnel for the IPv4 data packet After the encapsulated data packet, obtain a downlink data packet based on the mobile IPv6 tunnel encapsulation for the downlink IPv4 data packet, and send a downlink data packet encapsulated by the mobile IPv6 tunnel to the mobile terminal;
  • the second network device is configured with a CGN function module, where the second network device is configured to receive a downlink IPv4 data packet sent by the communication peer end of the mobile terminal, perform network address translation and IPv4 over IPv6 on the downlink IPv4 data packet.
  • the tunnel encapsulation process is performed, and the downlink data packet processed by the IPv4 over IPv6 tunnel encapsulation process is sent to the first network device, and the uplink data packet encapsulated by the IPv4 over IPv6 tunnel sent by the first network device is received, and the uplink data packet is received.
  • IPv4 over IPv6 tunnel decapsulation processing and network address translation and transmitting the network address translated uplink IPv4 data packet to the communication peer end.
  • the embodiment of the present invention transmits the uplink and downlink data packets encapsulated in the MIPv6 tunnel directly to the IPv4 data packet between the node device and the HA by using the MIPv6 tunnel to directly carry the IPv4 data packet manner.
  • the mobile terminal allocates a routable public IPv4 address and can provide an IPv4 service for the mobile terminal, the operation of the node device is simplified, the structural complexity of the node device is reduced, and the node device and the HA are saved. Transmission resources. BRIEF DESCRIPTION OF THE DRAWINGS
  • FIG. 1 is a flow chart of a method for coexisting IPv4-v6 in a wireless environment in the prior art
  • FIG. 2 is a schematic diagram of a protocol stack of a node device in the prior art
  • 3a and 3b are flowcharts of an IPv4-v6 coexistence method according to Embodiment 1 of the present invention.
  • FIGS. 4a and 4b are flowcharts of an IPv4-v6 coexistence method according to Embodiment 2 of the present invention.
  • Figure 5 is a WiMAX network reference model
  • FIG. 6 is a schematic diagram of a system model according to Embodiment 3 of the present invention
  • 7 is a schematic diagram of an HA processing operation operation on a data packet according to Embodiment 3 of the present invention
  • FIG. 9 is a schematic diagram of a protocol stack of a node device according to Embodiment 3 of the present invention.
  • FIG. 10 is a schematic diagram of a system model according to Embodiment 4 of the present invention.
  • FIG. 11 is a schematic diagram of processing operations of a data packet by HA and CGN according to Embodiment 4 of the present invention.
  • FIG. 13 is a flowchart of an IPv4-v6 coexistence method according to Embodiment 6 of the present invention.
  • FIG. 14 is a schematic structural diagram of a network device according to Embodiment 7 of the present invention.
  • FIG. 15 is a schematic structural diagram of a first coexistence processing module according to Embodiment 7 of the present invention.
  • FIG. 16 is a schematic structural diagram of a network device according to Embodiment 8 of the present invention.
  • FIG. 17A, B, and C are schematic structural diagrams of a second coexistence processing module according to Embodiment 8 of the present invention.
  • FIG. 18 is a schematic structural diagram of a node device according to Embodiment 9 of the present invention.
  • FIG. 19 is a schematic diagram of an IPv4-v6 coexistence system according to Embodiment 10 of the present invention.
  • FIG. 20 is a schematic diagram of an IPv4-v6 coexistence system according to Embodiment 11 of the present invention.
  • FIG. 21 is a schematic diagram of an IPv4-v6 coexistence system according to Embodiment 12 of the present invention.
  • Embodiment 1 The IPv4-v6 coexistence method.
  • the method can be applied to a variety of wireless mobile systems including HA functional modules, such as 3G systems, WLAN systems, and WiMAX systems.
  • HA functional modules such as 3G systems, WLAN systems, and WiMAX systems.
  • the flow of the method is shown in Figure 3.
  • Fig. 3a is a flowchart of processing of an uplink packet
  • Fig. 3b is a flowchart of processing of a downlink packet.
  • the source address of the above IPv4 data packet is a non-routable IPv4 address
  • the destination address is a routable public IPv4 address of the communication peer.
  • the above non-routable IPv4 address can be a well-known IPv4 address, and all MSs can use the same well-known IPv4 address, which can be determined by a specialized IP address allocation organization (such as IANA).
  • Direct MIPv6 tunnel encapsulation for IPv4 packets can be referred to as IPv4 over MIPv6 encapsulation.
  • the mobile station performs the MIPv6 tunnel encapsulation operation, it may be executed by the DS-lite Client function module or the MIP encapsulation function module in the mobile station, or other functional modules may be added in the mobile station to perform the IPv4 over MIPv6 encapsulation. .
  • the source address in the MIPv6 tunnel encapsulation header of the foregoing uplink data packet is the IPv6 care-of address of the mobile station (hereinafter referred to as CoA6,
  • the destination address is the IPv6 address of the HA of the mobile station.
  • the MIPv6 tunnel encapsulation header of the uplink data packet carries the indication information, where the indication information is used to indicate that the uplink data packet is a data packet encapsulated by the MIPv6 tunnel directly to the IPv4 data packet, that is, the indication information can be used to determine that the The inner layer of the upstream packet encapsulated by the MIPv6 tunnel is an IPv4 packet, not an IPv6 packet.
  • the S310 and the HA function module receive the uplink data packet, and determine whether the mobile IPv6 tunnel encapsulation header of the uplink data packet carries
  • the indication information is determined to carry the indication information, that is, the uplink data packet is determined to be a packet for direct IPv6 tunnel encapsulation of the IPv4 data packet according to the indication information, and the process proceeds to S320. Otherwise, the process proceeds to S330.
  • the S320 and the HA function module perform network address translation processing on the uplink IPv4 data packet obtained by decapsulating the uplink data packet, and send the uplink IPv4 data packet after the network address translation processing to the communication peer end of the mobile station.
  • the HA function module needs to have an address conversion processing function and a function of transmitting an IPv4 data packet with a communication peer of the mobile station. That is to say, the HA function module decapsulates the uplink data packet, and obtains the uplink IPv4 data packet, and then the HA function module performs network address translation processing on the uplink IPv4 data packet, and the source address of the uplink IPv4 data packet is not routable.
  • the IPv4 address is converted into a routable public IPv4 address, and the correspondence between the mobile station's HoA6, CoA6, the routable public IPv4 address, and the well-known non-routable IPv4 address is stored, and then the HA function module communicates with the mobile station.
  • the peer sends the upstream IPv4 packet after the source address translation.
  • the above correspondence stored by the HA function module can be used for transmission of the downlink IPv4 data packet of the mobile station.
  • the routable public IPv4 address may be an IPv4 address selected by the HA function module from a public IPv4 address pool in the network where the HA function module is located.
  • the network device where the H A function module is located can be externally represented as HA.
  • the IPv4-v6 coexistence method in this embodiment ends, and the HA function module can process the received uplink data packet by using an existing method.
  • the communication peer CN of the mobile station sends a downlink IPv4 data packet.
  • the source address of the downlink IPv4 data packet is an IPv4 address of the communication peer of the mobile station, and the destination address is a routable public IPv4 address of the mobile station.
  • the S350 and the HA function module receive the downlink IPv4 data packet sent by the communication peer end of the mobile station, and the HA function module performs network address translation processing on the downlink IPv4 data packet, and the source address of the converted downlink IPv4 data packet is the IPv4 of the CN.
  • the address and the destination address are well-known IPv4 addresses.
  • the HA function module encapsulates the downlink IPv4 data packet processed by the network address translation into a mobile IPv6 tunnel, and the HA function module sends the downlink data packet encapsulated by the mobile IPv6 tunnel to the mobile station.
  • the mobile IPv6 tunnel encapsulation header of the downlink data packet includes indication information, and according to the indication information, it can be determined that the downlink data packet is a data packet encapsulated by the MIPv6 tunnel directly to the IPv4 data packet.
  • the specific process of the S350 may be: after receiving the downlink IPv4 data packet, the HA function module searches for the corresponding CoA6 and the non-routable IPv4 address in the stored correspondence relationship by using the destination address in the downlink IPv4 data packet.
  • the corresponding relationship is the correspondence stored in the HA function module in S320.
  • the HA function module converts the destination address of the downstream IPv4 packet into a well-known IPv4 address that is found to be non-routable. Then, the HA function module uses the found CoA6 to perform a mobile IPv6 tunnel encapsulation on the downlink IPv4 data packet to obtain a downlink data packet.
  • the destination address in the mobile IPv6 tunnel encapsulation header of the downlink data packet is the discovered CoA6, and the source address is the IPv6 address of the HA.
  • the HA function module sends the downlink data packet to the mobile station through the MIP tunnel.
  • the mobile IPv6 tunnel encapsulation header of the downlink data packet includes the foregoing indication information.
  • the S360 the client or the mobile station agent receives the downlink data packet, and after determining that the mobile IPv6 tunnel encapsulation header of the downlink data packet includes the foregoing indication information, decapsulating the downlink data packet to obtain downlink IPv4. data pack.
  • the mobile station's agent also needs to send the obtained downlink IPv4 data packet to the mobile station.
  • the MIPv6 tunnel directly carries the IPv4 data packet, so that the node device
  • the data packet transmitted between the HA and the HA is an uplink and downlink data packet encapsulated directly in the MIPv6 tunnel for the IPv4 data packet, which not only avoids being on the node device/
  • the downstream data packet performs two encapsulation/decapsulation operations, and also avoids the phenomenon of adding two encapsulation headers to the IPv4 data packet, thereby eliminating the need to assign a routable public IPv4 address to the mobile terminal and
  • the operation of the node device is simplified, the structural complexity of the node device is reduced, and the transmission resource between the node device and the HA is saved.
  • Embodiment 2 IPv4-v6 coexistence method.
  • the method can be applied to a variety of wireless mobile systems including HA functional modules and CGN functional modules, such as 3G systems, WLAN systems, and WiMAX systems.
  • the flow of the method is shown in Figure 4.
  • Figure 4a is a flowchart of processing of an upstream packet
  • Figure 4b is a flowchart of processing of a downstream packet.
  • the agent of the S400 encapsulates the IPv4 data packet to be sent, and performs the MIPv6 tunnel encapsulation, and sends the uplink data packet encapsulated by the MIPv6 tunnel.
  • the source address of the above IPv4 data packet is a non-routable IPv4 address
  • the destination address is a routable IPv4 address of the communication peer.
  • the mobile station performs the MIPv6 tunnel encapsulation operation, it may be executed by the DS-Hte Client function module or the MIP encapsulation function module in the mobile station, or other functional modules may be added in the mobile station to perform the IPv4 over MIPv6 encapsulation. .
  • the source address in the MIPv6 tunnel encapsulation header of the uplink packet is the IPv6 care-of address (hereinafter referred to as CoA6) of the mobile station, and the destination address is the IPv6 address of the HA of the mobile station.
  • the MIPv6 tunnel encapsulation header of the uplink data packet carries the indication information, where the indication information is used to indicate that the data packet is a data packet encapsulated by the MIPv6 tunnel directly to the IPv4 data packet, that is, the MIPv6 can be determined according to the indication information.
  • the inner layer of the tunnel encapsulated upstream packet is an IPv4 packet, not an IPv6 packet.
  • the HA function module determines whether the mobile IPv6 tunnel encapsulation header of the uplink data packet carries the indication information, and determines that the indication information is carried, that is, the uplink data packet is determined according to the indication information.
  • the S420 and the HA function module send an uplink data packet to the CGN function module, where the uplink data packet is an uplink data packet encapsulated by the IPv4 over IPv6 tunnel for the uplink IPv4 data packet.
  • An example of a specific implementation of the HA function module sending an uplink data packet to the CGN function module is: The HA function module decapsulates the received uplink data packet to obtain an uplink IPv4 data packet, and then, the HA function module pairs the uplink IPv4.
  • the data packet is encapsulated in an IPv4 over IPv6 tunnel, and the uplink data packet encapsulated by the IPv4 over IPv6 tunnel is sent to the CGN function module.
  • the source address of the uplink packet encapsulated by the IPv4 over IPv6 tunnel is the HoA6 of the mobile station.
  • the destination address of the IPv4 over IPv6 tunnel encapsulation header of the uplink data packet is HA.
  • the IPv6 address that is, the IPv6 address of the CGN; when the HA function module and the CGN function module are located in different physical entities, the destination address of the IPv4 over IPv6 tunnel encapsulation header of the uplink data packet is the IPv6 of the network device where the CGN function module is located. address.
  • the physical entity can be externally represented as HA. It should be noted that the specific implementation example described above may be applied when the HA function module and the CGN function module are located in the same physical entity, or in the case where the HA function module and the CGN function module are located in different physical entities.
  • the HA function module sends an uplink data packet to the CGN function module.
  • the HA function module does not decapsulate the received uplink data packet. Processing, but modifying the source address in the mobile IPv6 tunnel encapsulation header of the received uplink data packet, that is, the HA function module obtains the mobile IPv6 tunnel encapsulation of the uplink data packet by using the correspondence between the HoA6 and the CoA6 of the mobile station it stores. Source address CoA6 in the header
  • the HA function module modifies the source address in the MIPv6 tunnel encapsulation header of the uplink packet from the CoA6 to the found HoA6.
  • the uplink data packet becomes an uplink data packet encapsulated by the IPv4 over IPv6 tunnel; After that, the HA function module sends the source address modified uplink data packet to the CGN function module.
  • the HA function module sends an uplink data packet to the CGN function module is: when the HA function module and the CGN function module are located in different physical entities, the HA function module does not decapsulate the received uplink data packet. Processing, but modifying the source address and the destination address in the mobile IPv6 tunnel encapsulation header of the received uplink data packet, that is, the HA function module obtains the movement of the uplink data packet by using the correspondence between the HoA6 and the CoA6 of the mobile station that it stores.
  • the source address CoA6 in the IPv6 tunnel encapsulation header corresponds to the HoA6.
  • the HA function module modifies the source address in the MIPv6 tunnel encapsulation header of the uplink data packet from the CoA6 to the found HoA6, and the HA function module encapsulates the uplink data packet.
  • the destination address in the encapsulation header of the MIPv6 tunnel is changed from the IPv6 address of the HA to the IPv6 address of the network device where the CGN function module is located.
  • the uplink data packet becomes the uplink data packet encapsulated by the IPv4 over IPv6 tunnel.
  • the HA function module sends the CGN function to the CGN.
  • the function module sends the modified uplink packet with the source address and the destination address.
  • the S430 and the CGN function module receive the uplink data packet encapsulated by the IPv4 over IPv6 tunnel sent by the HA function module, and decapsulate the uplink data packet to obtain an uplink IPv4 data packet.
  • the CGN function module performs network address translation processing on the uplink IPv4 data packet, converts the source address of the uplink IPv4 data packet from a non-routable IPv4 address to a routable IPv4 address, and stores the mobile station's HoA6 and the routable IPv4 address. And the correspondence between the non-routable IPv4 addresses, and then the CGN function module sends the network address translated uplink IPv4 data packet to the communication peer of the mobile station.
  • the above-mentioned correspondence relationship stored by the CGN function module is used to transmit the IPv4 data packet of the mobile station.
  • the routable public IPv4 address may be an IPv4 address selected by the CGN function module from a public IPv4 address pool in the network where the CGN function module is located.
  • the IPv4-v6 coexistence method in this embodiment ends, and the HA function module can process the received uplink data packet by using an existing method.
  • the S450 and the communication peer of the mobile station send downlink IPv4 data packets.
  • the source address of the downlink IPv4 data packet is an IPv4 address of the communication peer end of the mobile station
  • the destination address is a routable IPv4 address of the mobile station obtained by the communication peer end from the source address of the uplink data packet, and the downlink IPv4 data packet is obtained. Intercepted by CGN.
  • the S460 and the CGN function module perform network address translation processing on the IPv4 data packet sent by the communication peer of the mobile station, encapsulate the downlink IPv4 data packet processed by the network address translation into an IPv4 over IPv6 tunnel, and send the IPv4 over to the HA function module. Downstream packets encapsulated by the IPv6 tunnel.
  • a specific example of the network address translation processing and the encapsulation processing of the IPv4 data packet sent by the CGN function module to the communication peer end of the mobile station may be:
  • the CGN function module uses the destination address in the downlink IPv4 data packet to correspond to the storage thereof. Look for the corresponding HoA6 and non-routable IPv4 addresses in the relationship. The correspondence relationship is a correspondence stored in the CGN function module in S430.
  • the CGN function module converts the destination address of the downlink IPv4 packet into the found non-routable IPv4 address.
  • the CGN function module IJ uses the found HoA6 to perform IPv4 over IPv6 tunnel encapsulation on the downlink IPv4 data packet to obtain a downlink data packet.
  • the destination address in the IPv4 over IPv6 tunnel encapsulation header of the downlink data packet is the discovered HoA6.
  • the source address of the IPv4 over IPv6 tunnel encapsulation header of the downlink data packet is The IPv6 address of the HA is the IPv6 address of the CGN.
  • the source address of the IPv4 over IPv6 tunnel encapsulation header of the downlink data packet is the network device where the CGN function module is located. IPv6 address.
  • the S470 and the HA function module receive the downlink data packet sent by the CGN function module, obtain a mobile IPv6 encapsulation-based downlink data packet for the downlink IPv4 data packet in the downlink data packet, and send the downlink data packet based on the Mobile IPv6 encapsulation.
  • the mobile IPv6 tunnel encapsulation header of the downlink data packet sent by the HA function module carries the indication information, where the indication information is used to indicate that the data packet is a data packet directly encapsulated by the MIPv6 tunnel for the IPv4 data packet.
  • the HA function module decapsulates the received downlink data packet to obtain For the downlink IPv4 data packet, the HA function module searches for the destination address HoA6 in the IPv4 over IPv6 tunnel encapsulation header of the received downlink data packet in its stored correspondence relationship to obtain the CoA6 corresponding to the destination address HoA6.
  • the HA function module performs MIPv6 tunnel encapsulation on the downlink IPv4 data packet according to the obtained CoA6, and sends the downlink data packet encapsulated by the MIPv6 tunnel.
  • the source address in the MIPv6 tunnel encapsulation header of the downlink data packet is the IPv6 address of the mobile station's HA, and the destination address is the mobile station's CoA6.
  • the HA function module carries the indication information in the MIPv6 tunnel encapsulation header when the MIPv6 tunnel encapsulation is performed.
  • the indication information is used to indicate that the downlink data packet is a data packet directly encapsulated by the MIPv6 tunnel for the IPv4 data packet. It should be noted that the specific implementation example may be applied when the HA function module and the CGN function module are located in the same physical entity, or in the case where the HA function module and the CGN function module are located in different physical entities.
  • HA function module modifies the destination address in the received IPv4 over IPv6 tunnel encapsulation header of the downlink data packet, and modifies the destination address from the mobile station's HoA6 to the mobile station's CoA6, thereby obtaining a downlink data packet based on the mobile IPv6 encapsulation.
  • the CoA6 of the mobile station is obtained by the HA function module according to the destination address HoA6 of the IPv4 over IPv6 tunnel encapsulation header of the received downlink data packet in its stored correspondence.
  • the MIPv6 tunnel encapsulation header of the downlink data packet after the source address translation carries the indication information, where the indication information is used to indicate that the downlink data packet is a data packet directly encapsulated by the MIPv6 tunnel for the IPv4 data packet.
  • the indication information may be information indicating that the IPv4 over IPv6 tunnel encapsulation of the IPv4 data packet is encapsulated in the IPv4 over IPv6 tunnel encapsulation header of the downlink data packet, that is, the downlink after the source address translation based on the IPv4 over IPv6 tunnel encapsulation
  • the data packet is a downlink data packet encapsulated by the MIPv6 tunnel.
  • the information used in the original Pv4 over IPv6 tunnel encapsulation header to indicate the IPv4 over IPv6 tunnel encapsulation of the IPv4 data packet is the indication information in this embodiment.
  • the HA function module can also add a new indication information to the MIPv6 tunnel encapsulation header to indicate that the downlink data packet is a data packet directly encapsulated into the IPv4 data packet by MIPv6.
  • HA function module modifies the source address and the destination address in the IPv4 over IPv6 tunnel encapsulation header of the received F-line data packet, and the destination address is modified from the HoA6 of the mobile station to the CoA6 of the mobile station, and the source address is used by the CGN function.
  • the IPv6 address of the network device where the module resides is modified to the IPv6 address of the HA, thereby obtaining the downlink data packet based on the Mobile IPv6 encapsulation.
  • the CoA6 of the mobile station is obtained by the HA function module in the stored correspondence relationship according to the destination address HoA6 of the IPv4 over IPv6 tunnel encapsulation header of the received downlink data packet.
  • the MIPv6 tunnel encapsulation header of the downlink data packet with the source address and the destination address is carried with indication information, where the indication information is used to indicate that the downlink data packet is a data packet directly encapsulated by the MIPv6 tunnel for the IPv4 data packet.
  • the indication information may be information indicating that the IPv4 over IPv6 tunnel encapsulation of the IPv4 data packet is in the IPv4 over IPv6 tunnel encapsulation header of the downlink data packet.
  • the downlink data packet after the source address and the destination address translation based on the IPv4 over IPv6 tunnel encapsulation becomes a downlink data packet encapsulated by the MIPv6 tunnel, and the original Pv4 over IPv6 tunnel encapsulation header is used to indicate IPv4 for the IPv4 data packet.
  • the over encapsulated information of the IPv6 tunnel becomes the indication information in this embodiment.
  • the HA function module may also add new indication information to the MIPv6 tunnel encapsulation header to indicate that the downlink data packet is a data packet encapsulated directly into the MIPv6 tunnel for the IPv4 data packet.
  • the S480 receives the downlink data packet sent by the HA function module, and determines that the MIPv6 tunnel encapsulation header of the downlink data packet carries the indication information, that is, the downlink data packet is determined according to the indication information.
  • the downlink IPv4 data packet is directly encapsulated in the MIPv6 tunnel, the downlink data packet is decapsulated to obtain a downlink IPv4 data packet.
  • the proxy needs to continue to deliver downlink IPv4 packets to the MS.
  • the embodiment uses the MIPv6 tunnel to directly carry the IPv4 data packet when the data packet is transmitted between the node device (the mobile terminal or the mobile terminal agent) and the HA function module.
  • the data packet transmitted between the node device and the HA function module is an uplink and downlink data packet directly encapsulated by the MIPv6 tunnel for the IPv4 data packet, which not only avoids the encapsulation/decapsulation operation of the upper AF line data packet at the node device twice.
  • the operation of the node device reduces the complexity of the node device structure and saves the transmission resources between the node device and the HA.
  • the WiMAX network reference model in Figure 5 includes: MS, Access Service Network (ASN) and Connectivity Service Network (CSN).
  • the ASNs include: Base Station (Base Station, BS) and ASN Gateway (Access Service Gateway, ASN GW).
  • the CSN includes: Prepaid Server (PPS) and Authentication, Authorization and Accounting Server. , AAA Server) and other logical entities.
  • PPS Prepaid Server
  • AAA Server Authentication, Authorization and Accounting Server
  • IPv4-v6 coexistence method of the embodiment of the present invention will be described below with reference to the WiMAX network reference model shown in FIG. Embodiment 3: Applying an IPv4-v6 coexistence method in a WiMAX network.
  • the MIPv6 tunnel directly carries the IPv4 data packet.
  • the HA function module performs MIPv6 decapsulation and NAT processing on the uplink data packet, and the HA function module sends the uplink IPv4 data packet to the CN; the HA function module performs NAT, and MIPv6 encapsulation processing on the downlink IPv4 data packet, and is HA-processed by the HA function module.
  • the function module sends a downlink data packet to the agent of the MS or the MS through the MIPv6 tunnel.
  • the HA function module in this embodiment has the function of performing MIPv6 encapsulation on the IPv4 data packet, and also having the function of decapsulating the MIPv6 encapsulation to obtain the IPv4 data packet, that is, The HA function module can perform MIPv6 encapsulation/decapsulation processing on IPv4 data packets while being able to perform MIPv6 encapsulation/decapsulation for IPv6 data packets.
  • the HA function module in this embodiment has an IPv4 to IPv4 NAT function, and the HA function module can perform a routable IPv4 address and a non-routable IPv4 address (such as a well known IPv4 address) for the IPv4 data packet. Address translation.
  • the HA function module in this embodiment further has an enhanced binding cache function, which can be bound between the non-routable IPv4 address of the MS, the HoA6 address, and the routable IPv4 address after the NAT. Mapping, due to the HA function module itself It also binds the mapping between C0A6 and H0A6 of the MS.
  • the HA function module stores the correspondence between the non-routable IPv4 address of the MS, CoA6, HoA6, and the routable IPv4 address after NAT. relationship.
  • the mapping between C0A6 and H0A6 of the MS stored in the HA function module shall be updated in accordance with the MIP protocol.
  • the system model of the third embodiment is as shown in FIG. 6.
  • the processing operation of the data packet by the HA function module of the third embodiment is as shown in FIG. Figure 6 shows the system model with Client mode and Proxy mode.
  • the MS has an enhanced MIPv6 interface capability, that is, the MS encapsulates the IPv4 data packet in the MIPv6 tunnel, and the encapsulated uplink data packet is transmitted to the HA function module via the BS and the ASN GW.
  • the Proxy mode the MS does not have the enhanced MIPv6 interface capability.
  • the Proxy has the enhanced MIPv6 interface capability.
  • the IPv4 packets sent by the MS reach the Proxy through the BS, and the MIPv6 tunnel encapsulation is performed at the Proxy, and the encapsulated uplink data packet is encapsulated. Transfer to the HA function module via the ASN GW.
  • the above Proxy can be deployed in the ASN.
  • the HA function module caches two binding relationships, namely Bindingl and Binding2. Bindingl for mobile stations
  • Binding of HoA6 to CoA6 (ie, the correspondence between HoA6 and CoA6 of the mobile station). Binding2 is the binding of the mobile station's HoA6, well known IPv4 address and the routable IPv4 address selected from the NSP's address pool (ie, the mobile station's HoA6, well known IPv4 address, and the routable IPv4 address assigned to the mobile station). Correspondence between)).
  • the data packet exchanged between the HA function module and the mobile station or the proxy is a data packet encapsulated by the MIPv6 tunnel, and the source address or the destination address in the MIPv6 tunnel encapsulation header of the data packet is the mobile station's CoA6, and the inner layer of the data packet is IPv4.
  • the source or destination address of the packet is a well-known IPv4 address (ie well known IPv4 address).
  • the data packet that the HA function module interacts with the CN is an IPv4 data packet with a routable IPv4 address (ie, a public IPv4 address, a public IPv4 address).
  • the HA function module needs to perform a conversion between the well know IPv4 address and the public IPv4 address in the process of receiving the data packet to the sending data packet.
  • IPv4-v6 coexistence method flow of the third embodiment is as shown in FIG.
  • Step 8 operation 1. Client/Proxy finds that IPv4 packets need to be sent to HA. In Client mode, the above IPv4 packets are generated by the client. In Proxy mode, the above IPv4 packets are generated by the MS and sent to the Proxy. The source address of the IPv4 packet is the IPv4 address of the well known, and the destination address is the IPv4 address of the CN.
  • the client/proxy uses the MIPv6 tunnel to directly carry the IPv4 data. That is, the client/proxy encapsulates the IPv4 packet in the ⁇ 1 ⁇ 6 tunnel.
  • the source address in the MIPv6 tunnel encapsulation header is the CoA6 of the MS, and the destination address is the IPv6 address of the HA.
  • ⁇ 1 ⁇ 6 tunnel encapsulation The header further includes indication information, where the indication information may be located in a last extension header, that is, the indication information is located in a last field of the MIPv6 tunnel encapsulation header, and the indication information may indicate that the data packet is a MlPv6 tunnel for the IPv4 data packet.
  • the encapsulated data packet that is, according to the indication information, can determine that the inner layer of the uplink data packet encapsulated by the MIPv6 tunnel is an IPv4 data packet instead of an IPv6 data packet. After that, the client/proxy sends the uplink packet encapsulated by the MIPv6 tunnel to the HA.
  • Operation 2 After the HA receives the uplink data packet sent by the client/Proxy, the HA function module performs the following operations: 1 The HA function module determines whether the MIPv6 tunnel encapsulation header of the uplink data packet carries the indication information, and determines that the indication is carried. After the information, it is determined that the inner layer packet encapsulated by the MIPv6 tunnel is an IPv4 packet.
  • the HA function module decapsulates the uplink data packet, that is, strips the outer MIPv6 tunnel encapsulation of the uplink data packet, and obtains an uplink IPv4 data packet of the inner layer.
  • the HA function module performs IPv4 to IPv4 NAT on the uplink IPv4 data packet, that is, the HA function module converts the well known IPv4 address in the uplink IPv4 data packet into a public (public) IPv4 address.
  • a specific example of HA functioning by the HA function module is: The HA function module searches for a record matching the source address of the uplink IPv4 packet from the correspondence between the well known IPv4 address and the public IPv4 address stored therein. If not, the HA function module is in the IPv4 address pool of the NSP.
  • a public IPv4 address is selected, and the source IPv4 address of the upstream IPv4 packet is replaced by the public IPv4 address, and the correspondence between the well known IPv4 address of the mobile station and the public IPv4 address is stored. If a record matching the source address of the uplink IPv4 packet is found, the HA function module replaces the source address well known IPv4 address in the uplink IPv4 packet with the public IPv4 address in the found matching record.
  • the HA function module searches for the HoA6 corresponding to the source address (ie, C0A6 of the MS) in the MIPv6 tunnel encapsulation header of the above uplink data packet in its stored binding.
  • the HA function module binds the mapping between the public IPv4 address and the HoA6 of the discovered MS.
  • the HA function module sends the uplink IPv4 data packet after the NAT processing, and the uplink IPv4 data packet arrives through the normal route.
  • the source address of the uplink IPv4 data packet received by the CN is the public IPv4 address selected from the IPv4 address pool of the NSP, and the destination address is the IPv4 address of the CN.
  • the execution order of 1 and 2 may be reversed or may be performed simultaneously; the source address replacement processing operation and the execution order of 5 in 3 may be reversed or may be performed simultaneously;
  • the time is very flexible, as long as it happens before 5.
  • Operation 3 The CN sends a downlink IPv4 data packet to the mobile station, where the source address of the downlink IPv4 data packet is the IPv4 address of the CN, and the destination address is the public IPv4 address of the MS, and the CN obtains the received IPv4 data packet from the received uplink IPv4 data packet.
  • the source address public IPv4 address is used as the destination address of the downstream IPv4 packet. Since the destination address of the downlink IPv4 packet comes from HA, the downlink IPv4 packet is routed to the HA.
  • the HA function module performs the following operations:
  • the HA function module finds that the received data packet is downlink IPv4 data.
  • the HA function module searches for the destination address of the downlink IPv4 packet in its stored Binding2.
  • the public IPv4 address corresponds to the HoA6 address.
  • the HA function module searches for the corresponding CoA6 address in Bindingl according to the found HoA6 address.
  • the HA function module performs NAT processing on the downlink IPv4 data packet, and translates the destination address of the downlink IPv4 data packet from the original public IPv4 address to the MS well known IPv4 address.
  • the HA function module encapsulates the downstream IPv4 packet processed by the NAT into the MIPv6 tunnel.
  • the source address of the MIPv6 tunnel encapsulation header is the IPv6 address of the HA, and the destination address is the CoA6 of the MS.
  • the C0A6 of the MS is the C0A6 address found by the HA function module in 2.
  • the HA function module also carries indication information in the MIPv6 tunnel encapsulation header of the downlink data packet.
  • the HA function module sends the downlink packet encapsulated by the MIPv6 tunnel.
  • Operation 4 After receiving the downlink data packet sent by the HA function module, the client/Proxy determines that the inner layer is IPv4 data according to the indication information carried in the mobile IPv6 tunnel encapsulation header of the downlink data packet, and the client/proxy strips the downlink data packet.
  • the outer MIPv6 tunnel encapsulation header obtains the inner IPv4 packet of the inner layer.
  • the Proxy In the Proxy mode, after obtaining the downlink IPv4 data packet, the Proxy needs to send the downlink IPv4 data packet to the MS.
  • Embodiment 3 simplifies the complexity of the Client/Proxy protocol stack level with respect to the existing Client/Proxy protocol stack.
  • Embodiment 4 Applying an IPv4-v6 coexistence method in a WiMAX network.
  • the IPv4 data packet is directly carried by the MIPv6 tunnel.
  • the HA function module performs MIPv6 decapsulation and IPv4 over IPv6 tunnel encapsulation processing on the uplink data packet
  • the CGN function module performs IPv4 over IPv6 tunnel decapsulation and NAT processing on the uplink data packet
  • the CGN function module sends the uplink to the CN.
  • the IPv4 data packet is encapsulated by the CGN function module for the downstream IPv4 data packet and the IPv4 over IPv6 tunnel encapsulation process
  • the HA function module performs the IPv4 over IPv6 tunnel decapsulation and the MIPv6 tunnel encapsulation processing on the downlink data packet, and is implemented by the HA function.
  • the module sends a downlink packet to the agent of the MS or MS through the MIPv6 tunnel.
  • the HA function module in the fourth embodiment has the functions of directly performing MIPv6 encapsulation on the IPv4 data packet, decapsulating the MIPv6 encapsulation to obtain the IPv4 data packet, and also performing the IPv4 data packet.
  • IPv4 over IPv6 tunnel encapsulation and decapsulation of IPv4 over IPv6 tunnel encapsulation that is, the HA function module can perform MIPv6 encapsulation/decapsulation for IPv6 packets and MIPv6 encapsulation for IPv4 packets.
  • /Decapsulation and IPv4 over IPv6 tunnel encapsulation/decapsulation processing It can be seen that the HA function module in the fourth embodiment enhances the IPv4 over IPv6 tunnel encapsulation/decapsulation function and directly performs MIPv6 encapsulation/decapsulation on IPv4 data packets.
  • the system model of the fourth embodiment is as shown in FIG. 10.
  • the processing operation of the data packet by the HA function module and the CGN function module of the fourth embodiment is as shown in FIG. 10.
  • Figure 10 shows a system model containing a Client mode and a Proxy mode.
  • the MS has an enhanced MIPv6 interface capability, that is, the MS directly encapsulates the IPv4 data packet in the MIPv6 tunnel, and the encapsulated uplink data packet is transmitted to the HA function module via the BS and the ASN GW.
  • the MS does not have the enhanced MIPv6 interface capability.
  • the Proxy has the enhanced MIPv6 interface capability. That is, the IPv4 packets sent by the MS reach the Proxy via the BS, and the IPv4 packets are directly encapsulated in the MIPv6 tunnel at the Proxy.
  • the subsequent uplink data packet is transmitted to the HA function module via the ASN GW.
  • the above Proxy can be deployed in the ASN.
  • the binding relationship cached in the HA function module is the binding of the mobile station's HoA6 and CoA6 (ie, the correspondence between the mobile station's HoA6 and CoA6).
  • the binding relationship cached in the CGN function module is the binding between the HoA6 of the mobile station and the routable IPv4 address selected from the NSP address pool and the well known IPv4 address of the mobile station (ie, the mobile station's HoA6 and The correspondence between the routable IPv4 address assigned by the mobile station and the well known IPv4 address of the mobile station).
  • the data packet exchanged between the HA function module and the mobile station or the Proxy is a data packet encapsulated by the MIPv6 tunnel, and the source address or the destination address in the ⁇ 1 ⁇ 6 tunnel encapsulation header of the data packet is the mobile station's CoA6, and the inner layer of the data packet is IPv4.
  • the source or destination address of the packet is the well known IPv4 address.
  • the data packet exchanged between the HA function module and the CGN function module is a data packet encapsulated by the IPv4 over IPv6 tunnel, and the source address or the destination address in the IPv4 over IPv6 tunnel encapsulation header of the data packet is the HoA6 of the mobile station, and the data packet is The source or destination address of the inner IPv4 packet is the well known IPv4 address.
  • the data packet that the CGN function module interacts with the CN is an IPv4 data packet with a public IPv4 address. That is, the CGN function module needs to perform a process between the well known IPv4 address and the public IPv4 address in the process of receiving the data packet to the sending data packet. Conversion.
  • the CGN function module in the fourth embodiment can be integrated in the HA function module, and the HA function module can be considered to contain the complete
  • the CGN function is also considered to be that in the fourth embodiment, the HA function module and the CGN function module are located in the same physical entity, and the physical entity is externally represented as HA. Since other network entities do not care about the internal processing operations of the physical entity having the HA function module and the CGN function module, for the other network entities, the uplink and downlink data packet transmission process of the fourth embodiment and the uplink and downlink of the third embodiment The packet transmission process is exactly the same.
  • HA refers to a network device that includes an HA function module and a CGN function module and that is externally represented as HA.
  • the IPv4-v6 coexistence method flow of the fourth embodiment includes the following operations 1 to 4.
  • IPv4 packet needs to be sent.
  • Client mode the above IPv4 packets are generated by the Client; in Proxy mode, IPv4 packets are generated by the MS and sent to the Proxy.
  • the source address of the IPv4 packet is the IPv4 address of the well known, and the destination address is the IPv4 address of the CN.
  • the client/proxy uses the MIPv6 tunnel to directly carry the IPv4 data.
  • the client/proxy encapsulates the IPv4 packet in the MIPv6 tunnel.
  • the source address of the MIPv6 tunnel encapsulation header is the CoA6 of the MS, and the destination address is the IPv6 address of the HA.
  • the header further includes indication information, where the indication information may be located in a last extension header, where the indication information may indicate that the data packet is a data packet encapsulated by the MIPv6 tunnel directly to the IPv4 data packet, that is, the indication information can be determined based on the indication information.
  • the inner layer of the upstream packet encapsulated by the MIPv6 tunnel is an IPv4 packet, not an IPv6 packet. After that, the client/proxy sends the MIPv6 tunnel encapsulated uplink packet to the HA.
  • the HA function module determines whether the MIPv6 tunnel encapsulation header of the uplink data packet carries the indication information. After determining that the indication information is carried, the inner layer data packet encapsulated in the MIPv6 tunnel is determined to be an IPv4 data packet.
  • the HA function module decapsulates the uplink data packet, that is, strips the outer MIPv6 tunnel encapsulation of the uplink data packet, and obtains an uplink IPv4 data packet of the inner layer.
  • the HA function module adds an IPv6 header to the IPv4 data packet, that is, performs IPv4 over IPv6 tunnel encapsulation on the IPv4 data packet.
  • the source address in the encapsulation header of the IPv4 over IPv6 tunnel is the HoA of the MS, and the destination address is the IPv6 address of the HA itself.
  • the HA function module sends an IPv4 over IPv6 tunnel encapsulated uplink packet to the CGN function module.
  • the source address HoA is obtained by the HA function module using the source address CoA6 in the MIPv6 tunnel encapsulation header in its stored correspondence.
  • the CGN function module After receiving the uplink data packet sent by the HA function module, the CGN function module decapsulates the uplink data packet, that is, strips the outer IPv6 tunnel encapsulation header of the uplink data packet to obtain an uplink IPv4 data packet.
  • the CGN function module performs IPv4 to IPv4 NAT processing on the uplink IPv4 data packet, that is, the CGN function module converts the source address well known IPv4 address in the uplink IPv4 data packet into a public IPv4 address.
  • the CGN function module stores or updates the mapping between the HoA6 of the MS, the public IPv4 after NAT, and the well known IPv4 address.
  • the CGN function module sends a NAT-processed upstream IPv4 packet to the CN, and the upstream IPv4 packet is routed to the CN.
  • Operation 3 The CN sends a downlink IPv4 data packet to the mobile station, where the source address of the downlink IPv4 data packet is the IPv4 address of the CN, and the destination address is the public IPv4 address of the MS, and the CN obtains the received IPv4 data packet from the received uplink IPv4 data packet.
  • the source address public IPv4 address is used as the destination address of the downstream IPv4 packet. Since the destination address of the downlink IPv4 data packet is from the HA, the downlink IPv4 data packet is routed to the HA.
  • the HA After receiving the downlink IPv4 packet sent by the CN, the HA performs the following operations: The CGN function module performs NAT processing on the IPv4 data packet sent by the CN, and performs IPv4 over IPv6 tunnel encapsulation on the downlink IPv4 data packet after the NAT processing. Then, the CGN function module transmits the encapsulated downlink data packet to the HA function module. .
  • the source address of the encapsulated downlink data packet is the IPv6 address of the HA itself, and the destination address is the HoA of the MS.
  • the CGN function module searches for the obtained HoA of the MS in the stored correspondence relationship by using the public IPv4 address of the destination address MS of the downlink IPv4 data packet.
  • the HA function module finds that the inner layer of the received downlink data packet is an IPv4 data packet according to the information carried in the last extended header in the outer IPv6 header of the tunnel;
  • the HA function module decapsulates the received downlink data packet by stripping the outer tunnel encapsulation header of the downlink data packet to obtain an inner layer downlink IPv4 data packet.
  • the HA function module uses the destination address in the IPv4 over IPv6 tunnel encapsulation header. HoA6 searches in its stored correspondence to obtain the CoA6 of the MS.
  • the HA function module encapsulates the downstream IPv4 data packet according to the obtained CoA6.
  • the source address of the MIPv6 tunnel encapsulation header is the IPv6 address of the HA, and the destination address is the CoA6 address of the MS.
  • the HA function module may further carry indication information in the MIPv6 tunnel encapsulation header, where the indication information indicates that the downlink data packet is a data packet encapsulated by the mobile IPv6 tunnel directly to the IPv4 data packet.
  • the HA function module sends the downlink packet encapsulated by the MIPv6 tunnel.
  • the execution order of 2, 3, and 4 may also be changed to 243 or 423, or may be performed simultaneously.
  • Operation 4 After receiving the downlink data packet sent by the HA, the client/proxy determines, according to the indication information carried in the encapsulation header of the MIPv6 tunnel, that the inner layer of the data packet is IPv4 data, and the client/proxy strips the outer layer of the downlink data packet.
  • the MIPv6 tunnel encapsulation header obtains the downlink IPv4 data packet of the inner layer.
  • Proxy mode after obtaining the downlink IPv4 packet, the Proxy needs to send the downlink IPv4 packet to the MS.
  • Embodiment 5 Applying an IPv4-v6 coexistence method in a WiMAX network.
  • the IPv4 data packet is directly carried by the MIPv6 tunnel.
  • the MIPv6-based uplink data packet is converted into an IPv4 over IPv6-based uplink data packet by the HA function module, and the CGN function module performs IPv4 over IPv6 decapsulation processing and NAT processing on the uplink data packet, and is sent by the CGN function module to the CN.
  • the module sends a downlink packet to the agent of the MS or MS through the MIPv6 tunnel.
  • the IPv4-v6 coexistence method flow of the fifth embodiment is as shown in FIG.
  • IPv4 packets need to be sent out.
  • Client mode the above IPv4 packets are generated by the client.
  • Proxy mode IPv4 packets are generated by the MS and sent to the Proxy.
  • the source address of the IPv4 packet is the IPv4 address of the well known, and the destination address is the IPv4 address of the CN.
  • the client/proxy uses the MIPv6 tunnel to directly carry the IPv4 data.
  • the client/proxy encapsulates the IPv4 packet in the MIPv6 tunnel.
  • the source address of the MIPv6 tunnel encapsulation header is the CoA6 of the MS, and the destination address is the IPv6 address of the HA.
  • the header further includes indication information, where the indication information may be located in a last extension header, where the indication information may indicate that the data packet is a data packet encapsulated by the MIPv6 tunnel directly to the IPv4 data packet, that is, the indication information can be determined according to the indication information.
  • the inner layer of the encapsulated upstream packet is an IPv4 packet, not an IPv6 packet. After that, the client/proxy sends the uplink packet encapsulated by the MIPv6 tunnel to the HA.
  • the HA function module determines whether the MIPv6 tunnel encapsulation header of the uplink data packet carries the indication information. After determining that the indication information is carried, the HA function module determines that the inner layer data packet encapsulated by the MIPv6 tunnel is an IPv4 data packet.
  • the HA function module utilizes the source address in the MIPv6 tunnel encapsulation header. CoA6 searches in its stored correspondence to obtain the HoA6 of the MS.
  • the HA function module changes the source address in the MIPv6 tunnel encapsulation header from CoA6 to HoA6, and then sends the uplink packet with the source address translation to the CGN function module.
  • the CGN function module receives the uplink data packet transmitted by the HA function module, and decapsulates the uplink data packet, that is, strips the outer MIPv6 tunnel encapsulation of the uplink data packet, and obtains the inner layer uplink IPv4 data packet.
  • the CGN function module performs IPv4 to IPv4 NAT processing on the uplink IPv4 data packet, that is, the CGN function module converts the source address well known IPv4 address in the uplink IPv4 data packet into a public IPv4 address.
  • the CGN function module stores or updates the mapping between the HoA6 of the MS, the public IPv4 after NAT, and the well known IPv4 address.
  • the CGN function module sends a NAT-processed upstream IPv4 packet to the CN, and the upstream IPv4 packet is routed to the CN.
  • Operation 4 The CN sends a downlink IPv4 data packet to the mobile station, where the source address of the downlink IPv4 data packet is the IPv4 address of the CN, and the destination address is the public IPv4 address of the MS, and the CN obtains the received IPv4 data packet from the received uplink IPv4 data packet.
  • the source address public IPv4 address is used as the destination address of the downstream IPv4 packet. Since the destination address of the downlink IPv4 packet comes from HA, the downlink IPv4 packet is routed to the HA.
  • the CGN function module performs the following operations:
  • the CGN function module After receiving the downlink IPv4 data packet, the CGN function module performs NAT processing on the downlink IPv4 data packet sent by the CN, and performs IPv4 over IPv6 tunnel encapsulation processing on the downlink IPv4 data packet after the NAT processing, and then the CGN function module encapsulates the packet.
  • the post-downlink packet is transmitted to the HA function module.
  • the source address of the encapsulated downlink packet is the IPv6 address of the HA itself, and the destination address is the HoA of the MS.
  • the CGN function module searches for the obtained HoA of the MS in the stored correspondence by using the public IPv4 address of the destination address of the downlink IPv4 packet.
  • the CGN function module can use the existing method to perform IPv4 over IPv6 tunnel encapsulation.
  • the information carried in the encapsulation header of the IPv4 over IPv6 tunnel can indicate that the inner layer of the encapsulation is an IPv4 data packet.
  • Operation 5 After receiving the downlink IPv4 data packet sent by the CGN function module, the HA function module performs the following operations: 1 The HA function module determines the information according to the information carried in the IPv4 over IPv6 tunnel encapsulation header of the received downlink data packet. IPv4 packets are encapsulated in IPv6 packets.
  • the HA function module uses the destination address in the IPv4 over IPv6 tunnel encapsulation header. HoA6 searches in its stored correspondence to obtain the CoA6 of the MS.
  • the HA function module changes the destination address in the IPv4 over IPv6 tunnel encapsulation header from HoA6 to CoA6 to obtain the MIPv6 encapsulation-based downlink data packet for the downlink IPv4 data packet, and the HA function module also uses the MlPv6 tunnel of the downlink data packet.
  • the encapsulation header carries the information added by the previous CGN function module to indicate that the inner layer of the IPv4 over IPv6 tunnel encapsulation is an IPv4 data packet. After the destination address is translated, the information indicates that the downlink data packet is directly encapsulated into the IPv4 data packet by the MIPv6 tunnel. Packet. then, The HA function module sends the downlink data packet after the destination address is changed.
  • the client/proxy After receiving the downlink data packet sent by the HA, the client/proxy determines, according to the indication information carried in the MIPv6 tunnel encapsulation header of the downlink data packet, that the inner layer of the downlink data packet is IPv4 data, and the client/proxy strips the downlink.
  • the outer MIPv6 tunnel encapsulation header of the packet obtains the inner IPv4 packet of the inner layer.
  • Proxy mode after obtaining the downlink IPv4 packet, the Proxy needs to send the IPv4 packet to the MS.
  • the HA function module and the CGN function module are both located in the same physical entity, and the physical entity is externally represented as HA. If the HA function module and the CGN function module in the fifth embodiment are located in different physical entities, the process of implementing IPv4-v6 coexistence is basically the same as that described in the foregoing embodiment 5, except that the address function of the HA function module is changed. The difference is as follows: The HA function module in the fifth embodiment only performs the source address in the outer tunnel encapsulation header of the received uplink data packet and the destination address in the outer tunnel encapsulation header of the downlink data packet.
  • the HA function module needs to perform the destination address and the source address in the outer tunnel encapsulation header of the received uplink data packet and the downlink data packet. modify. Specifically, for the uplink data packet, the HA function module performs address translation on the destination address and the source address in the MIPv6 tunnel encapsulation header of the uplink data packet, and converts the source address from the CoA6 of the MS to the HoA6 of the MS, and the destination address. The IPv6 address of the HA is converted to the IPv6 address of the network device where the CGN function module is located.
  • the HA function module For the downlink data packet, the HA function module performs address translation on the destination address and the source address in the IPv4 over IPv6 tunnel encapsulation header of the downlink data packet.
  • the source address is changed from the IPv6 address of the network device where the CGN function module is located to the IPv6 address of the HA, and the destination address is changed from the HoA6 of the MS to the CoA6 of the MS.
  • IPv4-v6 coexistence method in which the HA function module and the CGN function module are located in different physical entities will not be described in detail herein.
  • Embodiment 6 Applying an IPv4-v6 coexistence method in a WiMAX network.
  • the IPv4 data packet is directly carried by the MIPv6 tunnel.
  • the HA function module and the CGN function module are located on different physical entities and are externally represented as two independent network devices.
  • the two network devices have different IPv6 addresses.
  • the two network devices can be externally represented as HA and CGN.
  • the MIPv6 decapsulation and the IPv4 over IPv6 tunnel encapsulation processing are performed by the HA, and the CGN performs IPv4 over IPv6 tunnel decapsulation and NAT processing on the uplink data packet, and the CGN sends the uplink IPv4 data packet to the CN by the CGN; Performing NAT and IPv4 over IPv6 tunnel encapsulation processing on the downlink IPv4 data packet, the HA performs IPv4 over IPv6 tunnel decapsulation and MIPv6 tunnel encapsulation processing on the downlink data packet, and the HA sends the downlink to the MS or MS proxy through the MIPv6 tunnel. data pack.
  • the HA in the sixth embodiment has the functions of MIPv6 encapsulation of the IPv4 data packet, decapsulation of the M1Pv6 encapsulation to obtain the IPv4 data packet, and IPv4 over IPv6 for the IPv4 data packet.
  • Tunnel encapsulation and decapsulation of IPv4 over IPv6 tunnel encapsulation that is, HA can perform MIPv6 encapsulation/decapsulation for IPv6 packets and MIPv6 encapsulation/decapsulation and IPv4 for IPv4 packets.
  • the HA in the sixth embodiment enhances the IPv4 over IPv6 tunnel encapsulation/decapsulation function.
  • IPv4-v6 coexistence method flow of the sixth embodiment is as shown in FIG.
  • Client/Proxy finds that an IPv4 packet needs to be sent to the HA.
  • Client mode - Bu' the above IPv4 packet is served by Client Generated;
  • Proxy mode IPv4 packets are generated by the MS and sent to the Proxy.
  • the source address of the IPv4 data packet is the IPv4 address of well known, and the destination address is the IPv4 address of the CN.
  • the client/proxy uses the MIPv6 tunnel to directly carry the IPv4 data.
  • the client/proxy encapsulates the IPv4 packet in the MIPv6 tunnel.
  • the source address of the MIPv6 tunnel encapsulation header is the CoA6 of the MS, and the destination address is the IPv6 address of the HA.
  • the header further includes indication information, where the indication information may be located in a last extension header, where the indication information may indicate that the uplink data packet is a data packet encapsulated by the MIPv6 tunnel directly to the IPv4 data packet, that is, the indication information can be determined according to the indication information.
  • the inner layer of the upstream packet encapsulated by the MIPv6 tunnel is an IPv4 packet, not an IPv6 packet. After that, the client/proxy sends the uplink packet encapsulated by the MIPv6 tunnel to the HA.
  • 1 HA determines whether the MIPv6 tunnel encapsulation header of the uplink data packet carries the indication information. After determining that the indication information is carried, it determines that the inner layer data packet encapsulated by the MIPv6 tunnel is an IPv4 data packet.
  • the HA decapsulates the uplink data packet by stripping the outer MIPv6 tunnel encapsulation of the uplink data packet to obtain an inner uplink IPv4 data packet.
  • IPv6 header to the IPv4 packet, that is, IPv4 over IPv6 tunnel encapsulation of the IPv4 packet.
  • the source address in the encapsulation header of the IPv4 over IPv6 tunnel is the HoA of the MS, and the destination address is the IPv6 address of the CGN.
  • the HA sends an IPv4 over IPv6 tunnel encapsulated upstream packet to the CGN.
  • the source address HoA is obtained by the HA using the source address CoA6 in the MIPv6 tunnel encapsulation header in its stored correspondence.
  • the CGN After receiving the uplink data packet sent by the HA, the CGN decapsulates the uplink data packet, that is, strips the outer IPv6 tunnel encapsulation header of the uplink data packet to obtain an uplink IPv4 data packet.
  • the CGN performs IPv4 to IPv4 NAT processing on the IPv4 data packet, that is, the CGN converts the source address well known IPv4 address in the uplink IPv4 data packet into a public IPv4 address.
  • the CGN stores or updates the mapping between the HoA6 of the MS, the public IPv4 after the NAT, and the well known IPv4 address.
  • the CGN sends a NAT-processed upstream IPv4 packet to the CN, and the upstream IPv4 packet is routed to the CN.
  • Operation 4 The CN sends a downlink IPv4 data packet to the mobile station, where the source address of the downlink IPv4 data packet is the IPv4 address of the CN, and the destination address is the public IPv4 address of the MS, and the CN obtains the received IPv4 data packet from the received uplink IPv4 data packet.
  • the source address public IPv4 address is used as the destination address of the downstream IPv4 packet. Since the destination address of the downlink IPv4 packet comes from the CGN, the downlink IPv4 packet is routed to the CGN.
  • the CGN After receiving the downlink IPv4 data packet sent by the CN, the CGN performs the following operations: The CGN performs NAT processing on the downlink IPv4 data packet sent by the CN, and performs IPv4 over IPv6 tunnel encapsulation on the downlink IPv4 data packet after the NAT processing, and encapsulates the packet.
  • the source address of the IPv4 over IPv6 tunnel header is the IPv6 address of the CGN
  • the destination address is the HoA6 of the MS
  • the HoA6 of the MS is the CGN that uses the public IPv4 address of the destination address of the downlink IPv4 packet to look up the corresponding relationship in the storage relationship. acquired.
  • the CGN sends the encapsulated downlink data packet
  • H is the data packet destination address HoA6, so the data packet is transmitted to the HA.
  • the operation performed (that is, the operation performed by the HA function module) is as follows: 1
  • the HA can determine that the inner layer of the downlink data packet is an IPv4 data packet according to the information carried in the IPv4 over IPv6 tunnel header;
  • the HA decapsulates the received downlink data packet, that is, strips the outer tunnel encapsulation header of the downlink data packet to obtain the inner layer downlink IPv4 data packet.
  • H0A6 searches in its stored correspondence to obtain the CoA6 of the MS.
  • the HA encapsulates the downlink IPv4 packet according to the obtained CoA6.
  • the source address is the IPv6 address of the HA in the MIPv6 tunnel encapsulation header
  • the destination address is the CoA6 address of the MS.
  • the MIPv6 tunnel encapsulation header further carries indication information, where the indication information indicates that the downlink data packet is a data packet directly encapsulated by the MIPv6 tunnel for the IPv4 data packet.
  • 5 HA sends the downlink packet encapsulated by the MIPv6 tunnel.
  • the execution order of 1, 2, and 3 may also be changed to 132 or 312, or may be performed simultaneously.
  • the client/proxy may determine, according to the indication information carried in the MIPv6 tunnel encapsulation header of the downlink data packet, that the inner layer of the data packet is IPv4 data, then the Client/Proxy The outer MlPv6 tunnel encapsulation header of the downlink data packet is stripped to obtain the inner layer downlink IPv4 data packet.
  • the Proxy needs to send the downlink IPv4 data packet to the MS.
  • Embodiment 7 Network equipment.
  • the network device is applied to the IPv4-v6 coexistence network environment.
  • the network device can be externally represented as HA.
  • the structure of the network device is as shown in FIG.
  • the network device in FIG. 14 includes: a first receiving module 1400, a first determining module 1410, a first coexistence processing module 1420, and a first transmitting module 1430.
  • the first receiving module 1410 receives the mobile IPv6 tunnel-based uplink data packet sent by the mobile terminal or the mobile terminal's proxy, and the downlink IPv4 data packet sent by the mobile terminal's communication peer.
  • the source address of the IPv4 data packet in the uplink data packet is a non-routable IPv4 address, and the destination address is a public IPv4 address of the communication peer.
  • the above non-routable IPv4 address can be a well-known IPv4 address.
  • the source address in the MIPv6 tunnel encapsulation header is the CoA6 of the mobile station, and the destination address is the IPv6 address of the HA of the mobile station.
  • the MIPv6 tunnel encapsulation header of the uplink data packet carries the indication information, where the indication information is used to indicate that the uplink data packet is a data packet encapsulated by the MIPv6 tunnel directly to the IPv4 data packet, that is, the network device can determine by using the indication information.
  • the inner layer of the upstream packet encapsulated by the MIPv6 tunnel is an IPv4 packet instead of an IPv6 packet.
  • the source address of the downlink IPv4 data packet is an IPv4 address of the communication peer of the mobile station, and the destination address is a public IPv4 address of the mobile station.
  • the first determining module 1410 determines whether the indication information is carried in the mobile IPv6 tunnel encapsulation header of the uplink data packet received by the first receiving module 1400.
  • the first coexistence processing module 1420 After the first determining module 1410 determines that the uplink data packet is a data packet that is directly encapsulated by the mobile IPv6 tunnel for the IPv4 data packet, the first coexistence processing module 1420 performs the uplink IPv4 data packet obtained by decapsulating the uplink data packet. The network address translation process is performed, and the first sending module 1430 sends the uplink IPv4 data packet after the network address translation processing to the communication peer end of the mobile terminal. In the downlink of the mobile terminal, the first coexistence processing module 1420 performs network address translation processing on the downlink IPv4 data packet received by the first receiving module, and then directly performs the mobile IPv6 tunnel on the downlink IPv4 data packet after the network address translation processing. Encapsulating, obtaining a downlink data packet, and transmitting, by the first sending module 1430, the downlink data packet to the mobile terminal. The downlink data packet is received by the mobile terminal or received by the agent of the mobile terminal.
  • the structure of the first coexistence processing module 1420 is as shown in FIG.
  • the first coexistence processing module 1420 in FIG. 15 includes: a mobile IPv6 decapsulation module 1421, a network address translation module 1422, and a mobile IPv6 encapsulation module 1423.
  • the mobile IPv6 decapsulation module 1421 decapsulates the uplink data packet received by the first receiving module 1400, and obtains an uplink IPv4 data packet from the uplink data packet.
  • This embodiment does not limit the sequence of the decapsulation processing operations performed by the mobile IPv6 decapsulation module 1421 and the first determination module 1410 to perform the determination operations.
  • the network address translation module 1422 determines, after the first determining module 1410, according to whether the uplink data packet carries the indication information, and determines that the uplink data packet is a data packet directly encapsulated by the mobile IPv6 tunnel for the IPv4 data packet,
  • the non-routable IPv4 address in the source address information of the uplink IPv4 packet is updated to a routable public IPv4 address, and the correspondence between the non-routable IPv4 address and the routable public IPv4 address is stored.
  • the routable public IPv4 address may be an IPv4 address selected by the network address translation module 1422 from a public IPv4 address pool in the network where the HA is located.
  • the HA Since the correspondence between the HoA6 and the CoA6 of the mobile terminal is originally stored in the HA, after the network address translation module 1422 stores the correspondence between the non-routable IPv4 address and the routable public IPv4 address, actually, The HA stores the correspondence between the HoA6, CoA6, the routable public IPv4 address, and the well-known non-routable IPv4 address of the mobile terminal.
  • the network address translation module 1422 uses the destination address in the downlink IPv4 data packet to find a corresponding non-routable IPv4 address in its stored correspondence.
  • the network address translation module 1422 transforms the destination address of the downlink IPv4 packet into a well-known IPv4 address that is not routable.
  • the mobile IPv6 encapsulation module 1423 directly uses the CoA6 found in the stored correspondence relationship of the destination address in the IPv4 data packet to encapsulate the downlink IPv4 data packet processed by the network address translation module into a mobile IPv6 tunnel to obtain downlink data. package.
  • the destination address in the mobile IPv6 tunnel encapsulation header of the downlink data packet is the discovered CoA6, and the source address is the IPv6 address of the HA.
  • the mobile IPv6 tunnel encapsulation header of the downlink data packet includes the foregoing indication information.
  • Embodiment 8 Network device.
  • the network device is applied to the IPv4-v6 coexistence network environment.
  • the network device can be externally represented as HA.
  • the structure of the network device is as shown in Fig. 16.
  • the network device in FIG. 16 includes: a second receiving module 1600, a second determining module 1610, a second coexistence processing module 1620, and a second sending module 1630.
  • the module shown in Figure 16 can be placed in the HA function module of the network device.
  • the second receiving module 1600 receives the mobile IPv6 tunnel-based uplink data packet sent by the mobile terminal or the mobile terminal's proxy, and the downlink data packet sent by the CGN function module.
  • the source address of the IPv4 data packet in the uplink data packet is a non-routable IPv4 address, and the destination address is a routable IPv4 address of the communication peer.
  • the source address in the MIPv6 tunnel encapsulation header of the uplink data packet is the CoA6 of the mobile terminal, and the destination address is the IPv6 address of the HA of the mobile terminal.
  • the MIPv6 tunnel encapsulation header of the uplink data packet carries the indication information, where the indication information is used to indicate that the data packet is a data packet encapsulated by the MIPv6 tunnel directly to the IPv4 data packet, that is, the MIPv6 can be determined according to the indication information.
  • the inner layer of the tunnel encapsulated upstream packet is an IPv4 packet, not Is an IPv6 packet.
  • the downlink data packet is a downlink data packet after the CGN function module performs network address translation and IPv4 over IPv6 tunnel encapsulation processing on the downlink IPv4 data packet sent by the communication peer end of the mobile terminal.
  • the source address of the downlink IPv4 data packet received by the CGN function module is the IPv4 address of the communication peer of the mobile station, and the destination address is the routable IPv4 address of the mobile station obtained by the communication peer from the source address of the uplink data packet.
  • the CGN function module sends the downlink data packet encapsulated by the IPv4 over IPv6 tunnel to the HA function module.
  • the second determining module 1610 determines whether the indication information is carried in the mobile IPv6 tunnel encapsulation header of the uplink data packet.
  • the second coexistence processing module 1620 obtains the uplink IPv4 for the uplink data packet.
  • the upstream packet of the packet based on the IPv4 over IPv6 tunnel encapsulation.
  • the second coexistence processing module 1620 can obtain the uplink data packet by means of decapsulation and re-encapsulation or modifying the source address and/or the destination address. The specific implementation process is as described in the foregoing second embodiment, and the description is not repeated here.
  • the second coexistence processing module 1620 obtains the mobile IPv6 packet for the downlink IPv4 data packet. Downstream packet encapsulated by the tunnel.
  • the mobile IPv6 tunnel encapsulation header of the downlink data packet carries indication information, where the indication information is used to indicate that the data packet is a data packet directly encapsulated by the MIPv6 tunnel for the IPv4 data packet.
  • the second coexistence processing module 1620 can obtain the downlink data packet by means of decapsulation and re-encapsulation or modifying the source address and/or the destination address. The specific implementation process is as described in the foregoing second embodiment, and the description is not repeated here.
  • the second sending module 1630 sends an IPv4 over IPv6 tunnel-based uplink data packet to the CGN function module, and sends a mobile IPv6 tunnel-based downlink data packet to the mobile terminal.
  • a structure of the second coexistence processing module 1620 described above is as shown in Fig. 17A.
  • the second coexistence processing module includes: a mobile IPv6 decapsulation module 1700, an IPv4 over IPv6 tunnel encapsulation module 1710, an IPv4 over IPv6 tunnel decapsulation module 1720, and a mobile IPv6 encapsulation module 1730.
  • the mobile IPv6 decapsulation module 1700 performs decapsulation processing on the uplink data packet received by the second receiving module 1600 to obtain an uplink IPv4 data packet. This embodiment does not limit the sequence of the decapsulation processing operation of the mobile IPv6 decapsulation module and the determination operation of the second determination module 1610.
  • the IPv4 over IPv6 tunnel encapsulation module 1710 performs IPv4 over IPv6 tunnel encapsulation on the uplink IPv4 data packet obtained by the mobile IPv6 decapsulation module 1700.
  • the uplink data packet encapsulated by the IPv4 over IPv6 tunnel is sent by the second sending module 1630 to the CGN function module.
  • the source address of the uplink data packet encapsulated by the IPv4 over IPv6 tunnel is the HoA6 of the mobile terminal.
  • the destination address of the IPv4 over IPv6 tunnel encapsulation header of the uplink data packet is the IPv6 address of the HA, that is, the IPv6 address of the CGN; the HA function module and the CGN function module
  • the IP address of the IPv4 over IPv6 tunnel encapsulation header of the uplink packet is the IPv6 address of the network device where the CGN function module resides.
  • the IPv4 over IPv6 tunnel decapsulation module 1720 is configured to the second receiving module.
  • the 1600 received downlink data packet is decapsulated to obtain a downlink IPv4 data packet.
  • the mobile IPv6 encapsulation module 1730 performs mobile IPv6 encapsulation on the downlink IPv4 data packet obtained by the IPv4 over IPv6 tunnel decapsulation module 1720.
  • the mobile IPv6 encapsulation module 1730 searches for the destination address HoA6 in the IPv4 over IPv6 tunnel encapsulation header in the correspondence relationship of the HA storage to obtain the CoA6 of the mobile terminal.
  • the mobile IPv6 encapsulation module 1730 performs MIPv6 tunnel encapsulation on the downlink IPv4 data packet according to the obtained CoA6.
  • the source address in the MIPv6 tunnel encapsulation header is the IPv6 address of the HA, and the destination address is the CoA6 address of the MS.
  • the mobile IPv6 encapsulation module 1730 may further carry indication information in the MIPv6 tunnel encapsulation header, where the indication information indicates that the downlink data packet is a data packet directly encapsulated by the mobile IPv6 tunnel for the IPv4 data packet.
  • the downlink data packet encapsulated by the mobile IPv6 encapsulating module 1730 is sent by the second sending module 1630 to the mobile terminal, and the downlink data packet may be directly received by the mobile terminal or received by the agent of the mobile terminal.
  • FIG. 17B Another structure of the second coexistence processing module 1620 described above is shown in Fig. 17B.
  • the second coexistence processing module includes: a first address translation module 1740 and a second address translation module 1750.
  • the first address conversion module 1740 obtains a mobile IPv6 tunnel encapsulation header for the uplink data packet according to the correspondence between the HoA6 and the CoA6 of the mobile station stored in the HA function module.
  • the source address CoA6 corresponds to the HoA6, and the first address conversion module 1740 converts the source address of the mobile IPv6 tunnel encapsulation of the uplink packet received by the second receiving module 1600 into the IPv6 home address of the mobile terminal.
  • the uplink data packet is an uplink data packet encapsulated by the IPv4 over IPv6 tunnel; the uplink data packet after the source address conversion is sent by the second sending module 1630 to the CGN function module.
  • the second address conversion module 1750 changes the destination address of the Pv4 over IPv6 tunnel encapsulation of the downlink data packet received by the second receiving module 1600 to the CoA6 of the mobile terminal.
  • the CoA6 of the mobile station is the second address conversion module 1750.
  • the destination address HoA6 of the IPv4 over IPv6 tunnel encapsulation header of the downlink data packet received by the second receiving module 1600 is searched and found in the correspondence stored by the HA function module.
  • the converted downlink data packet carries indication information, where the indication information is used to indicate that the downlink data packet is a data packet directly encapsulated by the MIPv6 tunnel for the IPv4 data packet.
  • FIG. 17C Another structure of the second coexistence processing module 1620 described above is shown in Fig. 17C.
  • the second coexistence processing module includes: a third address conversion module 1760 and a fourth address conversion module 1770.
  • the third address conversion module 1760 obtains the uplink data packet received by the second receiving module 1600 by using the correspondence between the HoA6 and the CoA6 of the mobile terminal stored by the HA function module.
  • the HoA6 corresponding to the source address CoA6 in the mobile IPv6 tunnel encapsulation header converts the source address of the mobile IPv6 tunnel encapsulation of the uplink data packet received by the second receiving module 1600 into the IPv6 home address of the mobile terminal, and converts the destination address into the CGN function.
  • the uplink data packet is an uplink data packet encapsulated by the IPv4 over IPv6 tunnel, and the uplink data packet after the address conversion is sent by the second sending module to the CGN function module.
  • the fourth address conversion module 1770 modifies the source address and the destination address of the IPv4 over IPv6 tunnel encapsulation of the downlink data packet received by the second receiving module 1600, and modifies the destination address from the HoA6 of the mobile station to the CoA6 of the mobile station, and the source The address is changed from the IPv6 address of the network device where the CGN function module is located to the IPv6 address of the HA, thereby obtaining a downlink data packet based on the Mobile IPv6 encapsulation.
  • the CoA6 of the mobile station is obtained by the fourth address conversion module 1770 in the correspondence relationship stored in the HA function module according to the destination address HoA6 of the IPv4 over IPv6 tunnel encapsulation header of the downlink data packet.
  • the MIPv6 tunnel encapsulation header of the downlink data packet after the address translation carries indication information, where the indication information is used to indicate that the downlink data packet is directly encapsulated in the MIPv6 tunnel for the IPv4 data packet. Packet.
  • Embodiment 9 A node device is a proxy of a mobile terminal or a mobile terminal.
  • the structure of the node device is as shown in FIG.
  • the node device in FIG. 18 includes: an uplink encapsulation module 1800, a third transmission module 1810, a third receiving module 1820, and a downlink decapsulation module 1830.
  • the uplink encapsulation module 1800 directly performs the mobile IPv6 tunnel encapsulation on the mobile IPv6 tunnel encapsulation header, and carries the indication information in the mobile IPv6 tunnel encapsulation header.
  • the indication information is used to indicate that the uplink data packet is a mobile IPv6 tunnel directly to the IPv4 data packet.
  • the source address of the uplink IPv4 packet is a non-routable IPv4 address, and the destination address is a routable IPv4 address of the communication peer.
  • the source address of the mobile IPv6 tunnel encapsulation header of the uplink data packet is CoA6 of the mobile terminal, and the destination address is the IPv6 address of the HA of the mobile terminal.
  • the third sending module 1810 sends the uplink data packet encapsulated by the mobile IPv6 tunnel to the network side (such as HA).
  • the third receiving module 1820 receives the downlink data packet transmitted by the network side.
  • the downlink decapsulation module 1830 determines whether the indication information is carried in the mobile IPv6 tunnel encapsulation header of the downlink data packet received by the third receiving module 1820, and decapsulates the downlink data packet, and determines that the After the information is indicated, it is determined that the data packet obtained after the decapsulation process is a downlink IPv4 data packet.
  • the destination address of the mobile IPv6 tunnel encapsulation header of the downlink data packet is CoA6 of the mobile terminal, and the source address is the IPv6 address of the HA of the mobile terminal.
  • the downlink decapsulation module 1830 can perform the determining operation and then perform the decapsulation operation, and the downlink decapsulation module 1830 can also perform the decapsulation operation and then perform the determining operation, or the downlink decapsulation module 1830 can simultaneously perform the determining operation. Reconcile encapsulation operations.
  • the third sending module 1810 also needs to send a downlink IPv4 data packet to the mobile terminal.
  • Embodiment 10 IPv4-v6 coexistence system. The structure of the system is shown in Figure 19.
  • the system of Figure 19 includes: a proxy 1900 for the mobile terminal and a home agent 1910.
  • the agent 1900 of the mobile terminal is located on the access network side of the mobile terminal. It should be noted that although only one agent 1900 of the mobile terminal and one home agent 1910 are shown in FIG. 19, in actual applications, the number of the agent 1900 and the home agent 1910 of the mobile terminal may be plural.
  • the proxy 1900 of the mobile terminal directly performs the mobile IPv6 tunnel encapsulation on the uplink IPv4 data packet sent by the mobile terminal, and carries the indication information in the mobile IPv6 tunnel encapsulation header, where the indication information is used to indicate that the uplink data packet is A packet that is directly encapsulated in a mobile IPv6 tunnel for IPv4 packets.
  • the mobile terminal's proxy 1900 sends the uplink packet encapsulated by the mobile IPv6 tunnel.
  • the source address of the upstream IPv4 packet is a non-routable IPv4 address, and the destination address is a routable IPv4 address of the communication peer.
  • the source address of the mobile IPv6 tunnel encapsulation header of the uplink data packet is the CoA6 of the mobile terminal, and the destination address is the IPv6 address of the HA of the mobile terminal.
  • the proxy 1900 of the mobile terminal determines the downlink data packet of the received mobile terminal, and after determining that the mobile IPv6 tunnel encapsulation header of the downlink data packet carries the indication information, the downlink data packet is solved.
  • the encapsulation process is performed to obtain a downlink IPv4 data packet and send it to the mobile terminal.
  • the destination address of the mobile IPv6 tunnel encapsulation header of the downlink data packet is the CoA6 of the mobile terminal, and the source address is the IPv6 address of the HA of the mobile terminal.
  • the destination address of the downlink IPv4 packet is a non-routable IPv4 address, and the source address is a routable IPv4 address of the communication peer.
  • the home agent 1910 determines whether the mobile IPv6 tunnel encapsulation header of the received uplink data packet is carried. If there is indication information, if it is determined that the indication information is carried, it is determined that the data packet is a data packet encapsulated by the mobile IPv6 tunnel directly to the uplink IPv4 data packet, and then the home agent 1910 obtains the uplink IPv4 obtained by decapsulating the uplink data packet.
  • the data packet performs network address translation processing, and sends the uplink IPv4 data packet after the network address translation processing to the communication peer end of the mobile terminal.
  • the specific network address conversion processing procedure and the like are as described in the above embodiments.
  • the home agent 1910 performs network address translation processing on the downlink IPv4 data packet sent by the communication peer end, and the home agent 1910 directly encapsulates the downlink IPv4 data packet processed by the network address translation into the mobile IPv6 tunnel encapsulation, and the home agent 1910
  • the mobile IPv6 tunnel encapsulation header that directly encapsulates the mobile IPv6 tunnel for the downlink IPv4 data packet carries the indication information, and the home agent 1910 transmits the downlink data packet encapsulated by the mobile IPv6 tunnel to the proxy of the mobile terminal.
  • the specific processing procedure of the home agent 1910 for the received downlink IPv4 data packet is as described in the above embodiment.
  • the specific structure of the home agent function module 1910 and the agent 1900 of the mobile terminal in the tenth embodiment are as described in the above embodiments.
  • Embodiment 11 1PV4-V6 coexistence system.
  • the structure of the system is shown in Figure 20.
  • the system in Fig. 20 includes: a proxy for the mobile terminal 2000, a home agent function module 2010, and a CGN function module 2020. It should be noted that, in FIG. 20, only one agent 2000 of the mobile terminal, one home agent function module 2010, and one CGN function module 2020 are shown. However, in practical applications, the agent 2000 and the home agent function module of the mobile terminal are used.
  • the number of 2010 and CGN function modules 2020 can be multiple.
  • the proxy 2000 of the mobile terminal directly performs the mobile IPv6 tunnel encapsulation on the uplink IPv4 data packet sent by the mobile terminal, and carries the indication information in the mobile IPv6 tunnel encapsulation header, where the indication information is used to indicate that the uplink data packet is A packet that is directly encapsulated in a mobile IPv6 tunnel for IPv4 packets.
  • the agent 2000 of the mobile terminal transmits the uplink packet encapsulated by the mobile IPv6 tunnel.
  • the source address of the upstream IPv4 packet is a non-routable IPv4 address, and the destination address is a routable IPv4 address of the communication peer.
  • the source address of the mobile IPv6 tunnel encapsulation header of the uplink data packet is the CoA6 of the mobile terminal, and the destination address is the IPv6 address of the HA of the mobile terminal.
  • the agent 2000 of the mobile terminal determines the downlink data packet of the received mobile terminal, and after determining that the mobile IPv6 tunnel encapsulation header of the downlink data packet carries the indication information, the downlink data packet is solved.
  • the encapsulation process is performed to obtain a downlink IPv4 data packet and send it to the mobile terminal.
  • the destination address of the mobile IPv6 tunnel encapsulation header of the downlink data packet is the CoA6 of the mobile terminal, and the source address is the IPv6 address of the HA of the mobile terminal.
  • the destination address of the downlink IPv4 packet is a non-routable IPv4 address, and the source address is a routable IPv4 address of the communication peer.
  • the home agent function module 2010 receives the uplink data packet of the mobile terminal.
  • the home agent function module 2010 determines whether the mobile IPv6 tunnel encapsulation header of the uplink data packet carries the indication information. When it is determined that the indication information is carried, the home agent function module 2010 determines that the uplink data packet is an IPv4 data packet. Packets encapsulated directly in the mobile IPv6 tunnel. The home agent function module 2010 obtains an IPv4 over IPv6 tunnel-based uplink data packet for the uplink IPv4 data packet in the uplink data packet, and the home agent function module 2010 sends the uplink data according to the IPv4 over IPv6 tunnel encapsulation to the CGN function module 2020. package. The home agent function module 2010 has various manners for obtaining the uplink data packet based on the IPv4 over IPv6 tunnel encapsulation of the uplink IPv4 data packet in the uplink data packet, which is specifically described in the foregoing embodiment.
  • the home agent function module 2010 determines the mobile IPv6 tunnel encapsulation header of the received downlink data packet. Whether the indication information is carried in the device, and after determining that the appeal indication information is carried, it is determined that the received downlink data packet is a data packet encapsulated by the IPv4 over IPv6 tunnel directly to the IPv4 data packet.
  • the home agent function module 2010 obtains a mobile IPv6 tunnel-based downlink data packet for the downlink IPv4 data packet, and the home agent function module 2010 transmits the mobile IPv6 tunnel-based downlink data packet to the mobile terminal agent 2000.
  • the home agent function module 2010 obtains a specific implementation manner of the mobile IPv6 tunnel-based downlink data packet for the downlink IPv4 data packet, which is specifically described in the foregoing embodiment.
  • the CGN function module 2020 receives the downlink IPv4 data packet sent by the communication peer end of the mobile terminal, and performs network address translation and IPv4 over IPv6 tunnel encapsulation processing on the downlink IPv4 data packet, and sends the home agent function module to the home agent function module. 2010 Sends the downlink data packet after the IPv4 over IPv6 tunnel encapsulation process.
  • the destination address and source address of the downlink IPv4 data packet, the network address translation process, and the IPv4 over IPv6 tunnel encapsulation process are as described in the above embodiments.
  • the CGN function module 2020 receives the home agent function module 2010 based on IPv4 over
  • the IPv6 tunnel encapsulates the uplink data packet, and performs IPv4 over IPv6 tunnel decapsulation processing and network address translation on the uplink data packet. Then, the CGN function module 2020 sends the network address translated uplink IPv4 data packet to the communication peer end.
  • the destination address and source address of the uplink IPv4 packet, the network address translation process, and the IPv4 over IPv6 tunnel decapsulation process are as described in the above embodiments.
  • the CGN function module 2020 and the home agent function module 2010 in the embodiment ⁇ can be located in the same network device or in different network devices.
  • the specific structures of the agent 2000, the home agent 2010, and the CGN function module 2020 of the mobile terminal in the eleventh embodiment are as described in the above embodiments.
  • Embodiment 12 IPv4-v6 coexistence system. The structure of the system is shown in Figure 21.
  • the system of Figure 21 includes: a first network device 2100 and a second network device 2110.
  • the first network device 2100 is provided with a home agent function module, and the first network device 2100 can be externally represented as HA.
  • the second network device 2110 is provided with a CGN function module, and the second network device 2110 can be externally represented as CGN. It should be noted that although only one first network device 2100 and one second network device 21 10 are shown in FIG. 21, in actual applications, the number of the first network device 2100 and the second network device 21 10 may be For multiple.
  • the first network device 2100 receives the uplink data packet of the mobile terminal.
  • the first network device 2100 determines whether the mobile IPv6 tunnel encapsulation header of the uplink data packet carries the indication information. When it is determined that the indication information is carried, the first network device 2100 determines that the uplink data packet is an IPv4 data packet. Packets encapsulated directly in the mobile IPv6 tunnel. The first network device 2100 acquires an IPv4 over IPv6 tunnel-based uplink data packet for the uplink IPv4 data packet in the uplink data packet, and the first network device 2100 sends the second network device 21 10 to the second network device 21 10 based on the IPv4 over IPv6 tunnel encapsulation. Upstream packet. The first network device 2100 obtains an IPv4 over IPv6 tunnel-based uplink packet for the uplink IPv4 data packet in the uplink data packet, and is specifically described in the foregoing embodiment.
  • the first network device 2100 determines whether the mobile IPv6 tunnel encapsulation header of the received downlink data packet carries the indication information, and after determining that the appeal indication information is carried, determining that the received downlink data packet is Packets encapsulated directly into IPv4 over IPv6 tunnels for IPv4 packets.
  • the first network device 2100 acquires a mobile IPv6 tunnel-based downlink data packet for the downlink IPv4 data packet, and the first network device 2100 transmits the mobile IPv6 tunnel-based downlink data packet to the mobile terminal.
  • the specific implementation manner of the mobile network IPv6 tunnel-based downlink data packet for the downlink IPv4 data packet is determined by the first network device 2100, which is specifically described in the foregoing embodiment.
  • the second network device 21 10 receives the downlink IPv4 data packet sent by the communication peer end of the mobile terminal, and performs network address translation and IPv4 over IPv6 tunnel encapsulation processing on the downlink IPv4 data packet, and is first
  • the network device 2100 sends the downlink data packet after the IPv4 over IPv6 tunnel encapsulation process.
  • the destination address and source address of the downlink IPv4 data packet, the network address translation process, and the IPv4 over IPv6 tunnel encapsulation process are as described in the above embodiments.
  • the second network device 2110 receives the uplink data packet encapsulated by the first network device 2100 based on the IPv4 over IPv6 tunnel, and performs IPv4 over IPv6 tunnel decapsulation processing and network address translation on the uplink data packet. After that, the second network device 21 10 sends the network address translated uplink IPv4 data packet to the communication peer end.
  • the destination address and source address of the uplink IPv4 data packet, the network address translation process, and the IPv4 over IPv6 tunnel decapsulation process are as described in the above embodiments.
  • first network device 2100 and the second network device 2110 in the twelfth embodiment are as described in the above embodiments.
  • the present invention can be implemented by means of software plus a necessary hardware platform, and of course, all can be implemented by hardware, but in many cases, the former is better.
  • Implementation Based on such understanding, all or part of the technical solution of the present invention contributing to the background art may be embodied in the form of a software product, which may be stored in a storage medium such as a ROM/RAM, a magnetic disk, an optical disk, or the like.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention or portions of the embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Description

IPv4-v6共存方法、 网络设备及系统 技术领域
本发明涉及网络通讯技术领域,具体涉及 IPv4和 IPv6共存方法、网络设备、节点设备和 IPv4-v6 共存系统。
发明背景
在无线环境下,可以采用 Dual-stack lite (轻量级双栈, DS-lite)技术解决目前 IPv4地址短缺问题, 实现了 IPv4-v6共存。 DS-lite与 Mobile IP (移动 IP, MIP) 的结合可以为移动终端 (如移动台 MS )提 供移动性支持。
无线移动环境下, 基于 DS-lite与 MIP结合的 IPv4-v6共存方法 (即移动终端的上下行数据包传输 方法) 如附图 1所示。
图 1中, MS的上行数据传输过程如操作 1-3的描述, MS的下行数据传输过程如操作 4-6的描述。 操作 1、 首先, 在移动终端如 MS具有 DS-lite能力的情况下, DS-lite的客户端 (如位于 MS中, 可 简称为 Client)发现有 IPv4数据包需要发送, Client将该 IPv4数据包的源地址设置为不具有路由意义的 众所周知的 IPv4地址, 将目的地址设置为通信对端 (CN) 的 IPv4地址。 上述众所周知的 IPv4地址可 以被所有 MS中的 Client共享。在移动终端如 MS不具有 DS-lite能力的情况下, MS发送上述 IPv4数据包, MS的 DS-lite代理 (位于 MS所连接的接入网内, 可简称为 Proxy) 接收 IPv4数据包。
然后, Client/Proxy将该 IPv4数据包进行 IPv4 over IPv6隧道的封装, 封装后的数据包的源地址为 MS的 HoA6 (基于 IPv6的家乡地址), 目的地址为 Carrier Grade Network Address Translation (承载级 别的网络地址转换, CGN) 设备的 IPv6地址。
之后, Client/Proxy将封装后的数据包进行 MIPv6封装, MIPv6封装的源地址为 MS的 CoA6 (基于
IPv6的转交地址), 目的地址为家乡代理 HA的 IPv6地址。
最后, Client/Proxy发送两次封装后的上行数据包。
操作 2、 HA接收到 Client/Proxy发送的上行数据包后, 剥去最外层的 MIPv6封装, 并向 CGN发送 内层嵌套的基于 IPv4 over IPv6隧道封装的上行数据包。
操作 3、 CGN接收到 HA发送的上行数据包后,剥去外层的 IPv4 over IPv6隧道封装,将内层的 IPv4 数据包进行 IPv4 to IPv4的 NAT转换, 转换后的 IPv4数据包的源地址为一个公有的可路由的 IPv4地址, 该可路由的 IPv4地址从 CGN所在的网络中的 IPv4地址池中选取; 之后, CGN存储或更新地址之间的 映射关系, 并发送转换后的 IPv4数据包, 该 IPv4数据包会被路由至 CN。 上述映射关系为众所周知的 IPv4地址、 MS的 HoA6和转换后公有 IPv4地址之间的对应关系。
操作 4、 CGN接收 CN发送的下行 IPv4数据包, CGN根据下行 IPv4数据包的目的 IPv4地址在其存 储的映射关系中査找匹配的记录, 根据査找结果对该下行 IPv4数据包进行 IPv4 to IPv4的 NAT, NAT 处理后的下行 IPv4数据包的源地址为 CN的 IPv4地址, 目的地址为众所周知的 IPv4地址; 然后, CGN 在 IPv4 over IPv6隧道接口处对 NAT后的下行 IPv4数据包进行下行隧道封装, 封装后的下行数据包的 外层隧道源地址为 CGN设备的 IPv6地址, 目的地址为 MS的 HoA6; 最后, CGN将封装后的数据包发 送出去。
操作 5、 HA截获 CGN发送的数据包, 在缓存的移动绑定关系中根据数据包的目的地址査找 MS的 CoA6地址, 并进行 MIPv6封装, 该 MIPv6封装后的数据包的源地址为 HA的 IPv6地址, 目的地址为 MS 的 CoA6。 HA发送 MIPv6封装后的下行数据包。
操作 6、 Client/Proxy接收 HA发送的下行数据包, 并进行 MIPv6隧道解封装和 IPv4 over IPv6隧道 解封装, 获得下行 IPv4数据包。 在 Proxy方式下, Proxy还需要将该 IPv4数据包发送给 MS。
在实现本发明的过程中, 发明人发现: 在上述上行和下行 IPv4数据包传输过程中, 节点设备和 网络侧都需要进行两次隧道封装和解封装操作, 而两次隧道封装和解封装操作增加了节点设备 (即 Client/Proxy) 开销, 使节点设备的协议栈层次复杂(节点设备的协议栈如图 3所示), 而且, 由于节 点设备需要同时具备 IPv4 over IPv6隧道接口和 MIPv6隧道接口, 使节点设备结构复杂。 另外, 由于 两次隧道封装均是在原有数据包上增加一个新的 IPv6头, 因此, 在节点设备与 HA之间传输的数据包 为增加了两层隧道封装头的数据包, 这两层隧道封装头占用了节点设备与 HA之间的传输资源, 造成 了传输资源浪费。 发明内容
本发明实施方式提供 IPv4-v6共存方法、 网络设备及系统, 将 IPv4数据包直接进行 MIP6封装并传 输, 降低了节点设备结构的复杂度, 节约了传输资源。
本发明实施方式提供的 IPv4-v6共存方法, 包括:
在移动终端的上行, 判断上行数据包的移动 IPv6隧道封装头中携带的指示信息, 在根据该指示 信息判断出该数据包为对 IPv4数据包直接进行移动 IPv6隧道封装的数据包后, 对所述上行数据包进 行解封装后获得的上行 IPv4数据包进行网络地址转换处理, 并向所述移动终端的通信对端发送所述 网络地址转换处理后的上行 IPv4数据包;
在移动终端的下行, 对所述通信对端发送来的下行 IPv4数据包进行网络地址转换处理, 将网络 地址转换处理后的下行 IPv4数据包直接进行移动 IPv6隧道封装,在针对所述下行 IPv4数据包直接进行 移动 IPv6隧道封装的移动 IPv6隧道封装头中携带指示信息,并向所述移动终端发送所述移动 IPv6隧道 封装后的下行数据包。
本发明实施方式提供的另一种 IPW-V6共存方法, 包括:
在移动终端的上行, 判断接收到的上行数据包的移动 IPv6隧道封装头中携带的指示信息, 在根 据该指示信息判断出上行数据包为对上行 IPv4数据包直接进行移动 IPv6隧道封装的数据包后,获取 针对所述上行 IPv4数据包的基于 IPv4 over IPv6隧道封装的上行数据包,向承载级别的网络地址转换 CGN功能模块发送所述基于 IPv4 over IPv6隧道封装的上行数据包, 以使所述 CGN功能模块对所述 上行数据包执行解封装、网络地址转换及向所述移动终端的通信对端发送网络地址转换处理后的上 行 IPv4数据包操作;
在移动终端的下行, 接收 CGN功能模块发送来的下行数据包, 所述下行数据包为: 所述 CGN 功能模块对所述通信对端发送来的下行 IPv4数据包进行网络地址转换及 IPv4 over IPv6隧道封装处 理后的下行数据包; 获取针对所述下行 IPv4数据包的基于移动 IPv6隧道封装的下行数据包, 并向 所述移动终端发送所述基于移动 IPv6隧道封装的下行数据包。
本发明实施方式提供的另一种 IPv4-v6共存方法, 包括:
移动终端或移动终端的代理将需要发送的上行 IPv4数据包直接进行移动 IPv6隧道封装, 在移动 IPv6隧道封装头中携带用于指示该数据包为对 IPv4数据包直接进行移动 IPv6隧道封装的数据包的指 示信息, 并发送所述移动 IPv6隧道封装后的上行数据包;
移动终端或移动终端的代理在确定出接收到的下行数据包的移动 IPv6隧道封装头中携带有所 述指示信息后, 对所述下行数据包进行移动 IPv6解封装处理, 获取下行 IPv4数据包。
本发明实施方式提供的一种网络设备, 应用于 IPv4-v6共存的网络环境下, 所述网络设备包括: 第一接收模块, 用于接收移动终端或移动终端的代理发送来的基于移动 IPv6隧道封装的上行数 据包、 以及所述移动终端的通信对端发送来的下行 IPv4数据包;
第一判断模块, 用于判断所述第一接收模块接收的上行数据包的移动 IPv6隧道封装头中携带的 指 信息;
第一共存处理模块, 用于:
在所述移动终端的上行, 在所述第一判断模块根据所述指示信息判断出该上行数据包为对 IPv4 数据包直接进行移动 IPv6 隧道封装的数据包后, 对所述上行数据包进行解封装后获得的上行 IPv4 数据包进行网络地址转换处理;
在所述移动终端的下行, 对所述通信对端发送来的下行 IPv4数据包进行网络地址转换处理, 将 网络地址转换处理后的下行 IPv4数据包直接进行移动 IPv6隧道封装, 获得下行数据包;
第一发送模块, 用于向所述移动终端的通信对端发送所述网络地址转换处理后的上行 IPv4数据 包, 向所述移动终端发送所述下行数据包。
本发明实施方式提供的另一种网络设备,应用于 IPv4-v6共存的网络环境下,所述网络设备包括: 第二接收模块, 用于接收移动终端或移动终端的代理发送来的基于移动 IPv6隧道封装的上行数 据包、 以及 CGN功能模块发送来的下行数据包, 所述下行数据包为: 所述 CGN功能模块对所述移动 终端的通信对端发送来的下行 IPv4数据包进行网络地址转换及 IPv4 over IPv6隧道封装处理后的下行 数据包;
第二判断模块, 用于判断所述第二接收模块接收的上行数据包的移动 IPv6隧道封装头中携带的 指示信息;
第二共存处理模块, 用于:
在移动终端的上行, 在所述第二判断模块根据指示信息判断出所述上行数据包为对 IPv4数据包 直接进行移动 IPv6隧道封装的数据包后, 获取针对所述上行数据包中的上行 IPv4数据包的基于 IPv4 over IPv6隧道封装的上行数据包;
在移动终端的下行, 获取针对所述下行 IPv4数据包的基于移动 IPv6隧道封装的下行数据包; 第二发送模块, 用于向 CGN功能模块发送基于 IPv4 over IPv6隧道封装的上行数据包, 并向所 述移动终端发送基于移动 IPv6隧道封装的下行数据包。 本发明实施方式提供的节点设备, 为移动终端或移动终端的代理, 包括: 上行封装模块,用于将需要发送的上行 IPv4数据包直接进行移动 IPv6隧道封装,在移动 IPv6隧道 封装头中携带指示信息; 所述指示信息用于指示该上行数据包为对 IPv4数据包直接进行移动 IPv6隧 道封装的数据包;
第三发送模块, 用于向网络侧发送所述移动 IPv6隧道封装后的上行数据包;
第三接收模块, 用于接收下行数据包;
下行解封装模块, 用于判断所述下行数据包的移动 IPv6隧道封装头中是否携带有所述指示信 息, 对所述下行数据包进行解封装处理, 根据判断结果确定解封装获得的数据包为下行 IPv4数据包。
本发明实施方式提供的 IPv4-v6共存系统, 包括:
移动终端的代理, 位于移动终端的接入网侧, 用于将移动终端发送来的上行 IPv4数据包直接进 行移动 IPv6隧道封装,在移动 IPv6隧道封装头中携带指示信息,并发送所述移动 IPv6隧道封装后的上 行数据包; 接收所述移动终端的下行数据包, 在判断出所述下行数据包的移动 IPv6隧道封装头中携 带有所述指示信息后, 对所述下行数据包进行解封装处理, 获取下行 IPv4数据包, 并发送给所述移 动终端;
家乡代理, 用于:
在移动终端的下行, 判断接收到的上行数据包的移动 IPv6隧道封装头中携带的指示信息, 在根 据指示信息判断出该数据包为对 IPv4数据包直接进行移动 IPv6隧道封装的数据包后, 对所述上行数 据包进行解封装后获得的上行 IPv4数据包进行网络地址转换处理, 并向所述移动终端的通信对端发 送所述网络地址转换处理后的上行 IPv4数据包;
在移动终端的下行, 对所述通信对端发送来的下行 IPv4数据包进行网络地址转换处理, 将网络 地址转换处理后的下行 IPv4数据包直接进行移动 IPv6隧道封装,在针对所述下行 IPv4数据包直接进行 移动 IPv6隧道封装的移动 IPv6隧道封装头中携带指示信息, 并向所述移动终端的代理发送所述移动 IPv6隧道封装后的下行数据包。
本发明实施方式提供的另一种 IPv4-v6共存系统, 包括:
移动终端的代理, 位于所述移动终端的接入网侧, 用于将移动终端发送来的上行 IPv4数据包直 接进行移动 IPv6隧道封装,在移动 IPv6隧道封装头中携带指示信息,并发送所述移动 IPv6隧道封装后 的上行数据包; 接收所述移动终端的下行数据包, 在判断出所述下行数据包的移动 IPv6隧道封装头 中携带有所述指示信息后, 对所述下行数据包进行解封装处理, 获取下行 IPv4数据包, 并发送给所 述移动终端;
家乡代理功能模块, 用于:
在移动终端的上行, 接收所述移动终端的上行数据包, 在根据所述上行数据包的移动 IPv6隧道 封装头中携带的指示信息判断出所述上行数据包为对 IPv4数据包直接进行移动 IPv6隧道封装的数据 包后, 获取针对所述上行数据包中的上行 IPv4数据包的基于 IPv4 over IPv6隧道封装的上行数据包, 发送基于 IPv4 over IPv6隧道封装的上行数据包;
在移动终端的下行, 接收所述移动终端的下行数据包, 在根据所述下行数据包的移动 IPv6隧道 封装头中携带的信息判断出所述下行数据包为对 IPv4数据包进行 IPv4 over IPv6隧道封装的数据包 后, 获取针对所述下行 IPv4数据包的基于移动 IPv6隧道封装的下行数据包, 向移动终端发送基于 移动 IPv6隧道封装的- 行数据包;
CGN功能模块, 用于接收所述移动终端的通信对端发送来的下行 IPv4数据包, 对该下行 IPv4 数据包进行网络地址转换及 IPv4 over IPv6隧道封装处理, 并向家乡代理功能模块发送所述 IPv4 over IPv6隧道封装处理后的下行数据包; 接收家乡代理功能模块发送来的基于 IPv4 over IPv6隧道封装的 上行数据包, 并对该上行数据包进行 IPv4 over IPv6隧道解封装处理及网络地址转换, 向所述通信对 端发送所述网络地址转换后的上行 IPv4数据包。
本发明实施方式提供的另一种 IPv4-v6共存系统, 包括:
第一网络设备, 设置有家乡代理功能模块, 所述第一网络设备用于:
在移动终端的上行, 接收所述移动终端的上行数据包, 在根据所述上行数据包的移动 IPv6隧道 封装头中携带的指示信息判断出所述上行数据包为对 IPv4数据包直接进行移动 IPv6隧道封装的数据 包后, 获取针对所述上行数据包中的上行 IPv4数据包的基于 IPv4 over IPv6隧道封装的上行数据包, 发送基于 IPv4 over IPv6隧道封装的上行数据包;
在移动终端的下行, 接收所述移动终端的下行数据包, 在根据所述下行数据包的移动 IPv6隧道 封装头中携带的信息判断出所述下行数据包为对 IPv4数据包进行 IPv4 over IPv6隧道封装的数据包 后, 获取针对所述下行 IPv4数据包的基于移动 IPv6隧道封装的下行数据包, 向移动终端发送基于 移动 IPv6隧道封装的下行数据包;
第二网络设备,设置有 CGN功能模块,所述第二网络设备用于接收所述移动终端的通信对端发 送来的下行 IPv4数据包, 对该下行 IPv4数据包进行网络地址转换及 IPv4 over IPv6隧道封装处理, 并 向第一网络设备发送所述 IPv4 over IPv6隧道封装处理后的下行数据包; 接收第一网络设备发送来的 基于 IPv4 over IPv6隧道封装的上行数据包, 并对该上行数据包进行 IPv4 over IPv6隧道解封装处理及 网络地址转换, 向所述通信对端发送所述网络地址转换后的上行 IPv4数据包。
通过上述技术方案的描述可知,本发明实施方式通过利用 MIPv6隧道直接承载 IPv4数据包方式, 在节点设备与 HA之间传输对 IPv4数据包直接进行 MIPv6隧道封装的上下行数据包,在不需要在移 动终端处为其分配可路由的公有 IPv4地址、 且能够为该移动终端提供 IPv4服务的情况下, 简化了 节点设备的操作, 降低了节点设备结构复杂度, 且节约了节点设备与 HA之间的传输资源。 附图简要说明
图 1是现有技术的无线环境下的 IPv4-v6共存方法流程图;
图 2是现有技术的节点设备协议栈示意图;
图 3a和 3b是本发明实施例一的 IPv4-v6共存方法流程图;
图 4a和 4b是本发明实施例二的 IPv4-v6共存方法流程图;
图 5是 WiMAX网络参考模型;
图 6是本发明实施例三的系统模型示意图; 图 7是本发明实施例三的 HA对数据包的处理操作示意图;
图 8是本发明实施例三的 IPv4-v6共存方法流程图;
图 9是本发明实施例三的节点设备协议栈示意图;
图 10是本发明实施例四的系统模型示意图;
图 1 1是本发明实施例四的 HA和 CGN对数据包的处理操作示意图;
图 12是本发明实施例五的 IPv4-v6共存方法流程图;
图 13是本发明实施例六的 IPv4-v6共存方法流程图;
图 14是本发明实施例七的网络设备结构示意图;
图 15是本发明实施例七的第一共存处理模块结构示意图;
图 16是本发明实施例八的网络设备结构示意图;
图 17A、 B和 C是本发明实施例八的第二共存处理模块结构示意图;
图 18是本发明实施例九的节点设备结构示意图;
图 19是本发明实施例十的 IPv4-v6共存系统示意图;
图 20是本发明实施例十一的 IPv4-v6共存系统示意图;
图 21是本发明实施例十二的 IPv4-v6共存系统示意图。
实施本发明的方式
实施例一、 IPv4-v6共存方法。该方法可应用于包含 HA功能模块的多种无线移动系统中,如 3G 系统、 WLAN系统、 以及 WiMAX系统等。 该方法的流程如附图 3所示。
图 3a是上行数据包的处理流程图, 图 3b是下行数据包处理流程图。
图 3a中, S300、 移动终端 (如移动台 MS)或位于移动终端的接入网侧的代理将需要发送的 IPv4 数据包直接进行 MIPv6隧道封装, 并发送 MIPv6隧道封装后的上行数据包。上述 IPv4数据包的源地址 为不可路由的 IPv4地址, 目的地址为通信对端的可路由的公有 IPv4地址。上述不可路由的 IPv4地址可 以为一个众所周知的 IPv4地址,所有 MS可以采用一个相同的众所周知的 IPv4地址,该众所周知的 IPv4 地址可由专门的 IP地址分配组织 (如 IANA ) 来确定。 对 IPv4数据包直接进行 MIPv6隧道封装可以称 为 IPv4 over MIPv6的封装。
在移动台执行 MIPv6隧道封装操作的情况下, 可以由移动台中的 DS-lite Client功能模块或者 MIP 封装功能模块来执行, 或者也可以在移动台中新增其它功能模块来执行该 IPv4 over MIPv6的封装。
上述上行数据包的 MIPv6隧道封装头中的源地址为该移动台的 IPv6转交地址(下述简称为 CoA6,
CoA即 Care of Address) , 目的地址为该移动台的 HA的 IPv6地址。 而且, 该上行数据包的 MIPv6隧道 封装头中携带有指示信息,该指示信息用于表示该上行数据包为对 IPv4数据包直接进行 MIPv6隧道封 装的数据包, 即利用该指示信息能够判断出基于 MIPv6隧道封装的上行数据包的内层是 IPv4数据包, 而不是 IPv6数据包。
S310、 HA功能模块接收上行数据包, 并判断该上行数据包的移动 IPv6隧道封装头中是否携带有 指示信息, 在判断出携带有指示信息, 即根据该指示信息判断出该上行数据包为对 IPv4数据包直接 进行移动 IPv6隧道封装的数据包, 到 S320, 否则, 到 S330。
S320、 HA功能模块对上述上行数据包进行解封装后获得的上行 IPv4数据包进行网络地址转换处 理, 并向移动台的通信对端发送网络地址转换处理后的上行 IPv4数据包。
本实施例需要使 HA功能模块具有地址转换处理功能、 以及与移动台的通信对端之间传输 IPv4 数据包等功能。 也就是说, HA功能模块对上行数据包进行解封装处理, 从中获取上行 IPv4数据包, 之后, HA功能模块对上行 IPv4数据包进行网络地址转换处理, 将上行 IPv4数据包的源地址由不可路 由的 IPv4地址转换为可路由的公有 IPv4地址, 并存储移动台的 HoA6、 CoA6、 可路由的公有 IPv4地址 以及众所周知不可路由的 IPv4地址之间的对应关系, 然后, HA功能模块向移动台的通信对端发送源 地址转换后的上行 IPv4数据包。 HA功能模块存储的上述对应关系可以用于该移动台的下行 IPv4数据 包的传输。 另外, 上述可路由的公有 IPv4地址可以是 HA功能模块从 HA功能模块所在的网络中的公 有 IPv4地址池中选取的 IPv4地址。 H A功能模块所在的网络设备对外可以表现为 HA。
S330、本实施例的 IPv4-v6共存方法结束, HA功能模块可以采用现有的方法对接收到的上行数据 包进行处理。
图 3b中, S340、 移动台的通信对端 CN发送下行 IPv4数据包。 该下行 IPv4数据包的源地址为移动 台的通信对端的 IPv4地址, 目的地址为上述移动台的可路由的公有 IPv4地址。
S350、 HA功能模块接收到移动台的通信对端发送来的下行 IPv4数据包, HA功能模块对该下行 IPv4数据包进行网络地址转换处理, 转换后的下行 IPv4数据包的源地址为 CN的 IPv4地址, 目的地址 为众所周知的 IPv4地址, HA功能模块将网络地址转换处理后的下行 IPv4数据包进行移动 IPv6隧道封 装, 由 HA功能模块向移动台发送移动 IPv6隧道封装后的下行数据包。 该下行数据包的移动 IPv6隧道 封装头中包含有指示信息,根据该指示信息可以判断出该下行数据包为对 IPv4数据包直接进行 MIPv6 隧道封装的数据包。
S350的具体过程可以为: HA功能模块在接收到的下行 IPv4数据包后, 利用该下行 IPv4数据包中 的目的地址在其存储的对应关系中査找对应的 CoA6和不可路由的 IPv4地址。 该对应关系为 S320中 HA功能模块存储的对应关系。 HA功能模块将下行 IPv4数据包的目的地址变换为查找到的不可路由 的众所周知 IPv4地址。然后, HA功能模块利用査找到的 CoA6对下行 IPv4数据包进行移动 IPv6隧道封 装, 获得下行数据包。 该下行数据包的移动 IPv6隧道封装头中的目的地址为査找到的 CoA6, 源地址 为 HA的 IPv6地址。之后, HA功能模块将下行数据包通过 MIP隧道向移动台发送。该下行数据包的移 动 IPv6隧道封装头中包含有上述指示信息。
S360、 客户端或者移动台的代理接收该下行数据包, 在判断出下行数据包的移动 IPv6隧道封装 头中包含有上述指示信息后, 并对该下行数据包进行解封装处理, 以获得下行 IPv4数据包。 在采用 代理方式下, 移动台的代理还需要将获得的下行 IPv4数据包发送给移动台。
从上述实施例一的描述可以看出, 本实施例在节点设备 (移动终端或移动终端的代理) 与 HA 之间传输数据包时,使用了 MIPv6隧道直接承载 IPv4数据包的方式,使节点设备与 HA之间传输的 数据包为对 IPv4数据包直接进行 MIPv6隧道封装的上下行数据包, 不但避免了在节点设备处为上 / 下行数据包进行两次封装 /解封装的操作,而且还避免了在 IPv4数据包上增加两个封装头的现象,从 而在不需要在移动终端处为其分配可路由的公有 IPv4地址且能够为该移动终端提供 IPv4服务的情 况下, 简化了节点设备的操作, 降低了节点设备结构复杂度, 节约了节点设备与 HA之间的传输资 源。
实施例二、 IPv4-v6共存方法。 该方法可应用于包含 HA功能模块和 CGN功能模块的多种无线 移动系统中, 如 3G系统、 WLAN系统、 以及 WiMAX系统等。 该方法的流程如附图 4所示。
图 4a是上行数据包的处理流程图, 图 4b是下行数据包处理流程图。
图 4a中, S400、 移动台或移动台的代理将需要发送的 IPv4数据包进行 MIPv6隧道封装, 并发送 MIPv6隧道封装后的上行数据包。上述 IPv4数据包的源地址为不可路由的 IPv4地址, 目的地址为通信 对端的可路由的 IPv4地址。
在移动台执行 MIPv6隧道封装操作的情况下, 可以由移动台中的 DS-Hte Client功能模块或者 MIP 封装功能模块来执行, 或者也可以在移动台中新增其它功能模块来执行该 IPv4 over MIPv6的封装。
上述上行数据包的 MIPv6隧道封装头中的源地址为该移动台的 IPv6转交地址 (下述简称为 CoA6 ) , 目的地址为该移动台的 HA的 IPv6地址。 而且, 该上行数据包的 MIPv6隧道封装头中携带有 指示信息,该指示信息用于表示该数据包为对 IPv4数据包直接进行 MIPv6隧道封装的数据包, 即根据 该指示信息能够判断出基于 MIPv6隧道封装的上行数据包的内层是 IPv4数据包, 而不是 IPv6数据包。
S410、 HA接收到上行数据包后, HA功能模块判断该上行数据包的移动 IPv6隧道封装头中是否 携带有指示信息, 在判断出携带有指示信息, 即根据该指示信息判断出该上行数据包为对 IPv4数据 包直接进行移动 IPv6隧道封装的数据包, 到 S420, 否则, 到 S440。
S420、 HA功能模块向 CGN功能模块发送上行数据包, 该上行数据包为针对上述上行 IPv4数据包 的基于 IPv4 over IPv6隧道封装的上行数据包。
HA功能模块向 CGN功能模块发送上行数据包的一个具体实现的例子为: HA功能模块对上述接 收到的上行数据包进行解封装处理, 以获得上行 IPv4数据包, 然后, HA功能模块对上行 IPv4数据包 进行 IPv4 over IPv6隧道封装, 并向 CGN功能模块发送 IPv4 over IPv6隧道封装后的上行数据包。 IPv4 over IPv6隧道封装后的上行数据包的源地址为移动台的 HoA6; 在 HA功能模块与 CGN功能模块位于 同一物理实体中时, 上述上行数据包的 IPv4 over IPv6隧道封装头的目的地址为 HA的 IPv6地址, 也就 是 CGN的 IPv6地址; 在 HA功能模块与 CGN功能模块位于不同的物理实体中时, 上述上行数据包的 IPv4 over IPv6隧道封装头的目的地址为 CGN功能模块所在网络设备的 IPv6地址。 在 HA功能模块与 CGN功能模块位于同一物理实体的情况下, 该物理实体对外可以表现为 HA。需要说明的是, 上述具 体实现的例子可以应用在 HA功能模块和 CGN功能模块位于同一物理实体的情况, 也可以应用在 HA 功能模块和 CGN功能模块位于不同物理实体的情况。
HA功能模块向 CGN功能模块发送上行数据包的另一个具体实现的例子为: 在 HA功能模块与 CGN功能模块位于同一物理实体的情况下, HA功能模块不对上述接收到的上行数据包进行解封装处 理, 而是修改上述接收到的上行数据包的移动 IPv6隧道封装头中的源地址, 即 HA功能模块利用其存 储的移动台的 HoA6与 CoA6的对应关系获得对上行数据包的移动 IPv6隧道封装头中的源地址 CoA6对 应的 HoA6, 然后, HA功能模块将该上行数据包的 MIPv6隧道封装头中的源地址由 CoA6修改为査找 到的 HoA6, 此时, 上行数据包成为 IPv4 over IPv6隧道封装后的上行数据包; 之后, HA功能模块向 CGN功能模块发送源地址修改后的上行数据包。
HA功能模块向 CGN功能模块发送上行数据包的另一个具体实现的例子为: 在 HA功能模块与 CGN功能模块位于不同物理实体的情况下, HA功能模块不对上述接收到的上行数据包进行解封装处 理, 而是修改上述接收到的上行数据包的移动 IPv6隧道封装头中的源地址和目的地址, 即 HA功能模 块利用其存储的移动台的 HoA6与 CoA6的对应关系获得对上行数据包的移动 IPv6隧道封装头中的源 地址 CoA6对应的 HoA6, 然后, HA功能模块将该上行数据包的 MIPv6隧道封装头中的源地址由 CoA6 修改为查找到的 HoA6, HA功能模块将该上行数据包的 MIPv6隧道封装头中的目的地址由 HA的 IPv6 地址修改为 CGN功能模块所在网络设备的 IPv6地址, 此时, 上行数据包成为 IPv4 over IPv6隧道封装 后的上行数据包; 之后, HA功能模块向 CGN功能模块发送源地址和目的地址修改后的上行数据包。
S430、 CGN功能模块接收 HA功能模块发送来的 IPv4 over IPv6隧道封装后的上行数据包,对该上 行数据包进行解封装处理, 以获得上行 IPv4数据包。 之后, CGN功能模块对上行 IPv4数据包进行网 络地址转换处理,将上行 IPv4数据包的源地址由不可路由的 IPv4地址转换为可路由的 IPv4地址,并存 储移动台的 HoA6、 可路由的 IPv4地址以及不可路由的 IPv4地址之间的对应关系, 然后, CGN功能模 块向移动台的通信对端发送网络地址转换后的上行 IPv4数据包。 CGN功能模块存储的上述对应关系 用丁-该移动台的卜行 IPv4数据包的传输。 上述可路由的公有 IPv4地址可以是 CGN功能模块从 CGN功 能模块所在的网络中的公有 IPv4地址池中选取的 IPv4地址。
S440、本实施例的 IPv4-v6共存方法结束, HA功能模块可以采用现有的方法对接收到的上行数据 包进行处理。
图 4b中, S450、 移动台的通信对端发送下行 IPv4数据包。 该下行 IPv4数据包的源地址为移动台 的通信对端的 IPv4地址, 目的地址为通信对端从上行数据包的源地址中得到的上述移动台的可路由 的 IPv4地址, 该下行 IPv4数据包会被 CGN截获。
S460、 CGN功能模块对移动台的通信对端发送来的 IPv4数据包进行网络地址转换处理, 将网络 地址转换处理后的下行 IPv4数据包进行 IPv4 over IPv6隧道封装,并向 HA功能模块发送 IPv4 over IPv6 隧道封装后的下行数据包。
CGN功能模块对移动台的通信对端发送来的 IPv4数据包进行网络地址转换处理、 以及封装处理 的一个具体例子可以为: CGN功能模块利用该下行 IPv4数据包中的目的地址在其存储的对应关系中 杳找对应的 HoA6和不可路由的 IPv4地址。该对应关系为 S430中 CGN功能模块存储的对应关系。 CGN 功能模块将下行 IPv4数据包的目的地址变换为査找到的不可路由的 IPv4地址。 然后, CGN功能模块 禾 IJ用査找到的 HoA6对下行 IPv4数据包进行 IPv4 over IPv6隧道封装, 获得下行数据包。 该下行数据包 的 IPv4 over IPv6隧道封装头中的目的地址为査找到的 HoA6, 在 HA功能模块与 CGN功能模块位于同 一物理实体中时, 该下行数据包的 IPv4 over IPv6隧道封装头的源地址为 HA的 IPv6地址, 即 CGN的 IPv6地址; 在 HA功能模块与 CGN功能模块位于不同的物理实体中时, 该下行数据包的 IPv4 over IPv6 隧道封装头的源地址为 CGN功能模块所在网络设备的 IPv6地址。 S470、 HA功能模块接收 CGN功能模块发送来的下行数据包, 获取针对该下行数据包中的下行 IPv4数据包的基于移动 IPv6封装的下行数据包, 并发送基于移动 IPv6封装的下行数据包。 HA功能模 块发送的下行数据包的移动 IPv6隧道封装头中携带有指示信息, 该指示信息用于表示该数据包为对 IPv4数据包直接进行 MIPv6隧道封装的数据包。
HA功能模块获取针对该下行数据包中的下行 IPv4数据包的基于移动 IPv6封装的下行数据包的一 个具体实现的例子为: HA功能模块对接收到的该下行数据包进行解封装处理, 以获得下行 IPv4数据 包, HA功能模块利用接收到的下行数据包的 IPv4 over IPv6隧道封装头中的目的地址 HoA6在其存储 的对应关系中杳找, 以获得该目的地址 HoA6对应的 CoA6。 HA功能模块根据査找获得的 CoA6对下行 IPv4数据包进行 MIPv6隧道封装, 并发送 MIPv6隧道封装后的下行数据包。 该下行数据包的 MIPv6隧 道封装头中的源地址为该移动台的 HA的 IPv6地址, 目的地址为该移动台的 CoA6。 HA功能模块在进 行 MIPv6隧道封装时,将指示信息携带在 MIPv6隧道封装头中, 该指示信息用于表示该下行数据包为 对 IPv4数据包直接进行 MIPv6隧道封装的数据包。 需要说明的是, 该具体实现的例子可以应用在 HA 功能模块和 CGN功能模块位于同一物理实体的情况,也可以应用在 HA功能模块和 CGN功能模块位于 不同物理实体的情况。
HA功能模块获取针对该下行数据包中的下行 IPv4数据包的基于移动 IPv6封装的下行数据包的另 一个具体实现的例子为: 在 HA功能模块与 CGN功能模块位于同一物理实体的情况下, HA功能模块 对接收到的该下行数据包的 IPv4 over IPv6隧道封装头中的目的地址进行修改, 将目的地址由移动台 的 HoA6修改为移动台的 CoA6, 从而获得基于移动 IPv6封装的下行数据包。上述移动台的 CoA6是 HA 功能模块根据接收到的下行数据包的 IPv4 over IPv6隧道封装头的目的地址 HoA6在其存储的对应关 系中査找获得的。 另外, 源地址变换后的下行数据包的 MIPv6隧道封装头中携带有指示信息, 该指 示信息用于表示该下行数据包为对 IPv4数据包直接进行 MIPv6隧道封装的数据包。该指示信息可以是 下行数据包的 IPv4 over IPv6隧道封装头中用于指示对 IPv4数据包进行 IPv4 over IPv6隧道封装的信 息, 也就是说, 在基于 IPv4 over IPv6隧道封装的源地址变换后的下行数据包成为基于 MIPv6隧道封 装的下行数据包,原 Pv4 over IPv6隧道封装头中用于指示对 IPv4数据包进行 IPv4 over IPv6隧道封装的 信息成为本实施例中的指示信息。 当然, HA功能模块还可以在 MIPv6隧道封装头中增加新的指示信 息, 以表示该下行数据包为对 IPv4数据包直接进行 MIPv6燧道封装的数据包。
HA功能模块获取针对该下行数据包中的下行 IPv4数据包的基于移动 IPv6封装的下行数据包的另 一个具体实现的例子为: 在 HA功能模块与 CGN功能模块位于不同物理实体的情况下, HA功能模块 对接收到的该— F行数据包的 IPv4 over IPv6隧道封装头中的源地址和目的地址进行修改, 将目的地址 由移动台的 HoA6修改为移动台的 CoA6, 将源地址由 CGN功能模块所在网络设备的 IPv6地址修改为 HA的 IPv6地址, 从而获得基于移动 IPv6封装的下行数据包。 上述移动台的 CoA6是 HA功能模块根据 接收到的下行数据包的 IPv4 over IPv6隧道封装头的目的地址 HoA6在其存储的对应关系中查找获得 的。 另外, 源地址和目的地址变换后的下行数据包的 MIPv6隧道封装头中携带有指示信息, 该指示 信息用于表示该下行数据包为对 IPv4数据包直接进行 MIPv6隧道封装的数据包。该指示信息可以是下 行数据包的 IPv4 over IPv6隧道封装头中用于指示对 IPv4数据包进行 IPv4 over IPv6隧道封装的信息, 也就是说, 在基于 IPv4 over IPv6隧道封装的源地址和目的地址变换后的下行数据包成为基于 MIPv6 隧道封装的下行数据包,原 Pv4 over IPv6隧道封装头中用于指示对 IPv4数据包进行 IPv4 over IPv6隧道 封装的信息成为本实施例中的指示信息。 当然, HA功能模块还可以在 MIPv6隧道封装头中增加新的 指示信息, 以表示该下行数据包为对 IPv4数据包直接进行 MIPv6隧道封装的数据包。
S480、移动台或者移动台的代理接收 HA功能模块发送来的下行数据包, 在判断出该下行数据包 的 MIPv6隧道封装头中携带有指示信息,即根据该指示信息判断出该下行数据包为对下行 IPv4数据包 直接进行 MIPv6隧道封装的数据包后, 对该下行数据包进行解封装处理, 以获得下行 IPv4数据包。在 Proxy方式下, Proxy还需将下行 IPv4数据包继续下发给 MS。
从上述实施例二的描述可以看出, 本实施例在节点设备 (移动终端或移动终端的代理) 与 HA 功能模块之间传输数据包时, 使用了 MIPv6隧道直接承载 IPv4数据包的方式, 使节点设备与 HA功能 模块之间传输的数据包为对 IPv4数据包直接进行 MIPv6隧道封装的上下行数据包,不但避免了在节点 设备处为上 A F行数据包进行两次封装 /解封装的操作,而且还避免了在 IPv4数据包上增加两个封装头 的现象, 从而在不需要在移动终端处为其分配可路由的公有 IPv4地址且能够为该移动终端提供 IPv4 服务的情况下, 简化了节点设备的操作, 降低了节点设备结构复杂度, 节约了节点设备与 HA之间的 传输资源。
在下述实施例中, 以在 Worldwide Interoperability for Microwave Access (全球接入微波互操作 性, WiMAX ) 网络中应用 IPv4-v6共存方法为例, 对本发明的技术方案进行说明。 本发明实施例的 IPv4-v6共存方法所适用的 WiMAX网络的一个网络参考模型的具体例子如附图 5所示。
图 5中的 WiMAX网络参考模型包括: MS、 Access Service Network (接入服务网, ASN) 和 Connectivity Service Network (连接服务网, CSN ) 。 其中的 ASN包括: Base Station (基站, BS ) 和 ASN Gateway (接入服务网关, ASN GW) , CSN包括: Prepaid Server (预付费服务器, PPS ) 和 Authentication, Authorization and Accounting Server (认证授权计费服务器, AAA Server)等逻辑实体。
下面结合图 5所示的 WiMAX网络参考模型对本发明实施例的 IPv4-v6共存方法进行说明。 实施例三、 在 WiMAX网络中应用 IPv4-v6共存方法。
在实施例二中, 利用 MIPv6隧道直接承载 IPv4数据包。 由 HA功能模块对上行数据包进行 MIPv6 解封装、 以及 NAT处理, 并由 HA功能模块向 CN发送上行 IPv4数据包; 由 HA功能模块对下行 IPv4数 据包进行 NAT、 以及 MIPv6封装处理, 并由 HA功能模块通过 MIPv6隧道向 MS或 MS的代理发送下行 数据包。
为使 HA功能模块实现上述处理操作, 本实施例中的 HA功能模块既具有对 IPv4数据包进行 MIPv6封装的功能, 也具有对 MIPv6封装进行解封装以获得 IPv4数据包的功能, 也就是说, HA功能 模块在能够针对 IPv6数据包进行 MIPv6封装 /解封装的同时, 也能够对 IPv4数据包进行 MIPv6封装 /解 封装处理。另夕卜,本实施例中的 HA功能模块具有 IPv4 to IPv4的 NAT功能, HA功能模块能够针对 IPv4 数据包进行可路由的 IPv4地址与不可路由的 IPv4地址 (如 well know IPv4地址) 之间的地址转换。 还 有, 本实施例中的 HA功能模块还具有增强绑定缓存功能, 该增强绑定缓存功能能够绑定 MS的不可 路由的 IPv4地址、 HoA6地址以及经 NAT后的可路由的 IPv4地址之间的映射, 由于 HA功能模块自身 还绑定了 MS的 C0A6和 H0A6之间的映射,因此,可以认为 HA功能模块中存储有 MS的不可路由的 IPv4 地址、 CoA6、 HoA6、 以及经 NAT后的可路由的 IPv4地址之间的对应关系。 HA功能模块中存储的 MS 的 C0A6和 H0A6之间的映射应遵循 MIP协议进行更新。
实施例三的系统模型如附图 6所示,实施例三的 HA功能模块对数据包的处理操作如附图 7所示。 图 6示出了包含有 Client模式和 Proxy模式的系统模型。 在 Client模式下, MS具有增强的 MIPv6 接口能力, 即 MS对 IPv4数据包进行 MIPv6隧道封装, 封装后的上行数据包经由 BS和 ASN GW传输至 HA功能模块。在 Proxy模式下, MS不具有增强的 MIPv6接口能力, Proxy具有增强的 MIPv6接口能力, 即 MS发送的 IPv4数据包经由 BS到达 Proxy, 并在 Proxy处进行 MIPv6隧道封装, 且封装后的上行数据 包经由 ASN GW传输至 HA功能模块。 上述 Proxy可以部署在 ASN内。
在图 7中, HA功能模块中缓存有两个绑定关系, 即 Bindingl和 Binding2。 Bindingl为移动台的
HoA6与 CoA6的绑定(即移动台的 HoA6与 CoA6之间的对应关系) 。 Binding2为移动台的 HoA6、 well know IPv4地址与从 NSP的地址池中选取的可路由的 IPv4地址的绑定 (即移动台的 HoA6、 well know IPv4地址与为移动台分配的可路由的 IPv4地址之间的对应关系)。 HA功能模块与移动台或 Proxy之间 交互的数据包为 MIPv6隧道封装的数据包,该数据包的 MIPv6隧道封装头中的源地址或目的地址为移 动台的 CoA6, 该数据包的内层 IPv4数据包的源地址或目的地址为众所周知的 IPv4地址(即 well know IPv4地址)。 HA功能模块与 CN交互的数据包为具有可路由的 IPv4地址(即 public IPv4地址,公用 IPv4 地址) 的 IPv4数据包。 HA功能模块在接收到数据包至发送数据包的过程中, 需要对 well know IPv4 地址与 public IPv4地址之间进行一次转换。
实施例三的 IPv4-v6共存方法流程如附图 8所示
图 8中, 操作 1、 Client/Proxy发现有 IPv4数据包需要向 HA发送。 在 Client模式下, 上述 IPv4数据 包由 Client产生; 在 Proxy模式下, 上述 IPv4数据包由 MS产生并发送给 Proxy。 该 IPv4数据包的源地址 为 well know的 IPv4地址, 目的地址为 CN的 IPv4地址。
Client/Proxy使用 MIPv6隧道直接承载上述 IPv4数据, 即 Client/Proxy将该 IPv4数据包进行 Μ1Ρν6 隧道封装, MIPv6隧道封装头中的源地址为 MS的 CoA6, 目的地址为 HA的 IPv6地址; Μ1Ρν6隧道封 装头中还包含有指示信息, 该指示信息可以位于最后一个扩展头中, 即该指示信息位于 MIPv6隧道 封装头的最后一个字段中该指示信息可以表示出该数据包为对 IPv4数据包进行 MlPv6隧道封装的数 据包, 即根据该指示信息能够判断出基于 MIPv6隧道封装的上行数据包的内层是 IPv4数据包,而不是 IPv6数据包。 之后, Client/Proxy向 HA发送 MIPv6隧道封装后的上行数据包。
操作 2、 HA接收 Client/Proxy发送来的上行数据包后, HA功能模块执行的操作如下: ① HA功能模块判断上行数据包的 MIPv6隧道封装头中是否携带有指示信息, 在判断出携带有 指示信息后, 确定 MIPv6隧道封装的内层数据包为 IPv4数据包。
② HA功能模块对该上行数据包进行解封装处理, 即剥离该上行数据包的外层 MIPv6隧道封装, 获得内层的上行 IPv4数据包。
③ HA功能模块对上行 IPv4数据包进行 IPv4 to IPv4的 NAT, 即 HA功能模块将上行 IPv4数据包中 的 well know IPv4地址转换为 public (公有) IPv4地址。 HA功能模块进行 NAT的一个具体的例子为: HA功能模块从其存储的 well know IPv4地址与 public IPv4地址之间的对应关系中査找是否有与上行 IPv4数据包的源地址匹配的记录, 如果没有, 则 HA功能模块从 NSP的 IPv4地址池中选取一个 public IPv4地址, 利用该 public IPv4地址替换上行 IPv4数据包中的源地址 well know IPv4地址, 并存储该移 动台的 well know IPv4地址与 public IPv4地址之间的对应关系。 如果査找到与上行 IPv4数据包的源地 址匹配的记录, 则 HA功能模块利用査找到的匹配记录中的 public IPv4地址替换上行 IPv4数据包中的 源地址 well know IPv4地址。
④ HA功能模块在其存储的绑定中査找上述上行数据包的 MIPv6隧道封装头中的源地址(即 MS 的 C0A6) 对应的 HoA6。
⑤ HA功能模块绑定上述 public IPv4地址与査找到的 MS的 HoA6之间的映射关系。
⑥ HA功能模块发送 NAT处理后的上行 IPv4数据包, 该上行 IPv4数据包经过正常的路由到达
CN。 CN接收到的上行 IPv4数据包的源地址为从 NSP的 IPv4地址池中选取的 public IPv4地址, 目的地 址为 CN的 IPv4地址。
需要说明的是, 在上述操作 2中, ①和②的执行顺序可以颠倒, 也可以同时进行; ③中的源地 址替换处理操作和⑤的执行顺序可以颠倒, 也可以同时进行; 另外, ④执行的时间很灵活, 只要发 生在⑤之前即可。
操作 3、 CN向移动台发送下行 IPv4数据包, 该下行 IPv4数据包的源地址为 CN的 IPv4地址, 目的 地址为 MS的 public IPv4地址, CN将其从接收到的上行 IPv4数据包中获得的源地址 public IPv4地址作 为下行 IPv4数据包的目的地址。 由于该下行 IPv4数据包的目的地址来自于 HA, 因此, 该下行 IPv4数 据包被路由到 HA。 HA接收到 CN发送来的下行 IPv4数据包后, HA功能模块执行的操作如下:
① HA功能模块发现接收到的数据包为下行 IPv4数据。
② HA功能模块在其存储的 Binding2中査找该下行 IPv4数据包的目的地址 public IPv4地址对应 HoA6地址, 然后, HA功能模块再根据査找到的 HoA6地址在 Bindingl査找对应的 CoA6地址。
③ HA功能模块对下行 IPv4数据包进行 NAT处理, 将该下行 IPv4数据包的目的地址由原来的 public IPv4地址转换为 MS的 well know IPv4地址。
④ HA功能模块将 NAT处理后的下行 IPv4数据包进行 MIPv6隧道封装, MIPv6隧道封装头中的源 地址为 HA的 IPv6地址, 目的地址为 MS的 CoA6。 MS的 C0A6是 HA功能模块在②中査找到的 C0A6地 址。 另外, HA功能模块还在该下行数据包的 MIPv6隧道封装头中携带了指示信息。
⑤ HA功能模块发送 MIPv6隧道封装后的下行数据包。
需要说明的是, 在上述操作 3中, ②和③的执行顺序可以颠倒, 也可以同时进行。
操作 4、 Client/Proxy接收到 HA功能模块发送的下行数据包后, 根据该下行数据包的移动 IPv6 隧道封装头中携带的指示信息判断出内层为 IPv4数据, Client/Proxy剥除下行数据包的外层 MIPv6隧 道封装头, 获得内层的下行 IPv4数据包。 在 Proxy模式下, Proxy在获得了下行 IPv4数据包后, 还需要 向 MS发送该下行 IPv4数据包。
从上述实施例三中记载的数据包在传输过程中的封装解封装处理可以看出,实施例三涉及到的 数据面协议栈如附图 9所示。 图 9的上半部分为 Client模式下的数据面协议栈, 图 9的下半部分为 Proxy模式下的数据面协议 栈。 对比图 9和图 2可知, 相对于现有的 Client/Proxy协议栈来说, 实施例三简化了 Client/Proxy协议栈 层次的复杂度。
实施例四、 在 WiMAX网络中应用 IPv4-v6共存方法。
在实施例四中, 利用 MIPv6隧道直接承载 IPv4数据包。 由 HA功能模块对上行数据包进行 MIPv6 解封装、 以及 IPv4 over IPv6隧道封装处理, 由 CGN功能模块对上行数据包进行 IPv4 over IPv6隧道解 封装、 以及 NAT处理, 并由 CGN功能模块向 CN发送上行 IPv4数据包; 由 CGN功能模块对下行 IPv4数 据包进行 NAT、 以及 IPv4 over IPv6隧道封装处理, 由 HA功能模块对下行数据包进行 IPv4 over IPv6 隧道解封装、 以及 MIPv6隧道封装处理, 并由 HA功能模块通过 MIPv6隧道向 MS或 MS的代理发送下 行数据包。
为实现实施例四的共存方法, 实施例四中的 HA功能模块既具有对 IPv4数据包直接进行 MIPv6 封装、 以及对 MIPv6封装进行解封装以获得 IPv4数据包的功能, 也具有对 IPv4数据包进行 IPv4 over IPv6隧道封装、 以及对 IPv4 over IPv6隧道封装进行解封装的功能; 也就是说, HA功能模块在能够针 对 IPv6数据包进行 MIPv6封装 /解封装的同时, 也能够针对 IPv4数据包进行 MIPv6封装 /解封装和 IPv4 over IPv6隧道封装 /解封装处理。由此可知,实施例四中的 HA功能模块增强了 IPv4 over IPv6隧道封装 /解封装功能、 以及对 IPv4数据包直接进行 MIPv6封装 /解封装功能。
实施例四的系统模型如附图 10所示, 实施例四的 HA功能模块和 CGN功能模块对数据包的处理 操作如附图 1 1所示。
图 10示出了包含有 Client模式和 Proxy模式的系统模型。 在 Client模式下, MS具有增强的 MIPv6 接口能力, 即 MS对 IPv4数据包直接进行 MIPv6隧道封装, 封装后的上行数据包经由 BS和 ASN GW传 输至 HA功能模块。 在 Proxy模式下, MS不具有增强的 MIPv6接口能力, Proxy具有增强的 MIPv6接口 能力, 即 MS发送的 IPv4数据包经由 BS到达 Proxy, 并在 Proxy处直接对 IPv4数据包进行 MIPv6隧道封 装, 且封装后的上行数据包经由 ASN GW传输至 HA功能模块。 上述 Proxy可以部署在 ASN内。
在图 1 1中, HA功能模块中缓存的绑定关系为移动台的 HoA6与 CoA6的绑定(即移动台的 HoA6 与 CoA6之间的对应关系) 。 CGN功能模块中缓存的绑定关系为移动台的 HoA6与从 NSP的地址池中 选取的可路由的 IPv4地址、以及移动台的 well know IPv4地址之间的绑定(即移动台的 HoA6与为移动 台分配的可路由的 IPv4地址与移动台的 well know IPv4地址之间的对应关系)。 HA功能模块与移动台 或 Proxy之间交互的数据包为 MIPv6隧道封装的数据包, 该数据包的 Μ1Ρν6隧道封装头中的源地址或 目的地址为移动台的 CoA6, 该数据包的内层 IPv4数据包的源地址或目的地址为 well know IPv4地址。
HA功能模块与 CGN功能模块之间交互的数据包为 IPv4 over IPv6隧道封装的数据包,该数据包的 IPv4 over IPv6隧道封装头中的源地址或目的地址为移动台的 HoA6, 该数据包的内层 IPv4数据包的源地址 或目的地址为 well know IPv4地址。 CGN功能模块与 CN交互的数据包为具有 public IPv4地址的 IPv4数 据包, 即 CGN功能模块在接收到数据包至发送数据包的过程中, 需要对 well know IPv4地址与 public IPv4地址之间进行一次转换。
实施例四中的 CGN功能模块可以集成在 HA功能模块中,可以认为 HA功能模块中包含了完整的 CGN功能, 也可以认为在实施例四中, HA功能模块和 CGN功能模块位于同一物理实体, 而该物理实 体对外表现为 HA。 由于其他网络实体并不关心具有 HA功能模块和 CGN功能模块的物理实体的内部 处理操作, 冈此, 对于其它网络实体来说, 实施例四的上下行数据包传输过程与实施例三的上下行 数据包传输过程是完全相同。 在实施例四的下述描述中, HA是指包含有 HA功能模块和 CGN功能模 块、 且对外表现为 HA的网络设备。
实施例四的 IPv4-v6共存方法流程包括下述操作 1至操作 4。
操作 1、 Client/Proxy发现有 IPv4数据包需要发送。 在 Client模式下, 上述 IPv4数据包由 Client产 生;在 Proxy模式下, IPv4数据包由 MS产生并发送给 Proxy。该 IPv4数据包的源地址为 well know的 IPv4 地址, 目的地址为 CN的 IPv4地址。
Client/Proxy使用 MIPv6隧道直接承载上述 IPv4数据, 即 Client/Proxy将该 IPv4数据包进行 MIPv6 隧道封装, MIPv6隧道封装头中的源地址为 MS的 CoA6, 目的地址为 HA的 IPv6地址; MIPv6隧道封 装头中还包含有指示信息, 该指示信息可以位于最后一个扩展头中, 该指示信息可以表示出该数据 包为对 IPv4数据包直接进行 MIPv6隧道封装的数据包,即根据指示信息能够判断出基于 MIPv6隧道封 装的上行数据包的内层是 IPv4数据包, 而不是 IPv6数据包。 之后, Client/Proxy向 HA发送 MIPv6隧道 封装后的上行数据包。
操作 2、 HA接收 Client/Proxy发送来的上行数据包后, 执行的操作如下-
① HA功能模块判断上行数据包的 MIPv6隧道封装头中是否携带有指示信息, 在判断出携带有 指示信息后, 确定 MIPv6隧道封装的内层数据包为 IPv4数据包。
② HA功能模块对该上行数据包进行解封装处理, 即剥离该上行数据包的外层 MIPv6隧道封装, 获得内层的上行 IPv4数据包。
③ HA功能模块对该 IPv4数据包增加一个 IPv6头, 即对该 IPv4数据包进行 IPv4 over IPv6隧道封 装。 IPv4 over IPv6隧道封装头中的源地址为 MS的 HoA, 目的地址为 HA自身的 IPv6地址。 HA功能模 块向 CGN功能模块发送 IPv4 over IPv6隧道封装后的上行数据包。上述源地址 HoA为 HA功能模块利用 MIPv6隧道封装头中的源地址 CoA6在其存储的对应关系中査找获得的。
④ CGN功能模块接收到 HA功能模块发送来的上行数据包后, 对该上行数据包进行解封装处 理, 即剥离上行数据包的外层 IPv6隧道封装头, 以获得上行 IPv4数据包。 CGN功能模块对上行 IPv4 数据包进行 IPv4 to IPv4的 NAT处理,即 CGN功能模块将上行 IPv4数据包中的源地址 well know IPv4地 址转换为 public IPv4地址。 CGN功能模块存储或更新 MS的 HoA6、 与 NAT后的 public IPv4、 以及 well know IPv4地址之间的映射关系。 CGN功能模块向 CN发送 NAT处理后的上行 IPv4数据包,该上行 IPv4 数据包被路由至 CN。
在实施例四的操作 2中, ①和②的执行顺序可以颠倒, 也可以同时执行。
操作 3、 CN向移动台发送下行 IPv4数据包, 该下行 IPv4数据包的源地址为 CN的 IPv4地址, 目的 地址为 MS的 public IPv4地址, CN将其从接收到的上行 IPv4数据包中获得的源地址 public IPv4地址作 为下行 IPv4数据包的目的地址。 由于该下行 IPv4数据包的目的地址来自于 HA, 因此, 该下行 IPv4数 据包被路由到 HA。 HA接收到 CN发送来的下行 IPv4数据包后, 执行的操作如下: ① CGN功能模块对 CN发送来的 行 IPv4数据包进行 NAT处理, 并对 NAT处理后的下行 IPv4数 据包进行 IPv4 over IPv6隧道封装, 然后, CGN功能模块将封装后下行数据包传输给 HA功能模块。封 装后的下行数据包的源地址为 HA自身的 IPv6地址, 目的地址为 MS的 HoA。 CGN功能模块是利用下 行 IPv4数据包的目的地址 MS的 public IPv4地址在其存储的对应关系中査找获得的 MS的 HoA。
② HA功能模块根据隧道外层 IPv6包头中最后一个扩展头中携带的信息, 发现接收到的下行数 据包的内层为 IPv4数据包;
③ HA功能模块对接收到的下行数据包进行解封装处理, 即剥除该下行数据包的外层隧道封装 头, 以获得内层的下行 IPv4数据包。
④ HA功能模块利用 IPv4 over IPv6隧道封装头中的目的地址 HoA6在其存储的对应关系中査找, 以获得 MS的 CoA6。
⑤ HA功能模块根据获得的 CoA6对下行 IPv4数据包进行 MIPv6隧道封装, MIPv6隧道封装头中 的源地址为 HA的 IPv6地址, 目的地址为 MS的 CoA6地址。 另外, HA功能模块还可以在 MIPv6隧道封 装头中携带指示信息, 该指示信息表示该下行数据包为对 IPv4数据包直接进行移动 IPv6隧道封装的 数据包。
⑥ HA功能模块发送 MIPv6隧道封装后的下行数据包。
需要说明的是,在实施例四的操作 3中,②、③和④的执行顺序还可以变化为②④③或者④②③, 也可以同时执行。
操作 4、 Client/Proxy接收到 HA发送的下行数据包后, 根据 MIPv6隧道封装头中携带的指示信息 判断出- 行数据包的内层为 IPv4数据, Client/Proxy剥除下行数据包的外层 MIPv6隧道封装头, 获得 内层的下行 IPv4数据包。 在 Proxy模式下, Proxy在获得了下行 IPv4数据包后, 还需要向 MS发送该下 行 IPv4数据包。
实施例五、 WiMAX网络中应用 IPv4-v6共存方法。
在实施例五中, 利用 MIPv6隧道直接承载 IPv4数据包。 由 HA功能模块将基于 MIPv6的上行数据 包变换为基于 IPv4 over IPv6的上行数据包, 由 CGN功能模块对上行数据包进行 IPv4 over IPv6解封装 处理、 以及 NAT处理, 并由 CGN功能模块向 CN发送上行 IPv4数据包; 由 CGN功能模块对下行 IPv4数 据包进行 NAT、以及 IPv4 over IPv6封装处理, 由 HA功能模块将基于 IPv4 over IPv6的下行数据包变换 为基于 MIPv6的下行数据包, 并由 HA功能模块通过 MIPv6隧道向 MS或 MS的代理发送下行数据包。
实施例五的 IPv4-v6共存方法流程如附图 12所示。
图 12中, 操作 1、 Client/Proxy发现有 IPv4数据包需要发送出去。 在 Client模式下, 上述 IPv4数据 包由 Client产生;在 Proxy模式下, IPv4数据包由 MS产生并发送给 Proxy。该 IPv4数据包的源地址为 well know的 IPv4地址, 目的地址为 CN的 IPv4地址。
Client/Proxy使用 MIPv6隧道直接承载上述 IPv4数据, 即 Client/Proxy将该 IPv4数据包进行 MIPv6 隧道封装, MIPv6隧道封装头中的源地址为 MS的 CoA6, 目的地址为 HA的 IPv6地址; MIPv6隧道封 装头中还包含有指示信息, 该指示信息可以位于最后一个扩展头中, 该指示信息可以表示出该数据 包为对 IPv4数据包直接进行 MIPv6隧道封装的数据包,即根据该指示信息能够判断出基于 MIPv6隧道 封装的上行数据包的内层是 IPv4数据包, 而不是 IPv6数据包。 之后, Client/Proxy向 HA发送 MIPv6隧 道封装后的上行数据包。
操作 2、 HA接收 Client/Proxy发送来的上行数据包后, HA功能模块执行的操作如下-
① HA功能模块判断上行数据包的 MIPv6隧道封装头中是否携带有指示信息, 在判断出携带有 指示信息后, HA功能模块确定 MIPv6隧道封装的内层数据包为 IPv4数据包。
② HA功能模块利用 MIPv6隧道封装头中的源地址 CoA6在其存储的对应关系中查找, 以获得 MS的 HoA6。
③ HA功能模块将 MIPv6隧道封装头中的源地址由 CoA6变为 HoA6, 然后, 将源地址变换后的 上行数据包发送给 CGN功能模块。
需要说明的是, 在实施例五的操作 3中, ①和②的执行顺序可以颠倒也可以同时执行。
操作 3、 CGN功能模块接收 HA功能模块传输来的上行数据包, 对该上行数据包进行解封装处 理, 即剥离该上行数据包的外层 MIPv6隧道封装, 获得内层的上行 IPv4数据包。 CGN功能模块对上 行 IPv4数据包进行 IPv4 to IPv4的 NAT处理, 即 CGN功能模块将上行 IPv4数据包中的源地址 well know IPv4地址转换为 public IPv4地址。 CGN功能模块存储或更新 MS的 HoA6、 与 NAT后的 public IPv4、 以 及 well know IPv4地址之间的映射关系。 CGN功能模块向 CN发送 NAT处理后的上行 IPv4数据包, 该 上行 IPv4数据包被路由至 CN。
操作 4、 CN向移动台发送下行 IPv4数据包, 该下行 IPv4数据包的源地址为 CN的 IPv4地址, 目的 地址为 MS的 public IPv4地址, CN将其从接收到的上行 IPv4数据包中获得的源地址 public IPv4地址作 为下行 IPv4数据包的目的地址。 由于该下行 IPv4数据包的目的地址来自于 HA, 因此, 该下行 IPv4数 据包被路由到 HA。 HA接收到 CN发送来的下行 IPv4数据包后, CGN功能模块执行的操作如下:
HA接收到下行 IPv4数据包后, CGN功能模块对 CN发送来的下行 IPv4数据包进行 NAT处理, 并 对 NAT处理后的下行 IPv4数据包进行 IPv4 over IPv6隧道封装处理, 然后, CGN功能模块将封装后下 行数据包传输给 HA功能模块。 封装后的下行数据包的源地址为 HA自身的 IPv6地址, 目的地址为 MS 的 HoA。 CGN功能模块是利用下行 IPv4数据包的目的地址 MS的 public IPv4地址在其存储的对应关系 中査找获得的 MS的 HoA。 CGN功能模块可以采用现有的方法进行 IPv4 over IPv6隧道封装处理, IPv4 over IPv6隧道封装头中携带的信息可以表示出该封装的内层为 IPv4数据包。
操作 5、 HA功能模块接收到 CGN功能模块发送来的下行 IPv4数据包后, 执行的操作如下: ① HA功能模块根据接收到的下行数据包的 IPv4 over IPv6隧道封装头中携带的信息判断出该 IPv6数据包中封装有 IPv4数据包。
② HA功能模块利用 IPv4 over IPv6隧道封装头中的目的地址 HoA6在其存储的对应关系中査找, 以获得 MS的 CoA6。
③ HA功能模块将 IPv4 over IPv6隧道封装头中的目的地址由 HoA6变为 CoA6, 以获得针对下行 IPv4数据包的基于 MIPv6封装的下行数据包, HA功能模块还会在该下行数据包的 MlPv6隧道封装头 中携带上之前 CGN功能模块添加的用于指示 IPv4 over IPv6隧道封装内层为 IPv4数据包的信息, 目的 地址转换之后, 该信息表明该下行数据包为对 IPv4数据包直接进行 MIPv6隧道封装的数据包。 然后, HA功能模块发送目的地址变换后的下行数据包。
需要说明的是, 在实施例五的操作 5中, ①和②的执行顺序可以颠倒也可以同时执行。
操作 6、 Client/Proxy接收到 HA发送的下行数据包后, 根据下行数据包的 MIPv6隧道封装头中携 带的指示信息判断出该下行数据包的内层为 IPv4数据, 则 Client/Proxy剥除下行数据包的外层 MIPv6 隧道封装头, 获得内层的下行 IPv4数据包。 在 Proxy模式下, Proxy在获得了下行 IPv4数据包后, 还需 要向 MS发送该-卜'行 IPv4数据包。
在上述实施例五的描述中, HA功能模块和 CGN功能模块均位于同一物理实体中, 且该物理实 体对外表现为 HA。 如果实施例五中的 HA功能模块和 CGN功能模块位于不同的物理实体中, 则实现 IPv4-v6共存的过程与上述实施例五中记载的内容基本相同,只是在 HA功能模块的地址变换操作上有 区别, 该区别为: 上述实施例五中的 HA功能模块只对接收到的上行数据包的外层隧道封装头中的源 地址、 以及下行数据包的外层隧道封装头中的目的地址进行修改,而在 HA功能模块和 CGN功能模块 位于不同的物理实体的情况下, HA功能模块需要对接收到的上行数据包和下行数据包的外层隧道封 装头中的目的地址和源地址均进行修改。 具体的说, 针对上行数据包, HA功能模块将该上行数据包 的 MIPv6隧道封装头中的目的地址和源地址均进行地址变换, 将源地址由 MS的 CoA6变换为 MS的 HoA6, 将目的地址由 HA的 IPv6地址变换为 CGN功能模块所在网络设备的 IPv6地址; 针对下行数据 包, HA功能模块将该下行数据包的 IPv4 over IPv6隧道封装头中的目的地址和源地址均进行地址变 换, 将源地址由 CGN功能模块所在网络设备的 IPv6地址变换为 HA的 IPv6地址, 将目的地址由 MS的 HoA6变换为 MS的 CoA6。
HA功能模块和 CGN功能模块位于不同的物理实体情况下的 IPv4-v6共存方法在此不再详细说 明。
实施例六、 在 WiMAX网络中应用 IPv4-v6共存方法。
在实施例六中, 利用 MIPv6隧道直接承载 IPv4数据包。 HA功能模块和 CGN功能模块位于不同 物理实体上, 对外表示为两个独立的网络设备, 这两个网络设备具有不同的 IPv6地址, 上述两个网 络设备对外可以表现为 HA和 CGN。 由 HA对上行数据包进行 MIPv6解封装、 以及 IPv4 over IPv6隧道 封装处理, 由 CGN对上行数据包进行 IPv4 over IPv6隧道解封装、 以及 NAT处理, 并由 CGN向 CN发 送上行 IPv4数据包; 由 CGN对下行 IPv4数据包进行 NAT、 以及 IPv4 over IPv6隧道封装处理, 由 HA对 下行数据包进行 IPv4 over IPv6隧道解封装、 以及 MIPv6隧道封装处理, 并由 HA通过 MIPv6隧道向 MS 或 MS的代理发送下行数据包。
为实现实施例六的共存方法, 实施例六中的 HA既具有对 IPv4数据包进行 MIPv6封装、 以及对 MlPv6封装进行解封装以获得 IPv4数据包的功能, 也具有对 IPv4数据包进行 IPv4 over IPv6隧道封装、 以及对 IPv4 over IPv6隧道封装进行解封装的功能; 也就是说, HA在能够针对 IPv6数据包进行 MIPv6 封装 /解封装的同时,也能够针对 IPv4数据包进行 MIPv6封装 /解封装和 IPv4 over IPv6隧道封装 /解封装 处理。 由此可知, 实施例六中的 HA增强了 IPv4 over IPv6隧道封装 /解封装功能。
实施例六的 IPv4-v6共存方法流程如附图 13所示。
操作 1、 Client/Proxy发现有 IPv4数据包需要向 HA发送。在 Client模式-卜',上述 IPv4数据包由 Client 产生; 在 Proxy模式下, IPv4数据包由 MS产生并发送给 Proxy。 该 IPv4数据包的源地址为 well know的 IPv4地址, 目的地址为 CN的 IPv4地址。
Client/Proxy使用 MIPv6隧道直接承载上述 IPv4数据, 即 Client/Proxy将该 IPv4数据包进行 MIPv6 隧道封装, MIPv6隧道封装头中的源地址为 MS的 CoA6, 目的地址为 HA的 IPv6地址; MIPv6隧道封 装头中还包含有指示信息, 该指示信息可以位于最后一个扩展头中, 该指示信息可以表示出该上行 数据包为对 IPv4数据包直接进行 MIPv6隧道封装的数据包, 即根据该指示信息能够判断出基于 MIPv6 隧道封装的上行数据包的内层是 IPv4数据包,而不是 IPv6数据包。之后, Client/Proxy向 HA发送 MIPv6 隧道封装后的上行数据包。
操作 2、 HA接收 Client/Proxy发送来的上行数据包后, 执行的操作 (也就 HA功能模块执行的操 作) 如下:
① HA判断上行数据包的 MIPv6隧道封装头中是否携带有指示信息, 在判断出携带有指示信息 后, 确定 MIPv6隧道封装的内层数据包为 IPv4数据包。
② HA对该上行数据包进行解封装处理, 即剥离该上行数据包的外层 MIPv6隧道封装, 获得内 层的上行 IPv4数据包。
③ HA对该 IPv4数据包增加一个 IPv6头, 即对该 IPv4数据包进行 IPv4 over IPv6隧道封装。 IPv4 over IPv6隧道封装头中的源地址为 MS的 HoA, 目的地址为 CGN的 IPv6地址。 HA向 CGN发送 IPv4 over IPv6隧道封装后的上行数据包。上述源地址 HoA为 HA利用 MIPv6隧道封装头中的源地址 CoA6在其存 储的对应关系中査找获得的。
在实施例六的操作 2中, ①和②的执行顺序可以颠倒, 也可以同时执行。
操作 3、 CGN接收到 HA发送来的上行数据包后, 对该上行数据包进行解封装处理, 即剥离上 行数据包的外层 IPv6隧道封装头, 以获得上行 IPv4数据包。 CGN对 IPv4 数据包进行 IPv4 to IPv4的 NAT处理, 即 CGN将上行 IPv4数据包中的源地址 well know IPv4地址转换为 public IPv4地址。 CGN存 储或更新 MS的 HoA6、 与 NAT后的 public IPv4、 以及 well know IPv4地址之间的映射关系。 CGN向 CN 发送 NAT处理后的上行 IPv4数据包, 该上行 IPv4数据包被路由至 CN。
操作 4、 CN向移动台发送下行 IPv4数据包, 该下行 IPv4数据包的源地址为 CN的 IPv4地址, 目的 地址为 MS的 public IPv4地址, CN将其从接收到的上行 IPv4数据包中获得的源地址 public IPv4地址作 为下行 IPv4数据包的目的地址。 由于该下行 IPv4数据包的目的地址来自于 CGN, 因此, 该下行 IPv4 数据包被路由到 CGN。 CGN接收到 CN发送来的下行 IPv4数据包后, 执行的操作为: CGN对 CN发送 来的下行 IPv4数据包进行 NAT处理,并对 NAT处理后的下行 IPv4数据包进行 IPv4 over IPv6隧道封装, 封装后的 IPv4 over IPv6隧道头中的源地址为 CGN的 IPv6地址, 目的地址为 MS的 HoA6, MS的 HoA6 是 CGN利用下行 IPv4数据包的目的地址 MS的 public IPv4地址在其存储的对应关系中査找获得的。 然 后, CGN将封装后下行数据包发送出去, H为数据包目的地址为 HoA6, 因此该数据包会被传输给 HA。
操作 5、 HA接收到 CGN传输来的下行数据包后, 执行的操作 (即 HA功能模块执行的操作) 如 下: ① HA根据 IPv4 over IPv6隧道头中携带的信息可以确定出该下行数据包的内层为 IPv4数据包;
② HA对接收到的下行数据包进行解封装处理, 即剥除该下行数据包的外层隧道封装头, 以获 得内层的下行 IPv4数据包。
③ HA利用 IPv4 over IPv6隧道封装头中的目的地址 H0A6在其存储的对应关系中査找, 以获得 MS的 CoA6。
④ HA根据获得的 CoA6对下行 IPv4数据包进行 MIPv6隧道封装, MIPv6隧道封装头中的源地址 为 HA的 IPv6地址, 目的地址为 MS的 CoA6地址。 另外, MIPv6隧道封装头中还携带有指示信息, 该 指示信息表示该下行数据包为对 IPv4数据包直接进行 MIPv6隧道封装的数据包。
⑤ HA发送 MIPv6隧道封装后的下行数据包。
需要说明的是,在实施例六的操作 5中,①、②和③的执行顺序还可以变化为①③②或者③①②, 也可以同时执行。
操作 6、 Client/Proxy接收到 HA发送的下行数据包后, 根据下行数据包的 MIPv6隧道封装头中携 带的指示信息可以判断出该—卜行数据包的内层为 IPv4数据, 则 Client/Proxy剥除下行数据包的外层 MlPv6隧道封装头,获得内层的下行 IPv4数据包。在 Proxy模式下, Proxy在获得了下行 IPv4数据包后, 还需要将该下行 IPv4数据包发送给 MS。
实施例七、 网络设备。 该网络设备应用于 IPv4-v6共存的网络环境下, 该网络设备对外可以表 现为 HA。 该网络设备的结构如附图 14所示。
图 14中的网络设备包括: 第一接收模块 1400、 第一判断模块 1410、 第一共存处理模块 1420和第 一发送模块 1430。
第一接收模块 1410接收移动终端或移动终端的代理发送来的基于移动 IPv6隧道封装的上行数据 包、 以及移动终端的通信对端发送来的下行 IPv4数据包。
上述上行数据包中的 IPv4数据包的源地址为不可路由的 IPv4地址, 目的地址为通信对端的可路 由的公有 IPv4地址。 上述不可路由的 IPv4地址可以为一个众所周知的 IPv4地址。 上述上行数据包的
MIPv6隧道封装头中的源地址为该移动台的 CoA6, 目的地址为该移动台的 HA的 IPv6地址。 而且, 该 上行数据包的 MIPv6隧道封装头中携带有指示信息,该指示信息用于表示该上行数据包为对 IPv4数据 包直接进行 MIPv6隧道封装的数据包,即网络设备利用该指示信息能够判断出基于 MIPv6隧道封装的 上行数据包的内层是 IPv4数据包, 而不是 IPv6数据包。
上述下行 IPv4数据包的源地址为移动台的通信对端的 IPv4地址, 目的地址为上述移动台的可路 由的公有 IPv4地址。
第一判断模块 1410对第一接收模块 1400接收到的上行数据包的移动 IPv6隧道封装头中是否携带 有上述指示信息进行判断。
在第一判断模块 1410判断出该上行数据包为对 IPv4数据包直接进行移动 IPv6隧道封装的数据 包后, 第一共存处理模块 1420对该上行数据包进行解封装后获得的上行 IPv4数据包进行网络地址 转换处理, 并由第一发送模块 1430向移动终端的通信对端发送网络地址转换处理后的上行 IPv4数 据包。 在所述移动终端的下行, 第一共存处理模块 1420对第一接收模块接收到的下行 IPv4数据包进 行网络地址转换处理, 然后, 将网络地址转换处理后的下行 IPv4数据包直接进行移动 IPv6隧道封 装, 获得下行数据包, 由第一发送模块 1430向移动终端发送该下行数据包。 该下行数据包被移动终 端接收, 或者被移动终端的代理接收。
上述第一共存处理模块 1420的结构如附图 15所示。
图 15中的第一共存处理模块 1420包括: 移动 IPv6解封装模块 1421、 网络地址转换模块 1422和移 动 IPv6封装模块 1423。
移动 IPv6解封装模块 1421对第一接收模块 1400接收到的上行数据包进行解封装处理, 从中获取 上行 IPv4数据包。 本实施例不限制移动 IPv6解封装模块 1421执行的解封装处理操作与第一判断模块 1410执行判断操作的先后顺序。
在移动终端的上行, 网络地址转换模块 1422在第一判断模块 1410根据上行数据包中是否携带有 指示信息判断出该上行数据包为对 IPv4数据包直接进行移动 IPv6隧道封装的数据包后,将该上行 IPv4 数据包源地址信息中的不可路由的 IPv4地址更新为可路由的公有 IPv4地址, 并存储不可路由的 IPv4 地址与可路由的公有 IPv4地址之间的对应关系。 上述可路由的公有 IPv4地址可以是网络地址转换模 块 1422从 HA所在的网络中的公有 IPv4地址池中选取的 IPv4地址。
由于 HA中原本存储有移动终端的 HoA6与 CoA6之间的对应关系, 因此, 在网络地址转换模块 1422存储了不可路由的 IPv4地址与可路由的公有 IPv4地址之间的对应关系后, 实际上, HA中存储有 移动终端的 HoA6、 CoA6、可路由的公有 IPv4地址以及众所周知不可路由的 IPv4地址之间的对应关系。
在移动终端的下行, 网络地址转换模块 1422利用下行 IPv4数据包中的目的地址在其存储的对应 关系中杳找对应的不可路由的 IPv4地址。 网络地址转换模块 1422将下行 IPv4数据包的目的地址变换 为査找到的不可路由的众所周知 IPv4地址。
移动 IPv6封装模块 1423利用―卜'行 IPv4数据包中的目的地址在其存储的对应关系中査找到的 CoA6 将网络地址转换模块处理后的下行 IPv4数据包直接进行移动 IPv6隧道封装, 获得下行数据包。 该下 行数据包的移动 IPv6隧道封装头中的目的地址为查找到的 CoA6,源地址为 HA的 IPv6地址。该下行数 据包的移动 IPv6隧道封装头中包含有上述指示信息。
实施例八、 网络设备。 该网络设备应用于 IPv4-v6共存的网络环境下, 该网络设备对外可以表 现为 HA。 该网络设备的结构如附图 16所示。
图 16中的网络设备包括: 第二接收模块 1600、 第二判断模块 1610、 第二共存处理模块 1620和第 二发送模块 1630。 图 16所示的模块可以设置在网络设备的 HA功能模块中。
第二接收模块 1600接收移动终端或移动终端的代理发送来的基于移动 IPv6隧道封装的上行数据 包、 以及 CGN功能模块发送来的下行数据包。 该上行数据包中的 IPv4数据包的源地址为不可路由的 IPv4地址, 目的地址为通信对端的可路由的 IPv4地址。该上行数据包的 MIPv6隧道封装头中的源地址 为移动终端的 CoA6, 目的地址为该移动终端的 HA的 IPv6地址。 而且, 该上行数据包的 MIPv6隧道 封装头中携带有指示信息,该指示信息用于表示该数据包为对 IPv4数据包直接进行 MIPv6隧道封装的 数据包, 即根据该指示信息能够判断出基于 MIPv6隧道封装的上行数据包的内层是 IPv4数据包,而不 是 IPv6数据包。
上述下行数据包为 CGN功能模块对移动终端的通信对端发送来的下行 IPv4数据包进行网络地址 转换及 IPv4 over IPv6隧道封装处理后的下行数据包。 CGN功能模块接收到的下行 IPv4数据包的源地 址为移动台的通信对端的 IPv4地址, 目的地址为通信对端从上行数据包的源地址中得到的上述移动 台的可路由的 IPv4地址。 CGN功能模块向 HA功能模块发送 IPv4 over IPv6隧道封装后的下行数据包。
第二判断模块 1610判断上行数据包的移动 IPv6隧道封装头中是否携带有上述指示信息。
在移动终端的上行, 在第二判断模块 1610的判断结果为上行数据包为对 IPv4数据包直接进行移 动 IPv6隧道封装的数据包后, 第二共存处理模块 1620获取针对上行数据包中的上行 IPv4数据包的基 于 IPv4 over IPv6隧道封装的上行数据包。 第二共存处理模块 1620可以采用解封装再封装的方式或者 修改源地址和 /或目的地址的方式来获取上行数据包, 具体实现过程如上述实施例二中的描述, 在此 不再重复说明。
在移动终端的下行, 在第二判断模块 1610判断出下行数据包为对 IPv4数据包直接进行 IPv4 over IPv6隧道封装的数据包后,第二共存处理模块 1620获取针对下行 IPv4数据包的基于移动 IPv6隧道封装 的下行数据包。 该下行数据包的移动 IPv6隧道封装头中携带有指示信息, 该指示信息用于表示该数 据包为对 IPv4数据包直接进行 MIPv6隧道封装的数据包。第二共存处理模块 1620可以采用解封装再封 装的方式或者修改源地址和 /或目的地址的方式来获取下行数据包, 具体实现过程如上述实施例二中 的描述, 在此不再重复说明。
第二发送模块 1630向 CGN功能模块发送基于 IPv4 over IPv6隧道封装的上行数据包,并向移动 终端发送基于移动 IPv6隧道封装的下行数据包。
上述第二共存处理模块 1620的一种结构如附图 17A所示。
在图 17A中, 第二共存处理模块包括: 移动 IPv6解封装模块 1700、 IPv4 over IPv6隧道封装模 块 1710、 IPv4 over IPv6隧道解封装模块 1720和移动 IPv6封装模块 1730。
移动 IPv6解封装模块 1700对第二接收模块 1600接收到的上行数据包进行解封装处理, 以获得 上行 IPv4数据包。 本实施例不限制移动 IPv6解封装模块的解封装处理操作与第二判断模块 1610的 判断操作的先后顺序。
IPv4 over IPv6隧道封装模块 1710对移动 IPv6解封装模块 1700获得的上行 IPv4数据包进行 IPv4 over IPv6隧道封装; IPv4 over IPv6隧道封装后的上行数据包由第二发送模块 1630向 CGN功能模块 发送。 上述 IPv4 over IPv6隧道封装后的上行数据包的源地址为移动终端的 HoA6。 在 HA功能模块 与 CGN功能模块位于同一物理实体中时, 上述上行数据包的 IPv4 over IPv6隧道封装头的目的地址 为 HA的 IPv6地址, 也就是 CGN的 IPv6地址; 在 HA功能模块与 CGN功能模块位于不同的物理 实体中时, 上述上行数据包的 IPv4 over IPv6隧道封装头的目的地址为 CGN功能模块所在网络设备 的 IPv6地址。
在第二判断模块 1610判断出第二接收模块 1600接收到的下行数据包为对下行 IPv4数据包直接 进行 IPv4 over IPv6隧道封装的数据包后, IPv4 over IPv6隧道解封装模块 1720对第二接收模块 1600 接收到的下行数据包进行解封装, 获得下行 IPv4数据包。 移动 IPv6封装模块 1730对 IPv4 over IPv6隧道解封装模块 1720获得的下行 IPv4数据包进行移动 IPv6封装。 移动 IPv6封装模块 1730利用 IPv4 over IPv6隧道封装头中的目的地址 HoA6在 HA存储的对 应关系中査找, 以获得移动终端的 CoA6。移动 IPv6封装模块 1730根据获得的 CoA6对下行 IPv4数据包 进行 MIPv6隧道封装, MIPv6隧道封装头中的源地址为 HA的 IPv6地址, 目的地址为 MS的 CoA6地址。 另外,移动 IPv6封装模块 1730还可以在 MIPv6隧道封装头中携带指示信息,该指示信息表示该下行数 据包为对 IPv4数据包直接进行移动 IPv6隧道封装的数据包。
移动 IPv6封装模块 1730封装后的下行数据包由第二发送模块 1630向移动终端发送, 该下行数 据包可以直接被移动终端接收, 也可以被移动终端的代理接收。
上述第二共存处理模块 1620的另一种结构如附图 17B所示。
在图 17B中, 第二共存处理模块包括: 第一地址变换模块 1740和第二地址变换模块 1750。
在 HA功能模块与 CGN功能模块位于同一物理实体的情况下, 第一地址变换模块 1740根据 HA功 能模块中存储的移动台的 HoA6与 CoA6的对应关系获得对上行数据包的移动 IPv6隧道封装头中的源 地址 CoA6对应的 HoA6, 第一地址变换模块 1740将第二接收模块 1600接收到的上行数据包的移动 IPv6隧道封装的源地址变换为移动终端的 IPv6家乡地址。 此时, 上行数据包成为 IPv4 over IPv6隧道 封装后的上行数据包; 源地址变换后的上行数据包由第二发送模块 1630向 CGN功能模块发送。
在 HA功能模块与 CGN功能模块位于同一物理实体的情况下,第二地址变换模块 1750将第二接收 模块 1600接收到的下行数据包的 Pv4 over IPv6隧道封装的目的地址变化为移动终端的 CoA6。 上述移 动台的 CoA6是第二地址变换模块 1750根据第二接收模块 1600接收到的下行数据包的 IPv4 over IPv6 隧道封装头的目的地址 HoA6在 HA功能模块存储的对应关系中查找获得的。 另外, 变换后的下行数 据包中携带有指示信息,该指示信息用于表示该下行数据包为对 IPv4数据包直接进行 MIPv6隧道封装 的数据包。
上述第二共存处理模块 1620的另一种结构如附图 17C所示。
在图 17C中, 第二共存处理模块包括: 第三地址变换模块 1760和第四地址变换模块 1770。
在 HA功能模块与 CGN功能模块位于不同物理实体的情况下, 第三地址变换模块 1760利用 HA功 能模块存储的移动终端的 HoA6与 CoA6的对应关系获得第二接收模块 1600接收到的上行数据包的移 动 IPv6隧道封装头中的源地址 CoA6对应的 HoA6, 将第二接收模块 1600接收到的上行数据包的移动 IPv6隧道封装的源地址变换为移动终端的 IPv6家乡地址, 将目的地址变换为 CGN功能模块所在网络 设备的 IPv6地址。 此时, 上行数据包成为 IPv4 over IPv6隧道封装后的上行数据包, 地址变换后的上 行数据包由第二发送模块发送给 CGN功能模块。
第四地址变换模块 1770将第二接收模块 1600接收到的下行数据包的 IPv4 over IPv6隧道封装的源 地址和目的地址进行修改, 将目的地址由移动台的 HoA6修改为移动台的 CoA6, 将源地址由 CGN功 能模块所在网络设备的 IPv6地址修改为 HA的 IPv6地址, 从而获得基于移动 IPv6封装的下行数据包。 上述移动台的 CoA6是第四地址变换模块 1770根据下行数据包的 IPv4 over IPv6隧道封装头的目的地 址 HoA6在 HA功能模块储的对应关系中查找获得的。另外,地址变换后的下行数据包的 MIPv6隧道封 装头中携带有指示信息,该指示信息用于表示该下行数据包为对 IPv4数据包直接进行 MIPv6隧道封装 的数据包。
实施例九、 一种节点设备, 为移动终端或移动终端的代理。 该节点设备的结构如附图 18所示。 图 18中的节点设备包括: 上行封装模块 1800、 第三发送模块 1810、 第三接收模块 1820和下行解 封装模块 1830。
上行封装模块 1800将需要发送的上行 IPv4数据包直接进行移动 IPv6隧道封装,在移动 IPv6隧道封 装头中携带指示信息; 该指示信息用于指示该上行数据包为对 IPv4数据包直接进行移动 IPv6隧道封 装的数据包。 上述上行 IPv4数据包的源地址为不可路由的 IPv4地址, 目的地址为通信对端的可路由 的 IPv4地址。 该上行数据包的移动 IPv6隧道封装头的源地址为移动终端的 CoA6, 目的地址为移动终 端的 HA的 IPv6地址。
第三发送模块 1810向网络侧 (如 HA) 发送移动 IPv6隧道封装后的上行数据包。
第三接收模块 1820接收网络侧传输来的下行数据包。
下行解封装模块 1830判断第三接收模块 1820接收到的下行数据包的移动 IPv6隧道封装头中是 否携带有所述指示信息, 并对该下行数据包进行解封装处理, 在判断出携带有所述指示信息后, 确 定解封装处理后获得的数据包为下行 IPv4数据包。 该下行数据包的移动 IPv6隧道封装头的目的地址 为移动终端的 CoA6, 源地址为移动终端的 HA的 IPv6地址。 需要说明的是, 下行解封装模块 1830可 以先进行判断操作再进行解封装操作, 下行解封装模块 1830也可以先进行解封装操作再进行判断操 作, 亦或是下行解封装模块 1830同时进行判断操作和解封装操作。
如果该节点设备为移动终端的代理,则第三发送模块 1810还需要向移动终端发送下行 IPv4数据 包。
实施例十、 IPv4-v6共存系统。 该系统的结构如附图 19所示。
图 19中的系统包括: 移动终端的代理 1900和家乡代理 1910。 移动终端的代理 1900位于移动终端 的接入网侧。 需要说明的是, 图 19中虽然只示出了一个移动终端的代理 1900和一个家乡代理 1910, 但是, 在实际应用中, 移动终端的代理 1900和家乡代理 1910的数量可以为多个。
在移动终端的上行, 移动终端的代理 1900将移动终端发送来的上行 IPv4数据包直接进行移动 IPv6隧道封装,在移动 IPv6隧道封装头中携带指示信息,该指示信息用于指示该上行数据包为对 IPv4 数据包直接进行移动 IPv6隧道封装的数据包。 移动终端的代理 1900发送移动 IPv6隧道封装后的上行 数据包。上述上行 IPv4数据包的源地址为不可路由的 IPv4地址, 目的地址为通信对端的可路由的 IPv4 地址。该上行数据包的移动 IPv6隧道封装头的源地址为移动终端的 CoA6, 目的地址为移动终端的 HA 的 IPv6地址。
在移动终端的下行, 移动终端的代理 1900判断接收到的移动终端的下行数据包, 在判断出该下 行数据包的移动 IPv6隧道封装头中携带有上述指示信息后, 对该下行数据包进行解封装处理, 获取 下行 IPv4数据包, 并发送给所述移动终端; 上述下行数据包的移动 IPv6隧道封装头的目的地址为移 动终端的 CoA6,源地址为移动终端的 HA的 IPv6地址。上述下行 IPv4数据包的目的地址为不可路由的 IPv4地址, 源地址为通信对端的可路由的 IPv4地址。
在移动终端的上行, 家乡代理 1910判断接收到的上行数据包的移动 IPv6隧道封装头中是否携带 有指示信息, 在判断出携带有指示信息, 则确定该数据包为对上行 IPv4数据包直接进行移动 IPv6隧 道封装的数据包, 之后, 家乡代理 1910对上行数据包进行解封装后获得的上行 IPv4数据包进行网络 地址转换处理, 并向移动终端的通信对端发送网络地址转换处理后的上行 IPv4数据包。 具体的网络 地址转换处理过程等如上述实施例中的描述。
在移动终端的下行, 家乡代理 1910对通信对端发送来的下行 IPv4数据包进行网络地址转换处理, 家乡代理 1910将网络地址转换处理后的下行 IPv4数据包直接进行移动 IPv6隧道封装, 家乡代理 1910 在针对下行 IPv4数据包直接进行移动 IPv6隧道封装的移动 IPv6隧道封装头中携带指示信息,家乡代理 1910向移动终端的代理发送所述移动 IPv6隧道封装后的下行数据包。 家乡代理 1910对接收到的下行 IPv4数据包的具体的处理过程如上述实施例中的描述。
施例十中的家乡代理功能模块 1910和移动终端的代理 1900的具体结构如上述各实施例中的描 述。
实施例十一、 1PV4-V6共存系统。 该系统的结构如附图 20所示。
图 20中的系统包括: 移动终端的代理 2000、 家乡代理功能模块 2010和 CGN功能模块 2020。 需要 说明的是, 图 20中虽然只示出了一个移动终端的代理 2000、 一个家乡代理功能模块 2010和一个 CGN 功能模块 2020, 但是, 在实际应用中, 移动终端的代理 2000、 家乡代理功能模块 2010和 CGN功能模 块 2020的数量可以为多个。
在移动终端的上行, 移动终端的代理 2000将移动终端发送来的上行 IPv4数据包直接进行移动 IPv6隧道封装,在移动 IPv6隧道封装头中携带指示信息,该指示信息用于指示该上行数据包为对 IPv4 数据包直接进行移动 IPv6隧道封装的数据包。 移动终端的代理 2000发送移动 IPv6隧道封装后的上行 数据包。上述上行 IPv4数据包的源地址为不可路由的 IPv4地址, 目的地址为通信对端的可路由的 IPv4 地址。该上行数据包的移动 IPv6隧道封装头的源地址为移动终端的 CoA6, 目的地址为移动终端的 HA 的 IPv6地址。
在移动终端的下行, 移动终端的代理 2000判断接收到的移动终端的下行数据包, 在判断出该下 行数据包的移动 IPv6隧道封装头中携带有上述指示信息后, 对该下行数据包进行解封装处理, 获取 下行 IPv4数据包, 并发送给所述移动终端; 上述下行数据包的移动 IPv6隧道封装头的目的地址为移 动终端的 CoA6,源地址为移动终端的 HA的 IPv6地址。上述下行 IPv4数据包的目的地址为不可路由的 IPv4地址, 源地址为通信对端的可路由的 IPv4地址。
在移动终端的上行, 家乡代理功能模块 2010接收移动终端的上行数据包。
家乡代理功能模块 2010判断所述上行数据包的移动 IPv6隧道封装头中是否携带有指示信息, 在 判断出携带有上述指示信息, 则家乡代理功能模块 2010判断出该上行数据包为对 IPv4数据包直接进 行移动 IPv6隧道封装的数据包。 家乡代理功能模块 2010获取针对所述上行数据包中的上行 IPv4数据 包的基于 IPv4 over IPv6隧道封装的上行数据包, 家乡代理功能模块 2010向 CGN功能模块 2020发送基 于 IPv4 over IPv6隧道封装的上行数据包。 家乡代理功能模块 2010获取针对上行数据包中的上行 IPv4 数据包的基于 IPv4 over IPv6隧道封装的上行数据包的方式有多种, 具体如上述实施例中的描述。
在移动终端的下行, 家乡代理功能模块 2010判断接收到的下行数据包的移动 IPv6隧道封装头 中是否携带有指示信息, 在判断出携带有上诉指示信息后, 确定出接收到的下行数据包为对 IPv4数 据包直接进行 IPv4 over IPv6隧道封装的数据包。家乡代理功能模块 2010获取针对下行 IPv4数据包 的基于移动 IPv6隧道封装的下行数据包, 家乡代理功能模块 2010向移动终端的代理 2000发送基于 移动 IPv6隧道封装的下行数据包。家乡代理功能模块 2010获取针对下行 IPv4数据包的基于移动 IPv6 隧道封装的下行数据包的具体实现方式有多种, 具体如上述实施例中的描述。
在移动终端的下行, CGN功能模块 2020接收移动终端的通信对端发送来的下行 IPv4数据包,并 对该下行 IPv4数据包进行网络地址转换及 IPv4 over IPv6隧道封装处理, 并向家乡代理功能模块 2010 发送 IPv4 over IPv6隧道封装处理后的下行数据包。 下行 IPv4数据包的目的地址和源地址、 网络地址 转换过程、 以及 IPv4 over IPv6隧道封装处理如上述实施例的描述。
在移动终端的上行, CGN功能模块 2020接收家乡代理功能模块 2010发送来的基于 IPv4 over
IPv6隧道封装的上行数据包,并对该上行数据包进行 IPv4 over IPv6隧道解封装处理及网络地址转换, 之后, CGN功能模块 2020向通信对端发送网络地址转换后的上行 IPv4数据包。 上行 IPv4数据包的目 的地址和源地址、 网络地址转换过程、 以及 IPv4 over IPv6隧道解封装处理如上述实施例的描述。
实施例 ^—中的 CGN功能模块 2020和家乡代理功能模块 2010可以位于同一网络设备中, 也可 以位于不同网络设备中。 另外, 实施例十一中的移动终端的代理 2000、 家乡代理 2010和 CGN功能模 块 2020的具体结构如上述各实施例中的描述。
实施例十二、 IPv4-v6共存系统。 该系统的结构如附图 21所示。
图 21中的系统包括: 第一网络设备 2100和第二网络设备 2110。 第一网络设备 2100中设置有家乡 代理功能模块, 第一网络设备 2100可以对外表现为 HA。 第二网络设备 2110中设置有 CGN功能模块, 第二网络设备 2110可以对外表现为 CGN。需要说明的是,图 21中虽然只示出了一个第一网络设备 2100 和一个第二网络设备 21 10, 但是, 在实际应用中, 第一网络设备 2100和第二网络设备 21 10的数量可 以为多个。
在移动终端的上行, 第一网络设备 2100接收移动终端的上行数据包。
第一网络设备 2100判断所述上行数据包的移动 IPv6隧道封装头中是否携带有指示信息, 在判断 出携带有上述指示信息, 则第一网络设备 2100判断出该上行数据包为对 IPv4数据包直接进行移动 IPv6隧道封装的数据包。第一网络设备 2100获取针对所述上行数据包中的上行 IPv4数据包的基于 IPv4 over IPv6隧道封装的上行数据包, 第一网络设备 2100向第二网络设备 21 10发送基于 IPv4 over IPv6隧 道封装的上行数据包。 第一网络设备 2100获取针对上行数据包中的上行 IPv4数据包的基于 IPv4 over IPv6隧道封装的上行数据包的方式有多种, 具体如上述实施例中的描述。
在移动终端的下行, 第一网络设备 2100判断接收到的下行数据包的移动 IPv6隧道封装头中是 否携带有指示信息, 在判断出携带有上诉指示信息后, 确定出接收到的下行数据包为对 IPv4数据包 直接进行 IPv4 over IPv6隧道封装的数据包。第一网络设备 2100获取针对下行 IPv4数据包的基于移 动 IPv6隧道封装的下行数据包, 第一网络设备 2100向移动终端发送基于移动 IPv6隧道封装的下行 数据包。 第一网络设备 2100获取针对下行 IPv4数据包的基于移动 IPv6隧道封装的下行数据包的具 体实现方式有多种, 具体如上述实施例中的描述。 在移动终端的下行, 第二网络设备 21 10接收移动终端的通信对端发送来的下行 IPv4数据包, 并 对该下行 IPv4数据包进行网络地址转换及 IPv4 over IPv6隧道封装处理, 并向第一网络设备 2100发送 IPv4 over IPv6隧道封装处理后的下行数据包。 下行 IPv4数据包的目的地址和源地址、 网络地址转换 过程、 以及 IPv4 over IPv6隧道封装处理如上述实施例的描述。
在移动终端的上行, 第二网络设备 2110接收第一网络设备 2100发送来的基于 IPv4 over IPv6隧 道封装的上行数据包, 并对该上行数据包进行 IPv4 over IPv6隧道解封装处理及网络地址转换,之后, 第二网络设备 21 10向通信对端发送网络地址转换后的上行 IPv4数据包。 上行 IPv4数据包的目的地址 和源地址、 网络地址转换过程、 以及 IPv4 over IPv6隧道解封装处理如上述实施例的描述。
实施例十二中的第一网络设备 2100和第二网络设备 2110的具体结构如上述各实施例中的描述。 通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可借助软件加必需的 硬件平台的方式来实现, 当然也可以全部通过硬件来实施, 但很多情况下前者是更佳的实施方式。 基于这样的理解, 本发明的技术方案对背景技术做出贡献的全部或者部分可以以软件产品的形式体 现出来, 该计算机软件产品可以存储在存储介质中, 如 ROM/RAM、 磁碟、 光盘等, 包括若干指令 用以使得一台计算机设备 (可以是个人计算机, 服务器, 或者网络设备等) 执行本发明各个实施例 或者实施例的某些部分所述的方法。
虽然通过实施例描绘了本发明, 本领域普通技术人员知道, 本发明有许多变形和变化而不脱离 本发明的精神, 本发明的申请文件的权利要求包括这些变形和变化。

Claims

权利要求
1、 一种 IPv4-v6共存方法, 其特征在于, 包括:
在移动终端的上行, 判断上行数据包的移动 IPv6隧道封装头中携带的指示信息, 在根据该指示 信息判断出该数据包为对 IPv4数据包直接进行移动 IPv6隧道封装的数据包后, 对所述上行数据包进 行解封装后获得的上行 IPv4数据包进行网络地址转换处理, 并向所述移动终端的通信对端发送所述 网络地址转换处理后的上行 IPv4数据包;
在移动终端的下行, 对所述通信对端发送来的下行 IPv4数据包进行网络地址转换处理, 将网络 地址转换处理后的下行 IPv4数据包直接进行移动 IPv6隧道封装,在针对所述下行 IPv4数据包直接进行 移动 IPv6隧道封装的移动 IPv6隧道封装头中携带指示信息,并向所述移动终端发送所述移动 IPv6隧道 封装后的下行数据包。
2、如权利要求 1所述的方法,其特征在于,所述对所述上行数据包进行解封装后获得的上行 IPv4 数据包进行网络地址转换处理, 并向所述移动终端的通信对端发送所述网络地址转换处理后的上行 IPv4数据包的步骤包括:
所述移动终端的家乡代理功能模块将所述上行 IPv4数据包源地址信息中的不可路由的 IPv4地址 更新为可路由的公有 IPv4地址,所述上行 IPv4数据包为通过对所述上行数据包进行移动 IPv6解封装而 获得的 IPv4数据包;
所述家乡代理功能模块向所述移动终端的通信对端发送所述网络地址转换处理后的上行 IPv4数 据包。
3、 如权利要求 2所述的方法, 其特征在于, 所述方法还包括:
所述家乡代理功能模块存储所述不可路由的 IPv4地址、 可路由的公有 IPv4地址、 所述移动终端 的 IPv6家乡地址和所述移动终端的 IPv6转交地址之间的对应关系;
且所述家乡代理功能模块根据所述对应关系对所述移动终端的下行数据包进行网络地址转换和 移动 IPv6隧道封装。
4、 一种 IPv4-v6共存方法, 其特征在于, 包括:
在移动终端的上行, 判断接收到的上行数据包的移动 IPv6隧道封装头中携带的指示信息, 在根 据该指示信息判断出上行数据包为对上行 IPv4数据包直接进行移动 IPv6隧道封装的数据包后, 获取 针对所述上行 IPv4数据包的基于 IPv4 over IPv6隧道封装的上行数据包, 向承载级别的网络地址转换 CGN功能模块发送所述基于 IPv4 over IPv6隧道封装的上行数据包, 以使所述 CGN功能模块对所述上 行数据包执行解封装、 网络地址转换及向所述移动终端的通信对端发送网络地址转换处理后的上行 IPv4数据包操作;
在移动终端的下行, 接收 CGN功能模块发送来的下行数据包, 所述下行数据包为: 所述 CGN功 能模块对所述通信对端发送来的下行 IPv4数据包进行网络地址转换及 IPv4 over IPv6隧道封装处理后 的下行数据包; 获取针对所述下行 IPv4数据包的基于移动 IPv6隧道封装的下行数据包, 并向所述移 动终端发送所述基于移动 IPv6隧道封装的下行数据包。
5、 如权利要求 4所述的方法, 其特征在于, 所述获取针对上行 IPv4数据包的基于 IPv4 over IPv6 隧道封装的上行数据包具体包括:
家乡代理功能模块对接收到的上行数据包进行移动 IPv6解封装后获得的上行 IPv4数据包进行 IPv4 over IPv6隧道封装; 或者
家乡代理功能模块将接收到的上行数据包的移动 IPv6隧道封装的源地址变换为所述移动终端的 IPv6家乡地址; 或者
家乡代理功能模块将接收到的上行数据包的移动 IPv6隧道封装的源地址变换为所述移动终端的 IPv6家乡地址, 将目的地址变换为所述 CGN功能模块的 IPv6地址。
6、 如权利要求 5所述的方法, 其特征在于, 所述 IPv4 over IPv6隧道封装包括:
所述家乡代理功能模块将所述 IPv4 over IPv6隧道封装的源地址设置为所述移动终端的 IPv6家乡 地址, 将目的地址设置为家乡代理功能模块的 IPv6地址或者 CGN功能模块的 IPv6地址。
7、 如权利要求 4或 5或 6所述的方法, 其特征在于, 所述家乡代理功能模块和所述 CGN功能模块 位于同一物理实体中或者所述家乡代理功能模块和所述 CGN功能模块位于不同的物理实体中。
8、 一种 IPv4-v6共存方法, 其特征在于, 包括:
移动终端或移动终端的代理将需要发送的上行 IPv4数据包直接进行移动 IPv6隧道封装, 在移动 IPv6隧道封装头中携带用于指示该数据包为对 IPv4数据包直接进行移动 IPv6隧道封装的数据包的指 示信息, 并发送所述移动 IPv6隧道封装后的上行数据包;
移动终端或移动终端的代理在确定出接收到的下行数据包的移动 IPv6隧道封装头中携带有所述 指示信息后, 对所述下行数据包进行移动 IPv6解封装处理, 获取下行 IPv4数据包。
9、 一种网络设备, 应用于 IPv4-v6共存的网络环境下, 其特征在于, 所述网络设备包括: 第一接收模块, 用于接收移动终端或移动终端的代理发送来的基于移动 IPv6隧道封装的上行数 据包、 以及所述移动终端的通信对端发送来的下行 IPv4数据包;
第一判断模块, 用于判断所述第一接收模块接收的上行数据包的移动 IPv6隧道封装头中携带的 指示信息;
第一共存处理模块, 用于:
在所述移动终端的上行, 在所述第一判断模块根据所述指示信息判断出该上行数据包为对 IPv4 数据包直接进行移动 IPv6隧道封装的数据包后, 对所述上行数据包进行解封装后获得的上行 IPv4数 据包进行网络地址转换处理;
在所述移动终端的下行, 对所述通信对端发送来的下行 IPv4数据包进行网络地址转换处理, 将 网络地址转换处理后的下行 IPv4数据包直接进行移动 IPv6隧道封装, 获得下行数据包;
第一发送模块, 用于向所述移动终端的通信对端发送所述网络地址转换处理后的上行 IPv4数据 包, 向所述移动终端发送所述下行数据包。
10、 如权利要求 9所述的网络设备, 其特征在于, 所述第一共存处理模块包括:
移动 IPv6解封装模块, 用于对所述第一接收模块接收到的上行数据包进行解封装处理获得上行 IPv4数据包;
网络地址转换模块, 用于: 在所述移动终端的上行, 在所述第一判断模块根据所述指示信息判断出所述上行数据包为对 IPv4数据包直接进行移动 IPv6隧道封装的数据包后,将所述上行 IPv4数据包源地址信息中的不可路由 的 IPv4地址更新为可路由的公有 IPv4地址,并存储所述不可路由的 IPv4地址和所述公有 IPv4地址之间 的对应关系;
在所述移动终端的下行, 根据所述对应关系对所述移动终端的通信对端发送来的下行 IPv4数据 包进行网络地址转换处理;
移动 IPv6封装模块,用于根据所述移动终端的 IPv6家乡地址和所述移动终端的 IPv6转交地址之间 的对应关系将网络地址转换处理后的下行 IPv4数据包直接进行移动 IPv6隧道封装。
1 1、 一种网络设备, 应用于 IPv4-v6共存的网络环境下, 其特征在于, 所述网络设备包括: 第二接收模块, 用于接收移动终端或移动终端的代理发送来的基于移动 IPv6隧道封装的上行数 据包、 以及 CGN功能模块发送来的下行数据包, 所述下行数据包为: 所述 CGN功能模块对所述移动 终端的通信对端发送来的下行 IPv4数据包进行网络地址转换及 IPv4 over IPv6隧道封装处理后的下行 数据包;
第二判断模块, 用于判断所述第二接收模块接收的上行数据包的移动 IPv6隧道封装头中携带的 指示信息;
第二共存处理模块, 用于- 在移动终端的上行, 在所述第二判断模块根据指示信息判断出所述上行数据包为对 IPv4数据包 直接进行移动 IPv6隧道封装的数据包后, 获取针对所述上行数据包中的上行 IPv4数据包的基于 IPv4 over IPv6隧道封装的上行数据包;
在移动终端的下行, 获取针对所述下行 IPv4数据包的基于移动 IPv6隧道封装的下行数据包; 第二发送模块, 用于向 CGN功能模块发送基于 IPv4 over IPv6隧道封装的上行数据包, 并向所述 移动终端发送基于移动 IPv6隧道封装的下行数据包。
12、 如权利要求 11所述的网络设备, 其特征在于, 所述第二共存处理模块包括:
移动 IPv6解封装模块, 用于对所述第二接收模块接收到的上行数据包进行解封装处理获得上行 IPv4数据包;
IPv4 over IPv6隧道封装模块, 用于对所述移动 IPv6解封装模块获得的上行 IPv4数据包进行 IPv4 over IPv6隧道封装;
IPv4 over IPv6隧道解封装模块, 用于对所述第二接收模块接收到的下行数据包进行解封装, 获 得下行 IPv4数据包;
移动 IPv6封装模块, 用于对 IPv4 over IPv6隧道解封装模块获得的下行 IPv4数据包进行移动 IPv6 封装;
或者所述第二共存处理模块包括:
第一地址变换模块, 用于将所述第二接收模块接收到的上行数据包的移动 IPv6隧道封装的源地 址变换为所述移动终端的 IPv6家乡地址;
笫二地址变换模块,用于将所述第二接收模块接收到的下行数据包的 Pv4 over IPv6隧道封装的目 的地址变化为所述移动终端的 IPv6转交地址;
或者所述第二共存处理模块包括- 第三地址变换模块, 用于将所述第二接收模块接收到的上行数据包的移动 IPv6隧道封装的源地 址变换为所述移动终端的 IPv6家乡地址, 将目的地址变换为 CGN功能模块的 IPv6地址;
第四地址变换模块,用于将所述第二接收模块接收到的下行数据包的 Pv4 over IPv6隧道封装的源 地址变换为所述移动终端的家乡代理功能模块的 IPv6地址。
13、 一种节点设备, 为移动终端或移动终端的代理, 其特征在于, 包括:
上行封装模块, 用于将需要发送的上行 IPv4数据包直接进行移动 IPv6隧道封装,在移动 IPv6隧道 封装头中携带指示信息; 所述指示信息用于指示该上行数据包为对 IPv4数据包直接进行移动 IPv6隧 道封装的数据包;
第三发送模块, 用于向网络侧发送所述移动 IPv6隧道封装后的上行数据包;
第三接收模块, 用于接收下行数据包;
下行解封装模块, 用于判断所述下行数据包的移动 IPv6隧道封装头中是否携带有所述指示信息, 对所述下行数据包进行解封装处理, 根据判断结果确定解封装获得的数据包为下行 IPv4数据包。
14、 一种 IPv4-v6共存系统, 其特征在于, 包括:
移动终端的代理, 位于移动终端的接入网侧, 用于将移动终端发送来的上行 IPv4数据包直接进 行移动 IPv6隧道封装,在移动 IPv6隧道封装头中携带指示信息,并发送所述移动 IPv6隧道封装后的上 行数据包; 接收所述移动终端的下行数据包, 在判断出所述下行数据包的移动 IPv6隧道封装头中携 带有所述指示信息后, 对所述下行数据包进行解封装处理, 获取下行 IPv4数据包, 并发送给所述移 动终端;
家乡代理, 用于:
在移动终端的下行, 判断接收到的上行数据包的移动 IPv6隧道封装头中携带的指示信息, 在根 据指示信息判断出该数据包为对 IPv4数据包直接进行移动 IPv6隧道封装的数据包后, 对所述上行数 据包进行解封装后获得的上行 IPv4数据包进行网络地址转换处理, 并向所述移动终端的通信对端发 送所述网络地址转换处理后的上行 IPv4数据包;
在移动终端的下行, 对所述通信对端发送来的下行 IPv4数据包进行网络地址转换处理, 将网络 地址转换处理后的下行 IPv4数据包直接进行移动 IPv6隧道封装,在针对所述下行 IPv4数据包直接进行 移动 IPv6隧道封装的移动 IPv6隧道封装头中携带指示信息, 并向所述移动终端的代理发送所述移动 IPv6隧道封装后的下行数据包。
15、 一种 IPv4-v6共存系统, 其特征在于, 包括:
移动终端的代理, 位于所述移动终端的接入网侧, 用于将移动终端发送来的上行 IPv4数据包直 接进行移动 IPv6隧道封装,在移动 IPv6隧道封装头中携带指示信息,并发送所述移动 IPv6隧道封装后 的上行数据包; 接收所述移动终端的下行数据包, 在判断出所述下行数据包的移动 IPv6隧道封装头 中携带有所述指示信息后, 对所述下行数据包进行解封装处理, 获取下行 IPv4数据包, 并发送给所 述移动终端; 家乡代理功能模块, 用于:
在移动终端的上行, 接收所述移动终端的上行数据包, 在根据所述上行数据包的移动 IPv6隧道 封装头中携带的指示信息判断出所述上行数据包为对 IPv4数据包直接进行移动 IPv6隧道封装的数据 包后, 获取针对所述上行数据包中的上行 IPv4数据包的基于 IPv4 over IPv6隧道封装的上行数据包, 发送基于 IPv4 over IPv6隧道封装的上行数据包;
在移动终端的下行, 接收所述移动终端的下行数据包, 在根据所述下行数据包的移动 IPv6隧道 封装头中携带的信息判断出所述下行数据包为对 IPv4数据包进行 IPv4 over IPv6隧道封装的数据包 后, 获取针对所述下行 IPv4数据包的基于移动 IPv6隧道封装的下行数据包, 向移动终端发送基于移 动 IPv6隧道封装的下行数据包;
CGN功能模块, 用于接收所述移动终端的通信对端发送来的下行 IPv4数据包, 对该下行 IPv4数 据包进行网络地址转换及 IPv4 over IPv6隧道封装处理, 并向家乡代理功能模块发送所述 IPv4 over IPv6隧道封装处理后的下行数据包; 接收家乡代理功能模块发送来的基于 IPv4 over IPv6隧道封装的 上行数据包, 并对该上行数据包进行 IPv4 over IPv6隧道解封装处理及网络地址转换, 向所述通信对 端发送所述网络地址转换后的上行 IPv4数据包。
16、 一种 IPv4-v6共存系统, 其特征在于, 包括:
第一网络设备, 设置有家乡代理功能模块, 所述第一网络设备用于:
在移动终端的上行, 接收所述移动终端的上行数据包, 在根据所述上行数据包的移动 IPv6隧道 封装头中携带的指示信息判断出所述上行数据包为对 IPv4数据包直接进行移动 IPv6隧道封装的数据 包后, 获取针对所述上行数据包中的上行 IPv4数据包的基于 IPv4 over IPv6隧道封装的上行数据包, 发送基于 IPv4 over IPv6隧道封装的上行数据包;
在移动终端的下行, 接收所述移动终端的下行数据包, 在根据所述下行数据包的移动 IPv6隧道 封装头中携带的信息判断出所述下行数据包为对 IPv4数据包进行 IPv4 over IPv6隧道封装的数据包 后, 获取针对所述下行 IPv4数据包的基于移动 IPv6隧道封装的下行数据包, 向移动终端发送基于移 动 IPv6隧道封装的下行数据包;
第二网络设备, 设置有 CGN功能模块, 所述第二网络设备用于接收所述移动终端的通信对端发 送来的下行 IPv4数据包, 对该下行 IPv4数据包进行网络地址转换及 IPv4 over IPv6隧道封装处理, 并 向第一网络设备发送所述 IPv4 over IPv6隧道封装处理后的下行数据包; 接收第一网络设备发送来的 基于 IPv4 over IPv6隧道封装的上行数据包, 并对该上行数据包进行 IPv4 over IPv6隧道解封装处理及 网络地址转换, 向所述通信对端发送所述网络地址转换后的上行 IPv4数据包。
PCT/CN2009/070624 2009-03-03 2009-03-03 IPv4-v6共存方法、网络设备及系统 WO2010099654A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2009/070624 WO2010099654A1 (zh) 2009-03-03 2009-03-03 IPv4-v6共存方法、网络设备及系统
CN200980114473.1A CN102282821B (zh) 2009-03-03 2009-03-03 IPv4-v6共存方法、网络设备及系统

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2009/070624 WO2010099654A1 (zh) 2009-03-03 2009-03-03 IPv4-v6共存方法、网络设备及系统

Publications (1)

Publication Number Publication Date
WO2010099654A1 true WO2010099654A1 (zh) 2010-09-10

Family

ID=42709198

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/070624 WO2010099654A1 (zh) 2009-03-03 2009-03-03 IPv4-v6共存方法、网络设备及系统

Country Status (2)

Country Link
CN (1) CN102282821B (zh)
WO (1) WO2010099654A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110839046B (zh) * 2019-12-03 2022-04-22 睿哲科技股份有限公司 多协议的互通方法和系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1716954A (zh) * 2005-05-27 2006-01-04 清华大学 基于过渡机制的IPv6网和IPv4网间互通的方法
CN1757221A (zh) * 2003-03-10 2006-04-05 思科技术公司 利用IPv6移动路由器穿过IPv4网络的布置
CN1805436A (zh) * 2005-01-14 2006-07-19 中兴通讯股份有限公司 一种实现动态4-in-6隧道建立的方法
CN1870633A (zh) * 2005-09-27 2006-11-29 华为技术有限公司 通过双栈移动IPv6节点支持移动IPv4的方法
US20070088853A1 (en) * 2005-10-13 2007-04-19 Electronics And Telecommunications Research Institute Communication method between IPv6 mobile node and IPv4-based node using DSTM in MIPv6 environment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1757221A (zh) * 2003-03-10 2006-04-05 思科技术公司 利用IPv6移动路由器穿过IPv4网络的布置
CN1805436A (zh) * 2005-01-14 2006-07-19 中兴通讯股份有限公司 一种实现动态4-in-6隧道建立的方法
CN1716954A (zh) * 2005-05-27 2006-01-04 清华大学 基于过渡机制的IPv6网和IPv4网间互通的方法
CN1870633A (zh) * 2005-09-27 2006-11-29 华为技术有限公司 通过双栈移动IPv6节点支持移动IPv4的方法
US20070088853A1 (en) * 2005-10-13 2007-04-19 Electronics And Telecommunications Research Institute Communication method between IPv6 mobile node and IPv4-based node using DSTM in MIPv6 environment

Also Published As

Publication number Publication date
CN102282821B (zh) 2014-02-19
CN102282821A (zh) 2011-12-14

Similar Documents

Publication Publication Date Title
JP3633430B2 (ja) 通信方法、通信システム、通信装置、及び記録媒体
JP4527721B2 (ja) トンネリングを用いたリモートlanのコネクティビティを改善するための装置及び方法
JP4431112B2 (ja) 端末及び通信システム
JP5087139B2 (ja) データ・パケットのヘッダ・サイズ縮小
US20080008196A1 (en) Heterogenous Network Interworking Method of a Node Having Multiple Network Interfaces
JP5349466B2 (ja) トンネルオーバヘッドの削減
JP5816743B2 (ja) セルラネットワークとwlanとを統合したネットワーク状況下での通信の方法
KR100531623B1 (ko) NAT-PT 환경에서의 모바일 IPv6를 이용한 통신방법 및 이를 저장한 기록매체
JP2009516988A5 (zh)
WO2007061968A2 (en) Internet protocol tunneling on a mobile network
WO2007022683A1 (fr) Procede de communication entre le noeud ipv6 mobile et le partenaire de communication ipv4
US9781590B2 (en) Per-host locator to enable mobility gateway relocation in distributed mobility management
WO2011018002A1 (zh) 一种传输承载的中继方法、装置和通信系统
EP2003826A9 (en) A method, system and apparatus for realizing fast handover
WO2010052920A1 (ja) ハンドオーバ方法、その方法で用いられる移動端末及びホームエージェント
WO2007036146A1 (fr) Procédé, système et dispositif pour communiquer entre un nœud mobile ipv6 et un partenaire de communication ipv4
US20100303027A1 (en) Method for sending data packets in a data network during handover of a mobile node
JP2003060683A (ja) モバイルipの経路制御方法
JP2003018185A (ja) モバイルip通信システム、モバイルip通信方法、ネットワーク中継装置及び移動体端末
WO2010099654A1 (zh) IPv4-v6共存方法、网络设备及系统
KR100689731B1 (ko) 모바일 IPv4 망에서의 모바일 IPv6 연동방법
US20140036852A1 (en) Method of communication under network condition converging cellular network and wlan
US8588177B2 (en) Method of performing session handover between terminals, network system, and program
Tsao Enhanced GTP: an efficient packet tunneling protocol for General Packet Radio Service
WO2007036140A1 (fr) Procede d'implementation d'un commutateur de traduction d'adresses de reseau dans un reseau ip mobile

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 200980114473.1

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09840988

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 09840988

Country of ref document: EP

Kind code of ref document: A1