Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and apparatus for network port address conversion

A technology of port conversion and network address, which is applied in the field of network communication, can solve the problems of packet discarding, the combination of public network address and port cannot be reused, and the limited number of private network addresses, etc., to achieve the effect of expanding the number

Inactive Publication Date: 2008-12-31
NEW H3C TECH CO LTD
View PDF0 Cites 29 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] In Table 1, the packets of the first 64512 flows have exhausted the port numbers in the IP_GLOBAL port queue, so when the 64513th flow will pass through the NAT conversion device, the port numbers in the IP_GLOBAL port queue are already occupied , and the combination of the converted public network address and port cannot be reused, therefore, the packet of the 64513th flow is discarded
[0009] To sum up, in the existing NAPT scheme, due to the exhaustion of port resources, the number of private addresses that a public address can be used for translation is limited

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and apparatus for network port address conversion
  • Method and apparatus for network port address conversion

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The core idea of ​​the present invention is: judge whether a port in the port queue of a public network address can be used by the current flow based on the quintuple, that is, as long as the destination IP addresses, destination ports or protocols of multiple flows (excluding the source in the quintuple) IP address and three items other than the source port) are different, then these multiple streams can reuse a public network address and the same port in the public network address port queue as the source IP address and source port after NAPT conversion.

[0027] figure 1 It is a flow chart of a network address port conversion method according to an embodiment of the present invention. Such as figure 1 As shown, the method includes the following steps:

[0028] Step 101, receiving the current flow that needs to be processed by NAPT.

[0029] Step 102, assigning a specified public network address as the source IP address of the current flow after NAPT processing.

...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and apparatus for network address port conversion. The method includes: receiving a current stream required Network Address Port Translation NAPT processing; allocating designated public network as source IP address of the current stream after NAPT processing; selecting one port from the port queue of the designated public network address as the source IP address of the current stream after NAPT processing; searching a session table according to a quintuple group composed of the source IP address, the source port, the current flow object IP address, the object port of the current stream and the current stream agreement to judge whether the flow with the same stream exists; if not, performing NAPT processing to the current stream according to the source IP address and the source port, storing the quintuple group of the current stream after NAPT processing in the session table, and transmitting the current stream after NAPT processing. The technical scheme of the invention greatly extends the number of a public network address capable of being used for conversion in private network address.

Description

technical field [0001] The invention relates to the technical field of network communication, in particular to a network address port conversion method and device. Background technique [0002] The Network Address Translation (NAT, Network Address Translation) protocol realizes the mutual conversion between the IP address in the private network and the IP address in the public network, and the private network address corresponds to the public network address one by one. [0003] Network Address Port Translation (NAPT, Network Address Port Translation) is a variant of NAT, allowing multiple private network addresses to be mapped to the same public network address, also known as "many-to-one address translation" or "address multiplexing". ". NAPT maps IP addresses and port numbers at the same time. The source addresses of datagrams from different private network addresses can be mapped to the same public network address, but the port numbers of these datagrams from different ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L29/12H04L12/56H04L29/06H04L12/861
Inventor 鄢波涛
Owner NEW H3C TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products