CN107547669A - A kind of method for network address translation device - Google Patents

A kind of method for network address translation device Download PDF

Info

Publication number
CN107547669A
CN107547669A CN201610474559.7A CN201610474559A CN107547669A CN 107547669 A CN107547669 A CN 107547669A CN 201610474559 A CN201610474559 A CN 201610474559A CN 107547669 A CN107547669 A CN 107547669A
Authority
CN
China
Prior art keywords
network address
address
information
ipv6
message
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.)
Pending
Application number
CN201610474559.7A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610474559.7A priority Critical patent/CN107547669A/en
Publication of CN107547669A publication Critical patent/CN107547669A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides method for network address translation to include, obtain IP datagram text, extraction needs the IPV4 network address changed from the message, the IPV4 network address is converted into IPV6 network address according to pre-defined rule, the IPV6 network address includes physical address information, IPV4 network address in message is replaced with into the IPV6 network address and forwarded, at least to need message deblocking being attached to IP layers in the prior art, cause forward efficiency low, the problem of each shared IPv4 addresses support number is limited, and the cost that causes to arrange net improves.

Description

A kind of method for network address translation device
Technical field
The present invention relates to communication and computer realm, more particularly to method for network address translation is device.
Background technology
Fourth edition (Internet Protocol Version 4, hereinafter referred to as IPv4) class business of Internet protocol is rich Richness, although part to Internet protocol sixth version (Internet Protocol Version 6, hereinafter referred to as IPv6) transition, but IPv4 user is still huger, in order to solve IPv4overIPv6 scene, if being formed The dry transitional technology for IPv4overIPv6 scenes, Light weight 4over6 and DSLite are exactly therein Two kinds.Lightweight 4over6 are the modified versions of DS-Lite technologies, and greatest improvement is exactly by NAT44 Customer terminal equipment (Customer Premise are transferred in (Network Adress Transfer 44) conversion Equipment, hereinafter referred to as CPE), and the IPv4 addresses of tunnel distributing are shared, and its principle is CPE NAT44 conversion is first completed, then goes to access IPv4 business by IPv6 networks after encapsulating IPv6 headings.For Solve in the case where IPv4 addresses are shared, the problem of how different users distinguishes, the technology is by each CPE points Method with unique 16 PSID (Port Set Identification) makes a distinction, but existing skill Art needs message deblocking being attached to IP layers, causes forward efficiency low, simultaneously as PSID only has 16, one altogether It is limited with IPv4 addresses support number, cause cost raising of arranging net, needed when changing IPv6 addresses because of digit deficiency Zero padding, causes troublesome in poeration, for problem above, not yet proposes effective solution at present.
The content of the invention
The invention provides method for network address translation and device, and IP layers are attached at least to need to unseal message in the prior art, Cause forward efficiency low, the problem of each shared IPv4 addresses support number is limited, and the cost that causes to arrange net improves.
According to an aspect of the present invention, there is provided a kind of method for network address translation, this method include, and obtain IP datagram text, Extraction needs the IPV4 network address changed from the message, and the IPV4 network address is converted into according to pre-defined rule IPV6 network address, the IPV6 network address include physical address information, and IPV4 network address in message is replaced with into institute State IPV6 network address and forward.
Further, the IPV6 network address also includes port identity information.
Further, physical address information and the IPV4 network address are being combined into IPV6 network address according to certain rule Before, methods described also includes, to dynamic address configuration server acquisition request information of address conversion;Receive dynamic address configuration The information of address conversion of server response;
Further, the IPV4 network address is converted into IPV6 network address according to pre-defined rule includes, by the address Transitional information, port identity information and physical address information are combined into IPV6 addresses.
Further, this method also includes, and receives the network message for including IPV6 addresses, is extracted physically according to pre-defined rule Location information simultaneously forwards the network message according to the physical address information.
According to another aspect of the present invention, a kind of network address conversion device is additionally provided, the device includes, extraction module, uses In obtaining IP datagram text, the IPV4 network address for needing to change, modular converter, for by described in are extracted from the message IPV4 network address is converted into IPV6 network address according to pre-defined rule, and the IPV6 network address includes physical address information, Forwarding module, IPV4 network address in message is replaced with into the IPV6 network address and forwarded.
Further, the IPV6 network address also includes port identity information.
Further, described device also includes, data obtaining module, to dynamic address configuration server acquisition request address conversion Information;Information receiving module, receive the information of address conversion that dynamic address configuration server is responded;
Further, the modular converter is additionally operable to, by the information of address conversion, port identity information and physical address information It is combined into IPV6 addresses.
Further, the forwarding module is additionally operable to, and is received the network message for including IPV6 addresses, is extracted according to pre-defined rule Physical address information simultaneously forwards the network message according to the physical address information.
The present invention introduce CPE own MAC address and PSID are combined into an IPv6 address by specific format by way of, Solving needs message deblocking being attached to IP layers, causes forward efficiency low, and each shared IPv4 addresses support number is limited, leads Cause arrange net cost improve the problem of.So as to reduce lifting forward efficiency, cost of arranging net is reduced.
Brief description of the drawings
Fig. 1 is method for network address translation flow chart according to embodiments of the present invention;
Fig. 2 is network address conversion device structured flowchart one according to embodiments of the present invention;
Fig. 3 is network address conversion device structured flowchart two according to embodiments of the present invention;
Fig. 4 is the network address structure chart of the embodiment of the present invention;
Fig. 5 is the address conversion and the comprehensive schematic diagram of message forwarding of embodiments of the invention;
Embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that in situation about not conflicting Under, the feature in embodiment and embodiment in the application can be mutually combined.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " Two " etc. be for distinguishing similar object, without for describing specific order or precedence.
According to an aspect of the present invention, there is provided a kind of method for network address translation, Fig. 1 are networks according to embodiments of the present invention Address conversion method flow chart, as shown in figure 1, this method includes
S102:IP datagram text is obtained, the IPV4 network address that extraction needs are changed from the message,
S104:The IPV4 network address is converted into IPV6 network address, the IPV6 network address according to pre-defined rule Comprising physical address information,
S106:IPV4 network address in message is replaced with into the IPV6 network address and forwarded.
Further, the IPV6 network address also includes port identity information, adds the reliability of IPv6 address conversions.
Further, physical address information and the IPV4 network address are being combined into IPV6 network address according to certain rule Before, to dynamic address configuration server acquisition request information of address conversion;Receive the address that dynamic address configuration server is responded Transitional information;
Further, the IPV4 network address being converted into IPV6 network address according to pre-defined rule can include, by described in Information of address conversion, port identity information and physical address information are combined into IPV6 addresses.
Further, the network message for including IPV6 addresses is received, physical address information is extracted and according to institute according to pre-defined rule State physical address information and forward the network message.
The embodiment of the present invention additionally provides a kind of network address conversion device, and Fig. 2 is that network address according to embodiments of the present invention turns Changing device structured flowchart one, as shown in Fig. 2 the device includes:
Extraction module 22, for obtaining IP datagram text, the IPV4 network address for needing to change is extracted from the message;
Modular converter 24, for the IPV4 network address to be converted into IPV6 network address, the IPV6 according to pre-defined rule Network address includes physical address information;
Forwarding module 26, IPV4 network address in message is replaced with into the IPV6 network address and forwarded.
Further, the IPV6 network address also includes port identity information.
Fig. 3 is network address conversion device structured flowchart two according to embodiments of the present invention, as shown in figure 3, described device is also wrapped Include, data obtaining module 32, to dynamic address configuration server acquisition request information of address conversion;Information receiving module 34, Receive the information of address conversion that dynamic address configuration server is responded;
Further, the modular converter is additionally operable to, by the information of address conversion, port identity information and physical address information It is combined into IPV6 addresses.
The embodiment of the present invention additionally provides a kind of switch, comprising:Switching Module, for receiving the network report for including IPV6 addresses Text, extract physical address information according to pre-defined rule and the network message is forwarded according to the physical address information.
The present invention is further described with a kind of specific embodiment of method for network address translation below:Before choosing CPE Sew;If the prefix less than 64 to the right polishing to 64;If the prefix less than 64 to the right polishing to 64;Choose CPE Some MAC Address (48) using " prefix (64)+MAC (48)+PSID (16) " forms It is assembled into the GUA addresses of 128.Fig. 4 is the network address structure chart of the embodiment of the present invention, GUA as shown in Figure 4 Location.The address be able to can also be used for encapsulating IPv6 headings generation channel message as the IPv6 addresses in LW4o6 tunnels,
Fig. 5 is the address conversion and the comprehensive schematic diagram of message forwarding of embodiments of the invention, as shown in figure 5, this method is not only straight Connect the source IP v6 addresses for using the IPv6 addresses generated as channel message encapsulated message head;Also directly use what is got Purpose IPv6 addresses of the br-ipv6-address (lwAFTR/BR IPv6 addresses) as channel message encapsulated message head; In the case where CPE shares IPv4 addresses, lwAFTR/BR can be by the source IP v6 addresses of channel message head MAC+P sections distinguish different CPE users, the establishment of switch charge tunnel, the envelope of channel message in the present embodiment The related operations in tunnel such as dress/decapsulation and forwarding, and two layers are directly carried out to message using MAC Address and is forwarded.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general computing devices come real Existing, they can be concentrated on single computing device, or are distributed on the network that multiple computing devices are formed, and alternatively, they can To be realized with the executable program code of computing device, it is thus possible to be stored in storage device by computing device to perform, and And in some cases, can be with the step shown or described by being performed different from order herein, or they are fabricated to each collection respectively Single integrated circuit module is fabricated to realize into circuit module, or by the multiple modules or step in them.So, the present invention does not limit Combined in any specific hardware and software.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for those skilled in the art, this Invention can have various modifications and variations.Within the spirit and principles of the invention, any modification, equivalent substitution and improvements made etc., It should be included in the scope of the protection.

Claims (10)

1. a kind of method for network address translation, it is characterised in that this method includes:
IP datagram text is obtained, the IPV4 network address that extraction needs are changed from the message;
The IPV4 network address is converted into IPV6 network address according to pre-defined rule, the IPV6 network address includes physical address information;
IPV4 network address in message is replaced with into the IPV6 network address and forwarded.
2. according to the method for claim 1, it is characterised in that the IPV6 network address also includes port identity information.
3. according to the method for claim 2, it is characterised in that before physical address information and the IPV4 network address are combined into IPV6 network address according to certain rule, methods described also includes:
To dynamic address configuration server acquisition request information of address conversion;
Receive the information of address conversion that dynamic address configuration server is responded.
4. according to the method for claim 3, it is characterised in that the IPV4 network address is converted into IPV6 network address according to pre-defined rule includes:
The information of address conversion, port identity information and physical address information are combined into IPV6 addresses.
5. according to the method for claim 1, it is characterised in that this method also includes:
The network message for including IPV6 addresses is received, physical address information is extracted according to pre-defined rule and the network message is forwarded according to the physical address information.
6. a kind of network address conversion device, it is characterised in that the device includes:
Extraction module, for obtaining IP datagram text, the IPV4 network address for needing to change is extracted from the message;
Modular converter, for the IPV4 network address to be converted into IPV6 network address according to pre-defined rule, the IPV6 network address includes physical address information;
Forwarding module, IPV4 network address in message is replaced with into the IPV6 network address and forwarded.
7. device according to claim 6, it is characterised in that the IPV6 network address also includes port identity information.
8. device according to claim 7, it is characterised in that described device also includes:
Data obtaining module, to dynamic address configuration server acquisition request information of address conversion;
Information receiving module, receive the information of address conversion that dynamic address configuration server is responded.
9. device according to claim 8, it is characterised in that the modular converter is additionally operable to:
The information of address conversion, port identity information and physical address information are combined into IPV6 addresses.
10. device according to claim 6, it is characterised in that forwarding module is additionally operable to receive the network message for including IPV6 addresses, extracts physical address information according to pre-defined rule and forwards the network message according to the physical address information.
CN201610474559.7A 2016-06-24 2016-06-24 A kind of method for network address translation device Pending CN107547669A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610474559.7A CN107547669A (en) 2016-06-24 2016-06-24 A kind of method for network address translation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610474559.7A CN107547669A (en) 2016-06-24 2016-06-24 A kind of method for network address translation device

Publications (1)

Publication Number Publication Date
CN107547669A true CN107547669A (en) 2018-01-05

Family

ID=60960905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610474559.7A Pending CN107547669A (en) 2016-06-24 2016-06-24 A kind of method for network address translation device

Country Status (1)

Country Link
CN (1) CN107547669A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111404878A (en) * 2020-02-26 2020-07-10 新浪网技术(中国)有限公司 Method and system for converting ipv4 address into ipv6 address

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111404878A (en) * 2020-02-26 2020-07-10 新浪网技术(中国)有限公司 Method and system for converting ipv4 address into ipv6 address
CN111404878B (en) * 2020-02-26 2022-06-24 新浪网技术(中国)有限公司 Method and system for converting ipv4 address into ipv6 address

Similar Documents

Publication Publication Date Title
US10887394B2 (en) Mechanism and service for device naming
CN103650460B (en) Method and device for wireless communication
KR102388195B1 (en) BRAS system-based message packaging method and device
US10432578B2 (en) Client address based forwarding of dynamic host configuration protocol response packets
KR102313165B1 (en) Data transmission method, device and system
US9100352B2 (en) Method, device, and system for forwarding packet
CN102238058B (en) Data message processing method, ingress tunnel router and system
CN102238059B (en) Data message processing method and system and access service node
EP2469766A1 (en) Method, system and apparatus for transmitting data
JP2013504962A (en) COMMUNICATION METHOD, DATA MESSAGE TRANSFER METHOD IN COMMUNICATION PROCESS, AND COMMUNICATION NODE
CN104579954A (en) Message cross-domain forwarding method and device as well as communication device
CN103581248A (en) Method and device for providing content distribution network CDN service
US8724630B2 (en) Method and system for implementing network intercommunication
US10454882B2 (en) DHCP in layer-3 overlay with anycast address support and network address transparency
Klauck et al. Enhanced DNS message compression-Optimizing mDNS/DNS-SD for the use in 6LoWPANs
CN106507414B (en) Message forwarding method and device
CN103973569A (en) Data message forwarding method, customer premises equipment and system
WO2021169291A1 (en) Route advertising method, network elements, system, and device
CN104579973A (en) Message forwarding method and device of virtual cluster
CN104717640B (en) A kind of implementation method of the wireless communication based on positioning
US11523443B2 (en) Extraction, conversion, and transmission of user packet from encapsulated packet
CN110535747B (en) Message processing device and method
CN107547669A (en) A kind of method for network address translation device
CN104601463A (en) Message forwarding method and device in VXLAN (virtual extensible local area network)
US20140293871A1 (en) Mobile communication network and mobile communication method using the same

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180105