# US 2014/0211714 A1 · Method and apparatus for performing policy control on data packet

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

- Number: US 2014/0211714 A1
- Document ID: US20140211714A1
- Status: Published application
- Kind: A1
- Application number: 14/227,864
- Filed: 2014-03-27
- Published: 2014-07-31
- Earliest claimed: 2011-09-30
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Yan LI; Xiaoyan SHI
- Web page: https://patentgrep.com/patent/US20140211714A1

## CPC

- H04L 41/5041: characterised by the time relationship between creation and deployment of a service
- H04L 5/0037: {Inter-user or inter-terminal allocation}
- H04L 41/0894: Policy-based network configuration management
- H04L 61/2517: using port numbers
- H04L 65/103: {in the network}
- H04L 65/80: Responding to QoS
- H04L 43/026: using flow identification
- H04L 61/2514: between local and global IP addresses
- H04W 88/16: Gateway arrangements
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)

## Abstract

A method and an apparatus are provided for performing policy control on a data packet. The method includes: allocating, by a local gateway, a port range to a UE, where the port range is unique to the UE; sending, by the local gateway, the port range of the UE and user information to a policy server, so that the policy server makes a policy rule for the UE, where the policy rule contains the port range; and performing, by the local gateway, network address translation on a packet sent by the UE, so that a source port of the converted packet is in the port range, and sending the converted packet to a network gateway in a fixed network, so that the network gateway performs policy control on the packet according to the policy rule received from the policy server.

## Claims

### Claim 1

A method for performing policy control on a data packet, comprising:
allocating, by a local gateway, a port range to a user equipment (UE), where the port range is unique to the UE;
sending, by the local gateway, the port range of the UE and user information to a policy server, so that the policy server makes a policy rule for the UE, wherein the policy rule includes the port range; and
performing, by the local gateway, network address translation on a packet sent by the UE to produce a translated packet having a source port in the port range, and sending the translated packet to a network gateway in a fixed network, so that the network gateway performs policy control on the packet according to the policy rule received from the policy server.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the allocating further comprises:
allocating, by the local gateway, a private network address and a port range to the UE, based on an address request message sent by the UE by using a packet data network connection establishment or attachment process.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the method further comprises:
associating, by the local gateway, the private network address with the port range and storing the port range and the association, and sending the private network address to the UE; or
sending, by the local gateway, the private network address and the port range to the UE, so that the UE can select a source port of a sent packet from the port range.

### Claim 4 (depends on 1)

The method according to claim 1, wherein sending the port range of the UE and the user information to the policy server comprises:
sending, by the local gateway, a message carrying the port range of the UE and user information to a policy server in a mobile network, wherein the user information comprises at least one of the group consisting of: an identifier of a user, an attribute, a level of the user, and a priority level of a user service; and
generating, by the policy server, the policy rule of the UE according to the user information, wherein the policy rule includes the port range.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the method further comprises:
sending, by the policy server, the policy rule to the network gateway, wherein the network gateway stores the policy rule; or
sending, by the policy server, the policy rule to a policy server of the fixed network, sending, by the policy server of the fixed network, the policy rule to the network gateway, and storing, by the network gateway, the policy rule.

### Claim 6 (depends on 3)

The method according to claim 3, wherein performing network address translation comprises:
when the local gateway has not sent the port range to the UE, modifying, by the local gateway, a source address of the packet sent by the UE to a public network address acquired by the local gateway from the network gateway, and modifying a source port number of the packet to a certain port number in the port range; or
when the local gateway has sent the port range to the UE, modifying, by the local gateway, a source address of the packet sent by the UE to a public network address acquired by the local gateway from the network gateway.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the network gateway performing policy control on the packet according to the policy rule received from the policy server comprises:
acquiring, by the network gateway, a 5-tuple of the packet,
matching the 5-tuple of the packet with a 5-tuple in the policy rule received from the policy server,
determining the policy rule as a policy rule of the packet if the matching succeeds,
performing policy control on the packet according to the policy rule, and
sending the packet on which policy control is performed to an external network.

### Claim 8 (depends on 1)

The method according to claim 1, wherein the method further comprises:
acquiring, by the network gateway, a 5-tuple of a packet sent by an external network to the UE,
matching the 5-tuple of the packet with a 5-tuple in the policy rule received from the policy server,
determining the policy rule as a policy rule of the packet if the matching succeeds,
performing policy control on the packet according to the policy rule, and
sending the packet on which policy control is performed to the UE.

### Claim 9 (depends on 1)

The method according to claim 1, wherein the policy rule comprises an uplink policy rule and a downlink policy rule,
wherein in the uplink policy rule, a range of a source port is the port range allocated by the local gateway to the UE, and
wherein in the downlink policy rule, a range of a destination port is the port range allocated by the local gateway to the UE.

### Claim 10 (depends on 1)

The method according to claim 1, wherein the local gateway comprises a local packet data network gateway or a residential gateway in the fixed network.

### Claim 11

A local gateway, comprising a processor and a non-transitory readable medium having processor-executable instructions stored thereon arranged into modules, the modules comprising:
a port range processing module, configured to allocate a port range to a user equipment (UE), where the port range is unique to the UE; send the port range of the UE and user information to a policy server, so that the policy server can make a policy rule for the UE, wherein the policy rule includes the port range; and
a network address translation module, configured to perform network address translation on a packet sent by the UE to produce a translated packet having a source port in the port range, and send the translated packet to a network gateway in a fixed network, so that the network gateway can perform policy control on the packet according to the policy rule received from the policy server.

### Claim 12 (depends on 11)

The local gateway according to claim 11, wherein the port range processing module further comprises:
a port range allocation module, configured to allocate a private network address and the port range to the UE, based on an address request message sent by the UE by using a packet data network connection establishment or attachment process; and
associate the private network address of the UE with the port range of the UE and store the port range and the association, and send the private network address to the UE; or send the private network address of the UE and the port range of the UE to the UE, so that the UE can select a source port of a sent packet from the port range; and
an information transmission module, configured to send a message carrying the port range of the UE and user information to a policy server in a mobile network, so that the policy server can generate a policy rule of the UE according to the user information, wherein the user information comprises at least one of the group consisting of: an identifier of a user, an attribute, a level of the user, and a priority level of a user service, and the policy rule contains the port range.

### Claim 13 (depends on 11)

The local gateway according to claim 11, wherein the network address translation module is configured to:
when the port range processing module has not sent the port range to the UE, modify a source address of a packet sent by the UE into a public network address acquired by the local gateway from the network gateway, and modify a source port number of the packet to a certain port number in the port range; or
when the port range processing module has sent the port range to the UE, modify a source address of the packet sent by the UE to a public network address acquired by the local gateway from the network gateway.

### Claim 14 (depends on 11)

The local gateway according to claim 11, wherein the local gateway comprises a residential gateway or a local packet data network gateway.

### Claim 15

A network gateway, comprising a processor and a non-transitory readable medium having processor-executable instructions stored thereon arranged into modules, the modules comprising:
a policy rule storage module, configured to receive a policy rule of a user equipment (UE) sent by a policy server and store the policy rule, wherein the policy rule includes a port range of the UE; and
a policy rule execution module, configured to acquire a 5-tuple of a packet sent by a local gateway, match the 5-tuple of the packet with a 5-tuple in the policy rule stored in the policy rule storage module, determine the policy rule as a policy rule of the packet if the matching succeeds, perform policy control on the packet according to the policy rule, and send the packet on which policy control is performed to an external network.

### Claim 16 (depends on 15)

The network gateway according to claim 15, wherein
the policy rule execution module is further configured to acquire a 5-tuple of a packet sent by the external network to the UE, match the 5-tuple of the packet with the 5-tuple in the policy rule stored in the policy rule storage module, determine the policy rule as a policy rule of the packet if the matching succeeds, perform policy control on the packet according to the policy rule, and send the packet on which policy control is performed to the UE.
