CN112532762B - Method and device for avoiding IPv4 private network address conflict by IPv6 address - Google Patents

Method and device for avoiding IPv4 private network address conflict by IPv6 address Download PDF

Info

Publication number
CN112532762B
CN112532762B CN202011334957.1A CN202011334957A CN112532762B CN 112532762 B CN112532762 B CN 112532762B CN 202011334957 A CN202011334957 A CN 202011334957A CN 112532762 B CN112532762 B CN 112532762B
Authority
CN
China
Prior art keywords
address
ipv6
ipv4
gre
gre tunnel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011334957.1A
Other languages
Chinese (zh)
Other versions
CN112532762A (en
Inventor
朱永雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Unihub China Information Technology Co Ltd
Original Assignee
Unihub China Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Unihub China Information Technology Co Ltd filed Critical Unihub China Information Technology Co Ltd
Priority to CN202011334957.1A priority Critical patent/CN112532762B/en
Publication of CN112532762A publication Critical patent/CN112532762A/en
Application granted granted Critical
Publication of CN112532762B publication Critical patent/CN112532762B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5046Resolving address allocation conflicts; Testing of addresses
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a method and a device for avoiding IPv4 private network address conflict by an IPv6 address, wherein the method comprises the following steps: the GGSN equipment and the GRE gateway use a GRE tunnel to transfer data; the GRE gateway realizes bidirectional conversion between the IPv4 GRE tunnel message and the IPv6 message according to an IP address multiplexing/conversion algorithm; and each service processing process of the WAP gateway accesses according to the IP address after multiplexing the users. The method and the device realize centralized construction of WAP gateway, improve the utilization rate of equipment, do not modify GGSN equipment, and can continuously adopt a repeated IPv4 address segment allocation mode, thereby reducing the current network modification difficulty.

Description

Method and device for avoiding IPv4 private network address conflict by IPv6 address
Technical Field
The invention relates to the application field of IP/GRE in the communication industry, in particular to a method and a device for avoiding IPv4 private network address conflict by an IPv6 address.
Background
In the existing network, GGSN equipment performs point-to-point interconnection with WAP gateway through GRE tunnel protocol, each GGSN equipment configures independent IP address pool; after the user terminal is attached to the GGSN equipment, the GGSN equipment binds the mobile phone number and the IP address and sends the binding relation to the service address of the WAP gateway through the RADIUS message; the WAP proxy address of the user terminal is set as 10.0.0.172 by default, and WAP 1.X and WAP 2.0 requests initiated by the terminal are sent to the WAP proxy address, and the WAP gateway proxies the terminal requests to realize the Internet access of the WAP requests.
When the number of mobile phone users exceeds the range of the address pool allocated by the GGSN equipment, the same address pool has to be configured on each GGSN equipment, and simultaneously, the user requests are respectively directed to different WAP gateways through GRE tunnel protocols, and each WAP gateway independently processes the mapping relation between the mobile phone number and the IP address, as shown in figure 1. Under the condition that WAP service is gradually withered and WAP users are not reduced, analysis from the aspect of processing capacity tends to cause repeated construction of WAP gateways, and the core for solving the problem is that the same user terminal IP address segments in different GGSN equipment are compatible and multiplexed in the same WAP gateway.
Disclosure of Invention
In order to solve the problem of repeated construction of WAP gateway, the invention provides a method and a device for avoiding IPv4 private network address conflict by IPv6 address, which realizes compatible multiplexing of IPv4 address in the same WAP gateway.
In order to achieve the above purpose, the present invention adopts the following technical scheme:
in an embodiment of the present invention, a method for avoiding an IPv4 private network address conflict by an IPv6 address is provided, where the method includes:
the GGSN equipment and the GRE gateway use a GRE tunnel to transfer data;
the GRE gateway realizes bidirectional conversion between the IPv4 GRE tunnel message and the IPv6 message according to an IP address multiplexing/conversion algorithm;
and each service processing process of the WAP gateway accesses according to the IP address after multiplexing the users.
Further, the IP address multiplexing/converting algorithm uses the 128bits characteristic of the IPv6 address to compress and load the province information of the GGSN device, the information of the GGSN device, and the address information requested by the user terminal in the GRE tunnel into the IPv6 address.
Further, IPv6 addresses employ ULA addresses exclusively for their internal network communications.
Further, ULA address format is:
address part: prefix, global ID, subnet ID, interface ID;
number of bits corresponding to address portion: 8bits,40bits,16bits,64bits;
where Prefix is identified as FD00, and the following is defined as needed.
Further, the IP address multiplexing/conversion algorithm is as follows:
IPv6 address part Prefix, corresponding to bit number 8bits (0-7 bits), is ULA address identification, and is fixed as FD00;
the IPv6 address part Global ID corresponds to 40bits (8-47 bits) and is used for distinguishing an interface address of IPv6 network part equipment, a source address and a target address of a user request;
the IPv6 address part Subnet ID, corresponding to bit number 16bits (48-63 bits), is used for identifying the province and GGSN equipment to which the GGSN equipment belongs, and represents a certain GGSN equipment of a certain province; the province of GGSN equipment uses 8bits, the coding range is 1-255, GGSN equipment uses 8bits, and the coding range is 1-255;
the IPv6 address part Interface ID corresponds to 64bits (64-127 bits) and is used for recording the GRE tunnel and the IPv4 address requested by the user terminal, and the two IP addresses respectively occupy 32bits.
Further, according to an IP address multiplexing/converting algorithm, the GRE gateway realizes bidirectional conversion between an IPv4 GRE tunnel message and an IPv6 message, including:
after receiving an IPv4 GRE tunnel message of GGSN equipment, the GRE gateway firstly analyzes the GRE tunnel protocol, records the source address and the target address of the GRE tunnel, then analyzes the IP layer requested by the user terminal in the GRE tunnel, and records the source address and the target address of the user terminal; encoding a source address and a target address of an IPv6 message respectively according to an IP address multiplexing/converting algorithm, wherein the province of GGSN equipment and the identification of the GGSN equipment are obtained through inquiring a GRE tunnel configuration table; after the IPv6 message is coded, the message is sent to the next bar according to the route configuration;
after receiving the IPv6 message of the WAP gateway, the GRE gateway obtains the destination address of the GRE tunnel and the destination IP address of the user terminal by analyzing the IPv6 address, and then assembles the IPv4 GRE tunnel message according to the obtained IP addresses and the recorded tunnel configuration information of the user terminal, and sends the GRE tunnel message to the next piece according to the configuration of the routing table.
Further, the WAP gateway adopts an IPv4/IPv6 dual stack working mode.
In an embodiment of the present invention, there is further provided an apparatus for avoiding an IPv4 private network address conflict by an IPv6 address, including:
the GRE tunnel data transmission module is used for transmitting data between GGSN equipment and the GRE gateway by using the GRE tunnel;
the IPv4 and IPv6 address bidirectional conversion module is used for enabling the GRE gateway to realize bidirectional conversion between the GRE tunnel message of IPv4 and the IPv6 message according to an IP address multiplexing/conversion algorithm;
and the WAP gateway access IP address module is used for accessing each service processing process of the WAP gateway according to the IP address after multiplexing the users.
Further, the IP address multiplexing/converting algorithm uses the 128bits characteristic of the IPv6 address to compress and load the province information of the GGSN device, the information of the GGSN device, and the address information requested by the user terminal in the GRE tunnel into the IPv6 address.
Further, IPv6 addresses employ ULA addresses exclusively for their internal network communications.
Further, ULA address format is:
address part: prefix, global ID, subnet ID, interface ID;
number of bits corresponding to address portion: 8bits,40bits,16bits,64bits;
where Prefix is identified as FD00, and the following is defined as needed.
Further, the IP address multiplexing/conversion algorithm is as follows:
IPv6 address part Prefix, corresponding to bit number 8bits (0-7 bits), is ULA address identification, and is fixed as FD00;
the IPv6 address part Global ID corresponds to 40bits (8-47 bits) and is used for distinguishing an interface address of IPv6 network part equipment, a source address and a target address of a user request;
the IPv6 address part Subnet ID, corresponding to bit number 16bits (48-63 bits), is used for identifying the province and GGSN equipment to which the GGSN equipment belongs, and represents a certain GGSN equipment of a certain province; the province of GGSN equipment uses 8bits, the coding range is 1-255, GGSN equipment uses 8bits, and the coding range is 1-255;
the IPv6 address part Interface ID corresponds to 64bits (64-127 bits) and is used for recording the GRE tunnel and the IPv4 address requested by the user terminal, and the two IP addresses respectively occupy 32bits.
Further, the IPv4 and IPv6 address bidirectional conversion module is specifically configured to:
after receiving an IPv4 GRE tunnel message of GGSN equipment, the GRE gateway firstly analyzes the GRE tunnel protocol, records the source address and the target address of the GRE tunnel, then analyzes the IP layer requested by the user terminal in the GRE tunnel, and records the source address and the target address of the user terminal; encoding a source address and a target address of an IPv6 message respectively according to an IP address multiplexing/converting algorithm, wherein the province of GGSN equipment and the identification of the GGSN equipment are obtained through inquiring a GRE tunnel configuration table; after the IPv6 message is coded, the message is sent to the next bar according to the route configuration;
after receiving the IPv6 message of the WAP gateway, the GRE gateway obtains the destination address of the GRE tunnel and the destination IP address of the user terminal by analyzing the IPv6 address, and then assembles the IPv4 GRE tunnel message according to the obtained IP addresses and the recorded tunnel configuration information of the user terminal, and sends the GRE tunnel message to the next piece according to the configuration of the routing table.
Further, the WAP gateway adopts an IPv4/IPv6 dual stack working mode.
In an embodiment of the present invention, a computer device is further provided, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the aforementioned method for avoiding an IPv4 private network address conflict by an IPv6 address when executing the computer program.
In an embodiment of the present invention, a computer-readable storage medium is also presented, the computer-readable storage medium storing a computer program for executing the method of circumventing IPv4 private network address conflicts by IPv6 addresses.
The beneficial effects are that:
the invention maintains the function and networking mode of the GGSN equipment of the current network by accessing GRE gateway equipment without any change, thereby minimizing the influence on the current network; the equipment quantity of WAP gateway of the present network is reduced, after GRE gateway is adopted to convert IPv4 GRE tunnel message into IPv6 message, all GGSN equipment with multiplexing IP address can be accessed in a set of WAP gateway.
Drawings
Fig. 1 is a network diagram between an existing core network GGSN device and a WAP gateway;
fig. 2 is a network diagram between a core network GGSN device and a WAP gateway according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an apparatus for avoiding IPv4 private network address collision by IPv6 addresses according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The principles and spirit of the present invention will be described below with reference to several exemplary embodiments, with the understanding that these embodiments are merely provided to enable those skilled in the art to better understand and practice the invention and are not intended to limit the scope of the invention in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Those skilled in the art will appreciate that embodiments of the invention may be implemented as a system, apparatus, device, method, or computer program product. Accordingly, the present disclosure may be embodied in the following forms, namely: complete hardware, complete software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
According to the embodiment of the invention, a method and a device for avoiding IPv4 private network address conflict by an IPv6 address are provided, and the method comprises the following steps:
(1) And the GGSN equipment and the GRE gateway use a GRE tunnel to transfer data. The GRE gateway is responsible for resolving and packaging the GRE tunnel message of the IPv4 and converting the IPv4 address and the IPv6 address according to an IP address multiplexing/converting algorithm. And when the GRE gateway is used as a GRE tunnel end point of the GGSN equipment, after receiving a GRE tunnel request of the GGSN equipment, firstly checking the validity of the GRE tunnel, and under the condition of conforming to a configuration rule, converting the information of the GGSN equipment, the province information of the GGSN equipment and the address information requested by a user terminal in the GRE tunnel into an IPv6 message according to an IP address multiplexing/conversion algorithm and transmitting the data to the WAP gateway.
(2) In the core software of WAP gateway, the user database storage mode is also modified. And when the Radius message is processed and when WAP services are processed, each service processing process of the WAP gateway accesses according to the IP address after multiplexing the users. The WAP gateway adopts an IPv4/IPv6 dual stack working mode, and after receiving a request sent by GGSN equipment, the service server inquires user terminal information according to province information of the GGSN equipment in an IPv6 address, and after analyzing HTTP information, sends the request to an address of a real SP by using the IPv4 address of the service server.
The principles and spirit of the present invention are explained in detail below with reference to several representative embodiments thereof.
Fig. 2 is a network diagram between a core network GGSN device and a WAP gateway according to an embodiment of the present invention. As shown in fig. 2, the method includes:
the GGSN equipment and the GRE gateway use a GRE tunnel to transfer data;
the GRE gateway realizes bidirectional conversion between the IPv4 GRE tunnel message and the IPv6 message according to an IP address multiplexing/conversion algorithm;
and each service processing process of the WAP gateway accesses according to the IP address after multiplexing the users.
The IP address multiplexing/converting algorithm is the core for solving the IP address conflict of the user terminal, and the basic idea is to compress and bear the information such as province of GGSN equipment, address requested by the user terminal in GRE tunnel and the like to the IPv6 address by utilizing the characteristic of 128bits of the IPv6 address, thereby achieving the purpose of solving the IP address conflict of the user terminal; through reasonable IPv6 address planning, flexible network route allocation after WAP gateway centralization can be met.
According to the definition of the IPv6 address specification, the ULA address is an address of IPv6 specially used for internal network communication, and the format is defined as follows, where Prefix is identified as FD00, and subsequent parts can be defined as required.
Figure BDA0002796887340000081
IPv6 ULA address format definition
After the WAP gateway is centralized, the service server can correctly process the IP address of the user terminal, at least the province information to which the GGSN device belongs, the information of the GGSN device, and the address information requested by the user terminal in the tunnel, so that it is necessary to encode and decode these information into the address field of IPv6 during the conversion. The currently employed codec method is as follows in table 1:
table 1 IPv6 codec scheme
Figure BDA0002796887340000091
According to the conversion algorithm, the GRE gateway needs to complete bidirectional conversion between the IPv4 GRE tunnel message and the IPv6 message, and the conversion process is as follows:
(1) After receiving an IPv4 GRE tunnel message of GGSN equipment, the GRE gateway firstly analyzes the GRE tunnel protocol, records a source address and a target address of the GRE tunnel, then analyzes an IP layer requested by a user terminal in the GRE tunnel, and records the source address and the target address of the user terminal; and then respectively encoding the source address and the target address of the IPv6 message according to the encoding and decoding modes, wherein the province of the GGSN equipment and the identification of the GGSN equipment are obtained through inquiring the GRE tunnel configuration table. And after the IPv6 message coding is finished, sending the message to the next bar according to the routing configuration.
(2) After receiving the IPv6 message of the WAP gateway, the GRE gateway obtains the destination address of the GRE tunnel and the destination IP address of the user terminal by analyzing the IPv6 address, and then assembles the IPv4 GRE tunnel message according to the obtained IP addresses and the recorded tunnel configuration information of the user terminal, and sends the GRE tunnel message to the next piece according to the configuration of the routing table.
It should be noted that although the operations of the method of the present invention are described in a particular order in the above embodiments and the accompanying drawings, this does not require or imply that the operations must be performed in the particular order or that all of the illustrated operations be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform.
In order to more clearly explain the above method for avoiding the conflict of the IPv4 private network address by the IPv6 address, a specific embodiment will be described below, however, it should be noted that this embodiment is only for better explaining the present invention, and does not constitute an undue limitation of the present invention.
The Ipv6 address generated by the last action is illustrated below as to how the Ipv6 address is generated and parsed. Reverse parsing of the IPv6 address may result in the following table 2:
table 2 IPv6 address codec examples
Source address information Destination address information
Prefix:FD00 Prefix:FD00
Source Global ID 0000:0001 Destination Global ID 0000:0002
Subnet ID:0b09 Subnet ID:0b00
Tunnel source address: 10.88.0.190 Tunnel destination address: 10.88.0.254
Source address of user terminal: 172.0.190.178 User terminal destination address: 172.0.190.177
fd00:0000:0001:0b09:0a58:00be:ac00:beb2 fd00:0000:0002:0b00:0a58:00fe:ac00:beb1
Based on the same inventive concept, the invention also provides a device for avoiding the conflict of the IPv4 private network address by the IPv6 address. The implementation of the device can be referred to as implementation of the above method, and the repetition is not repeated. The term "module" as used below may be a combination of software and/or hardware that implements the intended function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 3 is a schematic diagram of an apparatus for avoiding an IPv4 private network address conflict by an IPv6 address according to an embodiment of the present invention. As shown in fig. 3, the apparatus includes:
a GRE tunnel transfer data module 101, configured to use a GRE tunnel to transfer data between GGSN equipment and a GRE gateway;
the IPv4 and IPv6 address bidirectional conversion module 102 is used for realizing bidirectional conversion between the GRE tunnel message of IPv4 and the IPv6 message according to an IP address multiplexing/conversion algorithm by the GRE gateway; the method is particularly used for:
after receiving an IPv4 GRE tunnel message of GGSN equipment, the GRE gateway firstly analyzes the GRE tunnel protocol, records the source address and the target address of the GRE tunnel, then analyzes the IP layer requested by the user terminal in the GRE tunnel, and records the source address and the target address of the user terminal; encoding a source address and a target address of an IPv6 message respectively according to an IP address multiplexing/converting algorithm, wherein the province of GGSN equipment and the identification of the GGSN equipment are obtained through inquiring a GRE tunnel configuration table; after the IPv6 message is coded, the message is sent to the next bar according to the route configuration;
after receiving the IPv6 message of the WAP gateway, the GRE gateway acquires the destination address of the GRE tunnel and the destination IP address of the user terminal by analyzing the IPv6 address, and then assembles the IPv4 GRE tunnel message according to the acquired IP addresses and the recorded tunnel configuration information of the user terminal, and sends the GRE tunnel message to the next piece according to the configuration of the routing table;
the IP address multiplexing/converting algorithm uses the characteristics of 128bits of IPv6 address to compress and bear the province information of GGSN equipment, the information of GGSN equipment and the address information requested by user terminal in GRE tunnel into IPv6 address;
the IP address multiplexing/translation algorithm is as follows:
IPv6 address part Prefix, corresponding to bit number 8bits (0-7 bits), is ULA address identification, and is fixed as FD00;
the IPv6 address part Global ID corresponds to 40bits (8-47 bits) and is used for distinguishing an interface address of IPv6 network part equipment, a source address and a target address of a user request;
the IPv6 address part Subnet ID, corresponding to bit number 16bits (48-63 bits), is used for identifying the province and GGSN equipment to which the GGSN equipment belongs, and represents a certain GGSN equipment of a certain province; the province of GGSN equipment uses 8bits, the coding range is 1-255, GGSN equipment uses 8bits, and the coding range is 1-255;
the IPv6 address part Interface ID corresponds to 64bits (64-127 bits) and is used for recording the GRE tunnel and the IPv4 address requested by the user terminal, and the two IP addresses respectively occupy 32bits;
IPv6 addresses are exclusively used for their internal network communications using ULA addresses;
ULA address format is:
address part: prefix, global ID, subnet ID, interface ID;
number of bits corresponding to address portion: 8bits,40bits,16bits,64bits;
wherein, the Prefix is identified as FD00, and the subsequent parts are defined according to the requirement;
the WAP gateway access IP address module 103 is configured to access each service processing procedure of the WAP gateway according to the IP address after multiplexing the user;
the WAP gateway adopts an IPv4/IPv6 dual stack working mode.
It should be noted that while several modules of an apparatus for circumventing IPv4 private network address conflicts by IPv6 addresses are mentioned in the above detailed description, this partitioning is merely exemplary and not mandatory. Indeed, the features and functions of two or more modules described above may be embodied in one module in accordance with embodiments of the present invention. Conversely, the features and functions of one module described above may be further divided into a plurality of modules to be embodied.
Based on the foregoing inventive concept, as shown in fig. 4, the present invention further proposes a computer device 200, including a memory 210, a processor 220, and a computer program 230 stored in the memory 210 and executable on the processor 220, where the processor 220 implements the foregoing method for avoiding the IPv4 private network address conflict by the IPv6 address when executing the computer program 230.
Based on the foregoing inventive concept, the present invention also proposes a computer-readable storage medium storing a computer program for executing the aforementioned method for avoiding IPv4 private network address collision by an IPv6 address.
The method and the device for avoiding the IPv4 private network address conflict by the IPv6 address realize centralized construction of the WAP gateway, improve the utilization rate of equipment, do not modify GGSN equipment, can continuously adopt a repeated IPv4 address segment allocation mode, and reduce the current network modification difficulty.
While the spirit and principles of the present invention have been described with reference to several particular embodiments, it is to be understood that the invention is not limited to the disclosed embodiments nor does it imply that features of the various aspects are not useful in combination, nor are they useful in any combination, such as for convenience of description. The invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.
It should be apparent to those skilled in the art that various modifications or variations can be made in the present invention without requiring any inventive effort by those skilled in the art based on the technical solutions of the present invention.

Claims (12)

1. A method for avoiding an IPv4 private network address conflict by an IPv6 address, the method comprising:
the GGSN equipment and the GRE gateway use a GRE tunnel to transfer data;
the GRE gateway realizes bidirectional conversion between the IPv4 GRE tunnel message and the IPv6 message according to an IP address multiplexing/conversion algorithm;
the IP address multiplexing/converting algorithm uses the characteristics of 128bits of IPv6 address to compress and bear the province information of GGSN equipment, the information of GGSN equipment and the address information requested by user terminal in GRE tunnel into IPv6 address;
the IP address multiplexing/translation algorithm is as follows:
IPv6 address part Prefix, corresponding to bit number 8bits (0-7 bits), is ULA address identification, and is fixed as FD00;
the IPv6 address part Global ID corresponds to 40bits (8-47 bits) and is used for distinguishing an interface address of IPv6 network part equipment, a source address and a target address of a user request;
the IPv6 address part Subnet ID, corresponding to bit number 16bits (48-63 bits), is used for identifying the province and GGSN equipment to which the GGSN equipment belongs, and represents a certain GGSN equipment of a certain province; the province of GGSN equipment uses 8bits, the coding range is 1-255, GGSN equipment uses 8bits, and the coding range is 1-255;
the IPv6 address part Interface ID corresponds to 64bits (64-127 bits) and is used for recording the GRE tunnel and the IPv4 address requested by the user terminal, and the two IP addresses respectively occupy 32bits;
and each service processing process of the WAP gateway accesses according to the IP address after multiplexing the users.
2. The method of claim 1, wherein the IPv6 address employs ULA addresses exclusively for its internal network communications.
3. The method for avoiding IPv4 private network address collision by IPv6 addresses according to claim 2, wherein the ULA address format is:
address part: prefix, global ID, subnet ID, interface ID;
number of bits corresponding to address portion: 8bits,40bits,16bits,64bits;
where Prefix is identified as FD00, and the following is defined as needed.
4. The method for avoiding IPv4 private network address collision by IPv6 address according to claim 1, wherein the bidirectional conversion between the GRE tunnel message of IPv4 and the IPv6 message is implemented by the GRE gateway according to an IP address multiplexing/conversion algorithm, comprising:
after receiving an IPv4 GRE tunnel message of GGSN equipment, the GRE gateway firstly analyzes the GRE tunnel protocol, records the source address and the target address of the GRE tunnel, then analyzes the IP layer requested by the user terminal in the GRE tunnel, and records the source address and the target address of the user terminal; encoding a source address and a target address of an IPv6 message respectively according to an IP address multiplexing/converting algorithm, wherein the province of GGSN equipment and the identification of the GGSN equipment are obtained through inquiring a GRE tunnel configuration table; after the IPv6 message is coded, the message is sent to the next bar according to the route configuration;
after receiving the IPv6 message of the WAP gateway, the GRE gateway obtains the destination address of the GRE tunnel and the destination IP address of the user terminal by analyzing the IPv6 address, and then assembles the IPv4 GRE tunnel message according to the obtained IP addresses and the recorded tunnel configuration information of the user terminal, and sends the GRE tunnel message to the next piece according to the configuration of the routing table.
5. The method for avoiding IPv4 private network address collision by an IPv6 address according to claim 1, wherein the WAP gateway adopts an IPv4/IPv6 dual stack operating mode.
6. An apparatus for avoiding an IPv4 private network address conflict by an IPv6 address, the apparatus comprising:
the GRE tunnel data transmission module is used for transmitting data between GGSN equipment and the GRE gateway by using the GRE tunnel;
the IPv4 and IPv6 address bidirectional conversion module is used for enabling the GRE gateway to realize bidirectional conversion between the GRE tunnel message of IPv4 and the IPv6 message according to an IP address multiplexing/conversion algorithm; the IP address multiplexing/converting algorithm uses the characteristics of 128bits of IPv6 address to compress and bear the province information of GGSN equipment, the information of GGSN equipment and the address information requested by user terminal in GRE tunnel into IPv6 address; the IP address multiplexing/translation algorithm is as follows:
IPv6 address part Prefix, corresponding to bit number 8bits (0-7 bits), is ULA address identification, and is fixed as FD00;
the IPv6 address part Global ID corresponds to 40bits (8-47 bits) and is used for distinguishing an interface address of IPv6 network part equipment, a source address and a target address of a user request;
the IPv6 address part Subnet ID, corresponding to bit number 16bits (48-63 bits), is used for identifying the province and GGSN equipment to which the GGSN equipment belongs, and represents a certain GGSN equipment of a certain province; the province of GGSN equipment uses 8bits, the coding range is 1-255, GGSN equipment uses 8bits, and the coding range is 1-255;
the IPv6 address part Interface ID corresponds to 64bits (64-127 bits) and is used for recording the GRE tunnel and the IPv4 address requested by the user terminal, and the two IP addresses respectively occupy 32bits;
and the WAP gateway access IP address module is used for accessing each service processing process of the WAP gateway according to the IP address after multiplexing the users.
7. The apparatus for avoiding IPv4 private network address collision by an IPv6 address according to claim 6, wherein the IPv6 address employs ULA addresses exclusively for its internal network communications.
8. The apparatus for avoiding IPv4 private network address collision by an IPv6 address according to claim 7, wherein said ULA address format is:
address part: prefix, global ID, subnet ID, interface ID;
number of bits corresponding to address portion: 8bits,40bits,16bits,64bits;
where Prefix is identified as FD00, and the following is defined as needed.
9. The apparatus for avoiding IPv4 private network address collision by IPv6 addresses according to claim 6, wherein said IPv4 and IPv6 address bi-directional translation module is specifically configured for:
after receiving an IPv4 GRE tunnel message of GGSN equipment, the GRE gateway firstly analyzes the GRE tunnel protocol, records the source address and the target address of the GRE tunnel, then analyzes the IP layer requested by the user terminal in the GRE tunnel, and records the source address and the target address of the user terminal; encoding a source address and a target address of an IPv6 message respectively according to an IP address multiplexing/converting algorithm, wherein the province of GGSN equipment and the identification of the GGSN equipment are obtained through inquiring a GRE tunnel configuration table; after the IPv6 message is coded, the message is sent to the next bar according to the route configuration;
after receiving the IPv6 message of the WAP gateway, the GRE gateway obtains the destination address of the GRE tunnel and the destination IP address of the user terminal by analyzing the IPv6 address, and then assembles the IPv4 GRE tunnel message according to the obtained IP addresses and the recorded tunnel configuration information of the user terminal, and sends the GRE tunnel message to the next piece according to the configuration of the routing table.
10. The apparatus for avoiding IPv4 private network address collision from an IPv6 address according to claim 6, wherein the WAP gateway adopts an IPv4/IPv6 dual stack operating mode.
11. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1-5 when executing the computer program.
12. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program for performing the method of any one of claims 1-5.
CN202011334957.1A 2020-11-25 2020-11-25 Method and device for avoiding IPv4 private network address conflict by IPv6 address Active CN112532762B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011334957.1A CN112532762B (en) 2020-11-25 2020-11-25 Method and device for avoiding IPv4 private network address conflict by IPv6 address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011334957.1A CN112532762B (en) 2020-11-25 2020-11-25 Method and device for avoiding IPv4 private network address conflict by IPv6 address

Publications (2)

Publication Number Publication Date
CN112532762A CN112532762A (en) 2021-03-19
CN112532762B true CN112532762B (en) 2023-04-21

Family

ID=74993167

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011334957.1A Active CN112532762B (en) 2020-11-25 2020-11-25 Method and device for avoiding IPv4 private network address conflict by IPv6 address

Country Status (1)

Country Link
CN (1) CN112532762B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101064723A (en) * 2006-04-28 2007-10-31 三星电子株式会社 Method and apparatus for generating an ipv6 unique local address
CN101383834A (en) * 2008-10-15 2009-03-11 杭州华三通信技术有限公司 Method for forwarding IPv6 multicast report between 6to4 networks and 6to4 device
CN101719859A (en) * 2009-12-09 2010-06-02 华为技术有限公司 Method, device and system for realizing equipment conversion of IPv6 tunnel passing through network address
CN102577330A (en) * 2009-10-16 2012-07-11 思科技术公司 Apparatus, logic and method for providing a translation mechanism in a network environment
CN102651862A (en) * 2011-02-23 2012-08-29 中国移动通信集团公司 IP (Internet Protocol) address configuration method of WAP (Wireless Application Protocol) gateway and equipment thereof
CN103796195A (en) * 2012-10-31 2014-05-14 中国移动通信集团公司 Data transmission processing method, data transmission processing system and data service gateway
CN108134857A (en) * 2017-12-26 2018-06-08 中国联合网络通信集团有限公司 A kind of IP address distribution method, apparatus and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101064723A (en) * 2006-04-28 2007-10-31 三星电子株式会社 Method and apparatus for generating an ipv6 unique local address
CN101383834A (en) * 2008-10-15 2009-03-11 杭州华三通信技术有限公司 Method for forwarding IPv6 multicast report between 6to4 networks and 6to4 device
CN102577330A (en) * 2009-10-16 2012-07-11 思科技术公司 Apparatus, logic and method for providing a translation mechanism in a network environment
CN101719859A (en) * 2009-12-09 2010-06-02 华为技术有限公司 Method, device and system for realizing equipment conversion of IPv6 tunnel passing through network address
CN102651862A (en) * 2011-02-23 2012-08-29 中国移动通信集团公司 IP (Internet Protocol) address configuration method of WAP (Wireless Application Protocol) gateway and equipment thereof
CN103796195A (en) * 2012-10-31 2014-05-14 中国移动通信集团公司 Data transmission processing method, data transmission processing system and data service gateway
CN108134857A (en) * 2017-12-26 2018-06-08 中国联合网络通信集团有限公司 A kind of IP address distribution method, apparatus and system

Also Published As

Publication number Publication date
CN112532762A (en) 2021-03-19

Similar Documents

Publication Publication Date Title
US11356410B2 (en) Packet transmission method and device, and computer readable storage medium
CN1217520C (en) Device for converting internet protocol address and household network system using same
KR100453050B1 (en) Method for communicating data between IPv4 and IPv6 and apparatus thereof
US8422503B2 (en) Address translator using address translation information in header area on network layer level and a method therefor
US9118721B1 (en) Socket-based internet protocol for wireless networks
CN103561127A (en) Method and system for tracing source of user
CN103200281A (en) Method, device and system for accessing intranet server
CN103312749A (en) Discovery method, equipment and system for application layer flow optimization (ALTO) server
CN114244842B (en) Secure resource scheduling method and device, electronic equipment and storage medium
US8547998B2 (en) Tunneling IPv6 packet through IPv4 network using a tunnel entry based on IPv6 prefix and tunneling IPv4 packet using a tunnel entry based on IPv4 prefix
KR100652958B1 (en) Method of transmitting data by improvement of translating network address in gateway and system thereof
CN112532762B (en) Method and device for avoiding IPv4 private network address conflict by IPv6 address
CN1452369A (en) Method and device for managing Internet protocol in mobile network by transformation of network address
CN102984696B (en) Based on the IP communication means of mobile terminal, equipment and system
TWI735633B (en) Data transmission method, equipment, device and system
CN102316176B (en) Packet processing and tracing methods, apparatuses thereof and systems thereof
CN1706168A (en) Methods and apparatus for home address management at home agent for NAI based mobile nodes
CN107079423B (en) Data transmission method and equipment
CN107426263A (en) Sending, receiving method and device, the electronic equipment of packet
KR101709874B1 (en) Ip address allocation method and ip address allocation server for performing the method
JPH10154994A (en) Address conversion system
CN107040616B (en) Conversion method and message receiving and transmitting method for TCP/DN/IP network compatible with TCP/IP network
CN114531417B (en) Communication method and device
CN111726427B (en) Information processing method, equipment and computer readable storage medium
CN102811263A (en) Internet protocol version 6 (IPv6)-based communication method and system for mobile terminal and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 200000 room 702-2, No. 4811 Cao'an Road, Jiading District, Shanghai

Patentee after: CHINA UNITECHS

Address before: Room 1004-4, 10 / F, 1112 Hanggui Road, Anting Town, Jiading District, Shanghai

Patentee before: CHINA UNITECHS