# US 2016/0241489 A1 · Method and Apparatus for Acquiring port range Resource, and Method and Apparatus for Allocating port range Resource

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2016/0241489 A1
- Document ID: US20160241489A1
- Status: Published application
- Kind: A1
- Application number: 15/025,619
- Filed: 2014-05-23
- Published: 2016-08-18
- Earliest claimed: 2013-09-29
- Assignees: Zte Corporation
- Applicants: Zte Corporation
- Inventors: Kun ZHENG
- Web page: https://patentgrep.com/patent/US20160241489A1

## CPC

- H04L 47/82: {Miscellaneous aspects}
- H04L 61/2575: using address mapping retrieval, e.g. simple traversal of user datagram protocol through session traversal utilities for NAT [STUN]
- H04L 61/5007: Internet protocol [IP] addresses
- H04L 61/5092: by self-assignment, e.g. picking addresses at random and testing if they are already in use
- H04L 2101/663: Transport layer addresses, e.g. aspects of transmission control protocol [TCP] or user datagram protocol [UDP] ports
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Provided are a method and apparatus for acquiring a port range resource, and method and apparatus for allocating a port range resource. In the method, a first Router Solicitation (RS) message is sent to a server-end device, wherein information carried in the first RS message includes at least one of an Internet Protocol (IP) address multiplexing request and a port range resource allocation request; and a Router Advertisement (RA) message from the server-end device is received, wherein information carried in the RA message includes: a port range resource allocated according to the IP address multiplexing request and/or according to the port range resource allocation request. By virtue of the technical solution, an Address Plus Port (A+P) technology can be applied to an application scenario where stateless configuration of an Internet Protocol Version 6 (IPv6) address is performed via Neighbour Discovery (ND), thereby expanding the application range of the A+P technology.

## Claims

### Claim 1

A method for acquiring a port range resource, comprising:
sending a first Router Solicitation (RS) message to a server-end device, wherein information carried in the first RS message comprises at least one of an Internet Protocol (IP) address multiplexing request and a port range resource allocation request; and
receiving a Router Advertisement (RA) message from the server-end device, wherein information carried in the RA message comprises: a port range resource allocated according to the IP address multiplexing request and/or according to the port range resource allocation request.

### Claim 2 (depends on 1)

The method as claimed in claim 1, wherein after the RA message from the server-end device is received, the method further comprises:
sending a second RS message to the server-end device, wherein information carried in the second RS message comprises: a port range resource release request which is used for requesting the server-end device to release the port range resource.

### Claim 3 (depends on 1)

The method as claimed in claim 1, wherein after the RA message from the server-end device is received, the method further comprises:
storing the port range resource allocated by the server-end device.

### Claim 4 (depends on 1)

The method as claimed in claim 1, wherein an expanded Neighbour Discovery (ND) option is encapsulated in the first RS message, and the ND option contains identification information for requesting to multiplex an IP address resource and/or requesting to allocate the port range resource.

### Claim 5 (depends on 2)

The method as claimed in claim 2, wherein an expanded ND option is encapsulated in the second RS message, and the ND option contains identification information for requesting to release the port range resource.

### Claim 6 (depends on 1)

The method as claimed in claim 1, wherein an expanded ND option is encapsulated in the RA message, and the ND option contains the allocated port range resource.

### Claim 7 (depends on 3)

The method as claimed in claim 3, wherein after the port range resource is stored, the method further comprises:
receiving a first flow message triggered by a terminal and sent to a server in a Wide Area Network (WAN);
selecting a public network IP address and a public network port from the stored port range resource, translating a source IP address and a source port, which are currently used by the first flow message, into the public network IP address and the public network port, and recording a corresponding relationship between the public network IP address and port and the source IP address and port; and
forwarding the first flow message according to the public network IP address and the public network port.

### Claim 8 (depends on 7)

The method as claimed in claim 7, wherein after the first flow message is forwarded according to the public network IP address and the public network port, the method further comprises:
receiving a second flow message sent from the server to the terminal;
acquiring the source IP address and port, corresponding to the public network IP address and the public network port which are currently used by the second flow message, from the corresponding relationship; and
forwarding the second flow message according to the source IP address and the source port.

### Claim 9

A method for allocating a port range resource, comprising:
receiving a first Router Solicitation (RS) message from Customer Premise Equipment (CPE), wherein information carried in the first RS message comprises at least one of an Internet Protocol (IP) address multiplexing request and a port range resource allocation request; and
allocating a port range resource according to the IP address multiplexing request and/or according to the port range resource allocation request, encapsulating the allocated port range resource into a Router Advertisement (RA) message, and sending the RA message to the CPE.

### Claim 10 (depends on 9)

The method as claimed in claim 9, wherein after the RA message is sent to the CPE, the method further comprises:
receiving a second RS message from the CPE, wherein information carried in the second RS message comprises: a port range resource release request; and
releasing the port range resource according to the port range resource release request.

### Claim 11

An apparatus for acquiring a port range resource, comprising:
a first sending component, configured to send a first Router Solicitation (RS) message to a server-end device, wherein information carried in the first RS message comprises at least one of an Internet Protocol (IP) address multiplexing request and a port range resource allocation request; and
a receiving component, configured to receive a Router Advertisement (RA) message from the server-end device, wherein information carried in the RA message comprises: a port range resource allocated according to the IP address multiplexing request and/or according to the port range resource allocation request.

### Claim 12 (depends on 11)

The apparatus as claimed in claim 11, further comprising:
a second sending component, configured to send a second RS message to the server-end device, wherein information carried in the second RS message comprises: a port range resource release request which is used for requesting the server-end device to release the port range resource.

### Claim 13

An apparatus for allocating a port range resource, comprising:
a first receiving component, configured to receive a first Router Solicitation (RS) message from Customer Premise Equipment (CPE), wherein information carried in the first RS message comprises at least one of an Internet Protocol (IP) address multiplexing request and a port range resource allocation request; and
an allocation component, configured to allocate a port range resource according to the IP address multiplexing request and/or according to the port range resource allocation request, encapsulate the allocated port range resource into a Router Advertisement (RA) message, and send the RA message to the CPE.

### Claim 14 (depends on 13)

The apparatus as claimed in claim 13, further comprising:
a second receiving component, configured to receive a second RS message from the CPE, wherein information carried in the second RS message comprises: a port range resource release request; and
a processing component, configured to release the port range resource according to the port range resource release request.
